obstack: port --enable-gcc-warnings to clang
[gnulib.git] / ChangeLog
1 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
2
3         obstack: port --enable-gcc-warnings to clang
4         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
5         Avoid casts from looser to stricter-aligned pointers.
6
7         memchr2: port --enable-gcc-warnings to clang
8         * lib/memchr2.c (memchr2):
9         Avoid casts from looser to stricter-aligned pointers.
10
11         mbsstr: port --enable-gcc-warnings to clang
12         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
13         Avoid casts from looser to stricter-aligned pointers.
14
15         malloca: port --enable-gcc-warnings to clang
16         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
17         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
18
19         inttostr: port --enable-gcc-warnings to clang
20         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
21
22         warnings: port to clang
23         Problem reported by Daniel P. Berrange via Eric Blake in
24         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
25         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
26         (gl_WARN_ADD): Use it.
27
28 2013-05-11  Jim Meyering  <meyering@fb.com>
29
30         quotearg: do not read beyond end of buffer
31         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
32         end of an ARG for which no length was specified.  With an N-byte
33         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35         via coreutils' misc/sort-debug-keys.sh test and detected by running
36         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
37         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
38         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
39         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
40         characters correctly."
41
42 2013-05-11  Daiki Ueno  <ueno@gnu.org>
43
44         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
45         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
46         compilation target is Mac OS X 10.6.
47         Problem reported by parafin and Andoni Morales in
48         <http://savannah.gnu.org/bugs/?37844> and
49         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
50
51 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52
53         mkdir-p: remove assumptions about umask and mode
54         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
55         umask is 0, or that MODE is a subset of MODE_BITS.
56
57 2013-05-10  Eric Blake  <eblake@redhat.com>
58
59         maint.mk: catch more abuse of HAVE_DECL in syntax-check
60         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
61
62 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
63
64         deps: require Automake >= 1.9.6 in generated Makefile fragments
65
66         That is the same minimal version required in the DEPENDENCIES file.
67         Moreover, the old code generated a requirement of Automake >= 1.5,
68         and that is an insanely outdated version.
69
70         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
71         * tests/havelib/rpathlx/Makefile.am: Likewise.
72         * tests/havelib/rpathly/Makefile.am: Likewise.
73         * tests/havelib/rpathlyx/Makefile.am: Likewise.
74         * tests/havelib/rpathlz/Makefile.am: Likewise.
75         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
76         * tests/havelib/rpathx/Makefile.am: Likewise.
77         * tests/havelib/rpathy/Makefile.am: Likewise.
78         * tests/havelib/rpathz/Makefile.am: Likewise.
79
80 2013-05-08  Eric Blake  <eblake@redhat.com>
81
82         bootstrap: AC_INIT may have more than four parameters
83         * build-aux/bootstrap (extract_package_name): Correctly extract
84         non-empty tarname field.  Avoid range in regex.
85         Based on a report by Sami Kerola <kerolasa@iki.fi>.
86
87 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
88
89         qacl: port to MS-Windows port of GNU Emacs
90         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
91         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
92         port of GNU Emacs.  Problem reported by Eli Zaretskii in
93         <http://bugs.gnu.org/14295#14>.
94
95 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
96
97         acl: include quote.h
98         * lib/copy-acl.c: Include quote.h.
99         * lib/set-acl.c: Likewise.
100
101 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
102
103         fchownat, renameat, unlinkat: update statat dependencies
104         These modules use statat and lstatat, not fstatat; so depend on
105         the statat module, which was split out recently from fstatat.
106         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
107         * modules/renameat: Likewise.  Also delete fstat.
108         URL: http://bugs.gentoo.org/468790
109
110 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
111
112         Assume gnulib is checked out from Git, not CVS
113
114         In fact, access to the gnulib repository through CVS has been
115         disabled, or more precisely, got broken and was never restored; see:
116         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
117
118         Note that support for CVS is not removed completely and unthinkingly
119         by this change: only support for CVS checkouts of gnulib itself is
120         removed.  For example, the 'bootstrap' script still cater to .cvsingore
121         files and CVS directories, for the benefit of those poor gnulib clients
122         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
123
124         * gnulib-tool: Simplify accordingly.
125         * posix-modules: Likewise.
126         * MODULES.html.sh: Likewise.
127         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
128         repository.
129         * doc/gnulib-intro.texi: Likewise.
130         * doc/gnulib-readme.texi: Likewise.
131         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
132         sample '.gitignore' file rather than a sample '.cvsignore'.
133         * NEWS: Update.
134         * m4/extensions.m4: While at it, remove a comment mistakenly referring
135         to "CVS Autoconf" rather than "git Autoconf".
136
137 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
138
139         utimensat-tests, etc.: try to fix some races
140         Problem reported by Bernhard Voelker in
141         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
142         I don't know whether this patch fixes that race condition, but it
143         fixes *some* race conditions, so it should be a win.
144         * modules/chown-tests (Depends-on):
145         * modules/fchownat-tests (Depends-on):
146         * modules/fdutimensat-tests (Depends-on):
147         * modules/futimens-tests (Depends-on):
148         * modules/lchown-tests (Depends-on):
149         * modules/stat-time-tests (Depends-on):
150         * modules/utimens-tests (Depends-on):
151         * modules/utimensat-tests (Depends-on):
152         Depend on nanosleep, not usleep.
153         * modules/chown-tests (test_chown_LDADD):
154         * modules/lchown-tests (test_lchown_LDADD):
155         * modules/stat-time-tests (test_stat_time_LDADD):
156         New macro.
157         * modules/fchownat-tests (test_fchownat_LDADD):
158         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
159         * modules/futimens-tests (test_futimens_LDADD):
160         * modules/utimens-tests (test_utimens_LDADD):
161         * modules/utimensat-tests (test_utimensat_LDADD):
162         Add $(LIB_NANOSLEEP).
163         * modules/stat-time-tests (Files): Add tests/nap.h.
164         * tests/nap.h: Include <limits.h>, for INT_MAX.
165         (lt_mtime): Remove.
166         (diff_timespec): New function.
167         (get_stat): Rename from get_mtime.  All callers changed.
168         (nap_works): Determine the needed delay by inspecting the
169         file system's timestamp jumps; this should be more reliable.
170         Look at both mtime and ctime, and take the maximum of the two jumps.
171         (nap_works, guess_delay):
172         Return a nanosecond cound, not a microsecond count.
173         All callers changed.
174         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
175         failure.
176         (nap): Multiply the guess by 1.125, to accommodate the case where
177         the file system's clock is a bit slower than nanosleep's clock.
178         * tests/test-stat-time.c (BASE): New macro.
179         Include nap.h.
180         (nap): Remove; nap.h now defines this.  This removes a duplicate
181         implementation of 'nap'.
182
183         utimens, utimensat: work around Solaris UTIME_OMIT bug
184         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
185         Linux kernel 2.6.32 does.  Work around it in the same way.
186         * doc/posix-functions/futimens.texi (futimens):
187         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
188         * lib/utimens.c (fdutimens, lutimens):
189         * lib/utimensat.c (rpl_utimensat): Work around the bug.
190
191         gettext: now it's your responsibility to add -I$(top_builddir)/intl
192         Formerly, it was your responsibility to do this for all Makefile.ams
193         other than Gnulib's.  Now it's your responsibility to do it for
194         Gnulib's Makefile.am, too.
195         * NEWS: Document this.
196         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
197
198         acl: include errno.h to get errno
199         Reported by Daiki Ueno in
200         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
201         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
202
203 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
204
205         tests: don't assume getdtablesize () <= 10000000
206         * modules/cloexec-tests:
207         * modules/dup2-tests:
208         * modules/dup3-tests:
209         * modules/nonblocking-tests:
210         * modules/posix_spawn_file_actions_addclose-tests:
211         * modules/posix_spawn_file_actions_adddup2-tests:
212         * modules/posix_spawn_file_actions_addopen-tests:
213         * modules/unistd-safer-tests:
214         Depend on the getdtablesize module.
215         * tests/test-cloexec.c:
216         * tests/test-dup-safer.c:
217         * tests/test-dup2.c:
218         * tests/test-dup3.c:
219         * tests/test-fcntl.c:
220         * tests/test-nonblocking.c:
221         * tests/test-posix_spawn_file_actions_addclose.c:
222         * tests/test-posix_spawn_file_actions_adddup2.c:
223         * tests/test-posix_spawn_file_actions_addopen.c:
224         Don't assume getdtablesize () <= 10000000.
225
226 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
227
228         extern-inline: work around bug in Sun c99
229         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
230         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
231
232 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
233
234         qacl: new module, broken out from the acl module
235         This is for GNU Emacs, which wants the acl functions but does
236         not want 'error' invoked when they fail.
237         * lib/acl-internal.h: Do not include error.h, quote.h.
238         (ENOSYS, ENOTSUP): Remove; no longer needed.
239         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
240         * lib/acl.h: Include <stdbool.h>.
241         (acl_errno_valid): New function.
242         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
243         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
244         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
245         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
246         (ACL_INTERNAL_INLINE): Remove; no longer needed.
247         * lib/file-has-acl.c (file_has_acl):
248         * lib/qcopy-acl.c (qcopy_acl):
249         * lib/qset-acl.c (qset_acl):
250         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
251         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
252         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
253         lib/file-has-acl.c, m4/acl.m4 to qacl module.
254         Add lib/set-acl.c.
255         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
256         Add qacl.
257         (configure.ac): Move gl_FUNC_ACL to qacl module.
258         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
259         Rename set-mode-acl.c to set-acl.c.
260         * lib/acl-errno-valid.c: New file.
261         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
262         copy_acl function remains in copy-acl.c.
263         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
264         (_): Remove; not needed.
265         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
266         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
267         * modules/qacl: New file, moved from the old modules/acl.
268         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
269         Remove set-mode-acl.c, copy-acl.c.
270         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
271
272         alignof, intprops, malloca: port better to IBM's C compiler
273         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
274         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
275         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
276
277 2013-04-25  Daiki Ueno  <ueno@gnu.org>
278
279         wctype-h: fix gettext link error on mingw
280         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
281         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
282         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
283         rpl_towupper and rpl_towupper.
284
285 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
286
287         regex-tests, regex: allow glibc re_search behavior
288         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
289         re_search input data to make the multi-character collating element
290         in it clearly visible, and treat re_search return code 0 as valid.
291         * m4/regex.m4 (gl_REGEX): Likewise.
292
293 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
294
295         stdalign: doc fix
296         * doc/posix-headers/stdalign.texi (stdalign.h):
297         Gnulib doesn't support '_Alignof expr'.
298
299 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
300
301         stdalign: port to stricter ISO C11
302         ISO C11 says that _Alignof's operand must be a parenthesized type.
303         Problem reported by Eli Zaretskii in
304         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
305         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
306         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
307
308 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
309
310         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
311         Problem reported by Marco Atzeri in
312         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
313         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
314         Simply delegate to the system <sys/select.h> in this case too.
315         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
316         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
317         be needed on Solaris either.
318         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
319         Simply delgate to the system <sys/time.h> in this case.
320
321 2013-03-19  Karl Berry  <karl@gnu.org>
322
323         * build-aux/gnupload: check for erroneous (with gnupload) use of
324         ftp-upload.gnu.org, tweak help.
325
326 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
327
328         copy-file, rpmatch: fix problems found by cppcheck
329         Reported by Arno Onken in
330         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
331         * lib/rpmatch.c (try): Fix memory leak.
332         * lib/copy-file.c: Include "ignore-value.h".
333         (qcopy_file_preserving): Ignore chown value.
334         * modules/copy-file (Depends-on): Add ignore-value.
335
336 2013-01-27  Jim Meyering  <jim@meyering.net>
337
338         prefix-gnulib-mk: give better diagnostics
339         * build-aux/prefix-gnulib-mk: Don't just "die".
340         Give better diagnostics upon failure.
341
342 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
343
344         putenv: port to Solaris 10
345         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
346         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
347         is not what is wanted here.
348         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
349         declaration, not for its existence.
350
351 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
352
353         mktime: fix configure typo
354         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
355
356 2013-03-12  Eric Blake  <eblake@redhat.com>
357
358         regex-tests: skip UTF-8 test on mingw
359         * modules/regex-tests (Depends-on): Add localcharset.
360         * tests/test-regex.c (main): Use it to skip test on mingw.
361
362 2013-03-11  Eric Blake  <eblake@redhat.com>
363
364         tests: make it easier to bypass alarm time in debugger
365         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
366         * tests/test-memmem.c (main): Likewise.
367         * tests/test-passfd.c (main): Likewise.
368         * tests/test-ptsname.c (main): Likewise.
369         * tests/test-ptsname_r.c (main): Likewise.
370         * tests/test-strcasestr.c (main): Likewise.
371         * tests/test-strstr.c (main): Likewise.
372
373         regex: port to mingw's recent addition of undeclared alarm
374         * doc/posix-functions/alarm.texi (alarm): Document that alarm
375         exists but still doesn't work in newer mingw.
376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
377         not existence.  Ensure SIGALRM is not trapped.
378         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
379         * m4/regex.m4 (gl_REGEX): Likewise.
380         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
381         * tests/test-regex.c (main): Use correct probe for alarm.
382
383         putenv: avoid compilation warning on mingw
384         * lib/putenv.c (_unsetenv): Protect variable declaration.
385         (putenv): Fix indentation.
386
387 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
388
389         unistd: don't prevent Tru64 Unix from using gnulib strtod.
390         * lib/unistd.in.h: be careful not to include un-needed system
391         stdlib.h from here, because that prevents gnulib stdlib.h from
392         defining rpl_strtod correctly.
393
394 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
395
396         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
397         changesets, but for the 'precision 0' test.
398         * tests/test-vasprintf-posix.c (test_function): Don't insist on
399         round-to-even, since POSIX says rounding is implementation-defined
400         and OS X 10.8.2 rounds 1.51 to 1 here.
401
402         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
403         changeset.
404         * tests/test-vasprintf-posix.c (test_function): Don't insist on
405         round-to-even, since POSIX says rounding is implementation-defined
406         and OS X 10.8.2 rounds 1.5 to 1 here.
407
408 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
409
410         vasnprintf-posix-tests: allow rounding 1.5 to 1
411         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
412         round-to-even, since POSIX says rounding is implementation-defined
413         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
414         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
415
416         bootstrap: port to FreeBSD
417         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
418         that treat '--' differently.  Reported by Mats Erik Andersson in
419         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
420
421 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
422
423         regex: rename remaining __attribute calls to __attribute__.
424         2012-02-25 changed definition of __attribute, but left some uses
425         unchanged, preventing compilation of regex module on most non-gcc
426         environments.
427         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
428         (lookup_collation_sequence_value, build_range_exp)
429         (build_collating_symbol): Set attributes with newly renamed
430         __attribute__ decorator.
431         * lib/regex_internal.c (re_string_peek_byte_case)
432         (re_node_set_compare, re_node_set_contains): Likewise.
433         * lib/regexec.c (acquire_init_state_context): Likewise.
434
435 2013-03-06  Bruno Haible  <bruno@clisp.org>
436
437         execute: Revert last change, but use a different condition.
438         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
439         on Windows.
440
441 2013-03-05  Eric Blake  <eblake@redhat.com>
442
443         execute: drop dead code
444         * lib/execute.c (nonintr_close, nonintr_open): Delete.
445
446 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
447
448         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
449         * m4/non-recursive-gnulib-prefix-hack.m4
450         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
451         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
452         <http://bugs.gnu.org/10305#237>.
453
454 2013-03-04  Eric Blake  <eblake@redhat.com>
455
456         test-getsockopt: avoid compiler warning
457         * tests/test-getsockopt.c (includes): Ensure close is declared.
458
459 2013-03-02  Bruno Haible  <bruno@clisp.org>
460
461         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
462         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
463
464 2013-03-02  Bruno Haible  <bruno@clisp.org>
465
466         gettext: Update to version 0.18.2.
467         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
468         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
469                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
470
471 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
472
473         regex: merge patches from libc
474
475         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
476         * lib/regex_internal.h (__attribute__): Rename from __attribute.
477         All uses changed.
478         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
479         (re_string_wchar_at, re_string_elem_size_at):
480         Mark function as possibly unused.
481
482         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
483         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
484         elements compare against the byte sequence of it, not its name.
485
486 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
487
488         putenv: port better to native Windows
489         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
490         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
491         (_unsetenv): Use _putenv if available.
492         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
493         a bit less likely to cause damage.
494         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
495         Fix the wrong value with SetEnvironmentVariable.
496         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
497         code better.
498
499 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
500
501         regex: ignore old-style-definition warnings
502         * lib/regex.c: Add pragma to ignore these warnings.
503         Problem reported for GNU tar by Pavel Raiskup.
504
505 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
506
507         getcwd: support coreutils better
508         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
509         but this might not be correct in coreutils, which disables
510         the raw decl checks.  Problem reported by Nagendra in
511         <http://bugs.gnu.org/10305#192>.
512         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
514         Test the getcwd function, not any macro, since getcwd.c wants the
515         function.
516         * m4/getcwd.m4 (gl_FUNC_GETCWD):
517         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
518         compile, as might happen if there's a macro but no function.
519
520         strtod: support coreutils better
521         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
522         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
523         disables the raw decl checks.  This assumes there is an underlying
524         strtod, but that's a safe assumption these days.
525         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
526
527         mountlist: port to HP NonStop
528         Reported by Joachim Schmitz in
529         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
530         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
531         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
532
533 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
534
535         extern-inline: avoid compilation error with HP-UX cc
536         Reported by Richard Lloyd in
537         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
538         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
539         Suppress extern inline with HP-UX cc.  This should be safe,
540         though it may hurt performance.  Perhaps someone with some HP-UX
541         experience can come up with a higher-performance fix.
542
543 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
544
545         putenv: fix heap corruption with mixed putenv/_putenv
546         Problem reported by Michael Goffioul in
547         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
548         * lib/putenv.c (putenv) [HAVE__PUTENV]:
549         Rely on _putenv to allocate the new environment.
550         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
551         * modules/putenv (configure.ac): Use it.
552
553 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
554
555         unsetenv etc.: port to Solaris 11 + GNU Emacs
556         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
557         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
558         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
559         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
560         idea but is too painful to fix right now), and without this gnulib
561         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
562         compiling unsetenv.c on Solaris 11.  Fix the problem for
563         unsetenv.c, and fix other similar occurrences.
564
565 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
566
567         secure_getenv: fix C++ declaration typo
568         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
569         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
570         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
571
572 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
573
574         careadlinkat: stop exporting careadlinkatcwd
575         Only Emacs used it directly, and Emacs no longer needs it.
576         * NEWS: Document this simplification.
577         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
578         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
579         for readlink.
580         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
581         Don't include stdlib.h; no longer needed.
582         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
583         * lib/relocwrapper.c: Adjust comment to match new dependencies.
584         * modules/areadlink (Depends-on): Add readlink.
585         (Maintainer): Add self.
586         * modules/careadlinkat (Depends-on): Remove readlink.
587
588         extensions: port better to HP-UX
589         This is merged from git Autoconf.
590         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
591         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
592         so that it's compatible with the value used when compiling.
593
594         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
595         Problem reported by Mats Erik Andersson in
596         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
597         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
598         openpty function exists, not merely when we intend to replace it.
599         This corrects the 2013-01-31 patch, which mistakenly defined
600         HAVE_OPENPTY even on hosts that lacked it.
601
602 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
603
604         secure_getenv: fix include typo
605         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
606
607         secure_getenv: port better to FreeBSD and Solaris
608         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
609         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
610         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
611         This works better on BSDish platforms.
612         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
613         Test for issetugid if __secure_getenv is missing.
614
615 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
616
617         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
618         Some of these changes are merged in from git Autoconf.
619         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
620         When deciding whether to define _XOPEN_SOURCE, inspect the
621         preprocessor macro __hpux instead of the more-heavyweight
622         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
623         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
624         as the key for __EXTENSIONS__.
625
626         unistd: avoid namespace pollution on non-glibc systems
627         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
628         This avoids namespace pollution on non-glibc systems, by causing
629         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
630         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
631         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
632
633 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
634
635         tmpdir: use secure_getenv
636         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
637         Define to secure_getenv, not getenv.
638         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
639         as that's now secure_getenv's job.
640         * modules/tmpdir (Depends-on): Add secure_getenv.
641
642         tempname: use secure_getenv
643         * lib/tempname.c (__secure_getenv) [!_LIBC]:
644         Define to secure_getenv, not getenv.
645         * modules/tempname (Depends-on):
646         Add secure_getenv.
647
648         secure_getenv: new module
649         * MODULES.html.sh (Extra functions based on ANSI C 89):
650         Add secure_getenv.
651         * doc/glibc-functions/secure_getenv.texi: New file.
652         * doc/gnulib.texi: Include it.
653         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
654         New files.
655         * lib/stdlib.in.h (secure_getenv): New decl.
656         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
657         * modules/stdlib (stdlib.h):
658         Add secure_getenv checks.
659
660 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
661
662         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
663         Reported for OS X 10.8.2 by Assaf Gordon in
664         <http://bugs.gnu.org/13516>.
665         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
666         !HAVE_OPENAT && !HAVE_FDOPENDIR.
667         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
668         so that they can be kept in sync more easily.  Avoid PATH_MAX
669         test on the Hurd.  Sync from test-getcwd.c for errno tests after
670         mkdir or chdir failure.
671         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
672         lib/getcwd.c.
673         (test_abort_bug): Do not test for the deep directory bug unless we
674         have openat support.  Avoid PATH_MAX test on the Hurd.
675
676         regex-tests, regex: fix bug: memset undeclared
677         * tests/test-regex.c: Don't include regex.h twice.  Include
678         string.h, to declare memset.  Christensen's report also mentioned
679         this issue.
680         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
681         test-regex.c, to avoid future problems like this.  Remove
682         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
683         twice.
684
685         regex-tests: fix link errors on older Solaris
686         These need to link with @LIBINTL@ to get libintl_gettext.
687         Problem reported by Tom G. Christensen in
688         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
689         * modules/regex-tests (test_regex_LDADD): New macro.
690
691 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
692
693         regex-tests: new module
694         * modules/regex-tests, tests/test-regex.c: New files.
695
696         regex: fix off-by-one error in configure test
697         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
698
699 2013-01-31  Eric Blake  <eblake@redhat.com>
700
701         regex: avoid infinite configure test
702         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
703
704 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
705
706         openpty: fix bug where HAVE_OPENPTY wasn't defined
707         See the thread starting at:
708         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
709         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
710         openpty function exists, not merely when we intend to replace it.
711
712 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
713
714         sys_time: port to Solaris 2.6
715         There is a circularity problem on Solaris 2.6, where <time.h> includes
716         <sys/time.h> for struct timespec.  The include nesting is gnulib
717         <time.h>, system <time.h>, gnulib <sys/time.h>, system
718         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
719         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
720         <sys/siginfo.h>; the last, innermost file needs struct
721         timestruc_t, which is defined in <sys/time.h>, which has not been
722         fully parsed.  Problem reported by Tom G. Christensen in
723         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
724         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
725         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
726         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
727         uses split double-inclusion guards.
728
729 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
730
731         regex: test for buffer overrun
732         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
733         for the just-fixed regex bug.
734
735 2013-01-29  Andreas Schwab  <schwab@suse.de>
736
737         regex: fix buffer overrun in regexp matcher [BZ #15078]
738         * lib/regexec.c (extend_buffers): Add parameter min_len.
739         (check_matching): Pass minimum needed length.
740         (clean_state_log_if_needed): Likewise.
741         (get_subexp): Likewise.
742
743 2013-01-28  Pádraig Brady  <P@draigBrady.com>
744
745         mountlist: don't consider "devtmpfs" as dummy
746         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
747         as there is storage associcated with it.
748
749 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
750
751         futimens-tests, utimens-tests: Depend on gettext.
752         This works around a problem introduced in my 2013-01-12 patch,
753         which added @LIBINTL@ to these modules.
754         * modules/futimens-tests (Depends-on):
755         * modules/utimens-tests (Depends-on): Add gettext.
756
757 2013-01-26  Eric Blake  <eblake@redhat.com>
758
759         test-getpeername: fix typo
760         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
761
762 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
763
764         bootstrap: remove the need for a sorted .gitignore file
765         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
766         rename to insert_if_absent(), so that we don't need or generate
767         a sorted .gitignore file.  We do require a .gitignore with no
768         existing duplicate entries and enforce that.
769         (sort_patterns): Remove this function as we now use the simpler
770         technigue of inserting blacklist entries at the top of the file,
771         assuming gnulib won't be inserting !whitelist entries.
772
773 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
774
775         readlinkat: don't depend on gl_FUNC_OPENAT
776         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
777         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
778         renameat.m4, symlinkat.m4; but one thing at a time.
779
780         statat: new module, split out from fstatat
781         GNU Emacs needs the POSIX-specified fstatat, but not the
782         gnulib-specified statat and lstat.  Split the latter two into a
783         new module 'statat'.
784         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
785         * lib/openat.h, lib/statat.c (STATAT_INLINE):
786         Rename from FSTATAT_INLINE. All uses changed.
787         * modules/fstatat (Files): Remove lib/statat.c.
788         (gl_MODULE_INDICATOR([fstatat])): Remove.
789         (lib_SOURCES): Remove.
790         (Maintainer): Add self.
791         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
792         * tests/test-fstatat.c (BASE): Don't define if already defined.
793         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
794
795 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
796
797         tests: don't assume fd 99 is closed
798         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
799         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
800         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
801         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
802         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
803         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
804         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
805         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
806         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
807         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
808         * tests/test-fwrite.c, tests/test-getpeername.c:
809         * tests/test-getsockname.c, tests/test-getsockopt.c:
810         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
811         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
812         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
813         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
814         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
815         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
816         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
817         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
818         * tests/test-unlinkat.c, tests/test-unlockpt.c:
819         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
820         Close file descriptor 99, instead of assuming it's already closed.
821
822 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
823
824         stpncpy: port to OS X 10.8
825         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
826         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
827
828 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
829
830         unistd: port to recent mingw
831         * lib/unistd.in.h: Remove special invocation convention for mingw,
832         which breaks for the latest mingw version.  See John W. Eaton in
833         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
834
835         largefile: port better to Mac OS X 10.5
836         This patch is backported from Autoconf git.
837         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
838         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
839         with ino_t size being different for configuration time versus
840         build/run time.  Problem reported by PHO in
841         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
842
843 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
844
845         doc: clarify -Werror
846         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
847         clarify that it's intended for developers, not for ordinary builds,
848         and mention --enable-gcc-warnings as one possible use.
849
850 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
851
852         stdint: fix build with Android's Bionic fox x86
853         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
854         was already included as _SSIZE_T_DEFINED_ might also be defined
855         in include/machine/_types.h, which is included by stdio.h
856
857 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
858
859         net_if-tests: port to Solaris 7 + GCC 3.4.6
860         Problem reported by Tom G. Christensen in
861         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
862         * tests/test-net_if.c (ni): Move to next the code that uses it,
863         so that it's declared only if needed.
864
865 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
866
867         net_if-tests: port to older Solaris
868         Problem reported by Tom G. Christensen in
869         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
870         * modules/net_if-tests (NET_IF_LIB): New substitution.
871         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
872         (HAVE_IF_NAMEINDEX): New C macro.
873         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
874
875         system-quote-tests: port to older Solaris
876         Problem reported by Tom G. Christensen in
877         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
878         * tests/test-system-quote-child.c (fopen, fread): Undef.
879
880         c-xvasprintf etc.: fix link errors on older Solaris
881         These need to link with @LIBINTL@ to get libintl_gettext.
882         Problem reported by Tom G. Christensen in
883         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
884         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
885         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
886         * modules/futimens-tests (test_futimens_LDADD):
887         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
888
889 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
890
891         locale: port to Solaris 2.6 and 7 + GNU gettext
892         * lib/locale.in.h: Just include_next <locale.h> when
893         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
894         when combining the localename module with GNU gettext 0.18.2.
895         Problem reported by Tom G. Christensen in
896         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
897
898 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
899
900         stdlib: port to Solaris 2.6
901         Also, the code worked on Solaris 7 through 9 only by accident.
902         Problem reported by Tom G. Christensen in
903         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
904         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
905         simply include the system stdlib.h.
906         * lib/getopt.in.h (__need_system_stdlib_h):
907         * lib/pthread.in.h (__need_system_stdlib_h):
908         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
909         Define when including <stdlib.h>, to avoid problems at least for
910         the pthread case on Solaris 2.6 and 7.  These .h files can get by
911         with the system stdlib.h.
912
913 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
914
915         doc: update main copyright year
916         * doc/gnulib.texi: Update copyright date.
917
918         doc: improve ISO 8601 discussion
919         * doc/parse-datetime.texi (Combined date and time of day items):
920         Specify more carefully what formats are supported and what is
921         done with excess precision.
922
923 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
924
925         doc: avoid small caps
926         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
927         they're more trouble than they're worth.  Suggested by Karl Berry
928         in <http://bugs.gnu.org/13360>.
929
930         regex: conform to strict C
931         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
932         From Aharon Robbins.
933
934         gnulib-tool: fix incompatibility with autopoint 0.18.2
935         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
936         Problem reported by Tom G. Christensen in
937         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
938
939 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
940
941         fprintftime: bring back and reword fwrite comment
942         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
943
944         stdio: remove now-unnecessary stdio.c
945         Since stdio.in.h no longer uses inline functions, we no longer
946         need to compile the extern versions.
947         * lib/stdio.c: Remove.
948         * modules/stdio (Files): Remove lib/stdio.c.
949         (lib_SOURCES): Remove.
950
951         unicodeio: depend on stdio, not ignore-value
952         * lib/unicodeio.c: Do not include ignore-value.h.
953         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
954         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
955
956         fprintftime: depend on stdio, not ignore-value
957         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
958         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
959         since the stdio module arranges to silence that warning now.
960         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
961
962 2012-10-04  Simon Josefsson  <simon@josefsson.org>
963
964         stdint-tests: Fix expanded-before-required-warning.
965         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
966
967 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
968
969         fwrite: silence __wur only for older glibc versions
970         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
971         This will help us remove this workaround some time in the far future.
972
973 2013-01-03  Eric Blake  <eblake@redhat.com>
974
975         fwrite: silence __wur without using inline
976         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
977         just gcc, and in a way that avoids inline issues.
978         * modules/stdio (Depends-on): Drop extern-inline.
979
980 2013-01-03  Jim Meyering  <jim@meyering.net>
981
982         update-copyright: avoid copyright notice date corruption
983         Given a sequence of copyright year numbers in which the final
984         one was a two-digit number that happened to be a substring of
985         a preceding four-digit year number, we would mistakenly update
986         the substring (from two- to four-digit) rather than the two-digit
987         number at the end, which, combined with the addition of the current
988         4-digit year number would yield two 5-digit year numbers, e.g.,
989         here, it would convert the first "99" to "1999, 2013" rather than
990         the final one:
991           1991, 99
992           11999, 20131, 1999
993         * build-aux/update-copyright: Tighten a regexp.
994         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
995         Reported by Joseph Myers in
996         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
997
998 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         regex: omit needless signed-pointer casts
1001         * lib/regcomp.c (build_charclass, build_charclass_op):
1002         Use char *, not unsigned char *, for class name and extra.
1003         The char values are always nonnegative so there's no need to
1004         insist on unsigned char * here, and using char * removes the need
1005         for casts.  Reported by Aharon Robbins in
1006         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1007
1008         regex: support Gawk, which never uses alloca
1009         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1010         Do not include in this case.  Gawk doesn't supply a substitute
1011         alloca.h and doesn't need one.
1012
1013         regex: port __libc_lock_define usage to C89
1014         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1015         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1016         does not conform to C89, as it has an empty macro argument.
1017         Reported by Aharon Robbins in
1018         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1019
1020 2013-01-01  Eric Blake  <eblake@redhat.com>
1021
1022         maint: update all copyright year number ranges
1023         Run "make update-copyright".
1024
1025         version-etc: bump copyright year reported in --version
1026         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1027
1028 2012-12-31  Eric Blake  <eblake@redhat.com>
1029
1030         sigprocmask-tests: skip test if pid is unexpectedly large
1031         * tests/test-sigprocmask.c (main): Add range check.
1032
1033         git-version-gen: avoid test -z portability glitch
1034         * build-aux/git-version-gen: Prefer portable test spelling, since
1035         git-version-gen is run on more than just developer machines.
1036
1037 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1038
1039         git-version-gen: add --fallback option to use if git is not present
1040         * build-aux/git-version-gen: Add support for the new option --fallback,
1041         which comes into play when there is no $tarball_version_file and
1042         git is not working.
1043         (scriptversion): Update.
1044
1045         maint.mk: handle missing git with more grace
1046         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1047         Quietly proceed if git is not present.
1048
1049 2012-12-31  Eric Blake  <eblake@redhat.com>
1050
1051         dup2: work around cygwin bug
1052         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1053         * lib/dup2.c (rpl_dup2): Work around it.
1054         * doc/posix-functions/dup2.texi (dup2): Document it.
1055
1056 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         regex: remove unnecessary dependency on localcharset.h
1059         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1060         hasn't been needed for years.
1061         * modules/regex (Depends-on): Remove localcharset.
1062
1063         regex: revert single-byte change
1064         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1065         to this function.  This was alredy fixed in a different way, at
1066         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1067         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1068         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1069
1070         regex: simplify based on Gawk version
1071         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1072         Reported by Aharon Robbins in
1073         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1074
1075 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1076
1077         regex: check that pattern char is single-byte
1078         Reported by Aharon Robbins in
1079         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1080         * lib/regexec.c (check_node_accept_bytes):
1081         Return 0 if the pattern string has a multibyte character here.
1082
1083         regex: implement rational ranges
1084         Reported by Aharon Robbins in
1085         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1086         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1087         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1088         Implement rational ranges.
1089
1090         regex: avoid redefining __wctype
1091         Reported by Aharon Robbins in
1092         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1093         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1094         #undef before defining.
1095
1096         regex: port to hosts where malloc (0) == NULL
1097         Reported by Aharon Robbins in
1098         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1099         * lib/regex_internal.c (re_node_set_alloc):
1100         Don't assume that malloc (0) yields nonnull.
1101         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1102         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1103         * modules/regex (Files): Add m4/eealloc.m4.
1104
1105         regex: port to C89
1106         Reported by Aharon Robbins in
1107         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1108         * lib/regcomp.c (init_word_char): Declaration before statement.
1109
1110         regex: merge glibc changes
1111         Also, copy the license wording from glibc.  This simplifies
1112         merging changes.  gnulib-tool will change the wording to GPL as
1113         appropriate, when importing it to other packages.  The only
1114         glibc change made since the last merge, which needs merging, is:
1115         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1116         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1117
1118         * users.txt: Add Emacs.
1119
1120         doc: omit mention of version when not needed
1121         * doc/gnulib-intro.texi (Portability and Application Code):
1122         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1123         Don't mention particular dates or versions when not necessary, so
1124         that the documentation won't go out of date so quickly.
1125
1126         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1127
1128 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1129
1130         bootstrap: pass --force to autoreconf.
1131         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1132         Add "--force" so that Automake's ylwrap and other such tools
1133         be updated at each bootstrap invocation.
1134         Use it.
1135
1136 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1137
1138         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1139         The earlier patch forgot to update one of the #if conditions, causing
1140         a problem on Debian testing i386 reported by Mats Erik Andersson
1141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1142         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1143         (__argp_fmtstream_puts, argp_fmtstream_puts)
1144         (__argp_fmtstream_write, argp_fmtstream_write)
1145         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1146
1147         * doc/gnulib-readme.texi: Minor fixups.
1148         (Portability guidelines): Modernize URLs.  Remove some repetition.
1149         (Indent with spaces not TABs): Reword to avoid too-long lines.
1150         Remove some '@ifset standalone' stuff that isn't used.
1151
1152         * doc/gnulib-readme.texi (Portability guidelines):
1153         ctype.h, not ctime.h.
1154
1155         Correct name of POSIX.1-2001.
1156         * doc/posix-functions/fgetc.texi (fgetc):
1157         * doc/posix-functions/fgets.texi (fgets):
1158         * doc/posix-functions/fread.texi (fread):
1159         * doc/posix-functions/fscanf.texi (fscanf):
1160         * doc/posix-functions/getc.texi (getc):
1161         * doc/posix-functions/getchar.texi (getchar):
1162         * doc/posix-functions/scanf.texi (scanf):
1163         POSIX.1-2001, not POSIX-2001.
1164
1165         doc: move README into manual
1166         * README: Move contents to new file doc/gnulib-readme.texi.
1167         Replace with a one-line summary.
1168         * doc/gnulib.texi (Brief Overview): New section,
1169         with old intro preface.  Include gnulib-readme.texi for contents.
1170         (Philosophy): Rename from "Introduction", since this
1171         section no longer introduces the rest.  Write a new preface.
1172         * doc/gnulib-readme.texi: New file, with the old contents of
1173         README texinfo-ized.  This way, the README info appears
1174         in the online and printed manual.
1175
1176 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1177
1178         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1179         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1180         c_vasprintf() prototype.
1181
1182 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1183
1184         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1185         * lib/c-vasprintf.h: Remove stray semicolon.
1186
1187 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1190         It is obsolete and is planned to be removed from Automake 1.14; see
1191         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1192         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1193         (installdirs-data, installdirs-data-yes):
1194         Use $(MKDIR_P), not $(mkdir_p).
1195         * m4/intl.m4 (AM_INTL_SUBDIR):
1196         * m4/po.m4 (AM_PO_SUBDIRS):
1197         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1198
1199 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1200
1201         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1202         On this platform, we are not optimizing but we are using
1203         the substitute for extern inlines, so compile as if
1204         C99-style extern inline, or a substitute, is available.
1205         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1206         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1207         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1208         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1209         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1210         Declare as ARGP_FS_EI, not as extern.
1211         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1212         (__option_is_short, _option_is_end, __option_is_end)
1213         [!_LIBC && __USE_EXTERN_INLINES]:
1214         Declare as ARGP_EI, not as extern.
1215
1216 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1217
1218         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1219         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1220         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1221         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1222         ...), as the latter is fatal with older Autoconfs.
1223         Problem reported and fix suggested by Eric Blake in thread starting at
1224         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1225
1226 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1227
1228         AC_PROG_MKDIR_P: don't workaround if not buggy
1229         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1230         Define only for Autoconf versions before 2.62.
1231         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1232         undocumented m4_PACKAGE_VERSION, for consistency with the
1233         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1234         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1235         was introduced in 2.62.
1236
1237 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1238
1239         New 'c-*printf' modules for formatted output in C locale.
1240
1241         New module 'c-vasnprintf'.
1242         * modules/c-vasnprintf: New file.
1243         * lib/c-vasnprintf.c: New file.
1244         * lib/c-vasnprintf.h: New file.
1245
1246         New module 'c-snprintf'.
1247         * modules/c-snprintf: New file.
1248         * modules/c-snprintf-tests: New file.
1249         * lib/c-snprintf.c: New file.
1250         * lib/c-snprintf.h: New file.
1251         * tests/test-c-snprintf.c: New file.
1252         * tests/test-c-snprintf.sh: New file.
1253
1254         New module 'c-vsnprintf'.
1255         * modules/c-vsnprintf: New file.
1256         * modules/c-vsnprintf-tests: New file.
1257         * lib/c-vsnprintf.c: New file.
1258         * lib/c-vsnprintf.h: New file.
1259         * tests/test-c-vsnprintf.c: New file.
1260         * tests/test-c-vsnprintf.sh: New file.
1261
1262         New module 'c-vasprintf'.
1263         * modules/c-vasprintf: New file.
1264         * modules/c-vasprintf-tests: New file.
1265         * lib/c-asprintf.c: New file.
1266         * lib/c-vasprintf.c: New file.
1267         * lib/c-vasprintf.h: New file.
1268         * tests/test-c-vasprintf.c  +: New file.
1269         * tests/test-c-vasprintf.sh: New file.
1270
1271         New module 'c-xvasprintf'.
1272         * modules/c-xvasprintf: New file.
1273         * modules/c-xvasprintf-tests: New file.
1274         * lib/c-xasprintf.c: New file.
1275         * lib/c-xvasprintf.c: New file.
1276         * lib/c-xvasprintf.h: New file.
1277         * tests/test-c-xvasprintf.c: New file.
1278         * tests/test-c-xvasprintf.sh: New file.
1279
1280 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1281
1282         argp: better 'inline'
1283         Use extern-inline module to declare extern inline functions.
1284         This avoids some bogus warning diagnostics.  Problem discovered
1285         when modifying GNU tar to use the manywarnings module.
1286         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1287         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1288         Define based on extern-inline.
1289         * modules/argp (Depends-on): Add extern-inline.
1290
1291 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         filemode, sys_stat: Handle MPX files a la AIX.
1294         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1295         * lib/sys_stat.in.h (S_ISMPX): New macro.
1296         * tests/test-sys_stat.c: Add tests for MPX files.
1297
1298 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1299
1300         x-to-1: honor $PERL
1301         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1302         a chance to use his preferred version of Perl.  This is typically
1303         required by Darwin users whose default /usr/bin/perl does not have all
1304         the libraries required by help2man, and who need to use their MacPorts
1305         installation of Perl instead.
1306
1307 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1308
1309         gnu-web-doc-update: add all the new files, even in new directories
1310         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1311         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1312         Use it.
1313         (main): Don't use cvsutils to get the list of unknown files,
1314         just add all the existing files and directories.
1315
1316 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1317
1318         gnu-web-doc-update: improve --help
1319         * build-aux/gnu-web-doc-update: Move comments into --help.
1320
1321 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1322
1323         mountlist: recognize more "dummy" file systems
1324         * lib/mountlist.c (ME_DUMMY_0):
1325         Add these dummy FS names to the list:
1326         - "debugfs" virtual filesystem for kernel debugging
1327         - "devpts" PTY slave filesystem
1328         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1329         - "fusectl" control filesystem for FUSE
1330         - "mqueue" enumerates POSIX message queues
1331         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1332         - "sysfs" is for exporting kernel objects
1333         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1334
1335 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1336
1337         extern-inline: avoid incompatibility with Darwin Libc
1338         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1339         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1340         Problem reported by Akim Demaille in
1341         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1342
1343 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1344
1345         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1346         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1347         let it handle password prompting.
1348
1349 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1350
1351         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1352         * lib/canonicalize.c (canonicalize_filename_mode):
1353         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1354         fetching the current directory.  Don't overrun the beginning of
1355         rpath if there's no slashes after the MS-Windows drive letter.
1356
1357 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1358
1359         maint.mk: avoid extra forks
1360         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1361         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1362         So use that instead of "$(shell test -f FILE && echo FILE)".
1363
1364 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1365
1366         vasnprintf: fix ASCII_ONLY typo
1367         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1368         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1369         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1370         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1371         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1372
1373 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         list, oset, xlist, xoset: fix extern inline issue with C99
1376         This was introduced by my recent changes for 'inline'.
1377         Problem reported for gettext by Daiki Ueno in
1378         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1379         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1380         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1381         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1382         (gl_list_previous_node, gl_list_get_at)
1383         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1384         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1385         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1386         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1387         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1388         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1389         (gl_list_iterator_free, gl_sortedlist_search)
1390         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1391         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1392         (gl_sortedlist_remove):
1393         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1394         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1395         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1396         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1397         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1398         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1399         (gl_list_add_at, gl_sortedlist_add):
1400         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1401         Wrap these extern decls inside "#if 0", because they are implemented
1402         as inline functions, and extern inline is not what's wanted here.
1403         It would simplify these .h files to remove the extern decls entirely,
1404         although a downside would be less-clear separation between
1405         specification and implementation.
1406
1407 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         sys_stat: no 'static inline'
1410         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1412
1413         extern-inline: no 'static inline'
1414         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1415         Do not require AC_C_INLINE.
1416         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1417         'static inline', for older compilers.
1418
1419         snippet/warn-on-use: no 'static inline'
1420         * build-aux/snippet/warn-on-use.h:
1421         Remove unnecessary 'inline' in comment.
1422
1423         rbtree-list, rbtreehash-list: no 'static inline'
1424         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1425         * lib/gl_anytree_list2.h (node_at):
1426         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1427         (gl_oset_first, add_nodes_to_buckets):
1428         Now static, not static inline.
1429
1430         regex: no 'static inline'
1431         * lib/regex_internal.c (calc_state_hash):
1432         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1433         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1434         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1435         Now static, not static inline.
1436         (inline) [__GNUC__ < 3 && _LIBC]:
1437         Remove macro; no longer needed.
1438
1439         xvasprintf: no 'static inline'
1440         * lib/xvasprintf.c (xstrcat):
1441         Now static, not static inline.
1442         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1443         Do not require AC_C_INLINE.
1444
1445         parse-datetime, parse-duration: no 'static inline'
1446         * lib/parse-datetime.y (to_uchar):
1447         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1448         (scale_n_add):
1449         Now static, not static inline.
1450         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1451         * modules/parse-duration (configure.ac):
1452         Do not require AC_C_INLINE.
1453
1454         getaddrinfo: no 'static inline'
1455         * lib/getaddrinfo.c (validate_family):
1456         Now static, not static inline.
1457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1458         Do not require AC_C_INLINE.
1459
1460         ftruncate, fts, lstat, openat, raise: no 'static inline'
1461         * lib/ftruncate.c (chsize_nothrow):
1462         * lib/fts.c (opendirat, diropen):
1463         * lib/lstat.c (orig_lstat):
1464         * lib/openat.c (orig_openat):
1465         * lib/raise.c (raise_nothrow):
1466         Now static, not static inline.
1467         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1468         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1469         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1470         * m4/openat.m4 (gl_PREREQ_OPENAT):
1471         * m4/raise.m4 (gl_PREREQ_RAISE):
1472         Do not require AC_C_INLINE.
1473
1474         fflush, stat: no 'static inline'
1475         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1476         (clear_ungetc_buffer, disable_seek_optimization)
1477         (restore_seek_optimization, update_fpos_cache):
1478         * lib/stat.c (orig_stat):
1479         Now static, not static inline.
1480         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1481         (update_fpos_cache):
1482         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1483         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1484         * m4/stat.m4 (gl_PREREQ_STAT):
1485         Do not require AC_C_INLINE.
1486
1487         error, filevercmp: no 'static inline'
1488         * lib/error.c (is_open, flush_stdout):
1489         * lib/filevercmp.c (order):
1490         Now static, not static inline.
1491         * m4/error.m4 (gl_PREREQ_ERROR):
1492         * modules/filevercmp (configure.ac):
1493         Do not require AC_C_INLINE.
1494
1495         dup, execute, fatal-signal, etc.: no 'static inline'
1496         * lib/dup.c (dup_nothrow):
1497         * lib/execute.c (nonintr_close, nonintr_open):
1498         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1499         * lib/fopen.c (orig_fopen):
1500         * lib/freadseek.c (freadptrinc):
1501         * lib/freopen.c (orig_freopen):
1502         * lib/fstat.c (orig_fstat, fstat_nothrow):
1503         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1504         (get_rusage_as_via_iterator):
1505         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1506         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1507         * lib/isatty.c (_isatty_nothrow):
1508         * lib/open.c (orig_open):
1509         * lib/read.c (read_nothrow):
1510         * lib/sigprocmask.c (signal_nothrow):
1511         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1512         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1513         * lib/wait-process.c (unregister_slave_subprocess):
1514         * lib/write.c (write_nothrow):
1515         Now static, not static inline.
1516         * lib/spawn-pipe.c (nonintr_open): Define only if
1517         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1518         * m4/dup.m4 (gl_PREREQ_DUP):
1519         * m4/execute.m4 (gl_EXECUTE):
1520         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1521         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1522         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1523         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1524         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1525         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1526         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1527         * m4/open.m4 (gl_PREREQ_OPEN):
1528         * m4/read.m4 (gl_PREREQ_READ):
1529         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1530         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1532         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1533         * m4/write.m4 (gl_PREREQ_WRITE):
1534         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1535         Do not require AC_C_INLINE.
1536
1537         c-strtod, memcoll, readutmp: no 'static inline'
1538         * lib/c-strtod.c (c_locale):
1539         * lib/memcoll.c (strcoll_loop):
1540         * lib/readutmp.c (desirable_utmp_entry):
1541         Now static, not static inline.
1542         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1543         * m4/memcoll.m4 (gl_MEMCOLL):
1544         * m4/readutmp.m4 (gl_READUTMP):
1545         Do not require AC_C_INLINE.
1546
1547         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1548         * lib/arctwo.c (to_uchar):
1549         * lib/md4.c (set_uint32):
1550         * lib/md5.c (set_uint32):
1551         * lib/sha1.c (set_uint32):
1552         * lib/sha256.c (set_uint32):
1553         * lib/sha512.c (set_uint64):
1554         Now static, not static inline.  This is a bit simpler, and doesn't
1555         affect performance with GCC and default optimization.
1556         * m4/arctwo.m4 (gl_ARCTWO):
1557         * m4/md4.m4 (gl_MD4):
1558         * m4/md5.m4 (gl_MD5):
1559         * m4/sha1.m4 (gl_SHA1):
1560         * m4/sha256.m4 (gl_SHA256):
1561         * m4/sha512.m4 (gl_SHA512):
1562         Do not require AC_C_INLINE.
1563
1564         cond, lock, thread: better 'inline'
1565         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1566         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1567         New macros.  Use them instead of static inline, for header functions.
1568         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1569         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1570         * lib/glthread/lock.c (gl_waitqueue_init)
1571         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1572         * lib/glthread/thread.c (get_current_thread_handle):
1573         Change 'static inline' to 'inline'.
1574         * lib/glthread/cond.h, lib/glthread/thread.h:
1575         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1576         * m4/cond.m4 (gl_COND):
1577         * m4/lock.m4 (gl_PREREQ_LOCK):
1578         * m4/thread.m4 (gl_THREAD):
1579         Do not require AC_C_INLINE.
1580         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1581
1582         chdir-long, cycle-check, savewd: better 'inline'
1583         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1584         (find_non_slash):
1585         * lib/cycle-check.c (is_zero_or_power_of_two):
1586         * lib/savewd.c (savewd_delegating):
1587         Change 'static inline' to 'inline'.
1588         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1589         Replace all remaining uses of 'static inline' with it.
1590         * lib/savewd.h:
1591         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1592         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1593         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1594         * m4/savewd.m4 (gl_SAVEWD):
1595         Do not require AC_C_INLINE.
1596         * modules/savewd (Depends-on): Add extern-inline.
1597
1598         base32, base64: no need for 'inline'
1599         * lib/base32.c (to_uchar, get_8, decode_8):
1600         * lib/base64.c (to_uchar, get_4, decode_4):
1601         Change 'static inline' to 'inline'.
1602         * m4/base32.m4 (gl_PREREQ_BASE32):
1603         * m4/base64.m4 (gl_PREREQ_BASE64):
1604         Do not require AC_C_INLINE.
1605
1606         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1607         * lib/gl_array_oset.c (gl_array_nx_add_at):
1608         (gl_array_remove_at):
1609         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1610         (add_to_bucket, remove_from_bucket):
1611         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1612         Change 'static inline' to 'static', as it's simpler to omit
1613         'inline' unless there's a significant performance advantage.
1614
1615         list, oset, xlist, xoset, xsublist: simplify via extern inline
1616         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1617         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1618         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1619         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1620         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1621         New macro.  Replace all uses of 'static inline' with it.
1622         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1623         instead of as macros FOO that are defined to static inline
1624         functions FOO_inline.
1625         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1626         * lib/gl_xsublist.c:
1627         Reimplement from scratch, by defining the corresponding *_INLINE
1628         macro and including the corresponding .h file.  This is simpler.
1629         * modules/list, modules/oset, modules/xlist, modules/xoset:
1630         (Files): Remove m4/gl_list.m4.
1631         (configure.ac): Remove gl_LIST.
1632         * m4/gl_list.m4: Remove.
1633         * modules/list, modules/oset, modules/xlist, modules/xoset:
1634         * modules/xsublist:
1635         (Depends-on): Depend on extern-inline, not inline.
1636
1637         xalloc: better 'inline'
1638         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1639         New macro.  Replace all uses of 'static inline' with it.
1640         (static_inline): Remove.
1641         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1642         Let 'extern inline' do the work automatically, instead of doing
1643         it by hand.
1644         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1645         Remove.  All uses removed.
1646         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1647
1648         gethrxtime: better 'inline'
1649         * lib/xtime.c: New file.
1650         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1651         * lib/xtime.h (XTIME_INCLUDE):
1652         New macros.  Replace all uses of 'static inline' with them.
1653         * lib/gethrxtime.c (gethrxtime): Define only if
1654         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1655         this source file is now always compiled, because of the extern inline.
1656         * lib/gethrxtime.h, lib/xtime.h:
1657         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1658         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1659         if gethrtime works, as they're not needed in that case.
1660         (gl_XTIME): Do not require AC_C_INLINE.
1661         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1662         compiled now.  Move the check into gl_GETHRXTIME.
1663         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1664         (Depends-on): Add extern-inline.
1665         (configure.ac): gethrxtime is always compiled now.
1666         (lib_SOURCES): Add gethrxtime.c.
1667
1668         wctype-h: better 'inline'
1669         * lib/wctype-h.c: New file.
1670         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1671         New macro.  Replace all uses of 'static inline' with it.
1672         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1673         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1674         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1675         (Depends-on): Add extern-inline.
1676
1677         unistd: better 'inline'
1678         * lib/unistd.c: New file.
1679         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1680         New macro.  Replace all uses of 'static inline' with it.
1681         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1682         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1683         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1684         (Depends-on): Add extern-inline.
1685
1686         sys_socket: better 'inline'
1687         * lib/sys_socket.c: New file.
1688         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1689         New macro.  Replace all uses of 'static inline' with it.
1690         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1692         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1693         (Depends-on): Add extern-inline.
1694
1695         stdio: better 'inline'
1696         * lib/stdio.c: New file.
1697         * lib/stdio.in.h (_GL_STDIO_INLINE):
1698         New macro.  Replace all uses of 'static inline' with it.
1699         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1700         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1701         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1702         (Depends-on): Add extern-inline.
1703
1704         sigaction: better 'inline'
1705         * lib/sig-handler.c: New file.
1706         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1707         New macro.  Replace all uses of 'static inline' with it.
1708         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1709         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1710         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1711         (Depends-on): Add extern-inline.
1712
1713         selinux-h: better 'inline'
1714         * lib/se-context.c, lib/se-selinux.c: New files.
1715         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1716         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1717         New macro.  Replace all uses of 'static inline' with it.
1718         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1719         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1720         New macro.  Replace all uses of 'static inline' with it.
1721         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1722         * modules/selinux-h (Files, lib_SOURCES):
1723         Add lib/se-context.c, lib/se-selinux.c.
1724         (Depends-on): Add extern-inline.
1725         (configure.ac): Do not require AC_C_INLINE.
1726
1727         pthread: better 'inline'
1728         * lib/pthread.c: New file.
1729         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1730         New macro.  Replace all uses of 'static inline' with it.
1731         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1732         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1733         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1734         * modules/pthread (Files): Add lib/pthread.c.
1735         (Depends-on): Add extern-inline.
1736
1737         math: better 'inline'
1738         * lib/math.c: New file.
1739         * lib/math.in.h (_GL_MATH_INLINE):
1740         New macro.  Replace all uses of 'static inline' with it.
1741         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1742         * m4/math_h.m4 (gl_MATH_H):
1743         Do not require AC_C_INLINE.
1744         * modules/math (Files, lib_SOURCES):
1745         Add lib/math.c.
1746         (Depends-on): Add extern-inline.
1747
1748         count-one-bits: better 'inline'
1749         * lib/count-one-bits.c: New file.
1750         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1751         New macro.  Replace all uses of 'static inline' with it.
1752         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1753         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1754         Do not require AC_C_INLINE.
1755         * modules/count-one-bits (Files, lib_SOURCES):
1756         Add lib/count-one-bits.c.
1757         (Depends-on): Add extern-inline.
1758
1759         count-leading-zeros: better 'inline'
1760         * lib/count-leading-zeros.c: New file.
1761         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1762         New macro.  Replace all uses of 'static inline' with it.
1763         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1764         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1765         Do not require AC_C_INLINE.
1766         * modules/count-leading-zeros (Files, lib_SOURCES):
1767         Add lib/count-leading-zeros.c.
1768         (Depends-on): Add extern-inline.
1769
1770         bitrotate: better 'inline'
1771         * lib/bitrotate.c: New file.
1772         * lib/bitrotate.h (BITROTATE_INLINE):
1773         New macros.
1774         Replace all uses of 'static inline' with them.
1775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1776         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1777         (Depends-on): Add extern-inline.
1778         (configure.ac): Do not require AC_C_INLINE.
1779
1780 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1781
1782         maint.mk: avoid gratuitous failure
1783         Reported by Stefano Lattarini in
1784         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1785         * top/maint.mk (public-submodule-commit): Quote more safely.
1786
1787 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1788
1789         canonicalize, canonicalize-lgpl: support MS-Windows file names
1790         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1791         for test cases, which it'd be nice to add at some point.
1792         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1793         * lib/canonicalize.c (canonicalize_filename_mode):
1794         * lib/canonicalize-lgpl.c (__realpath):
1795         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1796         slash is at the beginning of the file name.  Use ISSLASH, instead
1797         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1798         the first character with '/'.  Test for
1799         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1800         with a drive letter.
1801         * lib/canonicalize.c (SLASHES): New macro.
1802         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1803
1804 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1805
1806         fts: introduce FTS_VERBATIM
1807         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1808         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1809         * lib/fts.c (fts_open): Honor it.
1810
1811 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1812
1813         getlogin-tests: allow errno == ENXIO
1814         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1815         with errno == ENXIO (No controlling tty).
1816         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1817         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1818         with errno == ENOENT.  This was reported to happen in various
1819         situations on GNU/Linux.
1820
1821 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         getlogin-tests: allow errno == ENOENT
1824         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1825         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1826         when running a test in an Emacs shell buffer.
1827
1828 2012-11-08  Jim Meyering  <jim@meyering.net>
1829
1830         tests/nap.h: avoid warning about unused variable
1831         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1832
1833         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1834         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1835         white space before each of the special-cased file names, to avoid
1836         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1837         in http://bugs.gnu.org/12830.
1838
1839 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1840
1841         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1842         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1843         fails with errno == EBADF when fd is opened with O_PATH.
1844         Reported by Jim Meyering in
1845         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1846         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1847         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1848
1849 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1850
1851         test-utimens: speed up by taking shorter naps
1852         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1853         New functions.
1854         (nap): Use them, to do a better job of guessing the delay.
1855         On Fedora 17 with ext4 atop md atop hard disks, this made
1856         test-utimens run 10x faster, because the test napped for
1857         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1858         <http://bugs.gnu.org/12820#11>.
1859
1860 2012-11-07  Jim Meyering  <jim@meyering.net>
1861
1862         mountlist.c: fix a compilation failure
1863         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1864         I introduced while transforming commit v0.0-7683-g613bcb6
1865
1866 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         errno: port to LynxOS 178 2.2.2
1869         Problem reported by Joel Brobecker in
1870         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1871         * doc/posix-headers/errno.texi (errno.h): Document this.
1872         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1873         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1874         Supply a string for EILSEQ.
1875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1876
1877 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1878
1879         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1880         Linux kernel 2.6.39 introduced O_PATH (see
1881         <http://lwn.net/Articles/433854/>) and this is a better fallback
1882         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1883         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1884         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1885         * lib/fcntl.in.h (O_ACCMODE):
1886         * tests/test-fcntl-h.c (main):
1887         Do not reject O_ACCMODE merely because it has more than the
1888         minimal number of bits, as POSIX allows extensions here.
1889
1890 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1891
1892         mountlist: do not classify a bind-mounted dir entry as "dummy"
1893         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1894         the "none"-testing clause.
1895         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1896         exception for bind-mounted directories.
1897
1898 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1899
1900         quote: provide a means to escape strings with nul characters
1901         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1902         (quote, quote_n): Rename formal arguments for consistency with
1903         quotearg.
1904
1905 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1906
1907         test-raise: don't assume 199 is an invalid signal
1908         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1909
1910         sh-quote-tests: port to Solaris 9
1911         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1912         Problem reported by Dagobert Michelsen in
1913         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1914
1915 2012-10-28  Jim Meyering  <jim@meyering.net>
1916
1917         maint.mk: rename a new configurable variable
1918         * top/maint.mk (_gl_translatable_string_re): Rename from
1919         translation-markers: _gl_ prefix to insulate from user Makefile code,
1920         and the _re suffix to inform that it's a regular expression.
1921
1922 2012-10-26  Eric Blake  <eblake@redhat.com>
1923
1924         maint.mk: let packages tweak sc_po_check pattern
1925         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1926         finding files with other translation markers.
1927
1928 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1929
1930         euidaccess: speed up 'configure' on GNU hosts
1931         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1932         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1933         it's needed only in this case.  Use AC_CHECK_DECLS, not
1934         AC_CHECK_DECLS_ONCE.
1935         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1936         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1937
1938         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1939
1940 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1941
1942         fchmodat, fchownat, fstatat: port to non-inlining compilers
1943         Problem reported for FreeBSD 9 by Jim Meyering in
1944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1945         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1946         New files, which define FCHMODAT_INLINE etc.
1947         * lib/fchmodat.c (FCHMODAT_INLINE):
1948         * lib/fchownat.c (FCHOWNAT_INLINE):
1949         * lib/fstatat.c (FSTATAT_INLINE):
1950         Remove, as chmodat.c etc. now do this.
1951         * modules/fchmodat (Files): Add lib/chmodat.c.
1952         * modules/fchownat (Files): Add lib/chownat.c.
1953         * modules/fstatat (Files): Add lib/statat.c.
1954
1955 2012-10-15  Jim Meyering  <jim@meyering.net>
1956
1957         fchmodat.c, fchownat.c: compile-impeding typos
1958         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1959         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1960         Introduced in commit v0.0-7636-gd202279.
1961
1962 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1963
1964         fcntl-h: support GNU flags like O_IGNORE_CTTY
1965         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1966         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1967         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1968         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1969         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1970         Define to 0 if not already defined.
1971         * tests/test-fcntl-h.c: Test these new flags.
1972
1973 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1974
1975         faccessat, etc.: support AT_FDCWD-only use
1976         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1977         this function only if its first argument is AT_FDCWD.
1978         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1979         values other than AT_FDCWD, so it doesn't want all the openat
1980         machinery with fchdir etc.
1981         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1982         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1983         * modules/unlinkat (Files):
1984         Remove lib/openat-priv.h, as at-internal supplies this file.
1985         Removing this file here allows us to support programs like Emacs
1986         that avoid at-internal.
1987
1988         faccessat: speed up 'configure' on mainstream hosts
1989         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1990         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1991         since it's only on unusual platforms that we need to check for
1992         'access', and it's better not to slow 'configure' down on all
1993         platforms.
1994
1995         faccessat: port to Solaris 10
1996         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1997         Needed on Solaris 10, which doesn't have AT_EACCESS,
1998         so we need the Gnulib fcntl.h, which defines it.
1999
2000 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2001         canonicalize: fix C89 compilation
2002         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2003         declarations so C89 is supported.  Also remove the comment
2004         referencing memorty allocation as the suggested feature could
2005         not be implemented as suggested.
2006         Reported by Michael Goffioul.
2007
2008 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2009
2010         group-member: omit unnecessary dependencies
2011         This is for Emacs, which has its own allocator and where we
2012         don't want to use xalloc.
2013         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2014         since we no longer use xmalloc.  Do not include stdbool.h, since
2015         the changes below happen to remove the only use of bool.
2016         (GROUPBUF_SIZE): New constant.
2017         (struct group_info): Remove n_groups member.  Add groupbuf member.
2018         This lets us get the groups without using malloc, usually.
2019         (free_group_info, get_group_info): Adjust to this.
2020         (get_group_info): Return the number of groups found, or -1 on error.
2021         Use plain malloc not xmalloc, and treat its failure as if there
2022         are no groups, as the user already loses in case of error.
2023         (group_member): Simplify, based on changes to get_group_info.
2024         * modules/group-member (Depends-on): Remove dependencies on
2025         xalloc and stdbool.  Add dependency on xalloc-oversized.
2026
2027 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2028
2029         gethrxtime: port to C++
2030         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2031
2032 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2033
2034         ptsname: fix macro-name typo
2035         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2036
2037 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2038
2039         inttostr: Relax license.
2040         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2041
2042 2012-10-03  Eric Blake  <eblake@redhat.com>
2043
2044         ptsname_r: support ptys returned by FreeBSD posix_openpt
2045         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2046         lives in /dev/pts/.
2047
2048 2012-10-02  Eric Blake  <eblake@redhat.com>
2049
2050         pselect: reject invalid file descriptors
2051         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2052         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2053         * modules/pselect (Depends-on): Add dup2.
2054         * doc/posix-functions/pselect.texi (pselect): Document this.
2055
2056         select: reject invalid file descriptors
2057         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2058         * lib/select.c (rpl_select) [!win32]: Work around it.
2059         * modules/select (Depends-on): Add dup2.
2060         * doc/posix-functions/select.texi (select): Document this.
2061
2062         select: enhance test
2063         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2064         New functions.
2065         (test_function): Enhance test.
2066         (do_select_bad_fd): Avoid any stale errno values.
2067
2068         ptsname: reject invalid file descriptors
2069         http://www.austingroupbugs.net/view.php?id=503
2070         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2072         * modules/stdlib (Makefile.am): Replace witness.
2073         * lib/stdlib.in.h (ptsname): Allow for replacement.
2074         * modules/ptsname (configure.ac): Trigger replacement.
2075         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2076
2077 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2078
2079         hash-pjw-bare: new module
2080         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2081         * lib/hash-pjw-bare.h: Likewise.
2082         * modules/hash-pjw-bare: New file.
2083         * MODULES.html.sh (Misc): Add it.
2084
2085 2012-10-02  Eric Blake  <eblake@redhat.com>
2086
2087         manywarnings: cater to more gcc infelicities
2088         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2089         -Wuninitialized without -O.
2090
2091 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2092
2093         select, poll tests: Make setsockopt invocation effective.
2094         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2095         the bind() call.
2096         * tests/test-select.h (open_server_socket): Likewise.
2097
2098 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2099
2100         sockets, sys_stat: restore AC_C_INLINE
2101         This undoes the 2012-09-22 patch.
2102         * m4/sockets.m4 (gl_SOCKETS):
2103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2104         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2105         and does not support plain 'inline'.  Reported by Bruno Haible in
2106         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2107
2108 2012-09-30  Bruno Haible  <bruno@clisp.org>
2109
2110         localeconv tests: Avoid test failure on OpenIndiana.
2111         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2112         skip the 'grouping' and 'mon_grouping' tests.
2113         Reported by Jim Meyering.
2114
2115 2012-09-30  Bruno Haible  <bruno@clisp.org>
2116
2117         havelib: Follow libtool developments.
2118         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2119         Suggested by Simon Josefsson.
2120
2121 2012-09-29  Jim Meyering  <meyering@redhat.com>
2122
2123         fstatat.c: fix a compile-impeding typo
2124         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2125         Introduced in commit v0.0-7636-gd202279.
2126         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2127
2128 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2129
2130         extern-inline: provide a -Wundef safe config.h
2131         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2132         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2133         to produce a -Wundef warning free config.h.
2134
2135 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2136
2137         hash-pjw: relax license to LGPLv2+
2138         * modules/hash-pjw (License): Relax, with consent of author.
2139
2140 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2141
2142         maint.mk: fix strict vs. lazy variable issues with RELEASE
2143         * top/maint.mk (_equal): New function.
2144         (member_check): Strip the result to avoid spurious spaces.
2145         (url_dir_list): Do not use ifeq, which is strict, as it will
2146         require RELEASE_TYPE to be defined.
2147         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2148         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2149         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2150         (announcement_Cc_beta,announcement_mail_headers_beta)
2151         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2152         (release): Do not depend on $(release-type), as it forces its
2153         evaluation.  Bounce to it.
2154
2155 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2156
2157         maint.mk: formatting changes
2158         * top/maint.mk: Indent bodies of if's.
2159
2160 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2161
2162         maint.mk: factor the validation of RELEASE_TYPE
2163         With help from Jim Meyering.
2164         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2165         * top/maint.mk (_empty, _sp): Move their definition earlier.
2166         (member-check, release-type): New.
2167         Use the latter instead of $(RELEASE_TYPE).
2168         Remove now useless local checks.
2169
2170 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2171
2172         maint.mk: provide "make upload" to ease uploading
2173         See
2174         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2175         Do not depend simply on the current $(VERSION), as there may have been
2176         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2177         as "make release-commit" already does.
2178
2179         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2180         "make TYPE".
2181
2182         * top/maint.mk (upload_command, upload, release): New.
2183         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2184         (VERSION): first word of $(RELEASE) is always right.
2185         (emit_upload_commands): Adjust.
2186         * top/README-release: Update.
2187
2188 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2189
2190         maint.mk: silent rules
2191         With help from Stefano Lattarini.
2192         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2193         (announcement): Use $(AM_V_at).
2194
2195 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         localename: port gl_locale_name_thread_unsafe to FreeBSD
2198         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2199         and use the simpler FreeBSD implementation on Mac OS X as well.
2200         Original idea suggested by Ed Maste in
2201         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2202
2203 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2206         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2207         * lib/mbuiter.c, lib/xsize.c: New files.
2208         * lib/binary-io.h (BINARY_IO_INLINE):
2209         * lib/eealloc.h (EEALLOC_INLINE):
2210         * lib/mbfile.h (MBFILE_INLINE):
2211         * lib/mbiter.h (MBITER_INLINE):
2212         * lib/mbuiter.h (MBUITER_INLINE):
2213         * lib/xsize.h (XSIZE_INLINE):
2214         New macros.
2215         Replace all uses of 'static inline' with them.
2216         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2217         * m4/eealloc.m4 (gl_EEALLOC):
2218         * m4/mbfile.m4 (gl_MBFILE):
2219         * m4/mbiter.m4 (gl_MBITER):
2220         * m4/xsize.m4 (gl_XSIZE):
2221         Do not require AC_C_INLINE.
2222         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2223         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2224         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2225         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2226         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2227         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2228         * modules/binary-io, modules/eealloc, modules/mbfile:
2229         * modules/mbiter, modules/mbuiter:
2230         (Depends-on): Add extern-inline.
2231
2232         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2233         * lib/pipe-filter-aux.c: New file.
2234         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2235         Replace all uses of 'static inline' with it.
2236         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2237         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2238         (filter_retcode): No real need for inline here.
2239         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2240         (Files): Add lib/pipe-filter-aux.c.
2241         (Depends-on): Add extern-inline.
2242         (configure.ac): Do not require AC_C_INLINE.
2243         (lib_SOURCES): Add pipe-filter-aux.c.
2244
2245         fdutimensat: omit unnecessary AC_C_INLINE
2246         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2247
2248         fchmodat, fchownat, fstatat: use extern-inline
2249         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2250         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2251         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2252         New macros.
2253         * lib/openat.h:
2254         Replace all uses of 'static inline' with them.
2255         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2256         * modules/fchmodat, modules/fchownat, modules/fstatat:
2257         * modules/openat-h:
2258         (Depends-on):
2259         Add extern-inline.
2260         (configure.ac): Remove AC_C_INLINE.
2261
2262         acl, mbchar, priv-set: use extern-inline
2263         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2264         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2265         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2266         New macros.
2267         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2268         Replace all uses of 'static inline' with it.
2269         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2270         * m4/acl.m4 (gl_FUNC_ACL):
2271         * m4/mbchar.m4 (gl_MBCHAR):
2272         * m4/priv-set.m4 (gl_PRIV_SET):
2273         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2274         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2275         Add extern-inline.
2276
2277         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2278         * m4/sockets.m4 (gl_SOCKETS):
2279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2280         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2281         environments where it's already guaranteed to work, so we needn't
2282         check for it at 'configure'-time.
2283
2284         tls-tests: omit unnecessary 'inline'
2285         * tests/test-tls.c (perhaps_yield): No longer inline.
2286         Simplicity and portability trump efficiency in test cases.
2287
2288         utimens-tests: avoid unnecessary 'inline'
2289         * modules/fdutimensat-tests (configure.ac):
2290         * modules/futimens-tests (configure.ac):
2291         * modules/utimens-tests (configure.ac):
2292         * modules/utimensat-tests (configure.ac):
2293         Remove AC_C_INLINE.
2294         * tests/test-utimens-common.h (ctime_compare):
2295         No longer inline.  Simplicity and portability trump efficiency here.
2296
2297         misc: don't limit commentary to inline functions
2298         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2299         * lib/xalloc-oversized.h, lib/xsize.h:
2300         Contrast macros to functions in general, not just to inline functions,
2301         when the commentary does not apply only to inline functions.
2302
2303 2012-09-20  Jim Meyering  <meyering@redhat.com>
2304
2305         non-recursive-gnulib-prefix-hack: new module
2306         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2307         the file that originated in Bison.
2308         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2309         largely copied from a snippet that resided in bison's configure.ac.
2310         * modules/non-recursive-gnulib-prefix-hack: New file.
2311         * MODULES.html.sh (Support for maintaining and releasing projects):
2312         Add it.
2313
2314 2012-09-18  Jim Meyering  <meyering@redhat.com>
2315
2316         maint.mk: generalize _gl_tight_scope for non-recursive make
2317         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2318         that *.h would describe additional .h files in the directory
2319         specified by $(_gl_TS_dir).  I.e., add this...
2320         (_gl_TS_other_headers): New variable.
2321
2322         maint.mk: exempt trailing blanks found in "binary" files
2323         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2324         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2325         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2326
2327 2012-09-17  Jim Meyering  <meyering@redhat.com>
2328
2329         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2330         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2331         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2332         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2333
2334 2012-09-17  Jim Meyering  <meyering@redhat.com>
2335
2336         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2337         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2338         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2339         It is not in the same category as "exit (0)" or "exit (1)", and
2340         besides, I know of no symbolic name for that 77.  Reported by
2341         Richard W.M. Jones in
2342         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2343
2344 2012-09-17  Jim Meyering  <meyering@redhat.com>
2345
2346         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2347         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2348         all uses of #define, not just those that start in column 1.
2349         Richard W.M. Jones reported a false positive in
2350         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2351
2352 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2355         * lib/localcharset.c (locale_charset) [DARWIN7]:
2356         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2357         as these two values are incompatible.  Problem reported by Max Horn.
2358         For more discussion, please see
2359         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2360
2361         doc: document sticky-EOF issue
2362         * doc/posix-functions/fgetc.texi (fgetc):
2363         * doc/posix-functions/fgets.texi (fgets):
2364         * doc/posix-functions/fread.texi (fread):
2365         * doc/posix-functions/fscanf.texi (fscanf):
2366         * doc/posix-functions/getc.texi (getc):
2367         * doc/posix-functions/getchar.texi (getchar):
2368         * doc/posix-functions/scanf.texi (scanf):
2369         Mention that glibc and default Solaris do not conform to
2370         C99 and POSIX-2001 or later, with respect to how getchar
2371         etc. behave when feof reports nonzero.
2372
2373 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2374
2375         poll: fix poll(0, NULL, msec)
2376         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2377         but nfd is 0.  In that case poll should behave like select.
2378
2379 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2380             Paolo Bonzini <bonzini@gnu.org>
2381
2382         poll: fix for systems that can't recv() on a non-socket
2383         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2384         is readable.  In this case POLLHUP will not be supported.
2385         * doc/posix-functions/poll.texi: Document this.
2386
2387 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2388
2389         poll/select: document portability problems not fixed by Gnulib.
2390         * doc/posix-functions/poll.texi: poll does not work well on
2391         pipes under Windows.  It has the same limitations as select on
2392         BeOS.
2393         * doc/posix-functions/select.texi: select does not work well
2394         on pipes under Windows.
2395
2396 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2397
2398         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2399         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2400         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2401         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2402
2403 2012-09-06  Eric Blake  <eblake@redhat.com>
2404
2405         net_if: give more details about the bug being fixed
2406         * doc/posix-headers/net_if.texi: Add clarification.
2407
2408 2012-09-05  Eric Blake  <eblake@redhat.com>
2409
2410         net_if: new module
2411         * modules/net_if: New module, borrowing ideas from netinet_in.
2412         * m4/net_if_h.m4: New file.
2413         * lib/net_if.in.h: Likewise.
2414         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2415         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2416         * tests/test-net_if.c: Make function checks conditional.
2417         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2418
2419 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2420
2421         readutmp: fix non-portable UT_PID use
2422         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2423         Use `UT_PID (u) > 0' as absolute condition.
2424
2425 2012-09-04  Jim Meyering  <meyering@redhat.com>
2426
2427         fts: reduce two or more trailing spaces to just one, usually
2428         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2429         or more slashes, trim all but the final one.  But if a name consists
2430         solely of two slashes, don't modify it.  If it consists solely of
2431         three or more slashes, strip all but one.
2432
2433         This is part of the solution to a minor problem with rm:
2434         it would print a bogus ELOOP diagnostic when failing to remove
2435         the slash-decorated name of a symlink-to-directory:
2436
2437             $ mkdir d && ln -s d s && env rm -r s/
2438             rm: cannot remove 's': Too many levels of symbolic links
2439
2440         With the change below and a trivial don't-trim-trailing-slashes
2441         adjustment to remove.c, it does this:
2442
2443             $ env rm -r s/
2444             rm: cannot remove 's/': Not a directory
2445
2446         Improved by: Eric Blake
2447
2448         fts: when there is no risk of overlap, use memcpy, not memmove
2449         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2450
2451 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2452
2453         stdbool: be more compatible with mixed C/C++ compiles
2454         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2455         Define to bool, true, false, respectively, as GCC's builtin
2456         stdbool.h does.  Problem reported by Michael Goffioul in
2457         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2458
2459 2012-08-28  Jim Meyering  <meyering@redhat.com>
2460
2461         revert last change: it was not needed
2462         * tests/test-vc-list-files-git.sh: There's already a test for
2463         a working git, just below.
2464
2465 2012-08-28  Jim Meyering  <meyering@redhat.com>
2466
2467         tests: test-vc-list-files-git.sh: skip if git is not available
2468         * tests/test-vc-list-files-git.sh: Skip this test when git is
2469         not available.
2470
2471 2012-08-26  Bruno Haible  <bruno@clisp.org>
2472
2473         gnulib-tool: Remove no-op option --no-changelog.
2474         * gnulib-tool (func_usage): Don't mention --no-changelog.
2475         (do_changelog): Remove variable.
2476         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2477
2478 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2479
2480         doc: remove fdl-1.2.texi
2481         It is no longer used or maintained, and its use of @acronym
2482         is problematic.  See the thread containing
2483         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2484         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2485         * doc/old-licenses/fdl-1.2.texi: Remove.
2486
2487         execinfo: port to FreeBSD
2488         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2489         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2490         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2491         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2492
2493 2012-08-23  Jim Meyering  <meyering@redhat.com>
2494
2495         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2496         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2497         to placate gcc's -Wold-style-declaration.
2498
2499 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2500
2501         doc: do not use @acronym
2502         * doc/inet_ntoa.texi (inet_ntoa):
2503         * doc/parse-datetime.texi (Seconds since the Epoch)
2504         (Specifying time zone rules):
2505         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2506         Don't use @acronym.  Problem reported by John Darlington in
2507         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2508
2509 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2510
2511         stdnoreturn: port to newer GCCs
2512         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2513         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2514         Problem reported by Jim Meyering in
2515         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2516         Also, rename the 'test' function to a void a clash with the
2517         already-supplied 'main' function; this fixes a bug that incorrectly
2518         rejected GCC 4.7.1's <stdnoreturn.h>.
2519         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2520         Document GCC problem.
2521
2522 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2523
2524         pipe-filter: fix comment typo
2525         * lib/pipe-filter.h: Mention correct function.
2526
2527 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2528
2529         execinfo: new module
2530         This is for Emacs.  Currently, it provides a no-effect stub
2531         on all platforms where it does not already work.
2532         It already works on glibc-based systems, and on Solaris 11.
2533         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2534         New files.
2535         * doc/glibc-headers/execinfo.texi (execinfo.h):
2536         * MODULES.html.sh (Misc): Document it.
2537
2538 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2539
2540         extern-inline: support old GCC 'inline'
2541         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2542         if available.  This applies to GCC versions 2.7 through 4.2, or
2543         when newer GCC is using -fgnu89-inline.  The goal is to address
2544         some of the performance issues mentioned by Bruno Haible in
2545         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2546
2547 2012-08-20  Eric Blake  <eblake@redhat.com>
2548
2549         maint.mk: avoid redundant file name in message
2550         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2551         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2552         (sc_makefile_path_separator_check): Remove bogus $(ME).
2553
2554 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2555
2556         timer-time: fix link order when static linking on glibc
2557         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2558         _after_ -lrt so that it's significant.
2559
2560 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         timespec: omit unnecessary AC_C_INLINE
2563         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2564
2565         stat-time: omit unnecessary AC_C_INLINE
2566         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2567         Do not require AC_C_INLINE.
2568
2569         ignore-value: omit unnecessary AC_C_INLINE
2570         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2571
2572         sys_select: avoid 'static inline'
2573         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2574
2575         mktime: avoid 'static inline'
2576         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2577         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2578
2579 2012-08-19  Bruno Haible  <bruno@clisp.org>
2580
2581         gnulib-tool: Improve coding style.
2582         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2583         func_emit_lib_Makefile_am.
2584         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2585
2586 2012-08-19  Bruno Haible  <bruno@clisp.org>
2587
2588         gnulib-tool: Fix indentation.
2589         * gnulib-tool (func_import): Fix indentation.
2590
2591 2012-08-19  Bruno Haible  <bruno@clisp.org>
2592
2593         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2594         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2595         on the list of removed files.
2596
2597 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         test-parse-datetime: avoid glibc leap-second glitch
2600         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2601         with the 2012 rules.  Problem reported by Bruce Dubbs in
2602         <http://bugs.gnu.org/12206>.
2603
2604 2012-08-14  Bruno Haible  <bruno@clisp.org>
2605
2606         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2607         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2608         from argument.
2609         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2610
2611 2012-08-14  Eric Blake  <eblake@redhat.com>
2612
2613         ldexp: relax license
2614         * modules/ldexp (License): Trivial relax, since the module only
2615         provides a permissively licensed m4 file.
2616
2617 2012-08-13  Bruno Haible  <bruno@clisp.org>
2618
2619         gnulib-tool: Fix persistence of --witness-c-macro option.
2620         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2621         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2622
2623 2012-08-11  Eric Blake  <eblake@redhat.com>
2624
2625         count-leading-zeros: use a lookup table on non-gcc compilers
2626         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2627         alternate implementation, suggested by Jim Meyering.
2628
2629 2012-08-10  Eric Blake  <eblake@redhat.com>
2630
2631         count-leading-zeros: new module
2632         * modules/count-leading-zeros: New module.
2633         * m4/count-leading-zeros.m4: New file.
2634         * lib/count-leading-zeros.h: Likewise.
2635         * modules/count-leading-zeros-tests: New test.
2636         * tests/test-count-leading-zeros.c: New file.
2637         * MODULES.html.sh (Integer arithmetic functions): Document it.
2638
2639 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2640             Jim Meyering  <meyering@redhat.com>
2641
2642         maintainer-makefile: Fix syntax error with dash.
2643         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2644         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2645
2646 2012-08-05  Jim Meyering  <meyering@redhat.com>
2647
2648         extern-inline: also ignore -Wmissing-declarations
2649         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2650         required with gcc-4.8.0-to-be.
2651
2652         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2653         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2654         for /error ?([^,]*)/.  This avoids false-positives for strings like
2655         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2656
2657 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2658
2659         gnumakefile: better interaction with Automake-NG
2660         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2661         Automake-NG always contain a definition of VPATH, even in non-VPATH
2662         builds (its value being simply '.' in that case).  So, in the
2663         'clean-GNUmakefile' rule, to determine whether running under a
2664         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2665         '$(VPATH)' expands to the empty string.
2666
2667 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2668
2669         base64: Use extern C scope in header file, for C++.
2670         * lib/base64.h: Add C++ namespace protection.
2671
2672 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2673
2674         stat-time, timespec, u64: support naive out-of-dir builds
2675         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2676         Use '#include "foo.h"', not '#include <foo.h>', when including
2677         one's own interface.  This works better when configuring with
2678         out-of-directory builds, since packages need not add an
2679         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2680
2681 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2682
2683         utimens: use extern-inline
2684         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2685         * lib/utimens.h: Add copyright notice, since this is now large enough
2686         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2687         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2688         * modules/utimens (Depends-on): Add extern-inline.
2689
2690         u64: use extern-inline
2691         * lib/u64.c: New file.
2692         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2693         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2694         * modules/u64 (Files): Add lib/u64.c.
2695         (Depends-on): Add extern-inline.
2696         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2697         does that now.
2698         (lib_SOURCES): Add u64.c.
2699
2700         timespec: use extern-inline
2701         * lib/timespec.c: New file.
2702         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2703         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2704         * modules/timespec (Files): Add lib/timespec.c.
2705         (Depends-on): Add extern-inline.
2706         (lib_SOURCES): Add timespec.c.
2707
2708         stat-time: use extern-inline
2709         * lib/stat-time.c: New file.
2710         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2711         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2712         * modules/stat-time (Files): Add lib/stat-time.c.
2713         (Depends-on): Add extern-inline.
2714         (lib_SOURCES): Add stat-time.c.
2715
2716         extern-inline: new module
2717         * modules/extern-inline, m4/extern-inline.m4: New files.
2718         This is for better support of 'extern inline' a la ISO C99,
2719         with a portable alternative on compilers that do not support
2720         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2721         of the Emacs executable, when compiled with debugging disabled,
2722         which is a typical way that Emacs is built while developing.
2723
2724 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2725
2726         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2727         * build-aux/do-release-commit-and-tag: Move variable definitions
2728         together.
2729         ($branch): Instead of defaulting to "master", default to the current
2730         branch (as gnu-web-doc-update does).
2731         (help): Display the current values of the option arguments.
2732         * top/maint.mk (release-commit): New.
2733         * top/README-release: Simplify the corresponding step.
2734
2735 2012-07-30  Eric Blake  <eblake@redhat.com>
2736
2737         passfd: fix comment on recvfd
2738         * lib/passfd.c (recvfd): Fix comment.
2739         Reported by Jann Horn <jannhorn@googlemail.com>.
2740
2741 2012-07-30  Jim Meyering  <meyering@redhat.com>
2742
2743         maint.mk: avoid a sub-shell
2744         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2745
2746 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2747
2748         maint.mk: use silent-rules support from Automake
2749         * top/maint.mk (news-check, vc-diff-check, announcement)
2750         (no-submodule-changes, alpha beta stable, release-prep)
2751         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2752
2753 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2754
2755         maint.mk: provide a web-manual-update target
2756         * top/maint.mk: here.
2757         * top/README-release: Use it to simplify the web manual update step.
2758
2759 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2760
2761         README-release: shorten the circuit to post a news
2762         * top/README-release: Point directly to the news submission form.
2763
2764 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2765
2766         gnu-web-doc-update: fix --help
2767         * build-aux/gnu-web-doc-update: The information "top level" was written
2768         twice.
2769
2770 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2771
2772         maint.mk: absolute VPATH issue
2773         * top/maint.mk (release-prep): Help Git find .git/.
2774         From Jim Meyering.
2775
2776 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2777
2778         gitlog-to-changelog: fix previous change
2779         * build-aux/gitlog-to-changelog: Fix condition.
2780         Add missing ";".
2781
2782 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2783
2784         gitlog-to-changelog: don't expect .git to be in $srcdir
2785         Reported by Bruno Haible.
2786         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2787         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2788         Use it.
2789
2790 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2791
2792         maint.mk: absolute VPATH build fix
2793         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2794         $(srcdir) is not a parent of $(builddir).
2795
2796 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2797
2798         clean-temp: Fix memory leak.
2799         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2800         'files' members of tmpdir.
2801
2802 2012-07-27  Jim Meyering  <meyering@redhat.com>
2803
2804         maint.mk: new rule: refresh-gnulib-patches
2805         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2806         Use this rule to refresh them.
2807         * top/maint.mk (refresh-gnulib-patches): New rule.
2808
2809 2012-07-24  Bruno Haible  <bruno@clisp.org>
2810
2811         gnulib-tool: Fix handling of inctests variable.
2812         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2813         Reported by Nick Bowler <nbowler@elliptictech.com>.
2814
2815 2012-07-22  Bruno Haible  <bruno@clisp.org>
2816
2817         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2818         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2819         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2820         Remove exemption for getpass.h.
2821         Suggested by Eric Blake.
2822
2823 2012-07-20  Eric Blake  <eblake@redhat.com>
2824
2825         verify: document conflict with -Wnested-externs
2826         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2827
2828         maint.mk: forbid exit(-1)
2829         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2830
2831 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2832
2833         fsusage: port back to Solaris
2834         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2835         error (fsd not declared) on Solaris 10.  Reported privately by
2836         Andrew Borodin.
2837
2838 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2839
2840         gnu-web-doc-update: fix error messages
2841         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2842
2843         gnu-web-doc-update: check the requirements.
2844         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2845         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2846         * build-aux/bootstrap (find_tool): Comment change.
2847
2848 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2849
2850         maint.mk: minor simplication.
2851         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2852         for default values.
2853
2854 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2855
2856         gitlog-to-changelog: VPATH build issues
2857         If builddir is not a subdirectory of srcdir, running git from it will
2858         fail.
2859         * build-aux/gitlog-to-changelog (--srcdir): New option.
2860
2861 2012-07-15  Bruno Haible  <bruno@clisp.org>
2862
2863         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2864         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2865         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2866         Remove exemption for fpending.h.
2867         Suggested by Eric Blake.
2868
2869 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2870
2871         pthread_sigmask: fix bug on FreeBSD 9
2872         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2873         Include string.h.
2874         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2875         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2876         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2877         but pthread_sigmask (1729, NULL, NULL) returns zero.
2878         See <http://bugs.gnu.org/11884>.
2879         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2880         by inspecting whether the main call changed the old mask.
2881
2882 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2883
2884         README-release: make it more legible
2885         * top/README-release: Improve typography slightly.
2886
2887 2012-07-15  Jim Meyering  <meyering@redhat.com>
2888
2889         maint: require that each sc_... command start with "@"
2890         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2891         "make sc_maint" helps us avoid this nit.
2892
2893 2012-07-15  Jim Meyering  <meyering@redhat.com>
2894
2895         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2896         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2897
2898 2012-07-13  Eric Blake  <eblake@redhat.com>
2899
2900         maint.mk: new syntax check for HAVE_DECL checks
2901         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2902         * cfg.mk
2903         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2904         Exempt some false positives.
2905         Based on a report by Karel Zak.
2906
2907         argp: make HAVE_DECL usage consistent
2908         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2909         macros, not whether they are defined.
2910         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2911         convention with other declaration checks.
2912         Reported by Karel Zak, with suggestions from Paul Eggert.
2913
2914         stat-time: relax license to LGPLv2+
2915         * modules/stat-time (License): Relax, with consent of all authors.
2916
2917         strndup: fix m4 usage error
2918         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2919         defined, to either 0 or 1.
2920         Reported by Karel Zak.
2921
2922 2012-07-11  Jim Meyering  <meyering@redhat.com>
2923
2924         maint: enable the sc_avoid_if_before_free syntax-check rule
2925         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2926         (if_before_free_offenders_): Define.
2927         (if_before_free_basename_re_): Define.
2928         Exempt current files with useless if-before-free.
2929
2930 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2931
2932         gettext: do not assume '#define ... defined ...' behavior
2933         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2934         Do not use '#define FOO ... defined BAR ...', as the C standard says
2935         it's not portable to expect that this works after macro expansion.
2936         Problem reported for gzip by Steven M. Schweda in
2937         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2938
2939 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2940
2941         getloadavg: clean out old Emacs and Autoconf cruft
2942         See Glenn Morris in <http://bugs.gnu.org/11905>.
2943         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2944         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2945         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2946         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2947
2948 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2949
2950         bootstrap: let warn be like tests/init.sh's warn_
2951         Reported by Jim Meyering.
2952         * build-aux/bootstrap (warn): Remove, replaced by...
2953         (warnf_, warn_): these.
2954         Adjust callers.
2955         Shorten messages that no longer fit in 80 columns.
2956
2957 2012-07-09  Bruno Haible  <bruno@clisp.org>
2958
2959         getopt: Simplify after Emacs changed.
2960         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2961         (gl_GETOPT_IFELSE): Remove macro.
2962
2963 2012-07-09  Jim Meyering  <meyering@redhat.com>
2964
2965         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2966         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2967
2968         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2969         Bugs in both of those conspired to make the
2970         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2971         _sc_search_regexp's handling of non-empty $in_files would filter
2972         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2973         choice of in_files value meant there would be no match in most
2974         projects, due to the presence of two or more Makefile.in files.
2975         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2976         Fix a bug in how a non-empty $$in_files was processed:
2977         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2978         in spite of the name, it's a regexp, not a list of file names.
2979
2980 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         getloadavg, getopt: fix commentary re configure.in
2983         Autoconf is deprecating the name 'configure.in', so change it to
2984         to the new name 'configure.ac' in a couple of places.
2985         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2986         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2987         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2988         Emacs has renamed it to configure.ac, and it no longer refers
2989         to these macros anyway.
2990
2991         timespec: mark functions with const attributes
2992         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2993         Mark with _GL_ATTRIBUTE_CONST.
2994
2995 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2996
2997         canonicalize[-lgpl]: handle "guessing" values when cross-building
2998         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2999         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3000         matches "*yes" instead of just "yes".  Regression introduced in commit
3001         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3002
3003 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3004             Bruno Haible  <bruno@clisp.org>
3005
3006         canonicalize: make the right guess when cross-compiling to GNU
3007         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3008         determine whether cross-compiling to glibc systems, so as to
3009         include GNU/Hurd.
3010
3011 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3012
3013         timespec-sub: avoid duplicate include
3014         * lib/timespec-sub.c: Do not include <config.h> twice.
3015         Reported by Juanma Barranquero.
3016
3017 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3018
3019         bootstrap: use a more consistent error reporting scheme
3020         * build-aux/bootstrap (warn, die): New.
3021         Use them.
3022
3023 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3024
3025         sys_time: allow too-wide tv_sec
3026         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3027         timeval even if tv_sec is wider than time_t.  This allows
3028         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3029         as without this patch gnulib replaces struct timeval
3030         and OpenBSD futimes therefore has a type mismatch.
3031         * doc/posix-headers/sys_time.texi: Mention this.
3032
3033         pthread: check for both pthread_create and pthread_join
3034         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3035         alter the check so that it tests for both pthread_create and
3036         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3037         Suggested by Bruno Haible and Richard Yao in
3038         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3039
3040         parse-datetime: doc tuneup
3041         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3042         spacing issues.
3043
3044 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3045
3046         do-release-commit-and-tag: fix the previous commit
3047         * build-aux/do-release-commit-and-tag: Actually the test was right,
3048         but the comment and the error message were misleading.
3049         Fix comment, and improve error message.
3050         Perform check first, so that NEWS is not modified uselessly.
3051
3052         do-release-commit-and-tag: fix typo
3053         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3054         _not_ start with a stub.
3055
3056 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         pthread: check for pthread_create, not pthread_join
3059         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3060         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3061         pthread_join in libc.  I hope this removes the need for all the
3062         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3063         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3064
3065 2012-07-04  Jim Meyering  <meyering@redhat.com>
3066
3067         parse-datetime: fix failure to diagnose invalid input
3068         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3069         rather than diagnosing the invalid input.  Now it reports this:
3070         date: invalid date '\260'
3071         * lib/parse-datetime.y (to_uchar): Define.
3072         (yylex): Don't sign-extend "other" bytes.
3073         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3074         Thanks to Bruno Haible for the patch to this file.
3075         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3076         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3077
3078 2012-07-03  Jim Meyering  <meyering@redhat.com>
3079
3080         bootstrap: do not require now-removed build-aux/missing
3081         Now that build-aux/missing is, er, missing, bootstrap would
3082         silently fail.
3083         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3084         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3085         no longer part of gnulib.
3086         Diagnose the failure.
3087
3088 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         alloca: add support for HP NonStop TNS/E native
3091         * lib/alloca.in.h (alloca): Support the new host.
3092         From a suggestion by Joachim Schmitz in
3093         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3094
3095 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3096
3097         fsusage: remove code not needed on non GNU/Linux systems.
3098
3099         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3100         Don't include headers no longer needed in this case.
3101         * lib/fsusage.c [STAT_STATVFS &&
3102         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3103         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3104
3105 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3106
3107         fsusage: include files needed for glibc 2.6 fallback
3108         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3109         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3110         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3111         Problem reported by Ludovic Courtès in
3112         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3113
3114         fsusage: avoid needless check on GNU/Linux
3115         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3116         on GNU/Linux systems, since it can't possibly work.
3117
3118 2012-07-01  Bruno Haible  <bruno@clisp.org>
3119
3120         log: Fix an autoconf >= 2.64 warning.
3121         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3122         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3123
3124 2012-06-28  Bruno Haible  <bruno@clisp.org>
3125
3126         log10f: Fix possible configuration problem.
3127         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3128         $LOGF_LIBM.
3129         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3130
3131 2012-06-28  Bruno Haible  <bruno@clisp.org>
3132
3133         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3134         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3135         not gl_cv_func_unlink_works.
3136         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3137
3138 2012-06-27  Eric Blake  <eblake@redhat.com>
3139
3140         config: drop scripts that automake says are not independent
3141         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3142         * build-aux/elisp-comp: Delete.
3143         * build-aux/missing: Likewise.
3144         * build-aux/ylwrap: Likewise.
3145         * modules/elisp-comp: Likewise.
3146         * MODULES.html.sh: Drop mention of elisp-comp.
3147         * NEWS: Mention this.
3148
3149 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3150
3151         root-uid: new module
3152         This is for portability to Tandem's NonStop Kernel.
3153         * lib/root-uid.h, modules/root-uid: New files.
3154         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3155         * lib/write-any-file.c, tests/test-sethostname2.c:
3156         Include "root-uid.h".
3157         * lib/euidaccess.c (euidaccess):
3158         * lib/pt_chown.c (main):
3159         * lib/unlinkdir.c (cannot_unlink_dir):
3160         * lib/write-any-file.c (can_write_any_file):
3161         * m4/mknod.m4 (gl_FUNC_MKNOD):
3162         * tests/test-sethostname2.c (geteuid, main):
3163         Don't assume ROOT_UID == 0.
3164         * modules/euidaccess (Depends-on):
3165         * modules/pt_chown (Depends-on):
3166         * modules/sethostname-tests (Depends-on):
3167         * modules/unlinkdir (Depends-on):
3168         * modules/write-any-file (Depends-on):
3169         Add root-uid.
3170
3171         regex: use locale-independent comparison for codeset name
3172         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3173         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3174         for codeset name.
3175         * lib/regex_internal.h: Do not include <strings.h>, since we
3176         no longer use strcasecmp.
3177         * modules/regex (Depends-on): Remove strcase.
3178
3179 2012-06-23  Bruno Haible  <bruno@clisp.org>
3180
3181         getopt-posix: No longer guarantee that option processing is resettable.
3182         * doc/posix-functions/getopt.texi: Drop description of problem with
3183         internal state. Fix info about mingw and msvc9.
3184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3185         option processing by getopt(). Run three test programs instead of one.
3186         Simplify cross-compilation guess.
3187         * NEWS: Mention the change.
3188         Reported by Rich Felker <dalias@aerifal.cx>.
3189
3190 2012-06-26  Bruno Haible  <bruno@clisp.org>
3191
3192         argp, regex: Ensure strcasecmp gets declared.
3193         * lib/argp-help.c: Include <strings.h>.
3194         * lib/regex_internal.h: Likewise.
3195         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3196
3197 2012-06-24  Bruno Haible  <bruno@clisp.org>
3198
3199         ptsname_r: Make it consistent with ptsname on AIX.
3200         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3201         implementation as for OSF/1.
3202         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3203         a pty master.
3204
3205         ptsname_r: Make it consistent with ptsname on OSF/1.
3206         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3207         OSF/1.
3208
3209 2012-06-24  Bruno Haible  <bruno@clisp.org>
3210
3211         ttyname_r: Fix result on OSF/1, Solaris.
3212         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3213
3214 2012-06-24  Bruno Haible  <bruno@clisp.org>
3215
3216         ptsname_r: Add support for Solaris.
3217         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3218         Solaris.
3219
3220         ptsname_r: Fix test failure on native Windows.
3221         * modules/ptsname_r (Depends-on): Add isatty.
3222
3223         ptsname_r: Fix test failures on IRIX, Solaris.
3224         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3225         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3226         accordingly.
3227         * lib/ptsname_r.c: Include <fcntl.h>.
3228         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3229         set errno if fd is invalid.
3230         * tests/test-isatty.c (main): Update comments.
3231
3232 2012-06-24  Bruno Haible  <bruno@clisp.org>
3233
3234         ptsname test: Extend test.
3235         * tests/test-ptsname.c: Include <errno.h>.
3236         (main): Test behaviour with invalid file descriptor.
3237
3238 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3239
3240         time: fix obsolete comment
3241         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3242         reference to HAVE_STRUCT_TIMESPEC in comment.
3243
3244 2012-06-23  Bruno Haible  <bruno@clisp.org>
3245
3246         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3248         does not handle abbreviated long options with equivalent
3249         disambiguations, set gl_replace_getopt to yes.
3250         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3251
3252 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3253
3254         time_r: fix typo that always overrode localtime_r decl
3255         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3256         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3257         not in a standard include.
3258
3259 2012-06-22  Bruno Haible  <bruno@clisp.org>
3260
3261         Write "Mac OS X" instead of "MacOS X".
3262         * README: Write "Mac OS X" instead of "MacOS X".
3263         * build-aux/bootstrap: Likewise.
3264         * build-aux/install-reloc: Likewise.
3265         * lib/acl-internal.h: Likewise.
3266         * lib/acl_entries.c: Likewise.
3267         * lib/argp-ba.c: Likewise.
3268         * lib/argp-pv.c: Likewise.
3269         * lib/config.charset: Likewise.
3270         * lib/copy-acl.c: Likewise.
3271         * lib/csharpexec.c: Likewise.
3272         * lib/euidaccess.c: Likewise.
3273         * lib/fbufmode.c: Likewise.
3274         * lib/fflush.c: Likewise.
3275         * lib/file-has-acl.c: Likewise.
3276         * lib/filemode.h: Likewise.
3277         * lib/fpurge.c: Likewise.
3278         * lib/freadable.c: Likewise.
3279         * lib/freadahead.c: Likewise.
3280         * lib/freading.c: Likewise.
3281         * lib/freadptr.c: Likewise.
3282         * lib/freadseek.c: Likewise.
3283         * lib/fseeko.c: Likewise.
3284         * lib/fseterr.c: Likewise.
3285         * lib/fsusage.c: Likewise.
3286         * lib/fwritable.c: Likewise.
3287         * lib/fwriting.c: Likewise.
3288         * lib/get-rusage-as.c: Likewise.
3289         * lib/get-rusage-data.c: Likewise.
3290         * lib/getdomainname.c: Likewise.
3291         * lib/idpriv-drop.c: Likewise.
3292         * lib/idpriv-droptemp.c: Likewise.
3293         * lib/localcharset.c: Likewise.
3294         * lib/locale.in.h: Likewise.
3295         * lib/localename.c: Likewise.
3296         * lib/mbsrtowcs-state.c: Likewise.
3297         * lib/nproc.c: Likewise.
3298         * lib/passfd.c: Likewise.
3299         * lib/posix_openpt.c: Likewise.
3300         * lib/printf-parse.c: Likewise.
3301         * lib/progreloc.c: Likewise.
3302         * lib/safe-read.h: Likewise.
3303         * lib/safe-write.h: Likewise.
3304         * lib/sched.in.h: Likewise.
3305         * lib/set-mode-acl.c: Likewise.
3306         * lib/signal.in.h: Likewise.
3307         * lib/stdint.in.h: Likewise.
3308         * lib/stdio-impl.h: Likewise.
3309         * lib/stdlib.in.h: Likewise.
3310         * lib/strtod.c: Likewise.
3311         * lib/sys_select.in.h: Likewise.
3312         * lib/tcgetsid.c: Likewise.
3313         * lib/unistd.in.h: Likewise.
3314         * lib/unlockpt.c: Likewise.
3315         * lib/vasnprintf.c: Likewise.
3316         * lib/vma-iter.c: Likewise.
3317         * lib/wcsrtombs-state.c: Likewise.
3318         * m4/acl.m4: Likewise.
3319         * m4/acosl.m4: Likewise.
3320         * m4/asinl.m4: Likewise.
3321         * m4/atanl.m4: Likewise.
3322         * m4/c-stack.m4: Likewise.
3323         * m4/cosl.m4: Likewise.
3324         * m4/expl.m4: Likewise.
3325         * m4/extensions.m4: Likewise.
3326         * m4/fdatasync.m4: Likewise.
3327         * m4/fmal.m4: Likewise.
3328         * m4/frexp.m4: Likewise.
3329         * m4/frexpf.m4: Likewise.
3330         * m4/frexpl.m4: Likewise.
3331         * m4/fsusage.m4: Likewise.
3332         * m4/getdomainname.m4: Likewise.
3333         * m4/getloadavg.m4: Likewise.
3334         * m4/getopt.m4: Likewise.
3335         * m4/gettext.m4: Likewise.
3336         * m4/gnulib-common.m4: Likewise.
3337         * m4/intdiv0.m4: Likewise.
3338         * m4/intlmacosx.m4: Likewise.
3339         * m4/largefile.m4: Likewise.
3340         * m4/ldexpl.m4: Likewise.
3341         * m4/link-follow.m4: Likewise.
3342         * m4/locale-ar.m4: Likewise.
3343         * m4/locale-fr.m4: Likewise.
3344         * m4/locale-ja.m4: Likewise.
3345         * m4/locale-tr.m4: Likewise.
3346         * m4/locale-zh.m4: Likewise.
3347         * m4/locale_h.m4: Likewise.
3348         * m4/lock.m4: Likewise.
3349         * m4/logl.m4: Likewise.
3350         * m4/mathfunc.m4: Likewise.
3351         * m4/minus-zero.m4: Likewise.
3352         * m4/mktime.m4: Likewise.
3353         * m4/mmap-anon.m4: Likewise.
3354         * m4/multiarch.m4: Likewise.
3355         * m4/nanosleep.m4: Likewise.
3356         * m4/nocrash.m4: Likewise.
3357         * m4/poll.m4: Likewise.
3358         * m4/printf-frexpl.m4: Likewise.
3359         * m4/printf.m4: Likewise.
3360         * m4/signbit.m4: Likewise.
3361         * m4/sinl.m4: Likewise.
3362         * m4/sqrtl.m4: Likewise.
3363         * m4/strerror_r.m4: Likewise.
3364         * m4/tanl.m4: Likewise.
3365         * m4/threadlib.m4: Likewise.
3366         * m4/ttyname_r.m4: Likewise.
3367         * m4/unlink.m4: Likewise.
3368         * m4/visibility.m4: Likewise.
3369         * m4/wcwidth.m4: Likewise.
3370         * tests/minus-zero.h: Likewise.
3371         * tests/test-alloca-opt.c: Likewise.
3372         * tests/test-copy-acl.sh: Likewise.
3373         * tests/test-copy-file.sh: Likewise.
3374         * tests/test-fdatasync.c: Likewise.
3375         * tests/test-file-has-acl.sh: Likewise.
3376         * tests/test-flock.c: Likewise.
3377         * tests/test-fsync.c: Likewise.
3378         * tests/test-localename.c: Likewise.
3379         * tests/test-malloca.c: Likewise.
3380         * tests/test-nonblocking-pipe.h: Likewise.
3381         * tests/test-nonblocking-socket.h: Likewise.
3382         * tests/test-openpty.c: Likewise.
3383         * tests/test-posix_openpt.c: Likewise.
3384         * tests/test-ptsname.c: Likewise.
3385         * tests/test-ptsname_r.c: Likewise.
3386         * tests/test-sameacls.c: Likewise.
3387         * tests/test-select.h: Likewise.
3388         * tests/test-set-mode-acl.sh: Likewise.
3389         * tests/test-snprintf-posix.h: Likewise.
3390         * tests/test-sprintf-posix.h: Likewise.
3391         * tests/test-strtod.c: Likewise.
3392         * tests/test-time.c: Likewise.
3393         * tests/test-vasnprintf-posix.c: Likewise.
3394         * tests/test-vasprintf-posix.c: Likewise.
3395         * doc/acl-resources.txt: Likewise.
3396         * doc/**/*.texi: Likewise.
3397         Reported by Max Horn <max@quendi.de>.
3398
3399 2012-06-22  Bruno Haible  <bruno@clisp.org>
3400
3401         grantpt: Relax requirement regarding invalid file descriptors.
3402         * lib/grantpt.c: Don't include <fcntl.h>.
3403         (grantpt): Don't verify the validity of the file descriptor.
3404         * modules/grantpt (Depends-on): Remove fcntl-h.
3405         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3406         file descriptors.
3407         * doc/posix-functions/grantpt.texi: Document more platforms on which
3408         grantpt succeeds for invalid file descriptors.
3409         Reported by Rich Felker <dalias@aerifal.cx>.
3410
3411 2012-06-22  Bruno Haible  <bruno@clisp.org>
3412
3413         fbufmode test: Don't test unportable behaviour.
3414         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3415         (main): Invoke it three times.
3416         Reported by Szabolcs Nagy <nsz@port70.net>
3417         and Rich Felker <dalias@aerifal.cx>.
3418
3419 2012-06-21  Bruno Haible  <bruno@clisp.org>
3420
3421         gnulib-tool: Refactor inctests variable.
3422         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3423         (func_modules_transitive_closure,
3424         func_modules_transitive_closure_separately,
3425         func_import, func_create_testdir): Update.
3426
3427         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3428         * gnulib-tool: Accept option --without-tests.
3429         (func_usage): Document --without-tests option. Rearrange.
3430         (inctests): Normalize according to the mode.
3431         * NEWS: Mention the change.
3432         Suggested by Simon Josefsson.
3433
3434 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3435
3436         parse-duration test: Avoid spurious output.
3437         * tests/test-parse-duration.sh: Reindent with leading tabs.
3438
3439 2012-06-21  Jim Meyering  <meyering@redhat.com>
3440
3441         maint: disable the strncpy prohibition
3442         * cfg.mk: Do not prohibit strncpy here.
3443
3444 2012-06-21  Bruno Haible  <bruno@clisp.org>
3445
3446         nonblocking: Avoid compilation error on mingw64.
3447         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3448         fscanf.
3449         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3450         * modules/vfscanf (configure.ac): Likewise.
3451         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3452         definition only if stdio.h has prepared it.
3453         Reported by Daniel P. Berrange <berrange@redhat.com>.
3454
3455 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3456
3457         gnulib-tool: Use readlink if it is available.
3458         * gnulib-tool (func_readlink): Choose function more appropriately.
3459
3460 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3461
3462         posixtm-tests: port to buggy compiler
3463         Problem reported by Simon Josefsson in
3464         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3465         * modules/posixtm-tests (Depends-on): Add stdint.
3466         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3467         Now of type int_least64_t, not int64_t, both because that's
3468         what INT64_C returns and because int_least64_t works even
3469         on 72-bit hosts.
3470         (T): Use INT64_C on constants outside the traditional int range,
3471         to work around compiler bug noted by Simon.
3472
3473         mktime: fix integer overflow in 'configure'-time test
3474         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3475         after integer overflow.  Problem reported by Rich Felker in
3476         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3477         Also, don't look for further instances of a bug if we've already
3478         found one instance; this helps 'configure' run faster.
3479
3480 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3481
3482         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3483         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3484         GetVersionEx correctly.
3485         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3486
3487 2012-06-20  Bruno Haible  <bruno@clisp.org>
3488
3489         fdopen: Allow implementations that don't reject invalid fd arguments.
3490         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3491         succeeds.
3492         Reported by Rich Felker <dalias@aerifal.cx>.
3493
3494 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3495
3496         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3497         bring in LIBINTL.
3498
3499 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         init.sh: do not rely on autoupated PWD
3502         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3503         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3504         Although Nelson's bug was not necessarily fixed by this patch,
3505         it seems wise to make the change for safety.
3506         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3507         automagically after 'cd'; this is not reliable on older shells.
3508         (setup_): Fail if we cannot cd to temporary directory.
3509
3510 2012-06-19  Bruno Haible  <bruno@clisp.org>
3511
3512         stat, fstat: Avoid warnings on mingw64.
3513         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3514         redefining.
3515         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3516         Reported by Daniel P. Berrange <berrange@redhat.com>.
3517
3518 2012-06-19  Bruno Haible  <bruno@clisp.org>
3519
3520         stdioext: Add support for musl libc.
3521
3522         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3523         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3524
3525         * m4/fseterr.m4: New file.
3526         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3527         function exists.
3528         * modules/fseterr (Files): Add m4/fseterr.m4.
3529         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3530         __fseterr does not exist.
3531         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3532
3533         * lib/freadable.h: Update comment.
3534
3535         * lib/fwritable.h: Update comment.
3536
3537         * lib/freading.h: Update comment.
3538
3539         * lib/fwriting.h: Update comment.
3540
3541         * m4/freadahead.m4: New file.
3542         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3543         that function exists.
3544         * modules/freadahead (Files): Add m4/freadahead.m4.
3545         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3546         __freadahead does not exist.
3547         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3548
3549         * m4/freadptr.m4: New file.
3550         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3551         function exists.
3552         * modules/freadptr (Files): Add m4/freadptr.m4.
3553         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3554         __freadptr does not exist.
3555         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3556
3557         * m4/freadseek.m4: New file.
3558         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3559         exists.
3560         * modules/freadseek (Files): Add m4/freadseek.m4.
3561         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3562
3563         * lib/fpurge.c (fpurge): Update comment.
3564
3565         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3566
3567 2012-06-19  Bruno Haible  <bruno@clisp.org>
3568
3569         *printf-posix: Put more info into config.log.
3570         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3571         exit code into config.log.
3572
3573 2012-06-19  Bruno Haible  <bruno@clisp.org>
3574
3575         getopt-gnu: Fix exit code overflow in autoconf test.
3576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3577         to keep them below < 128.
3578
3579 2012-06-17  Jim Meyering  <meyering@redhat.com>
3580
3581         maint.mk: fix typo in code to derive GPG key at release time
3582         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3583
3584 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3585
3586         regex: avoid warning when pointers are not long
3587         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3588         and uintptr_t, not long, for portability to hosts where pointers and
3589         long have different sizes.  Issue noted by Daniel P. Berrange in
3590         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3591         and fix suggested by Bruno Haible in
3592         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3593
3594 2012-06-17  Bruno Haible  <bruno@clisp.org>
3595
3596         dummy: Relicense into the public domain.
3597         * modules/dummy (License): Set to "public domain".
3598         Suggested by Reuben Thomas.
3599
3600 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3601
3602         announce-gen: VPATH issues
3603         * build-aux/announce-gen (--srcdir): New option, used to trim the
3604         $srcdir part of the path from $builddir to NEWS.
3605         * top/maint.mk (announcement): Adjust.
3606
3607 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3608
3609         gnu-web-doc-update: VPATH builds
3610         * build-aux/gnu-web-doc-update (--builddir): New option.
3611         Revamp the handling of options.
3612         Prefer $(...) to `...`.
3613         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3614         the template, and it is GNU mktemp specific.
3615         Prefer set -e to long series of &&.
3616         Restore the initial git branch, not "master".
3617         Properly initialize submodules (don't rely only on bootstrap).
3618         Do not reconfigure blindly, use config.status.
3619         * top/README-release: Update instructions for gnu-web-doc-update.
3620
3621 2012-06-11  Jim Meyering  <meyering@redhat.com>
3622
3623         maint.mk: revert most of the previous change re "all these"
3624         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3625         For rationale, see the discussion at
3626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3627
3628 2012-06-10  Karl Berry  <karl@gnu.org>
3629
3630         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3631
3632         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3633
3634 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3635
3636         parse-duration: Relicense under LGPLv2+.
3637         * modules/parse-duration (License): Change to LGPLv2+.
3638
3639 2012-06-10  Jim Meyering  <meyering@redhat.com>
3640
3641         maint.mk: prohibit common grammar error: "all these"
3642         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3643         the list of prohibited word sequences.  It should be "all of these".
3644         * lib/tempname.c (__gen_tempname): Fix one of them.
3645
3646 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3647
3648         do-release-commit-and-tag: support VPATH builds
3649         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3650         (noteworthy): Defined earlier to factor its value.
3651         (noteworthy_stub): New.
3652         Use it to factor.
3653         (help_version): Split into...
3654         (help, version): these.
3655         Adjust the option processing part.
3656         Support "--option=value" in addition to "--option value".
3657         (builddir): New.
3658         (--builddir): New option.
3659         * top/README-release: Document this.
3660         Reword slightly so that the reader cannot understand that he
3661         has to do these steps before calling do-release-commit-and-tag.
3662
3663 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3664
3665         readme-release: also require announce-gen and maintainer-makefile
3666         * modules/readme-release (Depends-on): here.
3667         * modules/announce-gen, modules/do-release-commit-and-tag,
3668         modules/gnu-web-doc-update, modules/maintainer-makefile
3669         (Description): Point to readme-release.
3670
3671 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3672
3673         maint.mk: fix VPATH issues.
3674         * top/maint.mk (news-check): GNU Make understand $< very well.
3675         (release-prep): NEWS is in $(srcdir).
3676
3677 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3678
3679         readme-release: require the promoted modules.
3680         * modules/readme-release (Depends-on): Add
3681         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3682         in this text.
3683
3684 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3685             Bruno Haible  <bruno@clisp.org>
3686
3687         error, strerror-override: Support mingw64 from Fedora 17.
3688         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3689         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3690         EINPROGRESS.
3691         * lib/strerror-override.h (strerror_override): Test it.
3692         * lib/strerror-override.c (strerror_override): Likewise.
3693         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3694
3695 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3696             Bruno Haible  <bruno@clisp.org>
3697
3698         error, strerror-override: Support mingw64 from Fedora 17.
3699         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3700         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3701         * lib/strerror-override.h (strerror_override): Test it.
3702         * lib/strerror-override.c (strerror_override): Likewise.
3703
3704 2012-06-03  Bruno Haible  <bruno@clisp.org>
3705
3706         error, strerror-override: Support new errno values from POSIX:2008.
3707         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3708         ENOTRECOVERABLE.
3709         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3710         platforms.
3711         * lib/strerror-override.c (strerror_override): Conditionalize the
3712         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3713         * lib/strerror-override.h (strerror_override): Declare also if
3714         GNULIB_defined_EOWNERDEAD is defined.
3715         * tests/test-errno.c (e130, e131): New variables.
3716         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3717         ENOTRECOVERABLE.
3718         Reported by Paolo Bonzini.
3719
3720 2012-05-31  Jim Meyering  <meyering@redhat.com>
3721
3722         savewd: add missing dependency on sys_wait module
3723         * modules/savewd (Depends-on): Add sys_wait, needed at least
3724         for MSVC.  Report and suggested change by Michael Goffioul.
3725
3726 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3727
3728         system-quote-tests: port to CentOS 5
3729         Problem reported by Tom G. Christensen in
3730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3731         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3732
3733 2012-05-29  Jim Meyering  <meyering@redhat.com>
3734
3735         maint: fix typos in comments and ChangeLog
3736         Culprits identified and fixed mostly automatically using these commands:
3737         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3738         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3739         using http://github.com/lyda/misspell-check
3740         * ChangeLog: Fix typos.
3741         * doc/solaris-versions: Likewise.
3742         * lib/regexec.c (re_search_stub): Likewise.
3743         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3744
3745 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3746
3747         manywarnings: remove duplicate -Wmultichar entry
3748         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3749         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3750         so keep the entry marked as documented.
3751
3752 2012-05-27  Karl Berry  <karl@gnu.org>
3753
3754         * config/srclist.txt (mktime.c): remove last libc sync,
3755         perhaps just temporarily.
3756
3757 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3758
3759         regex: don't assume uint64_t or uint32_t
3760         * lib/regcomp.c (init_word_char): Don't assume that the types
3761         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3762         them, and on some 32-bit compilers there is no uint64_t.
3763         Problem reported by Gianluigi Tiesi in
3764         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3765
3766 2012-05-25  Jim Meyering  <meyering@redhat.com>
3767
3768         maint.mk: add strncpy-prohibiting syntax-check rule
3769         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3770
3771 2012-05-24  Jim Meyering  <meyering@redhat.com>
3772
3773         maint.mk: compute $(gpg_key_ID) more portably
3774         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3775         That use of sed is not portable to some fringe systems.
3776         Reported by Paul Eggert in
3777         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3778
3779 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         mktime: sync from glibc
3782         * config/srclist.txt: Uncomment mktime.c.
3783         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3784         First, indent with tabs, since glibc uses tabs and doesn't want to
3785         change and we'd rather be identical to glibc.  Also, two small
3786         coding changes:
3787         (isdst_differ): Use &&, not &, as && is the usual style.
3788         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3789         for clarity.
3790
3791 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3792
3793         announce-gen: du -h is more portable than du --human
3794         * build-aux/announce-gen (sizes): Invoke du with -h instead
3795         of --human.  Accept leading white space in its output.
3796
3797 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3798
3799         announce-gen: Improve diagnostics.
3800         * build-aux/announce-gen: When parsing command line options,
3801         prefer "announce-gen: option --release-type requires an argument"
3802         to "Option release-type requires an argument".
3803
3804 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3805
3806         maint.mk: gpg_key_ID: use sed more portably
3807         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3808         the closing brace.
3809         (refresh-po): Fuse two sed invocations into one.
3810
3811 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3812
3813         gitlog-to-changelog: support the log message format used in Bison.
3814         * build-aux/gitlog-to-changelog: Support --strip-tab and
3815         --strip-cherry-picked.
3816
3817 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3818
3819         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3820         the rest of the current time slice to another thread in the current
3821         process. So if the thread that feeds the file decscriptor we're
3822         polling is not in the current process, we get busy-waiting.
3823         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3824         Patch from Theodore Leblond.
3825         * lib/select.c: Split polling out of the loop that sets the output
3826         fd_sets.  Check for zero result and loop if the wait timeout is
3827         infinite.
3828
3829 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3830
3831         select: Fix build error on IRIX 6.5.
3832         * lib/select.c: Include stddef.h for NULL.
3833
3834 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3835
3836         gc: fix libgcrypt detection on older machines.
3837         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3838         copyright years because the file has been distributed every year
3839         since it was created.
3840
3841 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3842
3843         crypto: fix bug in large buffer handling
3844         Problem reported by Serge Belyshev for glibc in
3845         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3846         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3847         * lib/md4.c (md4_process_block):
3848         * lib/md5.c (md5_process_block):
3849         * lib/sha1.c (sha1_process_block):
3850         * lib/sha256.c (sha256_process_block):
3851         Don't assume the buffer length is less than 2**32.
3852         * lib/sha512.c (sha512_process_block): Likewise.
3853         Here, the bug is present only in the rare case where the host does
3854         not support uint64_t or where size_t is wider than 64 bits.
3855         Use u64size to work around the problems.
3856         * lib/u64.h (u64size): New macro.
3857
3858 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3859
3860         fsusage: fix block size returned on older Linux 2.6
3861
3862         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3863         which is available since Linux 2.6.
3864         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3865         when the member is available so it can be used as a fallback.
3866         * doc/posix-functions/statvfs.texi: Mention the hang issue
3867         on Linux < 2.6.36.
3868
3869 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3870
3871         bootstrap: suppress stderr chatter
3872         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3873         Omit unnecessary chatter to stderr.  The main program chatter
3874         was there only inadvertantly.
3875
3876         bootstrap: .gitignore files created by autopoint, libtool
3877         I ran into this problem when bootstrapping the latest diffutils.
3878         After './bootstrap', 'git status' reported lots of untracked files
3879         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3880         autopoint and do not need to be version-controlled.
3881         * build-aux/bootstrap: Put into .gitignore the files that
3882         autopoint and libtool create, by keeping track of files that exist
3883         after but not before these programs are run.
3884         (version_controlled_file): Move up.  2nd arg is now full file
3885         name, not base name; this is more convenient.  Put CVS at the end,
3886         as it's now somewhat deprecated.
3887
3888 2012-05-14  Jim Meyering  <meyering@redhat.com>
3889
3890         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3891         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3892         definition.  Reported by Bruno Haible.
3893
3894 2012-05-13  Bruno Haible  <bruno@clisp.org>
3895             Paul Eggert  <eggert@cs.ucla.edu>
3896
3897         binary-io: Define set_binary_mode function.
3898         * lib/binary-io.h (set_binary_mode): New function.
3899         (SET_BINARY): Define in terms of set_binary_mode.
3900         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3901         * tests/test-binary-io.c (main): Accept an argument, and test either
3902         set_binary_mode or SET_BINARY depending on the argument.
3903         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3904         argument. Clean up also t-bin-out0.tmp.
3905
3906 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3907
3908         bootstrap: take advantage of POSIX shell features
3909
3910         The 'bootstrap' script offered by Gnulib script already uses POSIX
3911         shell features (like $((...)) arithmetic expansions) that are not
3912         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3913         means that bootstrap must already be run using a proper POSIX shell,
3914         which will thus provide more features, like ${var#pattern} parameter
3915         expansion or inversion of a command exit status with '!'.  We can
3916         thus use these features to improve the clarity and the performances
3917         of the bootstrap script.
3918
3919         Suggested by Eric Blake.
3920
3921         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3922         of sed/expr plus command substitutions, to save some forks.  While
3923         we are at it, prefer the POSIX $(...) form of command substitution,
3924         rather than the legacy form `...` (since the former is visually
3925         clearer and interacts better with quoting), and prefer the idiom:
3926           "if ! CMD; then ACTION ..."
3927         over the idiom:
3928           "if CMD; then :; else ACTION ..."
3929         which was required by legacy Bourne shells not supporting '!'.
3930
3931 2012-05-12  Bruno Haible  <bruno@clisp.org>
3932
3933         system-quote: Add more comments.
3934         * lib/system-quote.h: Add more comments about wilcards and limitations.
3935         Suggested by Eli Zaretskii <eliz@gnu.org>.
3936
3937         sh-quote, system-quote: Add comments about wildcards.
3938         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3939         * lib/system-quote.h: Likewise.
3940         Reported by Eli Zaretskii <eliz@gnu.org>.
3941
3942 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3943
3944         fsusage: check for GNU/Linux statvfs problem dynamically
3945         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3946         Define STAT_STATFS2_BSIZE too, since in this case the code now
3947         checks dynamically whether statvfs is reliable, falling back on
3948         Linux-style statfs otherwise.
3949         (statvfs_works): New function, for dynamically testing statvfs.
3950         (get_fs_usage) [STAT_STATVFS]: Use it.
3951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3952         statvfs on GNU/Linux hosts, since it's now done dynamically.
3953
3954 2012-05-10  Bruno Haible  <bruno@clisp.org>
3955
3956         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3957         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3958         '?' character.
3959         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3960         * tests/test-system-quote-main.c (check_all): Check also strings like
3961         "??????????".
3962         Reported by Eli Zaretskii <eliz@gnu.org>.
3963
3964 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3965
3966         _Noreturn: port config.h to gcc -Wundef
3967         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3968         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3969         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3970
3971 2012-05-10  Bruno Haible  <bruno@clisp.org>
3972
3973         system-quote: Refactor.
3974         * lib/system-quote.h (system_quote_copy): Fix comment.
3975         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3976         New functions, extracted from system_quote_copy.
3977         (system_quote_length, system_quote_copy): Use these functions.
3978         Reported by Paul Eggert.
3979
3980 2012-05-08  Bruno Haible  <bruno@clisp.org>
3981
3982         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3983         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3984
3985 2012-05-08  Bruno Haible  <bruno@clisp.org>
3986
3987         Tests for module 'system-quote'.
3988         * modules/system-quote-tests: New file.
3989         * tests/test-system-quote.sh: New file.
3990         * tests/test-system-quote-main.c: New file.
3991         * tests/test-system-quote-child.c: New file.
3992
3993         New module 'system-quote'.
3994         * lib/system-quote.h: New file.
3995         * lib/system-quote.c: New file.
3996         * modules/system-quote: New file.
3997
3998 2012-05-08  Bruno Haible  <bruno@clisp.org>
3999
4000         sh-quote: Make C++ safe and allow multiple inclusion.
4001         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4002         declarations in extern "C".
4003
4004 2012-05-08  Bruno Haible  <bruno@clisp.org>
4005
4006         sh-quote tests: Make tests stricter.
4007         * tests/test-sh-quote.c (check_one): Check the return value of
4008         shell_quote_copy.
4009         (main): Check a string with a CR character. Check a string that
4010         contains UCHAR_MAX.
4011
4012 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4013
4014         warnings.m4: provide a means to specify the program to compile.
4015         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4016         (gl_WARN_ADD): here.
4017         Use gl_AS_VAR_APPEND.
4018         Support an argument to specify the program to compile.
4019         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4020         AC_SUBST the WARN_CFLAGS when they are used.
4021         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4022         leave this to gl_WARN_ADD.
4023
4024 2012-05-08  Eric Blake  <eblake@redhat.com>
4025
4026         doc: recommendations on gettext version
4027         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4028         choice between versions.
4029         * DEPENDENCIES (gettext): Cover both approaches.
4030
4031 2012-05-08  Jim Meyering  <meyering@redhat.com>
4032
4033         init.sh: explain why EXEEXT support uses aliases rather than functions
4034         * tests/init.sh: Add a comment.
4035
4036         init.sh: don't let bash aliases interfere with tests
4037         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4038         is bash.  This avoids problems for those who alias standard commands to
4039         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4040         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4041
4042 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4043
4044         stdint: be more consistent with glibc, SunOS libc
4045         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4046         (gl_int_fast16_t, gl_uint_fast16_t)
4047         (gl_int_fast32_t, gl_uint_fast32_t)
4048         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4049         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4050         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4051         Be consistent with glibc by default, and with SunOS 5.10 and later
4052         if __sun is defined.  This lessens the likelihood of clashes if
4053         code compiled for older hosts is combined with code compiled for
4054         newer ones.  Problem reported by Niels Möller in
4055         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4056
4057 2012-05-07  Eric Blake  <eblake@redhat.com>
4058
4059         isatty: relax license to LGPLv2+
4060         * modules/isatty (License): Relax license.
4061
4062 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4063
4064         stat-size: comment fix
4065         * lib/stat-size.h: Remove obsolete comment about indenting.
4066
4067 2012-05-06  Bruno Haible  <bruno@clisp.org>
4068
4069         Tests for module 'sh-quote'.
4070         * modules/sh-quote-tests: New file.
4071         * tests/test-sh-quote.c: New file.
4072
4073 2012-05-06  Bruno Haible  <bruno@clisp.org>
4074
4075         sh-quote: Improve shell_quote_argv's signature.
4076         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4077         * lib/sh-quote.c (shell_quote_argv): Likewise.
4078
4079 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4080
4081         stdint: document issues with int_fast8_t etc.
4082         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4083         stdint.h substitutes may define these types differently.  See
4084         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4085
4086 2012-05-05  Bruno Haible  <bruno@clisp.org>
4087
4088         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4090         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4091         or 'guessing no (mishandles large arguments)'.
4092
4093 2012-05-05  Bruno Haible  <bruno@clisp.org>
4094
4095         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4096         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4097         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4098         set gl_cv_func_link_follows_symlink to "guessing no".
4099
4100 2012-05-05  Bruno Haible  <bruno@clisp.org>
4101
4102         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4103         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4104         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4105         "guessing no".
4106         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4107
4108 2012-05-05  Bruno Haible  <bruno@clisp.org>
4109
4110         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4111         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4112         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4113         set gl_cv_struct_dirent_d_ino to "guessing yes".
4114
4115 2012-05-05  Bruno Haible  <bruno@clisp.org>
4116
4117         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4118         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4119         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4120         "guessing yes".
4121
4122 2012-05-05  Bruno Haible  <bruno@clisp.org>
4123
4124         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4125         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4126         compiling to a glibc system, set gl_cv_func_signbit and
4127         gl_cv_func_signbit_gcc to "guessing yes".
4128
4129 2012-05-05  Bruno Haible  <bruno@clisp.org>
4130
4131         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4132         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4133         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4134         to "guessing yes".
4135         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4136         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4137
4138 2012-05-05  Bruno Haible  <bruno@clisp.org>
4139
4140         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4141         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4142         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4143         gl_cv_func_realpath_works to "guessing yes".
4144
4145 2012-05-05  Bruno Haible  <bruno@clisp.org>
4146
4147         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4148         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4149         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4150
4151 2012-05-04  Bruno Haible  <bruno@clisp.org>
4152
4153         Tweak last commit.
4154         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4155         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4156
4157 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4158
4159         unistd_h: make it easier to avoid sys_types_h
4160         This is useful for Emacs, which has its own method of porting to
4161         Windows, and which therefore does not need the sys_types_h module.
4162         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4163         code moved here from gl_SYS_TYPES_H.
4164         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4165         using the code directly.
4166         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4167         gl_SYS_TYPES_H.
4168         * modules/sys_types (Files):
4169         * modules/unistd (Files): Add m4/off_t.m4.
4170
4171 2012-05-03  Bruno Haible  <bruno@clisp.org>
4172
4173         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4174         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4175         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4176         "guessing yes" or "guessing no".
4177         (gl_FUNC_LSTAT): Update.
4178         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4179         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4180         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4181
4182 2012-05-03  Bruno Haible  <bruno@clisp.org>
4183
4184         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4185         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4186         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4187         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4188         cross-compiling, choose the first alternative on glibc systems.
4189         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4190
4191 2012-05-03  Bruno Haible  <bruno@clisp.org>
4192
4193         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4194         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4195         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4196
4197 2012-05-03  Bruno Haible  <bruno@clisp.org>
4198
4199         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4200         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4201
4202 2012-05-03  Bruno Haible  <bruno@clisp.org>
4203
4204         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4205         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4206         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4207         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4208         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4209         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4210         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4211         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4212         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4213         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4214         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4215         gl_cv_func_chown_ctime_works to "guessing yes".
4216         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4217         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4218         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4219         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4220         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4222         compiling to glibc systems, set gl_cv_func_open_directory_works to
4223         "guessing yes".
4224         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4225         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4226         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4227         "guessing yes".
4228         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4229         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4230         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4231         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4232         "guessing yes".
4233         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4234         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4235         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4236         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4237         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4238         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4239         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4240         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4241         "guessing yes".
4242         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4243         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4244         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4245         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4246         "guessing yes".
4247         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4248         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4249         "guessing yes".
4250         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4251         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4252         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4253         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4254         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4255         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4256         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4257         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4258         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4259         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4260         "guessing yes".
4261         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4262         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4263         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4264         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4265         "guessing yes".
4266         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4267         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4268         "guessing yes".
4269         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4270         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4271         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4272         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4273         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4274         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4275         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4276         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4277         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4278         "guessing yes".
4279         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4280         compiling to glibc systems, set gl_cv_func_mknod_works to
4281         "guessing yes".
4282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4283         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4284         "guessing yes".
4285         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4286         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4287         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4288         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4289         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4290         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4291         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4292         compiling to glibc systems, set gl_cv_func_svid_putenv to
4293         "guessing yes".
4294         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4295         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4296         "guessing yes".
4297         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4298         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4299         "guessing yes".
4300         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4301         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4302         to "guessing yes".
4303         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4304         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4305         to "guessing yes".
4306         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4307         compiling to glibc systems, set gl_cv_func_rmdir_works to
4308         "guessing yes".
4309         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4310         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4311         gl_cv_func_unlink_parent_fails to "guessing yes".
4312         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4313         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4314         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4315         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4316         gl_cv_func_rename_dest_works to "guessing yes".
4317         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4318         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4319         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4320         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4321         "guessing yes".
4322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4323         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4324         "guessing yes".
4325         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4326         compiling to glibc systems, set gl_cv_func_setenv_works to
4327         "guessing yes".
4328         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4329         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4330         "guessing yes".
4331         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4332         compiling to glibc systems, set gl_cv_func_sleep_works to
4333         "guessing yes".
4334         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4335         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4336         "guessing yes".
4337         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4338         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4339         "guessing yes".
4340         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4341         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4342         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4343         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4344         "guessing yes".
4345         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4346         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4347         "guessing yes".
4348         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4349         compiling to glibc systems, set gl_cv_func_usleep_works to
4350         "guessing yes".
4351         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4352         compiling to glibc systems, set gl_cv_func_futimesat_works to
4353         "guessing yes".
4354
4355 2012-05-03  Bruno Haible  <bruno@clisp.org>
4356
4357         Say "guessing yes" or "guessing no" when cross-compiling.
4358         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4359         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4360         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4361         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4362         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4363         am_cv_func_working_getline to "guessing yes" or "guessing no".
4364         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4365         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4366         (gl_FUNC_MEMMEM): When cross-compiling, set
4367         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4369         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4371         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4372         "guessing no".
4373         (gl_FUNC_STRCASESTR): When cross-compiling, set
4374         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4375         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4376         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4377         (gl_FUNC_STRSTR): When cross-compiling, set
4378         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4379         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4380         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4381         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4382         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4383
4384 2012-05-01  Bruno Haible  <bruno@clisp.org>
4385
4386         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4387         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4388         * build-aux/reloc-ldflags: Likewise.
4389         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4390
4391 2012-05-01  Bruno Haible  <bruno@clisp.org>
4392
4393         gnulib-tool: Remove transitional code.
4394         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4395         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4396
4397 2012-05-01  Bruno Haible  <bruno@clisp.org>
4398
4399         getcwd: Fix misindentation.
4400         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4401
4402 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4403
4404         exclude: process exclude and include directives in order
4405         This restores the pre-2009 behavior, and is part of a fix of a
4406         grep bug reported by Quentin Arce in
4407         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4408         * lib/exclude.c (struct exclude): Remove 'tail' member.
4409         (new_exclude_segment): Prepend the new segment instead of appending.
4410         Return void, since that's now more convenient.
4411         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4412         (file_name_matches): Renamed from excluded_file_name_p.
4413         (file_pattern_matches, file_name_matches):
4414         Return true if the pattern matches, not if it excludes.
4415         All callers changed.
4416         (excluded_file_name): Process the list in reverse order;
4417         since the list is now reversed this restores the pre-2009 behavior.
4418         (add_exclude): Adjust to new reversed-order list.  Use local var
4419         rather than macro, for clarity.
4420         * tests/test-exclude7.sh: Adjust to corrected behavior.
4421
4422         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4423         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4424         it's not possible here.  Handle the case of \ at end of pattern
4425         without dumping core.
4426         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4427
4428         _Noreturn: future-proof non-GNU and non-MSVC compilers
4429         * build-aux/snippet/_Noreturn.h (_Noreturn):
4430         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4431         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4432         C11 or later.  This is more likely to work with random future C
4433         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4435
4436         exclude: handle wildcards with FNM_EXTMATCH
4437         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4438         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4439         comment that "has wildcards" really means "has or may have
4440         wildcards".  Simplify by avoiding the need to call strcspn.
4441
4442 2012-04-29  Bruno Haible  <bruno@clisp.org>
4443
4444         gnulib-tool: Fix list of authors.
4445         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4446
4447 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4448
4449         bootstrap: support Automake-NG in $buildreq
4450         * bootstrap (check_versions): Handle automake and aclocal from
4451         Automake-NG specially.  They can be specified as respectively
4452         the "automake-ng" and "aclocal-ng" requirements.
4453
4454 2012-04-25  Eric Blake  <eblake@redhat.com>
4455
4456         bootstrap: only force latest Makefile.in.in for gettext module
4457         * build-aux/bootstrap (with_gettext): Only install latest
4458         Makefile.in.in for projects requesting bleeding edge gettext.
4459
4460 2012-04-22  Bruno Haible  <bruno@clisp.org>
4461
4462         doc: Mention reason for replacement on glibc/Linux systems.
4463         * doc/posix-functions/dprintf.texi: Mention the problem with special
4464         'long double' values.
4465         * doc/posix-functions/fprintf.texi: Likewise.
4466         * doc/posix-functions/printf.texi: Likewise.
4467         * doc/posix-functions/snprintf.texi: Likewise.
4468         * doc/posix-functions/sprintf.texi: Likewise.
4469         * doc/posix-functions/vdprintf.texi: Likewise.
4470         * doc/posix-functions/vfprintf.texi: Likewise.
4471         * doc/posix-functions/vprintf.texi: Likewise.
4472         * doc/posix-functions/vsnprintf.texi: Likewise.
4473         * doc/posix-functions/vsprintf.texi: Likewise.
4474         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4475         platforms with F_DUPFD_CLOEXEC problems.
4476         * doc/posix-functions/glob.texi: Mention which platforms are affected
4477         by the problem with symbolic links.
4478         * doc/posix-functions/linkat.texi: Mention the problem with
4479         AT_SYMLINK_FOLLOW on Linux.
4480
4481 2012-04-22  Bruno Haible  <bruno@clisp.org>
4482
4483         pwrite: Don't replace on all platforms.
4484         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4485
4486 2012-04-22  Bruno Haible  <bruno@clisp.org>
4487
4488         rint* tests: Avoid gcc warnings.
4489         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4490         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4491         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4492
4493 2012-04-21  Bruno Haible  <bruno@clisp.org>
4494
4495         users.txt: Update.
4496         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4497         switched from CVS to git, bzr, or svn.
4498
4499 2012-04-21  Bruno Haible  <bruno@clisp.org>
4500
4501         Large File Support for native Windows platforms.
4502
4503         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4504         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4505
4506         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4507         type.
4508         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4509         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4510         * doc/posix-headers/sys_types.texi: Mention the effect of the
4511         'largefile' module.
4512
4513         * lib/fcntl.in.h: Add comments about off_t.
4514         * modules/fcntl-h (Depends-on): Add sys_types.
4515
4516         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4517         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4518         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4519         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4520         * modules/unistd (Depends-on): Add sys_types.
4521         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4522
4523         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4524         instead of lseek.
4525         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4526         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4527         * modules/lseek (Depends-on): Add sys_types.
4528
4529         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4530         msvc-nothrow.h.
4531         (SetFileSize): New function.
4532         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4533         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4534         if Large File Support is requested.
4535         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4536         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4537
4538         * lib/stdio.in.h: Add comments about off_t.
4539         * modules/stdio (Depends-on): Add sys_types.
4540
4541         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4542         instead of ftello.
4543         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4544         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4545         (gl_PREREQ_FTELLO): New macro.
4546         * modules/ftello (Depends-on): Add sys_types.
4547         (configure.ac): Incoke gl_PREREQ_FTELLO.
4548
4549         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4550         instead of fseeko.
4551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4552         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4553         (gl_PREREQ_FSEEKO): New macro.
4554         * modules/fseeko (Depends-on): Add sys_types.
4555         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4556
4557         * lib/sys_stat.in.h: Add comments about off_t.
4558         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4559         64-bit integer for st_size in 'struct stat'.
4560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4561         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4562         * modules/sys_stat (Depends-on): Add sys_types.
4563         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4564
4565         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4566         instead of stat or _stat.
4567
4568         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4569         'struct _stati64' instead of fstat and 'struct stat'.
4570         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4571         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4572
4573         Reported by Ray Satiro <raysatiro@yahoo.com>.
4574
4575 2012-04-19  Eric Blake  <eblake@redhat.com>
4576
4577         bootstrap: accommodate older libtool
4578         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4579         Reported by Daniel P. Berrange.
4580
4581 2012-04-19  Jim Meyering  <meyering@redhat.com>
4582
4583         announce-gen: avoid failure due to lack of Digest::SHA1
4584         Even with the preferred Digest::SHA available, this script
4585         would fail when the backup module, Digest::SHA1, was not installed.
4586         * build-aux/announce-gen: Quote the conditional use of "use".
4587         Reported by Reuben Thomas in:
4588         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4589
4590         bootstrap: don't let a user's CDPATH setting affect this script
4591         When CDPATH is set, cd will sometimes generate output.
4592         When "cd" is run in a subshell whose output matters, that
4593         surprising-to-some output can cause malfunction.
4594         Unsetting CDPATH turns off this shell "feature."
4595         * build-aux/bootstrap (CDPATH): Unset.
4596         Reported by Reuben Thomas in:
4597         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4598         and inspired by his patch here:
4599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4600
4601 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4602         and Jim Meyering  <meyering@redhat.com>
4603
4604         maint.mk: catch "see @xref{}" and similar
4605         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4606         prohibit "See also @xref{", "Also see @pxref{", and similar.
4607
4608 2012-04-16  Jim Meyering  <meyering@redhat.com>
4609
4610         bootstrap: really use gnulib's po/Makefile.in.in
4611         * build-aux/bootstrap: Correct the source file name in previous change.
4612         Reported by Akim Demaille.
4613
4614         configmake: correct minor inconsistency in Makefile rule
4615         * modules/configmake (Makefile.am): All other rules like this one
4616         run the final "mv -f ..." in the same backslash-continued command
4617         as the one that does everything else.  This one put the mv -f ...
4618         command on a separate, non-backslash-continued line.
4619         Make it like the others.
4620
4621         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4622         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4623         the one from gettext.  Reported by Akim Demaille.
4624
4625 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4626
4627         Fix recursion of install-* into po directories.
4628         Bison's install-pdf bug reported by Hans Aberg at
4629         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4630         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4631         (install-info, install-pdf, install-ps): New targets.
4632
4633 2012-04-16  Jim Meyering  <meyering@redhat.com>
4634
4635         maint: avoid spurious "make sc_maint" failure
4636         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4637         exempt all *.class file names, for lib/javaversion.class.
4638
4639 2012-04-15  Bruno Haible  <bruno@clisp.org>
4640
4641         lseek: Make configure test independent of environment.
4642         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4643         Windows, we know that lseek() on pipes is broken; skip the runtime
4644         test.
4645
4646 2012-04-14  Bruno Haible  <bruno@clisp.org>
4647
4648         stat: Bypass buggy override in mingw64.
4649         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4650         * lib/stat.c (stat) [mingw64]: Define to _stat.
4651         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4652
4653 2012-04-14  Bruno Haible  <bruno@clisp.org>
4654
4655         pathmax: Fix compilation error on MSVC 9.
4656         * modules/pathmax (Depends-on): Add unistd.
4657
4658 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4659
4660         README: document pointer comparison assumption
4661         * README (Portability guidelines): Document assumption about
4662         pointer comparisons, in response to a recent bug-gnulib comment by
4663         Jeffrey Kegler.
4664
4665 2012-04-12  Bruno Haible  <bruno@clisp.org>
4666
4667         Tests for module 'getrusage'.
4668         * modules/getrusage-tests: New file.
4669         * tests/test-getrusage.c: New file.
4670
4671         New module 'getrusage'.
4672         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4673         warn-on-use.h.
4674         (getrusage): New declaration.
4675         * lib/getrusage.c: New file.
4676         * m4/getrusage.m4: New file.
4677         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4678         is declared.
4679         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4680         HAVE_GETRUSAGE.
4681         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4682         snippet/c++defs, snippet/warn-on-use.
4683         (Makefile.am): Update generation of sys/resource.h. Substitute
4684         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4685         * modules/getrusage: New file.
4686         * doc/posix-functions/getrusage.texi: Mention the new module.
4687
4688 2012-04-12  Bruno Haible  <bruno@clisp.org>
4689
4690         Tests for module 'sys_resource'.
4691         * modules/sys_resource-tests: New file.
4692         * tests/test-sys_resource.c: New file.
4693
4694         New module 'sys_resource'.
4695         * lib/sys_resource.in.h: New file.
4696         * m4/sys_resource_h.m4: New file.
4697         * modules/sys_resource: New file.
4698         * doc/posix-headers/sys_resource.texi: Mention the new module.
4699
4700 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4701
4702         ioctl: Fix compilation error on mingw.
4703         * lib/ioctl.c: Include <windows.h>.
4704         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4705
4706 2012-04-04  Jim Meyering  <meyering@redhat.com>
4707
4708         regex: correct #pragma guard expression
4709         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4710         not 4.3.  Correct its cpp guard expression.
4711
4712 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4713
4714         regex: remove unnecessary type punning
4715         Problem reported by Vladimir Serbinenko in
4716         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4717         * lib/regex.h (struct re_pattern_buffer): Change the type of
4718         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4719         Fix comment to match code.
4720         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4721         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4722         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4723         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4724         (set_regs):
4725         Omit no-longer-necessary casts.
4726
4727 2012-04-03  Bruno Haible  <bruno@clisp.org>
4728
4729         Tests for module 'ilogbl'.
4730         * modules/ilogbl-tests: New file.
4731         * tests/test-ilogbl.c: New file.
4732
4733         New module 'ilogbl'.
4734         * lib/math.in.h (ilogbl): New declaration.
4735         * lib/ilogbl.c: New file.
4736         * m4/ilogbl.m4: New file.
4737         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4739         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4740         Split sed invocation, to avoid the limit of 100 substitutions of
4741         HP-UX 'sed'.
4742         * modules/ilogbl: New file.
4743         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4744         * doc/posix-functions/ilogbl.texi: Mention the new module.
4745
4746 2012-04-03  Bruno Haible  <bruno@clisp.org>
4747
4748         Tests for module 'ilogbf'.
4749         * modules/ilogbf-tests: New file.
4750         * tests/test-ilogbf.c: New file.
4751
4752         New module 'ilogbf'.
4753         * lib/math.in.h (ilogbf): New declaration.
4754         * lib/ilogbf.c: New file.
4755         * m4/ilogbf.m4: New file.
4756         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4758         REPLACE_ILOGBF.
4759         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4760         REPLACE_ILOGBF.
4761         * modules/ilogbf: New file.
4762         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4763         * doc/posix-functions/ilogbf.texi: Mention the new module.
4764
4765 2012-04-03  Bruno Haible  <bruno@clisp.org>
4766
4767         Tests for module 'ilogb'.
4768         * modules/ilogb-tests: New file.
4769         * tests/test-ilogb.c: New file.
4770         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4771         tests/test-logb-ieee.h.
4772
4773         New module 'ilogb'.
4774         * lib/math.in.h (ilogb): New declaration.
4775         * lib/ilogb.c: New file.
4776         * m4/ilogb.m4: New file.
4777         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4779         REPLACE_ILOGB.
4780         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4781         REPLACE_ILOGB.
4782         * modules/ilogb: New file.
4783         * tests/test-math-c++.cc: Check the declaration of ilogb.
4784         * doc/posix-functions/ilogb.texi: Mention the new module.
4785
4786 2012-04-03  Bruno Haible  <bruno@clisp.org>
4787
4788         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4789         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4790         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4791         (main): Check their values.
4792         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4793         problem.
4794
4795 2012-04-03  Bruno Haible  <bruno@clisp.org>
4796
4797         Tests for module 'logbl-ieee'.
4798         * modules/logbl-ieee-tests: New file.
4799         * tests/test-logbl-ieee.c: New file.
4800
4801         New module 'logbl-ieee'.
4802         * modules/logbl-ieee: New file.
4803
4804         Tests for module 'logb-ieee'.
4805         * modules/logb-ieee-tests: New file.
4806         * tests/test-logb-ieee.c: New file.
4807
4808         New module 'logb-ieee'.
4809         * modules/logb-ieee: New file.
4810
4811         Tests for module 'logbf-ieee'.
4812         * modules/logbf-ieee-tests: New file.
4813         * tests/test-logbf-ieee.c: New file.
4814         * tests/test-logb-ieee.h: New file.
4815
4816         New module 'logbf-ieee'.
4817         * modules/logbf-ieee: New file.
4818
4819 2012-04-03  Bruno Haible  <bruno@clisp.org>
4820
4821         Tests for module 'logbl'.
4822         * modules/logbl-tests: New file.
4823         * tests/test-logbl.c: New file.
4824
4825         New module 'logbl'.
4826         * lib/math.in.h (logbl): New declaration.
4827         * lib/logbl.c: New file.
4828         * m4/logbl.m4: New file.
4829         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4831         REPLACE_LOGBL.
4832         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4833         REPLACE_LOGBL.
4834         * modules/logbl: New file.
4835         * tests/test-math-c++.cc: Check the declaration of logbl.
4836         * doc/posix-functions/logbl.texi: Mention the new module.
4837
4838 2012-04-02  Bruno Haible  <bruno@clisp.org>
4839
4840         Tests for module 'logbf'.
4841         * modules/logbf-tests: New file.
4842         * tests/test-logbf.c: New file.
4843
4844         New module 'logbf'.
4845         * lib/math.in.h (logbf): New declaration.
4846         * lib/logbf.c: New file.
4847         * m4/logbf.m4: New file.
4848         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4850         REPLACE_LOGBF.
4851         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4852         REPLACE_LOGBF.
4853         * modules/logbf: New file.
4854         * tests/test-math-c++.cc: Check the declaration of logbf.
4855         * doc/posix-functions/logbf.texi: Mention the new module.
4856
4857 2012-04-02  Bruno Haible  <bruno@clisp.org>
4858
4859         logb tests: More tests.
4860         * tests/test-logb.h: New file, based on tests/test-logb.c and
4861         tests/test-frexp.h.
4862         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4863         (main): Just invoke test_function.
4864         * modules/logb-tests (Files): Add tests/test-logb.h,
4865         tests/minus-zero.h, tests/randomd.c.
4866         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4867
4868         logb: Provide replacement and workarounds.
4869         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4870         is 1.
4871         * lib/logb.c: New file.
4872         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4873         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4875         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4876         * modules/logb (Files): Add lib/logb.c.
4877         (Depends-on): Add isfinite, frexp, isnand.
4878         (configure.ac): Compile the replacement code logb.c if needed.
4879         * tests/test-math-c++.cc: Check the declaration of logb.
4880         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4881         with subnormal numbers.
4882
4883 2012-04-02  Bruno Haible  <bruno@clisp.org>
4884
4885         log10* tests: Speed up.
4886         * tests/test-log10.h (test_function): Reduce amount of random numbers
4887         to test.
4888
4889 2012-04-01  Bruno Haible  <bruno@clisp.org>
4890
4891         logf-ieee: Fix test whether logf works.
4892         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4893
4894 2012-04-01  Bruno Haible  <bruno@clisp.org>
4895
4896         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4897         * lib/log10l.c: Include <float.h>
4898         (log10l): On IRIX, normalize the +Infinity value.
4899         * modules/log10l (Depends-on): Add 'float'.
4900         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4901         +Infinity.
4902
4903         log10f-ieee: Work around test failure on NetBSD 5.1.
4904         * m4/log10f-ieee.m4: New file.
4905         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4906         test whether log10f works with a negative argument. Replace it if not.
4907         * lib/log10f.c (log10f): For negative arguments, return NaN.
4908         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4909         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4910         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4911
4912         log10f-ieee: Work around test failure on Solaris 9.
4913         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4914         (configure.ac): Require gl_FUNC_LOG10F.
4915
4916         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4917         * m4/log10-ieee.m4: New file.
4918         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4919         whether log10 works with a negative argument. Replace it if not.
4920         * lib/log10.c (log10): For negative arguments, return NaN.
4921         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4922         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4923         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4924
4925         Tests for module 'log10l-ieee'.
4926         * modules/log10l-ieee-tests: New file.
4927         * tests/test-log10l-ieee.c: New file.
4928
4929         New module 'log10l-ieee'.
4930         * modules/log10l-ieee: New file.
4931
4932         Tests for module 'log10-ieee'.
4933         * modules/log10-ieee-tests: New file.
4934         * tests/test-log10-ieee.c: New file.
4935
4936         New module 'log10-ieee'.
4937         * modules/log10-ieee: New file.
4938
4939         Tests for module 'log10f-ieee'.
4940         * modules/log10f-ieee-tests: New file.
4941         * tests/test-log10f-ieee.c: New file.
4942         * tests/test-log10-ieee.h: New file.
4943
4944         New module 'log10f-ieee'.
4945         * modules/log10f-ieee: New file.
4946
4947 2012-04-01  Bruno Haible  <bruno@clisp.org>
4948
4949         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4950         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4951         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4952         workaround.
4953         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4954         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4956         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4957         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4958         (Depends-on): Update conditions.
4959         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4960         IRIX 6.5, OSF/1 5.1 problems.
4961
4962 2012-04-01  Bruno Haible  <bruno@clisp.org>
4963
4964         log10f: Work around OSF/1 5.1 bug.
4965         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4966         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4967         workaround.
4968         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4969         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4971         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4972         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4973         (Depends-on): Update conditions.
4974         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4975
4976 2012-04-01  Bruno Haible  <bruno@clisp.org>
4977
4978         log10: Work around OSF/1 5.1 bug.
4979         * lib/math.in.h (log10): New declaration.
4980         * lib/log10.c: New file.
4981         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4982         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4983         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4985         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4986         * modules/log10 (Files): Add lib/log10.c.
4987         (Depends-on): Add math.
4988         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4989         * tests/test-math-c++.cc: Check the declaration of log10.
4990         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4991
4992 2012-03-31  Bruno Haible  <bruno@clisp.org>
4993
4994         log10l tests: More tests.
4995         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4996         tests/minus-zero.h, tests/randoml.c.
4997         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4998         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4999         (main): Invoke test_function.
5000
5001         log10f tests: More tests.
5002         * modules/log10f-tests (Files): Add tests/test-log10.h,
5003         tests/minus-zero.h, tests/randomf.c.
5004         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5005         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5006         (main): Invoke test_function.
5007
5008         log10 tests: More tests.
5009         * tests/test-log10.h: New file.
5010         * modules/log10-tests (Files): Add tests/test-log10.h,
5011         tests/minus-zero.h, tests/randomd.c.
5012         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5013         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5014         (main): Invoke test_function.
5015
5016 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5017
5018         fflush: Fix syntax error.
5019         * lib/fflush.c: Include unused-parameter.h, needed for
5020         _GL_UNUSED_PARAMETER.
5021         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5022
5023 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5024
5025         regex: pacify GCC when compiling GRUB
5026         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5027         a diagnostic.  Reported by Vladimir Serbinenko in
5028         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5029
5030 2012-03-29  Eric Blake  <eblake@redhat.com>
5031
5032         stdio: don't assume gets any more
5033         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5034         support.
5035         * modules/stdio (Makefile.am): Likewise.
5036         * lib/stdio-read.c (gets): Likewise.
5037         * tests/test-stdio-c++.cc: Likewise.
5038         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5039         * lib/stdio.in.h (gets): Make warning occur in more places.
5040         * doc/posix-functions/gets.texi (gets): Update documentation.
5041         Reported by Christer Solskogen.
5042
5043         maint.mk: fix syntax checks without exclusions
5044         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5045         Reported by Daniel P. Berrange.
5046
5047         strerror_r: avoid compiler warning
5048         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5049         level.
5050
5051         fflush: avoid compiler warning
5052         * lib/fflush.c (update_fpos_cache): Mark variables that are
5053         potentially unused.
5054
5055 2012-03-25  Bruno Haible  <bruno@clisp.org>
5056
5057         Tests for module 'localeconv'.
5058         * modules/localeconv-tests: New file.
5059         * tests/test-localeconv.c: New file.
5060
5061         New module 'localeconv'.
5062         * lib/locale.in.h (localeconv): New declaration.
5063         * lib/localeconv.c: New file.
5064         * m4/localeconv.m4: New file.
5065         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5066         REPLACE_LOCALECONV.
5067         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5068         REPLACE_LOCALECONV.
5069         * modules/localeconv: New file.
5070         * modules/nl_langinfo (Depends-on): Add localeconv.
5071         * modules/human (Depends-on): Likewise.
5072         * doc/posix-functions/localeconv.texi: Mention the new module.
5073
5074 2012-03-25  Bruno Haible  <bruno@clisp.org>
5075
5076         locale: Provide a complete 'struct lconv'.
5077         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5078         'struct lconv' does not contain int_p_cs_precedes.
5079         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5080         * doc/posix-headers/locale.texi: Update.
5081
5082         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5083         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5084         * doc/posix-headers/locale.texi: Update.
5085
5086         locale: Provide a working 'struct lconv'.
5087         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5088         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5089         'struct lconv' does not even contain decimal_point.
5090         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5091         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5092         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5093         * doc/posix-headers/locale.texi: Mention the problems with
5094         'struct lconv'.
5095         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5096
5097 2012-03-24  Bruno Haible  <bruno@clisp.org>
5098
5099         Enable common subexpression optimization in GCC.
5100         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5101         macros.
5102         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5103         GCC attribute 'const'.
5104         (uc_locale_language): Declare with GCC attribute 'pure'.
5105         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5106         with GCC attribute 'const'.
5107         * lib/unictype.in.h (uc_is_general_category_withtable,
5108         uc_combining_class, uc_combining_class_name,
5109         uc_combining_class_long_name, uc_bidi_class_name,
5110         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5111         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5112         uc_decimal_value, uc_digit_value, uc_numeric_value,
5113         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5114         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5115         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5116         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5117         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5118         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5119         Declare with GCC attribute 'const'.
5120         (uc_general_category_name, uc_general_category_long_name,
5121         uc_general_category_byname, uc_general_category,
5122         uc_is_general_category, uc_combining_class_byname,
5123         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5124         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5125         Declare with GCC attribute 'pure'.
5126         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5127         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5128         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5129         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5130         with GCC attribute 'pure'.
5131         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5132         'const'.
5133         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5134         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5135         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5136         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5137         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5138         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5139         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5140         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5141         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5142         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5143         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5144         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5145         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5146         GCC attribute 'pure'.
5147         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5148         'const'.
5149         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5150         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5151         u32_strwidth): Declare with GCC attribute 'pure'.
5152
5153         Enable common subexpression optimization in GCC.
5154         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5155         (alphasort): Declare with GCC attribute 'pure'.
5156         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5157         (atoll): Declare with GCC attribute 'pure'.
5158         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5159         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5160         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5161         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5162         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5163         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5164         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5165
5166 2012-03-24  Bruno Haible  <bruno@clisp.org>
5167
5168         gnulib-tool: Avoid unintended error output from 'cmp'.
5169         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5170         "cmp -s", not "cmp > /dev/null".
5171
5172 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5173
5174         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5175
5176         It's not just Automake versions < 1.9b that creates an empty
5177         pkgdatadir at installation time if pkgdata_DATA is specified
5178         to empty; modern automake versions do this as well, at least
5179         until automake 1.11.4 (not yet released at the moment of writing,
5180         but soon to appear).  That behaviour was generally considered a
5181         feature rather than a bug, at least until this discussion:
5182         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5183
5184         See also automake bugs #10997 and #11030.
5185
5186         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5187         reference to relevant automake bug numbers.
5188         (func_emit_tests_Makefile_am): Likewise.
5189
5190 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5191
5192         announce-gen: use Digest::SHA when possible
5193         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5194         back to Digest::SHA1 if necessary.
5195
5196 2012-03-20  Jim Meyering  <meyering@redhat.com>
5197
5198         tests: avoid gcc warnings about argv vs. const initializers
5199         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5200         warnings about discarding 'const' qualifier from pointer target type.
5201         * tests/test-posix_spawn2.c (main): Likewise.
5202
5203 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5204
5205         README-release: simplify slightly
5206         * top/README-release: Run "git checkout master" only once.
5207
5208 2012-03-15  Mark Wielaard  <mark@klomp.org>
5209
5210         git-merge-changelog: add specific example on how to use with hg.
5211         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5212
5213 2012-03-18  Mark Wielaard  <mark@klomp.org>
5214
5215         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5216
5217 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5218
5219         git-version-gen: don't let "prefix" envvar cause trouble
5220         * build-aux/git-version-gen (prefix): Initialize properly,
5221         so as not to use a value specified via the environment.
5222         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5223
5224 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5225
5226         regex: diagnose too-large repeat counts in EREs
5227         Previously, the code did not diagnose the too-large repeat count
5228         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5229         as if it were 'b\{1000000000}', which is unexpected.
5230         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5231         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5232         is a reasonable one for this problem.  Another option would be to
5233         create a new REG_OVERFLOW error for repeat counts that are too large.
5234         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5235         count is too large, so that the caller can distinguish the two cases.
5236         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5237         "Too large" return code, and that repeat counts are one example of this.
5238
5239 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5240
5241         doc: some glibc x32 integer width issues
5242         * doc/posix-headers/sys_types.texi (sys/types.h):
5243         * doc/posix-headers/time.texi (time.h):
5244         Mention that glibc x32 does not conform to POSIX in a couple of
5245         areas related to integer widths.
5246
5247 2012-03-15  Bruno Haible  <bruno@clisp.org>
5248
5249         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5250         * lib/fma.c (VOLATILE): New macro.
5251         (FUNC): Use it to work around a GCC compiler bug.
5252
5253 2012-03-13  Bruno Haible  <bruno@clisp.org>
5254
5255         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5256         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5257         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5258         REPLACE_HYPOTL to 1.
5259         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5260
5261 2012-03-13  Bruno Haible  <bruno@clisp.org>
5262
5263         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5264         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5265         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5266         REPLACE_REMAINDERL to 1.
5267         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5268         bug.
5269
5270 2012-03-13  Bruno Haible  <bruno@clisp.org>
5271
5272         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5273         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5274         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5275         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5276         too big rounding errors.
5277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5278         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5279         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5280         (Depends-on): Update conditions.
5281         * tests/test-sqrtl.c (my_ldexpl): New function.
5282         (main): Add test of a particular value.
5283         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5284
5285 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5286
5287         doc: Update timer_* platform portability notes.
5288         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5289         that always return ENOSYS.
5290         * doc/posix-functions/timer_delete.texi: Likewise.
5291         * doc/posix-functions/timer_gettime.texi: Likewise.
5292         * doc/posix-functions/timer_settime.texi: Likewise.
5293
5294 2012-03-13  Bruno Haible  <bruno@clisp.org>
5295
5296         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5297         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5298         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5299         REPLACE_CBRTL to 1.
5300         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5301
5302 2012-03-13  Bruno Haible  <bruno@clisp.org>
5303
5304         remainderl: Avoid compilation error on AIX >= 5.2.
5305         * lib/math.in.h (remainderl): Undefine macro from the system header.
5306
5307 2012-03-13  Bruno Haible  <bruno@clisp.org>
5308
5309         Avoid compilation errors with MSVC option -fp:strict.
5310         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5311         * lib/cbrtf.c: Likewise.
5312         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5313
5314 2012-03-12  Bruno Haible  <bruno@clisp.org>
5315
5316         uninorm: Don't crash in out-of-memory conditions.
5317         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5318         gracefully.
5319         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5320         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5321
5322 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5323
5324         quote: fix syntax-check
5325         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5326         also exports quote_quoting_options.
5327
5328 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5329
5330         Collapse list of copyright years to ranges.  See
5331         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5332         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5333         build-aux/csharpexec.sh.in, build-aux/gnupload,
5334         build-aux/install-reloc, build-aux/javacomp.sh.in,
5335         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5336         build-aux/move-if-change, build-aux/reloc-ldflags,
5337         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5338
5339 2012-03-11  Bruno Haible  <bruno@clisp.org>
5340
5341         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5342         * m4/log2f-ieee.m4: New file.
5343         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5344         whether log2f works with a minus zero argument. Replace it if not.
5345         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5346         (Depends-on): Add log2-ieee.
5347         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5348         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5349
5350         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5351         * m4/log2-ieee.m4: New file.
5352         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5353         whether log2 works with a minus zero argument. Replace it if not.
5354         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5355         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5356         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5357
5358         Tests for module 'log2l-ieee'.
5359         * modules/log2l-ieee-tests: New file.
5360         * tests/test-log2l-ieee.c: New file.
5361
5362         New module 'log2l-ieee'.
5363         * modules/log2l-ieee: New file.
5364
5365         Tests for module 'log2-ieee'.
5366         * modules/log2-ieee-tests: New file.
5367         * tests/test-log2-ieee.c: New file.
5368
5369         New module 'log2-ieee'.
5370         * modules/log2-ieee: New file.
5371
5372         Tests for module 'log2f-ieee'.
5373         * modules/log2f-ieee-tests: New file.
5374         * tests/test-log2f-ieee.c: New file.
5375         * tests/test-log2-ieee.h: New file.
5376
5377         New module 'log2f-ieee'.
5378         * modules/log2f-ieee: New file.
5379
5380 2012-03-11  Bruno Haible  <bruno@clisp.org>
5381
5382         Tests for module 'log2l'.
5383         * modules/log2l-tests: New file.
5384         * tests/test-log2l.c: New file.
5385
5386         New module 'log2l'.
5387         * lib/math.in.h (log2l): New declaration.
5388         * lib/log2l.c: New file.
5389         * m4/log2l.m4: New file.
5390         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5392         REPLACE_LOG2L.
5393         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5394         REPLACE_LOG2L.
5395         * modules/log2l: New file.
5396         * tests/test-math-c++.cc: Check the declaration of log2l.
5397         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5398         and OSF/1 problems.
5399
5400 2012-03-11  Bruno Haible  <bruno@clisp.org>
5401
5402         Tests for module 'log2f'.
5403         * modules/log2f-tests: New file.
5404         * tests/test-log2f.c: New file.
5405
5406         New module 'log2f'.
5407         * lib/math.in.h (log2f): New declaration.
5408         * lib/log2f.c: New file.
5409         * m4/log2f.m4: New file.
5410         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5412         REPLACE_LOG2F.
5413         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5414         REPLACE_LOG2F.
5415         * modules/log2f: New file.
5416         * tests/test-math-c++.cc: Check the declaration of log2f.
5417         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5418         and OSF/1 and Cygwin problems.
5419
5420 2012-03-11  Bruno Haible  <bruno@clisp.org>
5421
5422         Tests for module 'log2'.
5423         * modules/log2-tests: New file.
5424         * tests/test-log2.c: New file.
5425         * tests/test-log2.h: New file.
5426
5427         New module 'log2'.
5428         * lib/math.in.h (log2): New declaration.
5429         * lib/log2.c: New file.
5430         * m4/log2.m4: New file.
5431         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5433         REPLACE_LOG2.
5434         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5435         REPLACE_LOG2.
5436         * modules/log2: New file.
5437         * tests/test-math-c++.cc: Check the declaration of log2.
5438         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5439         and OSF/1 and Cygwin problems.
5440
5441 2012-03-11  Bruno Haible  <bruno@clisp.org>
5442
5443         exp2* tests: More tests.
5444         * tests/test-exp2.h (test_function): Test all integral arguments that
5445         don't need to overflow or denormalized numbers.
5446         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5447         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5448         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5449
5450 2012-03-10  Bruno Haible  <bruno@clisp.org>
5451
5452         log1pl-ieee: Work around test failure on AIX 7.1.
5453         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5454
5455         log1pl-ieee: Work around test failure on IRIX 6.5.
5456         * m4/log1pl-ieee.m4: New file.
5457         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5458         test whether log1pl works with a minus zero argument. Replace it if
5459         not.
5460         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5462         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5463         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5464         (Depends-on): Update conditions.
5465         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5466         m4/signbit.m4.
5467         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5468         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5469
5470         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5471         * m4/log1pf-ieee.m4: New file.
5472         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5473         test whether log1pf works with a minus zero argument. Replace it if
5474         not.
5475         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5476         m4/signbit.m4.
5477         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5478         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5479
5480         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5481         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5482         (configure.ac): Require gl_FUNC_LOG1PF.
5483
5484         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5485         * m4/log1p-ieee.m4: New file.
5486         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5487         whether log1p works with a minus zero argument. Replace it if not.
5488         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5490         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5491         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5492         (Depends-on): Update conditions.
5493         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5494         m4/signbit.m4.
5495         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5496         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5497
5498         Tests for module 'log1pl-ieee'.
5499         * modules/log1pl-ieee-tests: New file.
5500         * tests/test-log1pl-ieee.c: New file.
5501
5502         New module 'log1pl-ieee'.
5503         * modules/log1pl-ieee: New file.
5504
5505         Tests for module 'log1p-ieee'.
5506         * modules/log1p-ieee-tests: New file.
5507         * tests/test-log1p-ieee.c: New file.
5508
5509         New module 'log1p-ieee'.
5510         * modules/log1p-ieee: New file.
5511
5512         Tests for module 'log1pf-ieee'.
5513         * modules/log1pf-ieee-tests: New file.
5514         * tests/test-log1pf-ieee.c: New file.
5515         * tests/test-log1p-ieee.h: New file.
5516
5517         New module 'log1pf-ieee'.
5518         * modules/log1pf-ieee: New file.
5519
5520 2012-03-10  Bruno Haible  <bruno@clisp.org>
5521
5522         Tests for module 'log1pl'.
5523         * modules/log1pl-tests: New file.
5524         * tests/test-log1pl.c: New file.
5525
5526         New module 'log1pl'.
5527         * lib/math.in.h (log1pl): New declaration.
5528         * lib/log1pl.c: New file.
5529         * m4/log1pl.m4: New file.
5530         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5532         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5533         * modules/log1pl: New file.
5534         * tests/test-math-c++.cc: Check the declaration of log1pl.
5535         * doc/posix-functions/log1pl.texi: Mention the new module.
5536
5537 2012-03-10  Bruno Haible  <bruno@clisp.org>
5538
5539         Tests for module 'log1pf'.
5540         * modules/log1pf-tests: New file.
5541         * tests/test-log1pf.c: New file.
5542
5543         New module 'log1pf'.
5544         * lib/math.in.h (log1pf): New declaration.
5545         * lib/log1pf.c: New file.
5546         * m4/log1pf.m4: New file.
5547         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5549         REPLACE_LOG1PF.
5550         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5551         REPLACE_LOG1PF.
5552         * modules/log1pf: New file.
5553         * tests/test-math-c++.cc: Check the declaration of log1pf.
5554         * doc/posix-functions/log1pf.texi: Mention the new module.
5555
5556 2012-03-10  Bruno Haible  <bruno@clisp.org>
5557
5558         log1p tests: More tests.
5559         * tests/test-log1p.h: New file.
5560         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5561         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5562         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5563         (main): Invoke test_function.
5564
5565         log1p: Provide replacement for Minix and MSVC.
5566         * lib/math.in.h (log1p): New declaration.
5567         * lib/log1p.c: New file.
5568         * m4/log1p.m4: New file.
5569         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5571         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5572         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5573         (Depends-on): Add math, isnand, log, round.
5574         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5575         HAVE_LOG1P is 0.
5576         * tests/test-math-c++.cc: Check the declaration of log1p.
5577         * doc/posix-functions/log1p.texi: Mention the replacement.
5578
5579 2012-03-10  Bruno Haible  <bruno@clisp.org>
5580
5581         math tests: Small simplification.
5582         * tests/test-exp.h (test_function): Use the same err_bound for
5583         'double' on platforms with sizeof (long double) == sizeof (double)
5584         than on platforms with sizeof (long double) > sizeof (double).
5585         * tests/test-exp2.h (test_function): Likewise.
5586         * tests/test-expm1.h (test_function): Likewise.
5587         * tests/test-log.h (test_function): Likewise.
5588
5589 2012-03-10  Bruno Haible  <bruno@clisp.org>
5590
5591         Fix some comments.
5592         * lib/expl.c: Fix an ambiguous comment.
5593         * lib/expm1.c: Likewise.
5594         * lib/expm1l.c: Likewise.
5595         * lib/exp2.c: Likewise.
5596         * lib/exp2l.c: Likewise.
5597
5598 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5599
5600         regex: allow inclusion of <regex.h> before <limits.h>
5601         Without this patch, portable programs had to include <limits.h> before
5602         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5603         I ran into this problem with a test version of GNU grep on Solaris 8.
5604         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5605         This is done conditionally so that this change can be merged
5606         back to glibc.
5607         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5608         using the included regex.
5609
5610         fts: depend on fdopendir
5611         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5612         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5613         problem was introduced when fdopendir was split out.
5614
5615 2012-03-10  Bruno Haible  <bruno@clisp.org>
5616
5617         Remove unused variables.
5618         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5619         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5620
5621 2012-03-10  Bruno Haible  <bruno@clisp.org>
5622
5623         isnanf-nolibm: Fix last commit.
5624         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5625
5626         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5627         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5628
5629 2012-03-10  Bruno Haible  <bruno@clisp.org>
5630
5631         logf-ieee: Work around test failure on NetBSD 5.1.
5632         * m4/logf-ieee.m4: New file.
5633         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5634         whether logf works with a negative argument. Replace it if not.
5635         * lib/logf.c (logf): For negative arguments, return NaN.
5636         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5637         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5638         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5639
5640         logf-ieee: Work around test failure on Solaris 9.
5641         * modules/logf-ieee (Depends-on): Add log-ieee.
5642         (configure.ac): Require gl_FUNC_LOGF.
5643
5644         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5645         * m4/log-ieee.m4: New file.
5646         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5647         log works with a negative argument. Replace it if not.
5648         * lib/log.c (log): For negative arguments, return NaN.
5649         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5650         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5651         * doc/posix-functions/log.texi: Mention the log-ieee module.
5652
5653         Tests for module 'logl-ieee'.
5654         * modules/logl-ieee-tests: New file.
5655         * tests/test-logl-ieee.c: New file.
5656
5657         New module 'logl-ieee'.
5658         * modules/logl-ieee: New file.
5659
5660         Tests for module 'log-ieee'.
5661         * modules/log-ieee-tests: New file.
5662         * tests/test-log-ieee.c: New file.
5663
5664         New module 'log-ieee'.
5665         * modules/log-ieee: New file.
5666
5667         Tests for module 'logf-ieee'.
5668         * modules/logf-ieee-tests: New file.
5669         * tests/test-logf-ieee.c: New file.
5670         * tests/test-log-ieee.h: New file.
5671
5672         New module 'logf-ieee'.
5673         * modules/logf-ieee: New file.
5674
5675 2012-03-10  Bruno Haible  <bruno@clisp.org>
5676
5677         log: Fix bug introduced on 2012-03-09.
5678         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5679
5680 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5681
5682         timer-time: link explicitly with pthreads on glibc
5683         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5684         to support static linking, when newer glibc is
5685         detected, as that contains pthread emulation of
5686         POSIX timer functions where required.
5687         * modules/timer-time: Depend on threadlib to
5688         pull in the appropriate library to link.
5689
5690 2012-03-10  Bruno Haible  <bruno@clisp.org>
5691
5692         log* tests: More tests.
5693         * tests/test-log.h: New file.
5694         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5695         (main): Invoke test_function.
5696         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5697         (main): Invoke test_function.
5698         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5699         (main): Invoke test_function.
5700         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5701         tests/randomd.c.
5702         (Makefile.am): Add randomd.c to test_log_SOURCES.
5703         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5704         tests/randomf.c.
5705         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5706         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5707         tests/randoml.c.
5708         (Depends-on): Add 'float'.
5709         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5710
5711 2012-03-09  Bruno Haible  <bruno@clisp.org>
5712
5713         logl: Work around OSF/1 5.1 bug.
5714         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5715         * lib/logl.c (logl): If logl exists, use it and provide just the
5716         workaround.
5717         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5718         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5720         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5721         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5722         (Depends-on): Update conditions.
5723         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5724
5725 2012-03-09  Bruno Haible  <bruno@clisp.org>
5726
5727         logf: Work around OSF/1 5.1 bug.
5728         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5729         * lib/logf.c (logf): If logf exists, use it and provide just the
5730         workaround.
5731         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5732         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5734         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5735         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5736         (Depends-on): Update conditions.
5737         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5738
5739 2012-03-09  Bruno Haible  <bruno@clisp.org>
5740
5741         log: Work around OSF/1 5.1 bug.
5742         * lib/math.in.h (log): New declaration.
5743         * lib/log.c: New file.
5744         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5745         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5746         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5748         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5749         * modules/log (Files): Add lib/log.c.
5750         (Depends-on): Add math.
5751         (configure.ac): If REPLACE_LOG is 1, compile an override.
5752         * tests/test-math-c++.cc: Check the declaration of log.
5753         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5754
5755 2012-03-09  Jim Meyering  <meyering@redhat.com>
5756
5757         readtokens.c: adjust wording in a comment
5758         * lib/readtokens.c: Insert omitted "that" in a comment.
5759
5760 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5761
5762         modechange: add notations +40, 00440, etc.
5763         * lib/modechange.c (mode_compile): Support new notations
5764         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5765
5766 2012-03-08  Bruno Haible  <bruno@clisp.org>
5767
5768         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5769         * m4/exp2l-ieee.m4: New file.
5770         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5771         test whether exp2l works with a NaN argument and with a negative
5772         infinity argument. Replace it if not.
5773         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5775         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5776         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5777         (Depends-on): Update conditions.
5778         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5779         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5780         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5781
5782         Tests for module 'exp2l-ieee'.
5783         * modules/exp2l-ieee-tests: New file.
5784         * tests/test-exp2l-ieee.c: New file.
5785
5786         New module 'exp2l-ieee'.
5787         * modules/exp2l-ieee: New file.
5788
5789         Tests for module 'exp2-ieee'.
5790         * modules/exp2-ieee-tests: New file.
5791         * tests/test-exp2-ieee.c: New file.
5792
5793         New module 'exp2-ieee'.
5794         * modules/exp2-ieee: New file.
5795
5796         Tests for module 'exp2f-ieee'.
5797         * modules/exp2f-ieee-tests: New file.
5798         * tests/test-exp2f-ieee.c: New file.
5799         * tests/test-exp2-ieee.h: New file.
5800
5801         New module 'exp2f-ieee'.
5802         * modules/exp2f-ieee: New file.
5803
5804 2012-03-08  Bruno Haible  <bruno@clisp.org>
5805
5806         Tests for module 'exp2l'.
5807         * modules/exp2l-tests: New file.
5808         * tests/test-exp2l.c: New file.
5809
5810         New module 'exp2l'.
5811         * lib/math.in.h (exp2l): New declaration.
5812         * lib/exp2l.c: New file.
5813         * lib/expl-table.c: New file, extracted from lib/expl.c.
5814         * lib/expl.c (gl_expl_table): New declaration.
5815         (expl): Remove expl_table. Update reference.
5816         * m4/exp2l.m4: New file.
5817         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5819         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5820         * modules/exp2l: New file.
5821         * modules/expl (Files): Add lib/expl-table.c.
5822         (configure.ac): Compile also expl-table.c.
5823         * tests/test-math-c++.cc: Check the declaration of exp2l.
5824         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5825         problem.
5826
5827 2012-03-08  Bruno Haible  <bruno@clisp.org>
5828
5829         Tests for module 'exp2f'.
5830         * modules/exp2f-tests: New file.
5831         * tests/test-exp2f.c: New file.
5832
5833         New module 'exp2f'.
5834         * lib/math.in.h (exp2f): New declaration.
5835         * lib/exp2f.c: New file.
5836         * m4/exp2f.m4: New file.
5837         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5839         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5840         * modules/exp2f: New file.
5841         * tests/test-math-c++.cc: Check the declaration of exp2f.
5842         * doc/posix-functions/exp2f.texi: Mention the new module and the
5843         IRIX problem.
5844
5845 2012-03-08  Bruno Haible  <bruno@clisp.org>
5846
5847         Tests for module 'exp2'.
5848         * modules/exp2-tests: New file.
5849         * tests/test-exp2.c: New file.
5850         * tests/test-exp2.h: New file.
5851
5852         New module 'exp2'.
5853         * lib/math.in.h (exp2): New declaration.
5854         * lib/exp2.c: New file.
5855         * m4/exp2.m4: New file.
5856         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5858         REPLACE_EXP2.
5859         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5860         REPLACE_EXP2.
5861         * modules/exp2: New file.
5862         * tests/test-math-c++.cc: Check the declaration of exp2.
5863         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5864         and OpenBSD problems.
5865
5866 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5867
5868         savedir: fix comment typo
5869         * lib/savedir.c (savedirstream): Fix typo in comment.
5870
5871 2012-03-08  Bruno Haible  <bruno@clisp.org>
5872
5873         test-readtokens.c: use const; remove unwarranted cast
5874         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5875
5876 2012-03-08  Bruno Haible  <bruno@clisp.org>
5877
5878         fmal: Avoid compilation error on AIX.
5879         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5880         AIX 5.2..7.1.
5881
5882 2012-03-08  Bruno Haible  <bruno@clisp.org>
5883
5884         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5885         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5886         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5887         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5888         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5889         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5890         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5891
5892 2012-03-08  Bruno Haible  <bruno@clisp.org>
5893
5894         remainderf: Override buggy system function on IRIX 6.5.
5895         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5896         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5897         when it exists.
5898         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5899
5900 2012-03-08  Jim Meyering  <meyering@redhat.com>
5901
5902         test-readtokens.c: avoid const-related compilation warnings
5903         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5904
5905 2012-03-07  Jim Meyering  <meyering@redhat.com>
5906             Bruno Haible  <bruno@clisp.org>
5907
5908         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5909         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5910         tests/randomd.c.
5911         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5912         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5913         tests/randoml.c.
5914         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5915
5916 2012-03-07  Bruno Haible  <bruno@clisp.org>
5917
5918         expm1l: Avoid compilation error on AIX.
5919         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5920         AIX 5.2..7.1.
5921
5922 2012-03-07  Bruno Haible  <bruno@clisp.org>
5923
5924         expm1l: Don't override undeclared system function on IRIX 6.5.
5925         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5926         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5927         it exists. Set HAVE_DECL_EXPM1L.
5928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5929         HAVE_EXPM1L.
5930         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5931         HAVE_EXPM1L.
5932         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5933
5934 2012-03-07  Bruno Haible  <bruno@clisp.org>
5935
5936         remainderl: Don't override undeclared system function on IRIX 6.5.
5937         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5938         HAVE_REMAINDERL.
5939         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5940         declared when it exists. Set HAVE_DECL_REMAINDERL.
5941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5942         not HAVE_REMAINDERL.
5943         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5944         HAVE_REMAINDERL.
5945         * doc/posix-functions/remainderl.texi: Mention missing declaration
5946         problem.
5947
5948 2012-03-07  Bruno Haible  <bruno@clisp.org>
5949
5950         rintf: Don't override undeclared system function on IRIX 6.5.
5951         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5952         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5953         exists. Set HAVE_DECL_RINTF.
5954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5955         HAVE_RINTF.
5956         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5957         HAVE_RINTF.
5958         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5959
5960 2012-03-07  Bruno Haible  <bruno@clisp.org>
5961
5962         roundl: Avoid compilation error on AIX.
5963         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5964         AIX 5.2..7.1.
5965
5966 2012-03-07  Bruno Haible  <bruno@clisp.org>
5967
5968         roundl: Don't override undeclared system function on IRIX 6.5.
5969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5970         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5971         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5972         * modules/roundl (configure.ac): For replacement code, test
5973         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5974         (Depends-on): Update conditions.
5975         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5976
5977 2012-03-07  Bruno Haible  <bruno@clisp.org>
5978
5979         roundf: Don't override undeclared system function on IRIX 6.5.
5980         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5981         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5982         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5983         * modules/roundf (configure.ac): For replacement code, test
5984         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5985         (Depends-on): Update conditions.
5986         * modules/roundf-ieee (Depends-on): Update conditions.
5987         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5988
5989 2012-03-07  Bruno Haible  <bruno@clisp.org>
5990
5991         round: Don't override undeclared system function on IRIX 6.5.
5992         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5993         argument.
5994         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5995         also when it is not declared. Set HAVE_ROUND. For replacement code,
5996         test HAVE_ROUND, not HAVE_DECL_ROUND.
5997         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5998         not HAVE_DECL_ROUND.
5999         (Depends-on): Update conditions.
6000         * modules/round-ieee (Depends-on): Update conditions.
6001         * doc/posix-functions/round.texi: Mention the IRIX problem.
6002
6003 2012-03-07  Bruno Haible  <bruno@clisp.org>
6004
6005         copysignf: Don't override undeclared system function on IRIX 6.5.
6006         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6007         HAVE_COPYSIGNF.
6008         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6009         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6011         not HAVE_COPYSIGNF.
6012         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6013         HAVE_COPYSIGNF.
6014         * doc/posix-functions/copysignf.texi: Mention missing declaration
6015         problem.
6016
6017 2012-03-07  Jim Meyering  <meyering@redhat.com>
6018
6019         readtokens: add tests
6020         * modules/readtokens-tests: New file.
6021         * tests/test-readtokens.c: New file.
6022
6023 2012-03-07  Jim Meyering  <meyering@redhat.com>
6024
6025         quotearg: the module must now include quote.h
6026         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6027         So must the module.
6028         * modules/quotearg (Files): Add quote.h.
6029
6030 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6031
6032         readtokens: avoid core dumps with unusual calling patterns
6033         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6034         * lib/readtokens.c: Include limits.h.
6035         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6036         (readtoken): Don't cache the delimiters; the cache code was buggy
6037         if !delim && saved_delim, or if the new n_delim differs from the old.
6038         Also, it wasn't thread-safe.
6039
6040 2012-03-07  Bruno Haible  <bruno@clisp.org>
6041
6042         quote: Adhere to common module description layout.
6043         * modules/quote (Makefile.am): Add back empty section.
6044
6045 2012-03-06  Akim Demaille  <demaille@gostai.com>
6046
6047         quote: fuse into quotearg
6048         This patch is made for the benefit of Bison.
6049         quote does not leave the choice of the quoting style to the user.
6050         quoting_style provides poor customizability, yet quoting_options,
6051         which is very rich, is hidden inside quotearg.c.  So in order to
6052         allow quote customization, move its implementation to quotearg.c.
6053         * lib/quote.c: Remove.
6054         * modules/quote: Adjust.
6055         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6056         warning: provide all the members of literal structs.
6057         (quote_quoting_options): New.
6058         (quote, quote_n): Import implementation from quote.c.
6059         * lib/quote.h: Import the comments from quote.c.
6060         (quote_quoting_options): New.
6061
6062 2012-03-06  Bruno Haible  <bruno@clisp.org>
6063
6064         Tests for module 'expm1l-ieee'.
6065         * modules/expm1l-ieee-tests: New file.
6066         * tests/test-expm1l-ieee.c: New file.
6067
6068         New module 'expm1l-ieee'.
6069         * modules/expm1l-ieee: New file.
6070
6071         Tests for module 'expm1f-ieee'.
6072         * modules/expm1f-ieee-tests: New file.
6073         * tests/test-expm1f-ieee.c: New file.
6074
6075         New module 'expm1f-ieee'.
6076         * modules/expm1f-ieee: New file.
6077
6078         Tests for module 'expm1-ieee'.
6079         * modules/expm1-ieee-tests: New file.
6080         * tests/test-expm1-ieee.c: New file.
6081         * tests/test-expm1-ieee.h: New file.
6082
6083         New module 'expm1-ieee'.
6084         * modules/expm1-ieee: New file.
6085         * m4/expm1-ieee.m4: New file.
6086         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6087         whether expm1 works with a minus zero argument. Replace it if not.
6088         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6090         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6091         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6092         (Depends-on): Update conditions.
6093         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6094         AIX problem.
6095
6096 2012-03-06  Bruno Haible  <bruno@clisp.org>
6097
6098         Work around expm1f bug on IRIX 6.5.
6099         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6100         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6101         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6102         not work.
6103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6104         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6105         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6106         (Depends-on): Update conditions.
6107         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6108
6109 2012-03-06  Bruno Haible  <bruno@clisp.org>
6110
6111         Tests for module 'expm1l'.
6112         * modules/expm1l-tests: New file.
6113         * tests/test-expm1l.c: New file.
6114
6115         New module 'expm1l'.
6116         * lib/math.in.h (expm1l): New declaration.
6117         * lib/expm1l.c: New file.
6118         * m4/expm1l.m4: New file.
6119         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6121         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6122         * modules/expm1l: New file.
6123         * tests/test-math-c++.cc: Check the declaration of expm1l.
6124         * doc/posix-functions/expm1l.texi: Mention the new module.
6125
6126 2012-03-06  Bruno Haible  <bruno@clisp.org>
6127
6128         Tests for module 'expm1f'.
6129         * modules/expm1f-tests: New file.
6130         * tests/test-expm1f.c: New file.
6131
6132         New module 'expm1f'.
6133         * lib/math.in.h (expm1f): New declaration.
6134         * lib/expm1f.c: New file.
6135         * m4/expm1f.m4: New file.
6136         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6138         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6139         * modules/expm1f: New file.
6140         * tests/test-math-c++.cc: Check the declaration of expm1f.
6141         * doc/posix-functions/expm1f.texi: Mention the new module.
6142
6143 2012-03-06  Bruno Haible  <bruno@clisp.org>
6144
6145         Tests for module 'expm1'.
6146         * modules/expm1-tests: New file.
6147         * tests/test-expm1.c: New file.
6148         * tests/test-expm1.h: New file.
6149
6150         New module 'expm1'.
6151         * lib/math.in.h (expm1): New declaration.
6152         * lib/expm1.c: New file.
6153         * m4/expm1.m4: New file.
6154         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6156         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6157         * modules/expm1: New file.
6158         * tests/test-math-c++.cc: Check the declaration of expm1.
6159         * doc/posix-functions/expm1.texi: Mention the new module.
6160
6161 2012-03-06  Bruno Haible  <bruno@clisp.org>
6162
6163         math: Ensure declarations of math functions.
6164         * modules/acosf (Depends-on): Add 'extensions'.
6165         * modules/asinf (Depends-on): Likewise.
6166         * modules/atan2f (Depends-on): Likewise.
6167         * modules/atanf (Depends-on): Likewise.
6168         * modules/cbrt (Depends-on): Likewise.
6169         * modules/cbrtf (Depends-on): Likewise.
6170         * modules/cbrtl (Depends-on): Likewise.
6171         * modules/copysignf (Depends-on): Likewise.
6172         * modules/copysignl (Depends-on): Likewise.
6173         * modules/cosf (Depends-on): Likewise.
6174         * modules/coshf (Depends-on): Likewise.
6175         * modules/expf (Depends-on): Likewise.
6176         * modules/fabsf (Depends-on): Likewise.
6177         * modules/fabsl (Depends-on): Likewise.
6178         * modules/fmaf (Depends-on): Likewise.
6179         * modules/fmal (Depends-on): Likewise.
6180         * modules/fmodf (Depends-on): Likewise.
6181         * modules/fmodl (Depends-on): Likewise.
6182         * modules/frexpf (Depends-on): Likewise.
6183         * modules/frexpl (Depends-on): Likewise.
6184         * modules/hypot (Depends-on): Likewise.
6185         * modules/hypotf (Depends-on): Likewise.
6186         * modules/hypotl (Depends-on): Likewise.
6187         * modules/ldexpf (Depends-on): Likewise.
6188         * modules/ldexpl (Depends-on): Likewise.
6189         * modules/log10f (Depends-on): Likewise.
6190         * modules/log10l (Depends-on): Likewise.
6191         * modules/log1p (Depends-on): Likewise.
6192         * modules/logb (Depends-on): Likewise.
6193         * modules/logf (Depends-on): Likewise.
6194         * modules/modff (Depends-on): Likewise.
6195         * modules/modfl (Depends-on): Likewise.
6196         * modules/powf (Depends-on): Likewise.
6197         * modules/remainderf (Depends-on): Likewise.
6198         * modules/remainderl (Depends-on): Likewise.
6199         * modules/rintf (Depends-on): Likewise.
6200         * modules/rintl (Depends-on): Likewise.
6201         * modules/sinf (Depends-on): Likewise.
6202         * modules/sinhf (Depends-on): Likewise.
6203         * modules/sqrtf (Depends-on): Likewise.
6204         * modules/tanf (Depends-on): Likewise.
6205         * modules/tanhf (Depends-on): Likewise.
6206         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6207         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6208         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6209         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6210         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6211         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6212         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6213         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6214         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6215         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6216         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6217         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6218         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6219         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6220         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6221         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6222         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6223         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6224         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6225         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6226         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6227         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6228         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6229         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6231         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6232         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6233         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6234         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6235         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6236         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6237         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6238         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6239         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6240         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6241         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6242         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6243         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6244         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6245         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6246         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6247
6248 2012-03-06  Bruno Haible  <bruno@clisp.org>
6249
6250         math: Update module names in warnings.
6251         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6252         tanl): Use specific module name in warn-on-use warning.
6253
6254 2012-03-06  Bruno Haible  <bruno@clisp.org>
6255
6256         expl: Simplify computation.
6257         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6258
6259 2012-03-05  Bruno Haible  <bruno@clisp.org>
6260
6261         exp* tests: More tests.
6262         * tests/test-exp.h: New file.
6263         * tests/test-exp.c: Include <float.h> and test-exp.h.
6264         (main): Invoke test_function.
6265         * tests/test-expf.c: Include <float.h> and test-exp.h.
6266         (main): Invoke test_function.
6267         * tests/test-expl.c: Include <float.h> and test-exp.h.
6268         (main): Invoke test_function.
6269         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6270         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6271         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6272         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6273         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6274         (Depends-on): Add 'float'.
6275         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6276
6277         expl: Fix precision of computed result.
6278         * lib/expl.c: Completely rewritten.
6279         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6280         (Maintainer): Add me.
6281         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6282
6283 2012-03-05  Bruno Haible  <bruno@clisp.org>
6284
6285         cbrt* tests: More tests.
6286         * tests/test-cbrt.h: New file.
6287         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6288         (main): Invoke test_function.
6289         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6290         (main): Invoke test_function.
6291         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6292         (main): Invoke test_function.
6293         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6294         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6295         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6296         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6297         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6298         (Depends-on): Add 'float'.
6299         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6300
6301 2012-03-05  Bruno Haible  <bruno@clisp.org>
6302
6303         hypot* tests: More tests.
6304         * tests/test-hypot.h: New file, partially extracted from
6305         tests/test-hypotl.c.
6306         * tests/test-hypot.c: Include test-hypot.h.
6307         (main): Invoke test_function.
6308         * tests/test-hypotf.c: Include test-hypot.h.
6309         (main): Invoke test_function.
6310         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6311         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6312         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6313         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6314         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6315         tests/randomf.c.
6316         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6317         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6318         tests/randoml.c.
6319         (Depends-on): Add 'fpucw', 'float'.
6320         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6321
6322 2012-03-05  Bruno Haible  <bruno@clisp.org>
6323
6324         fpucw: Doc about FreeBSD.
6325         * lib/fpucw.h: Mention FreeBSD in comments.
6326
6327 2012-03-04  Bruno Haible  <bruno@clisp.org>
6328
6329         sqrt* tests: More tests.
6330         * tests/test-sqrt.h: New file.
6331         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6332         (main): Invoke test_function.
6333         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6334         (main): Invoke test_function.
6335         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6336         (main): Invoke test_function.
6337         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6338         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6339         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6340         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6341         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6342         (Depends-on): Add 'float'.
6343         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6344
6345 2012-03-04  Bruno Haible  <bruno@clisp.org>
6346
6347         remainder* tests: More tests.
6348         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6349         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6350         (main): Invoke test_function.
6351         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6352         (main): Invoke test_function.
6353         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6354         (main): Invoke test_function.
6355         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6356         tests/randomd.c.
6357         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6358         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6359         tests/randomf.c.
6360         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6361         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6362         tests/randoml.c.
6363         (Depends-on): Add 'float'.
6364         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6365
6366 2012-03-04  Bruno Haible  <bruno@clisp.org>
6367
6368         remainder, remainderf, remainderl: Fix computation for large quotients.
6369         * lib/remainder.c: Completely rewritten.
6370         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6371         USE_FLOAT.
6372         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6373         USE_LONG_DOUBLE.
6374         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6375         isnand, isinf. Remove round, fma.
6376         * modules/remainderf (Files): Add lib/remainder.c.
6377         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6378         Remove roundf, fmaf.
6379         * modules/remainderl (Files): Add lib/remainder.c.
6380         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6381         isinf. Remove roundl, fmal.
6382         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6383         REMAINDER_LIBM.
6384         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6385         REMAINDERF_LIBM.
6386         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6387         REMAINDERL_LIBM.
6388
6389 2012-03-04  Bruno Haible  <bruno@clisp.org>
6390
6391         fmod* tests: More tests.
6392         * tests/test-fmod.h (my_ldexp): New function.
6393         (test_function): Reduce amount of random numbers to test. Add tests
6394         of very large quotients x / y.
6395         * tests/test-fmod.c (MAX_EXP): New macro.
6396         * tests/test-fmodf.c (MAX_EXP): Likewise.
6397         * tests/test-fmodl.c (MAX_EXP): Likewise.
6398
6399 2012-03-04  Bruno Haible  <bruno@clisp.org>
6400
6401         fmod, fmodl: Fix computation for large quotients x / y.
6402         * lib/fmod.c: Completely rewritten.
6403         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6404         USE_LONG_DOUBLE.
6405         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6406         isnand. Remove fma.
6407         * modules/fmodl (Files): Add lib/fmod.c.
6408         (Depends-on): Add float, isfinite, signbit, fabsl,
6409         frexpl, ldexpl, isnanl. Remove fma.
6410         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6411         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6412
6413 2012-03-03  Bruno Haible  <bruno@clisp.org>
6414
6415         fmod* tests: More tests.
6416         * tests/test-fmod.h: New file.
6417         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6418         (main): Invoke test_function.
6419         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6420         (main): Invoke test_function.
6421         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6422         (main): Invoke test_function.
6423         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6424         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6425         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6426         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6427         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6428         (Depends-on): Add 'float'.
6429         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6430
6431 2012-03-03  Bruno Haible  <bruno@clisp.org>
6432
6433         rint* tests: More tests.
6434         * tests/test-rint.h: New file, partially extracted from
6435         tests/test-rintl.c.
6436         * tests/test-rint.c: Include test-rint.h.
6437         (main): Invoke test_function.
6438         * tests/test-rintf.c: Include test-rint.h.
6439         (main): Invoke test_function.
6440         * tests/test-rintl.c: Include test-rint.h.
6441         (main): Invoke test_function.
6442         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6443         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6444         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6445         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6446         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6447         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6448
6449 2012-03-03  Bruno Haible  <bruno@clisp.org>
6450
6451         modf* tests: More tests.
6452         * tests/test-modf.h: New file.
6453         * tests/test-modf.c: Include <float.h> and test-modf.h.
6454         (main): Invoke test_function.
6455         * tests/test-modff.c: Include <float.h> and test-modf.h.
6456         (main): Invoke test_function.
6457         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6458         (main): Invoke test_function.
6459         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6460         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6461         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6462         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6463         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6464         (Depends-on): Add 'float'.
6465         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6466
6467 2012-03-03  Bruno Haible  <bruno@clisp.org>
6468
6469         fabs* tests: More tests.
6470         * tests/test-fabs.h: New file, partially extracted from
6471         tests/test-fabsl.c.
6472         * tests/test-fabs.c (RANDOM): New macro.
6473         * tests/test-fabsf.c (RANDOM): New macro.
6474         * tests/test-fabsl.c (RANDOM): New macro.
6475         * modules/fabs-tests (Files): Add tests/randomd.c.
6476         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6477         * modules/fabsf-tests (Files): Add tests/randomf.c.
6478         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6479         * modules/fabsl-tests (Files): Add tests/randoml.c.
6480         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6481
6482 2012-03-03  Bruno Haible  <bruno@clisp.org>
6483
6484         ldexp* tests: More tests.
6485         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6486         * tests/test-ldexp.c (RANDOM): New macro.
6487         * tests/test-ldexpf.c (RANDOM): New macro.
6488         * tests/test-ldexpl.c (RANDOM): New macro.
6489         * modules/ldexp-tests (Files): Add tests/randomd.c.
6490         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6491         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6492         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6493         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6494         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6495
6496 2012-03-03  Bruno Haible  <bruno@clisp.org>
6497
6498         frexp* tests: More tests.
6499         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6500         * tests/test-frexp.c (RANDOM): New macro.
6501         * tests/test-frexpf.c (RANDOM): New macro.
6502         * tests/test-frexpl.c (RANDOM): New macro.
6503         * modules/frexp-tests (Files): Add tests/randomd.c.
6504         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6505         * modules/frexpf-tests (Files): Add tests/randomf.c.
6506         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6507         * modules/frexpl-tests (Files): Add tests/randoml.c.
6508         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6509
6510 2012-03-03  Bruno Haible  <bruno@clisp.org>
6511
6512         Support for pseudo-random numbers in tests.
6513         * tests/randomf.c: New file.
6514         * tests/randomd.c: New file.
6515         * tests/randoml.c: New file.
6516         * tests/macros.h (randomf, randomd, randoml): New declarations.
6517
6518 2012-03-03  Bruno Haible  <bruno@clisp.org>
6519
6520         frexp* tests: Refactor.
6521         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6522         * tests/test-frexp.c: Include and use it.
6523         * tests/test-frexpf.c: Likewise.
6524         * tests/test-frexpl.c: Likewise.
6525         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6526         * modules/frexpf-tests (Files): Likewise.
6527         * modules/frexpl-tests (Files): Likewise.
6528
6529 2012-03-02  Jim Meyering  <meyering@redhat.com>
6530
6531         maint: don't specify XZ_OPT=-9ev in dist-related rule
6532         Using xz's -9 option is warranted only if you have a very large
6533         tarball (see xz's documentation for the sizes vs. presets), and
6534         requires 64MiB of memory at decompression time.
6535         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6536         Automake's default of just "-e" is fine.  Override on a
6537         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6538
6539 2012-03-01  Eric Blake  <eblake@redhat.com>
6540
6541         maint.mk: allow announcement for non-gnulib project
6542         * maint.mk (announcement): Skip gnulib version if not used.
6543
6544 2012-03-01  Jim Meyering  <meyering@redhat.com>
6545
6546         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6547         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6548         envvar settings cannot interfere.  Otherwise, setting envvars like
6549         prohibit=foo require=bar, etc. would cause spurious test failures.
6550
6551 2012-03-01  Eric Blake  <eblake@redhat.com>
6552
6553         maint.mk: add per-line exclusions to prohibitions
6554         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6555         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6556         (sc_const_long_option): Use it.
6557
6558 2012-03-01  Bruno Haible  <bruno@clisp.org>
6559
6560         Tests for module 'expl-ieee'.
6561         * modules/expl-ieee-tests: New file.
6562         * tests/test-expl-ieee.c: New file.
6563
6564         New module 'expl-ieee'.
6565         * modules/expl-ieee: New file.
6566
6567         Tests for module 'exp-ieee'.
6568         * modules/exp-ieee-tests: New file.
6569         * tests/test-exp-ieee.c: New file.
6570
6571         New module 'exp-ieee'.
6572         * modules/exp-ieee: New file.
6573
6574         Tests for module 'expf-ieee'.
6575         * modules/expf-ieee-tests: New file.
6576         * tests/test-expf-ieee.c: New file.
6577         * tests/test-exp-ieee.h: New file.
6578
6579         New module 'expf-ieee'.
6580         * modules/expf-ieee: New file.
6581
6582 2012-02-29  Bruno Haible  <bruno@clisp.org>
6583
6584         cbrtl-ieee: Work around test failure on IRIX 6.5.
6585         * m4/cbrtl-ieee.m4: New file.
6586         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6587         test whether cbrtl works with a minus zero argument. Replace it if not.
6588         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6590         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6591         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6592         (Depends-on): Update conditions.
6593         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6594         m4/signbit.m4.
6595         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6596         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6597         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6598
6599         Tests for module 'cbrtl-ieee'.
6600         * modules/cbrtl-ieee-tests: New file.
6601         * tests/test-cbrtl-ieee.c: New file.
6602
6603         New module 'cbrtl-ieee'.
6604         * modules/cbrtl-ieee: New file.
6605
6606         Tests for module 'cbrt-ieee'.
6607         * modules/cbrt-ieee-tests: New file.
6608         * tests/test-cbrt-ieee.c: New file.
6609
6610         New module 'cbrt-ieee'.
6611         * modules/cbrt-ieee: New file.
6612
6613         Tests for module 'cbrtf-ieee'.
6614         * modules/cbrtf-ieee-tests: New file.
6615         * tests/test-cbrtf-ieee.c: New file.
6616         * tests/test-cbrt-ieee.h: New file.
6617
6618         New module 'cbrtf-ieee'.
6619         * modules/cbrtf-ieee: New file.
6620
6621 2012-02-29  Bruno Haible  <bruno@clisp.org>
6622
6623         cbrtf: Work around bug in IRIX 6.5 system function.
6624         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6625         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6626         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6627         work.
6628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6629         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6630         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6631         (Depends-on): Update conditions.
6632         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6633
6634 2012-02-29  Bruno Haible  <bruno@clisp.org>
6635
6636         Tests for module 'cbrtl'.
6637         * modules/cbrtl-tests: New file.
6638         * tests/test-cbrtl.c: New file.
6639
6640         New module 'cbrtl'.
6641         * lib/math.in.h (cbrtl): New declaration.
6642         * lib/cbrtl.c: New file.
6643         * m4/cbrtl.m4: New file.
6644         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6646         HAVE_DECL_CBRTL.
6647         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6648         HAVE_DECL_CBRTL.
6649         * modules/cbrtl: New file.
6650         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6651         * doc/posix-functions/cbrtl.texi: Mention the new module.
6652
6653 2012-02-29  Bruno Haible  <bruno@clisp.org>
6654
6655         Tests for module 'cbrtf'.
6656         * modules/cbrtf-tests: New file.
6657         * tests/test-cbrtf.c: New file.
6658
6659         New module 'cbrtf'.
6660         * lib/math.in.h (cbrtf): New declaration.
6661         * lib/cbrtf.c: New file.
6662         * m4/cbrtf.m4: New file.
6663         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6665         HAVE_DECL_CBRTF.
6666         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6667         HAVE_DECL_CBRTF.
6668         * modules/cbrtf: New file.
6669         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6670         * doc/posix-functions/cbrtf.texi: Mention the new module.
6671
6672 2012-02-29  Bruno Haible  <bruno@clisp.org>
6673
6674         cbrt: Provide replacement on MSVC and Minix.
6675         * lib/math.in.h (cbrt): New declaration.
6676         * lib/cbrt.c: New file.
6677         * m4/cbrt.m4: New file.
6678         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6680         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6681         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6682         (Depends-on): Add dependencies.
6683         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6684         * tests/test-math-c++.cc: Check the declaration of cbrt.
6685         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6686         replacement.
6687
6688 2012-02-29  Bruno Haible  <bruno@clisp.org>
6689
6690         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6691         * m4/hypotl-ieee.m4: New file.
6692         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6693         test whether hypotl works with mixed NaN and Infinity arguments.
6694         Replace it if not.
6695         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6697         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6698         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6699         (Depends-on): Update conditions.
6700         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6701         (Depends-on): Add hypot-ieee.
6702         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6703         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6704
6705         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6706         * m4/hypotf-ieee.m4: New file.
6707         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6708         test whether hypotf works with mixed NaN and Infinity arguments.
6709         Replace it if not.
6710         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6711         (Depends-on): Add hypot-ieee.
6712         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6713         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6714
6715         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6716         * lib/math.in.h (hypot): New declaration.
6717         * lib/hypot.c: New file.
6718         * m4/hypot-ieee.m4: New file.
6719         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6720         whether hypot works with mixed NaN and Infinity arguments. Replace it
6721         if not.
6722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6723         REPLACE_HYPOT.
6724         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6725         * modules/hypot (Files): Add lib/hypot.c.
6726         (Depends-on): Add dependencies.
6727         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6728         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6729         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6730         * tests/test-math-c++.cc: Check the declaration of hypot.
6731         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6732
6733         Tests for module 'hypotl-ieee'.
6734         * modules/hypotl-ieee-tests: New file.
6735         * tests/test-hypotl-ieee.c: New file.
6736
6737         New module 'hypotl-ieee'.
6738         * modules/hypotl-ieee: New file.
6739
6740         Tests for module 'hypot-ieee'.
6741         * modules/hypot-ieee-tests: New file.
6742         * tests/test-hypot-ieee.c: New file.
6743
6744         New module 'hypot-ieee'.
6745         * modules/hypot-ieee: New file.
6746
6747         Tests for module 'hypotf-ieee'.
6748         * modules/hypotf-ieee-tests: New file.
6749         * tests/test-hypotf-ieee.c: New file.
6750         * tests/test-hypot-ieee.h: New file.
6751
6752         New module 'hypotf-ieee'.
6753         * modules/hypotf-ieee: New file.
6754
6755 2012-02-29  Bruno Haible  <bruno@clisp.org>
6756
6757         Remove unused variables.
6758         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6759         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6760         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6761         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6762
6763 2012-02-29  Eric Blake  <eblake@redhat.com>
6764
6765         termios: fix pid_t always, not just for tcgetsid
6766         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6767         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6768         just when building tcgetsid.
6769
6770 2012-02-29  Bruno Haible  <bruno@clisp.org>
6771
6772         Tests for module 'hypotl'.
6773         * modules/hypotl-tests: New file.
6774         * tests/test-hypotl.c: New file.
6775
6776         New module 'hypotl'.
6777         * lib/math.in.h (hypotl): New declaration.
6778         * lib/hypotl.c: New file.
6779         * m4/hypotl.m4: New file.
6780         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6782         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6783         * modules/hypotl: New file.
6784         * tests/test-math-c++.cc: Check the hypotl declaration.
6785         * doc/posix-functions/hypotl.texi: Mention the new module.
6786
6787 2012-02-29  Eric Blake  <eblake@redhat.com>
6788
6789         tcgetsid: fix cygwin header bug
6790         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6791
6792         docs: update cygwin progress
6793         * doc/posix-functions/llround.texi (llround): Added in cygwin
6794         1.7.8.
6795         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6796         * doc/glibc-functions/program_invocation_name.texi
6797         (program_invocation_name): Likewise.
6798         * doc/glibc-functions/program_invocation_short_name.texi
6799         (program_invocation_short_name): Likewise.
6800         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6801         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6802         Likewise.
6803         * doc/posix-functions/pthread_spin_destroy.texi
6804         (pthread_spin_destroy): Added in cygwin 1.7.10.
6805         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6806         Likewise.
6807         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6808         Likewise.
6809         * doc/posix-functions/pthread_spin_trylock.texi
6810         (pthread_spin_trylock): Likewise.
6811         * doc/posix-functions/pthread_spin_unlock.texi
6812         (pthread_spin_unlock): Likewise.
6813         * doc/posix-functions/pthread_setschedprio.texi
6814         (pthread_setschedprio): Likewise.
6815         * doc/posix-functions/pthread_attr_getstack.texi
6816         (pthread_attr_getstack): Likewise.
6817         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6818         (pthread_attr_getstackaddr): Likewise.
6819         * doc/glibc-functions/pthread_getattr_np.texi
6820         (pthread_getattr_np): Likewise.
6821         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6822         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6823         * doc/posix-functions/clock_settime.texi (clock_settime):
6824         Likewise.
6825         * doc/posix-functions/pthread_attr_getguardsize.texi
6826         (pthread_attr_getguardsize): Likewise.
6827         * doc/posix-functions/pthread_attr_setguardsize.texi
6828         (pthread_attr_setguardsize): Likewise.
6829         * doc/posix-functions/pthread_attr_setstack.texi
6830         (pthread_attr_setstack): Likewise.
6831         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6832         (pthread_attr_setstackaddr): Likewise.
6833         * doc/posix-functions/clock_getcpuclockid.texi
6834         (clock_getcpuclockid): Likewise.
6835         * doc/posix-functions/pthread_getcpuclockid.texi
6836         (pthread_getcpuclockid): Likewise.
6837         * doc/glibc-functions/error.texi (error): Likewise.
6838         * doc/glibc-functions/error_at_line.texi (error_at_line):
6839         Likewise.
6840         * doc/glibc-functions/error_message_count.texi
6841         (error_message_count): Likewise.
6842         * doc/glibc-functions/error_one_per_line.texi
6843         (error_one_per_line): Likewise.
6844         * doc/glibc-functions/error_print_progname.texi
6845         (error_print_progname): Likewise.
6846         * doc/posix-functions/pthread_condattr_getclock.texi
6847         (pthread_condattr_getclock): Likewise.
6848         * doc/posix-functions/pthread_condattr_setclock.texi
6849         (pthread_condattr_setclock): Likewise.
6850         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6851         Likewise.
6852         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6853         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6854         * doc/glibc-functions/get_current_dir_name.texi
6855         (get_current_dir_name): Likewise.
6856         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6857         Likewise.
6858         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6859         wrong return type.
6860         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6861         1.7.11.
6862
6863 2012-02-29  Bruno Haible  <bruno@clisp.org>
6864
6865         Tests for module 'hypotf'.
6866         * modules/hypotf-tests: New file.
6867         * tests/test-hypotf.c: New file.
6868
6869         New module 'hypotf'.
6870         * lib/math.in.h (hypotf): New declaration.
6871         * lib/hypotf.c: New file.
6872         * m4/hypotf.m4: New file.
6873         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6875         REPLACE_HYPOTF.
6876         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6877         REPLACE_HYPOTF.
6878         * modules/hypotf: New file.
6879         * tests/test-math-c++.cc: Check the hypotf declaration.
6880         * doc/posix-functions/hypotf.texi: Mention the new module.
6881
6882         hypot: Prepare for hypotf module.
6883         * m4/hypot.m4: New file.
6884         * modules/hypot (Files): Add m4/hypot.m4.
6885         (configure.ac): Invoke gl_FUNC_HYPOT.
6886
6887 2012-02-29  Bruno Haible  <bruno@clisp.org>
6888
6889         hypot tests: More tests.
6890         * tests/test-hypot.c: Include <float.h>.
6891         (main): Add tests about overflow and underflow.
6892
6893 2012-02-29  Bruno Haible  <bruno@clisp.org>
6894
6895         math code: Add comments.
6896         * lib/acosl.c: Add comment about related glibc source files.
6897         * lib/asinl.c: Likewise.
6898         * lib/atanl.c: Likewise.
6899         * lib/expl.c: Likewise.
6900         * lib/logl.c: Likewise.
6901         * lib/sincosl.c: Likewise.
6902         * lib/sinl.c: Likewise.
6903         * lib/tanl.c: Likewise.
6904         * lib/trigl.c: Likewise.
6905         * lib/cosl.c: Likewise. Fix comments.
6906
6907 2012-02-28  Bruno Haible  <bruno@clisp.org>
6908
6909         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6910         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6911         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6912         HUGE_VALL are defined.
6913         (numeric_equald): Renamed from numeric_equal.
6914         (numeric_equalf, numeric_equall): New functions.
6915         (main): Check also HUGE_VALF, HUGE_VALL.
6916         * modules/math-tests (Files): Add tests/macros.h.
6917         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6918         HUGE_VALL.
6919
6920 2012-02-28  Bruno Haible  <bruno@clisp.org>
6921
6922         doc: Move ISO C11 feature notes into POSIX chapters.
6923         * doc/posix-functions/aligned_alloc.texi: Renamed from
6924         doc/glibc-functions/aligned_alloc.texi.
6925         * doc/posix-functions/quick_exit.texi: Renamed from
6926         doc/glibc-functions/quick_exit.texi.
6927         * doc/posix-headers/uchar.texi: Renamed from
6928         doc/glibc-headers/uchar.texi.
6929         * doc/posix-functions/c16rtomb.texi: Renamed from
6930         doc/glibc-functions/c16rtomb.texi.
6931         * doc/posix-functions/c32rtomb.texi: Renamed from
6932         doc/glibc-functions/c32rtomb.texi.
6933         * doc/posix-functions/mbrtoc16.texi: Renamed from
6934         doc/glibc-functions/mbrtoc16.texi.
6935         * doc/posix-functions/mbrtoc32.texi: Renamed from
6936         doc/glibc-functions/mbrtoc32.texi.
6937         * doc/gnulib.texi: Update.
6938         (Glibc uchar.h): Remove section.
6939         Suggested by Eric Blake.
6940
6941 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6942
6943         stdnoreturn: port to MSVC better
6944         MSVC standard headers use __declspec(noreturn), so #define noreturn
6945         to empty on that platform.  Reported by Bruno Haible in
6946         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6947         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6948         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6949
6950 2012-02-28  Bruno Haible  <bruno@clisp.org>
6951
6952         doc: Mention new glibc headers and functions.
6953         * doc/glibc-headers/uchar.texi: New file.
6954         * doc/glibc-functions/aligned_alloc.texi: New file.
6955         * doc/glibc-functions/c16rtomb.texi: New file.
6956         * doc/glibc-functions/c32rtomb.texi: New file.
6957         * doc/glibc-functions/clock_adjtime.texi: New file.
6958         * doc/glibc-functions/fanotify_init.texi: New file.
6959         * doc/glibc-functions/fanotify_mark.texi: New file.
6960         * doc/glibc-functions/inet6_opt_append.texi: New file.
6961         * doc/glibc-functions/inet6_opt_find.texi: New file.
6962         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6963         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6964         * doc/glibc-functions/inet6_opt_init.texi: New file.
6965         * doc/glibc-functions/inet6_opt_next.texi: New file.
6966         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6967         * doc/glibc-functions/inet6_rth_add.texi: New file.
6968         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6969         * doc/glibc-functions/inet6_rth_init.texi: New file.
6970         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6971         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6972         * doc/glibc-functions/inet6_rth_space.texi: New file.
6973         * doc/glibc-functions/login.texi: New file.
6974         * doc/glibc-functions/mbrtoc16.texi: New file.
6975         * doc/glibc-functions/mbrtoc32.texi: New file.
6976         * doc/glibc-functions/name_to_handle_at.texi: New file.
6977         * doc/glibc-functions/ntp_gettimex.texi: New file.
6978         * doc/glibc-functions/open_by_handle_at.texi: New file.
6979         * doc/glibc-functions/prlimit.texi: New file.
6980         * doc/glibc-functions/process_vm_readv.texi: New file.
6981         * doc/glibc-functions/process_vm_writev.texi: New file.
6982         * doc/glibc-functions/recvmmsg.texi: New file.
6983         * doc/glibc-functions/scandirat.texi: New file.
6984         * doc/glibc-functions/sendmmsg.texi: New file.
6985         * doc/glibc-functions/setns.texi: New file.
6986         * doc/glibc-functions/timespec_get.texi: New file.
6987         * doc/gnulib.texi: Include them.
6988         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6989         sections.
6990         Reported by Eric Blake.
6991
6992 2012-02-28  Bruno Haible  <bruno@clisp.org>
6993
6994         Avoid compilation errors with MSVC option -fp:strict.
6995         * lib/floor.c: Use MSVC specific pragma fenv_access.
6996         * lib/ceil.c: Likewise.
6997         * lib/trunc.c: Likewise.
6998         * lib/round.c: Likewise.
6999         * lib/rint.c: Likewise.
7000         * lib/fma.c: Likewise.
7001         * lib/integer_length.c: Likewise.
7002         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7003         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7004         * tests/test-floor2.c: Likewise.
7005         * tests/test-floorf2.c: Likewise.
7006         * tests/test-ceil2.c: Likewise.
7007         * tests/test-ceilf2.c: Likewise.
7008         * tests/test-trunc2.c: Likewise.
7009         * tests/test-truncf2.c: Likewise.
7010         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7011
7012 2012-02-27  Bruno Haible  <bruno@clisp.org>
7013
7014         Tests for module 'sqrtl-ieee'.
7015         * modules/sqrtl-ieee-tests: New file.
7016         * tests/test-sqrtl-ieee.c: New file.
7017
7018         New module 'sqrtl-ieee'.
7019         * modules/sqrtl-ieee: New file.
7020
7021         Tests for module 'sqrt-ieee'.
7022         * modules/sqrt-ieee-tests: New file.
7023         * tests/test-sqrt-ieee.c: New file.
7024
7025         New module 'sqrt-ieee'.
7026         * modules/sqrt-ieee: New file.
7027
7028         Tests for module 'sqrtf-ieee'.
7029         * modules/sqrtf-ieee-tests: New file.
7030         * tests/test-sqrtf-ieee.c: New file.
7031         * tests/test-sqrt-ieee.h: New file.
7032
7033         New module 'sqrtf-ieee'.
7034         * modules/sqrtf-ieee: New file.
7035
7036 2012-02-27  Bruno Haible  <bruno@clisp.org>
7037
7038         remainderl-ieee: Work around test failure on OSF/1.
7039         * m4/remainderl-ieee.m4: New file.
7040         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7041         present, test whether remainderl works with a zero second argument.
7042         Replace it if not.
7043         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7045         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7046         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7047         (Depends-on): Update conditions.
7048         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7049         (Depends-on): Add remainder-ieee.
7050         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7051         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7052         module.
7053
7054         remainderf-ieee: Work around test failure on OSF/1.
7055         * m4/remainderf-ieee.m4: New file.
7056         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7057         present, test whether remainderf works with a zero second argument.
7058         Replace it if not.
7059         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7061         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7062         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7063         (Depends-on): Update conditions.
7064         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7065         (Depends-on): Add remainder-ieee.
7066         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7067         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7068         module.
7069
7070         remainder-ieee: Work around test failure on OSF/1.
7071         * m4/remainder-ieee.m4: New file.
7072         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7073         present, test whether remainder works with a zero second argument.
7074         Replace it if not.
7075         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7077         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7078         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7079         (Depends-on): Update dependencies.
7080         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7081         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7082         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7083
7084         Tests for module 'remainderl-ieee'.
7085         * modules/remainderl-ieee-tests: New file.
7086         * tests/test-remainderl-ieee.c: New file.
7087
7088         New module 'remainderl-ieee'.
7089         * modules/remainderl-ieee: New file.
7090
7091         Tests for module 'remainder-ieee'.
7092         * modules/remainder-ieee-tests: New file.
7093         * tests/test-remainder-ieee.c: New file.
7094
7095         New module 'remainder-ieee'.
7096         * modules/remainder-ieee: New file.
7097
7098         Tests for module 'remainderf-ieee'.
7099         * modules/remainderf-ieee-tests: New file.
7100         * tests/test-remainderf-ieee.c: New file.
7101         * tests/test-remainder-ieee.h: New file.
7102
7103         New module 'remainderf-ieee'.
7104         * modules/remainderf-ieee: New file.
7105
7106 2012-02-27  Bruno Haible  <bruno@clisp.org>
7107
7108         modff, modfl: Fix configure syntax error.
7109         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7110         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7111
7112 2012-02-27  Bruno Haible  <bruno@clisp.org>
7113
7114         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7115         * m4/fmodl-ieee.m4: New file.
7116         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7117         whether fmodl works with zero arguments. Replace it if not.
7118         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7119         (Depends-on): Add fmod-ieee.
7120         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7121         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7122
7123         fmodf-ieee: Work around test failure on OSF/1.
7124         * m4/fmodf-ieee.m4: New file.
7125         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7126         whether fmodf works with zero arguments. Replace it if not.
7127         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7129         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7130         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7131         (Depends-on): Update dependencies.
7132         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7133         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7134         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7135
7136         fmodf-ieee: Work around test failure on MSVC 9.
7137         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7138         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7139
7140         fmod-ieee: Work around test failures on OSF/1, mingw.
7141         * m4/fmod-ieee.m4: New file.
7142         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7143         whether fmod works with zero arguments. Replace it if not.
7144         * lib/math.in.h (fmod): New declaration.
7145         * lib/fmod.c: New file.
7146         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7148         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7149         * modules/fmod (Files): Add lib/fmod.c.
7150         (Depends-on): Add math, isinf, trunc, fma.
7151         (configure.ac): Arrange to compile lib/fmod.c if needed.
7152         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7153         m4/signbit.m4.
7154         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7155         * tests/test-math-c++.cc: Check the declaration of fmod.
7156         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7157
7158         fmodl-ieee: Fix test failures.
7159         * lib/fmodl.c (fmodl): Treat Inf specially.
7160         * modules/fmodl (Depends-on): Add isinf.
7161
7162         Tests for module 'fmodl-ieee'.
7163         * modules/fmodl-ieee-tests: New file.
7164         * tests/test-fmodl-ieee.c: New file.
7165
7166         New module 'fmodl-ieee'.
7167         * modules/fmodl-ieee: New file.
7168
7169         Tests for module 'fmod-ieee'.
7170         * modules/fmod-ieee-tests: New file.
7171         * tests/test-fmod-ieee.c: New file.
7172
7173         New module 'fmod-ieee'.
7174         * modules/fmod-ieee: New file.
7175
7176         Tests for module 'fmodf-ieee'.
7177         * modules/fmodf-ieee-tests: New file.
7178         * tests/test-fmodf-ieee.c: New file.
7179         * tests/test-fmod-ieee.h: New file.
7180
7181         New module 'fmodf-ieee'.
7182         * modules/fmodf-ieee: New file.
7183
7184 2012-02-27  Bruno Haible  <bruno@clisp.org>
7185
7186         Tests for module 'rintl-ieee'.
7187         * modules/rintl-ieee-tests: New file.
7188         * tests/test-rintl-ieee.c: New file.
7189
7190         New module 'rintl-ieee'.
7191         * modules/rintl-ieee: New file.
7192
7193         Tests for module 'rint-ieee'.
7194         * modules/rint-ieee-tests: New file.
7195         * tests/test-rint-ieee.c: New file.
7196
7197         New module 'rint-ieee'.
7198         * modules/rint-ieee: New file.
7199
7200         Tests for module 'rintf-ieee'.
7201         * modules/rintf-ieee-tests: New file.
7202         * tests/test-rintf-ieee.c: New file.
7203         * tests/test-rint-ieee.h: New file.
7204
7205         New module 'rintf-ieee'.
7206         * modules/rintf-ieee: New file.
7207
7208 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7209
7210         regex: re_search etc. should return -2 when memory exhausted
7211         This bug was uncovered when testing 'grep'.  Without the fix,
7212         re_search and friends return -1 when memory is exhausted, but -1
7213         means no match, and this causes grep to falsely report no-match
7214         instead of memory-exhaustion.  See
7215         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7216         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7217         trouble; this can occur if re_search_internal ran out of memory.
7218
7219 2012-02-26  Bruno Haible  <bruno@clisp.org>
7220
7221         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7222         * m4/modfl-ieee.m4: New file.
7223         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7224         whether modfl works with Inf. Replace it if not.
7225         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7227         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7228         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7229         (Depends-on): Update dependencies.
7230         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7231         m4/signbit.m4.
7232         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7233         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7234
7235         modfl-ieee: Fix dependencies.
7236         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7237
7238         modfl-ieee: Fix test failures.
7239         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7240         * modules/modfl (Depends-on): Add isfinite, isinf.
7241
7242         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7243         * m4/modff-ieee.m4: New file.
7244         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7245         whether modff works with NaN and Inf. Replace it if not.
7246         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7248         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7249         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7250         (Depends-on): Update dependencies.
7251         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7252         m4/signbit.m4.
7253         (Depends-on): Add modf-ieee.
7254         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7255         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7256
7257         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7258         * m4/modf-ieee.m4: New file.
7259         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7260         whether modf works with NaN and Inf. Replace it if not.
7261         * lib/math.in.h (modf): New declaration.
7262         * lib/modf.c: New file.
7263         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7265         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7266         * modules/modf (Files): Add lib/modf.c.
7267         (Depends-on): Add math, isfinite, trunc, isinf.
7268         (configure.ac): Addrange to compile lib/modf.c if needed.
7269         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7270         m4/signbit.m4.
7271         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7272         * tests/test-math-c++.cc: Check the declaration of modf.
7273         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7274
7275         Tests for module 'modfl-ieee'.
7276         * modules/modfl-ieee-tests: New file.
7277         * tests/test-modfl-ieee.c: New file.
7278
7279         New module 'modfl-ieee'.
7280         * modules/modfl-ieee: New file.
7281
7282         Tests for module 'modf-ieee'.
7283         * modules/modf-ieee-tests: New file.
7284         * tests/test-modf-ieee.c: New file.
7285
7286         New module 'modf-ieee'.
7287         * modules/modf-ieee: New file.
7288
7289         Tests for module 'modff-ieee'.
7290         * modules/modff-ieee-tests: New file.
7291         * tests/test-modff-ieee.c: New file.
7292         * tests/test-modf-ieee.h: New file.
7293
7294         New module 'modff-ieee'.
7295         * modules/modff-ieee: New file.
7296
7297 2012-02-26  Bruno Haible  <bruno@clisp.org>
7298
7299         Tests for module 'fabsl-ieee'.
7300         * modules/fabsl-ieee-tests: New file.
7301         * tests/test-fabsl-ieee.c: New file.
7302
7303         New module 'fabsl-ieee'.
7304         * modules/fabsl-ieee: New file.
7305
7306         Tests for module 'fabs-ieee'.
7307         * modules/fabs-ieee-tests: New file.
7308         * tests/test-fabs-ieee.c: New file.
7309
7310         New module 'fabs-ieee'.
7311         * modules/fabs-ieee: New file.
7312
7313         Tests for module 'fabsf-ieee'.
7314         * modules/fabsf-ieee-tests: New file.
7315         * tests/test-fabsf-ieee.c: New file.
7316         * tests/test-fabs-ieee.h: New file.
7317
7318         New module 'fabsf-ieee'.
7319         * modules/fabsf-ieee: New file.
7320
7321 2012-02-26  Bruno Haible  <bruno@clisp.org>
7322
7323         Tests for module 'fmal-ieee'.
7324         * modules/fmal-ieee-tests: New file.
7325         * tests/test-fmal-ieee.c: New file.
7326
7327         New module 'fmal-ieee'.
7328         * modules/fmal-ieee: New file.
7329
7330         Tests for module 'fma-ieee'.
7331         * modules/fma-ieee-tests: New file.
7332         * tests/test-fma-ieee.c: New file.
7333
7334         New module 'fma-ieee'.
7335         * modules/fma-ieee: New file.
7336
7337         Tests for module 'fmaf-ieee'.
7338         * modules/fmaf-ieee-tests: New file.
7339         * tests/test-fmaf-ieee.c: New file.
7340         * tests/test-fma-ieee.h: New file.
7341
7342         New module 'fmaf-ieee'.
7343         * modules/fmaf-ieee: New file.
7344
7345 2012-02-26  Bruno Haible  <bruno@clisp.org>
7346
7347         Tests for module 'ldexpl-ieee'.
7348         * modules/ldexpl-ieee-tests: New file.
7349         * tests/test-ldexpl-ieee.c: New file.
7350
7351         New module 'ldexpl-ieee'.
7352         * modules/ldexpl-ieee: New file.
7353
7354         Tests for module 'ldexp-ieee'.
7355         * modules/ldexp-ieee-tests: New file.
7356         * tests/test-ldexp-ieee.c: New file.
7357
7358         New module 'ldexp-ieee'.
7359         * modules/ldexp-ieee: New file.
7360
7361         Tests for module 'ldexpf-ieee'.
7362         * modules/ldexpf-ieee-tests: New file.
7363         * tests/test-ldexpf-ieee.c: New file.
7364         * tests/test-ldexp-ieee.h: New file.
7365
7366         New module 'ldexpf-ieee'.
7367         * modules/ldexpf-ieee: New file.
7368
7369 2012-02-26  Bruno Haible  <bruno@clisp.org>
7370
7371         Refactor frexp*-ieee tests.
7372         * tests/test-frexp-ieee.h: New file.
7373         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7374         (main): Just call test_function.
7375         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7376         (main): Just call test_function.
7377         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7378         (main): Just call test_function.
7379         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7380         * modules/frexp-ieee-tests (Files): Likewise.
7381         * modules/frexpl-ieee-tests (Files): Likewise.
7382
7383         Tests for module 'frexpl-ieee'.
7384         * modules/frexpl-ieee-tests: New file.
7385         * tests/test-frexpl-ieee.c: New file.
7386
7387         New module 'frexpl-ieee'.
7388         * modules/frexpl-ieee: New file.
7389
7390         Tests for module 'frexp-ieee'.
7391         * modules/frexp-ieee-tests: New file.
7392         * tests/test-frexp-ieee.c: New file.
7393
7394         New module 'frexp-ieee'.
7395         * modules/frexp-ieee: New file.
7396
7397         Tests for module 'frexpf-ieee'.
7398         * modules/frexpf-ieee-tests: New file.
7399         * tests/test-frexpf-ieee.c: New file.
7400
7401         New module 'frexpf-ieee'.
7402         * modules/frexpf-ieee: New file.
7403
7404 2012-02-26  Bruno Haible  <bruno@clisp.org>
7405
7406         roundl-ieee tests: More tests.
7407         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7408         (main): Add tests for [MX] shaded specification in POSIX.
7409         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7410         (Depends-on): Add isnanl-nolibm.
7411
7412         round-ieee tests: More tests.
7413         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7414         (main): Add tests for [MX] shaded specification in POSIX.
7415         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7416         (Depends-on): Add isnand-nolibm.
7417
7418         roundf-ieee tests: More tests.
7419         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7420         (main): Add tests for [MX] shaded specification in POSIX.
7421         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7422         (Depends-on): Add isnanf-nolibm.
7423
7424         truncl-ieee tests: More tests.
7425         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7426         (main): Add tests for [MX] shaded specification in POSIX.
7427         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7428         (Depends-on): Add isnanl-nolibm.
7429
7430         trunc-ieee tests: More tests.
7431         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7432         (main): Add tests for [MX] shaded specification in POSIX.
7433         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7434         (Depends-on): Add isnand-nolibm.
7435
7436         truncf-ieee tests: More tests.
7437         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7438         (main): Add tests for [MX] shaded specification in POSIX.
7439         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7440         (Depends-on): Add isnanf-nolibm.
7441
7442         ceill-ieee tests: More tests.
7443         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7444         (main): Add tests for [MX] shaded specification in POSIX.
7445         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7446         (Depends-on): Add isnanl-nolibm.
7447
7448         ceil-ieee tests: More tests.
7449         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7450         (main): Add tests for [MX] shaded specification in POSIX.
7451         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7452         (Depends-on): Add isnand-nolibm.
7453
7454         ceilf-ieee tests: More tests.
7455         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7456         (main): Add tests for [MX] shaded specification in POSIX.
7457         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7458         (Depends-on): Add isnanf-nolibm.
7459
7460         floorl-ieee tests: More tests.
7461         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7462         (main): Add tests for [MX] shaded specification in POSIX.
7463         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7464         (Depends-on): Add isnanl-nolibm.
7465
7466         floor-ieee tests: More tests.
7467         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7468         (main): Add tests for [MX] shaded specification in POSIX.
7469         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7470         (Depends-on): Add isnand-nolibm.
7471
7472         floorf-ieee tests: More tests.
7473         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7474         (main): Add tests for [MX] shaded specification in POSIX.
7475         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7476         (Depends-on): Add isnanf-nolibm.
7477
7478 2012-02-26  Bruno Haible  <bruno@clisp.org>
7479
7480         fpieee: More comments.
7481         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7482
7483 2012-02-25  Bruno Haible  <bruno@clisp.org>
7484
7485         Tests for module 'log10l'.
7486         * modules/log10l-tests: New file.
7487         * tests/test-log10l.c: New file.
7488         * tests/test-math-c++.cc: Check the declaration of log10l.
7489
7490         New module 'log10l'.
7491         * lib/math.in.h (log10l): New declaration.
7492         * lib/log10l.c: New file.
7493         * m4/log10l.m4: New file.
7494         * modules/log10l: New file.
7495         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7497         HAVE_DECL_LOG10L.
7498         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7499         HAVE_DECL_LOG10L.
7500         * doc/posix-functions/log10l.texi: Mention the new module.
7501
7502 2012-02-25  Bruno Haible  <bruno@clisp.org>
7503
7504         fmodl, remainder*: Avoid wrong results due to rounding errors.
7505         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7506         expected bounds.
7507         * lib/remainderf.c (remainderf): Likewise.
7508         * lib/remainder.c (remainder): Likewise.
7509         * lib/remainderl.c (remainderl): Likewise.
7510
7511 2012-02-25  Bruno Haible  <bruno@clisp.org>
7512
7513         Tests for module 'remainderl'.
7514         * modules/remainderl-tests: New file.
7515         * tests/test-remainderl.c: New file.
7516         * tests/test-math-c++.cc: Check the declaration of remainderl.
7517
7518         New module 'remainderl'.
7519         * lib/math.in.h (remainderl): New declaration.
7520         * lib/remainderl.c: New file.
7521         * m4/remainderl.m4: New file.
7522         * modules/remainderl: New file.
7523         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7525         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7526         HAVE_REMAINDERL.
7527         * doc/posix-functions/remainderl.texi: Mention the new module.
7528
7529 2012-02-25  Bruno Haible  <bruno@clisp.org>
7530
7531         Tests for module 'remainderf'.
7532         * modules/remainderf-tests: New file.
7533         * tests/test-remainderf.c: New file.
7534         * tests/test-math-c++.cc: Check the declaration of remainderf.
7535
7536         New module 'remainderf'.
7537         * lib/math.in.h (remainderf): New declaration.
7538         * lib/remainderf.c: New file.
7539         * m4/remainderf.m4: New file.
7540         * modules/remainderf: New file.
7541         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7543         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7544         HAVE_REMAINDERF.
7545         * doc/posix-functions/remainderf.texi: Mention the new module.
7546
7547 2012-02-25  Bruno Haible  <bruno@clisp.org>
7548
7549         remainder: Support for MSVC.
7550         * lib/math.in.h (remainder): New declaration.
7551         * lib/remainder.c: New file.
7552         * m4/remainder.m4: New file.
7553         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7554         (Depends-on): Add math, round, fma.
7555         (configure.ac): Use results of gl_FUNC_REMAINDER.
7556         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7558         HAVE_DECL_REMAINDER.
7559         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7560         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7561         * tests/test-math-c++.cc: Check the declaration of remainder.
7562         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7563         problems are fixed.
7564
7565 2012-02-25  Bruno Haible  <bruno@clisp.org>
7566
7567         Tests for module 'fmodl'.
7568         * modules/fmodl-tests: New file.
7569         * tests/test-fmodl.c: New file.
7570         * tests/test-math-c++.cc: Check the declaration of fmodl.
7571
7572         New module 'fmodl'.
7573         * lib/math.in.h (fmodl): New declaration.
7574         * lib/fmodl.c: New file.
7575         * m4/fmodl.m4: New file.
7576         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7578         REPLACE_FMODL.
7579         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7580         REPLACE_FMODL.
7581         * modules/fmodl: New file.
7582         * doc/posix-functions/fmodl.texi: Mention the new module.
7583
7584 2012-02-25  Bruno Haible  <bruno@clisp.org>
7585
7586         Tests for module 'modfl'.
7587         * modules/modfl-tests: New file.
7588         * tests/test-modfl.c: New file.
7589         * tests/test-math-c++.cc: Check the declaration of modfl.
7590
7591         New module 'modfl'.
7592         * lib/math.in.h (modfl): New declaration.
7593         * lib/modfl.c: New file.
7594         * m4/modfl.m4: New file.
7595         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7597         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7598         * modules/modfl: New file.
7599         * doc/posix-functions/modfl.texi: Mention the new module.
7600
7601 2012-02-25  Bruno Haible  <bruno@clisp.org>
7602
7603         Tests for module 'fabsl'.
7604         * modules/fabsl-tests: New file.
7605         * tests/test-fabsl.c: New file.
7606         * tests/test-math-c++.cc: Check the declaration of fabsl.
7607
7608         New module 'fabsl'.
7609         * lib/math.in.h (fabsl): New declaration.
7610         * lib/fabsl.c: New file.
7611         * m4/fabsl.m4: New file.
7612         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7614         REPLACE_FABSL.
7615         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7616         REPLACE_FABSL.
7617         * modules/fabsl: New file.
7618         * doc/posix-functions/fabsl.texi: Mention the new module.
7619
7620 2012-02-25  Bruno Haible  <bruno@clisp.org>
7621
7622         fabs tests: More tests.
7623         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7624         (zero): New variable.
7625         (main): Add tests for signed zero.
7626         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7627
7628         fabsf tests: More tests.
7629         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7630         (zero): New variable.
7631         (main): Add tests for signed zero.
7632         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7633
7634 2012-02-24  Bruno Haible  <bruno@clisp.org>
7635
7636         atanl: Provide function definition on MSVC.
7637         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7638         function pointer.
7639         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7640
7641 2012-02-24  Bruno Haible  <bruno@clisp.org>
7642
7643         acosl: Provide function definition on MSVC.
7644         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7645         function pointer.
7646         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7647
7648 2012-02-24  Bruno Haible  <bruno@clisp.org>
7649
7650         asinl: Provide function definition on MSVC.
7651         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7652         function pointer.
7653         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7654
7655 2012-02-24  Bruno Haible  <bruno@clisp.org>
7656
7657         tanl: Provide function definition on MSVC.
7658         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7659         function pointer.
7660         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7661
7662 2012-02-24  Bruno Haible  <bruno@clisp.org>
7663
7664         cosl: Provide function definition on MSVC.
7665         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7666         function pointer.
7667         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7668
7669 2012-02-24  Bruno Haible  <bruno@clisp.org>
7670
7671         sinl: Provide function definition on MSVC.
7672         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7673         function pointer.
7674         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7675
7676 2012-02-24  Bruno Haible  <bruno@clisp.org>
7677
7678         logl: Provide function definition on MSVC.
7679         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7680         function pointer.
7681         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7682
7683 2012-02-24  Bruno Haible  <bruno@clisp.org>
7684
7685         expl: Provide function definition on MSVC.
7686         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7687         function pointer.
7688         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7689
7690 2012-02-24  Bruno Haible  <bruno@clisp.org>
7691
7692         sqrtl: Provide function definition on MSVC.
7693         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7694         a function pointer.
7695         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7696
7697 2012-02-24  Bruno Haible  <bruno@clisp.org>
7698
7699         ceill: Provide function definition on MSVC.
7700         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7701         used as a function pointer.
7702         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7703
7704 2012-02-24  Bruno Haible  <bruno@clisp.org>
7705
7706         floorl: Provide function definition on MSVC.
7707         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7708         used as a function pointer.
7709         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7710
7711 2012-02-24  Bruno Haible  <bruno@clisp.org>
7712
7713         ceilf: Provide function definition on MSVC.
7714         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7715         used as a function pointer.
7716         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7717
7718 2012-02-24  Bruno Haible  <bruno@clisp.org>
7719
7720         floorf: Provide function definition on MSVC.
7721         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7722         used as a function pointer.
7723         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7724
7725 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7726
7727         stdnoreturn: new module
7728         This implements a replacement for C11's <stdnoreturn.h>.
7729         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7730         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7731         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7732         * tests/test-stdnoreturn.c: New files.
7733
7734 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7735
7736         regex: fix false multibyte matches in some regular expressions
7737         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7738         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7739         * lib/regex_internal.c (re_string_skip_chars):
7740         Fix miscomputation of remain_len that may cause incomplete
7741         multi-byte character and false match.
7742
7743 2012-02-24  Jim Meyering  <meyering@redhat.com>
7744
7745         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7746         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7747         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7748         Remove now-unnecessary str''cmp obfuscation.
7749         Suggested by Akim Demaille.
7750
7751 2012-02-24  Bruno Haible  <bruno@clisp.org>
7752
7753         streq: Rename macro.
7754         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7755         * NEWS: Mention the change.
7756         * lib/mbrtowc.c (mbrtowc): Update.
7757         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7758         * lib/wcwidth.c (wcwidth): Update.
7759         Suggested by Akim Demaille and Jim Meyering.
7760
7761 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7762
7763         regex: fix typo in definition of MIN
7764         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7765         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7766
7767 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7768             Bruno Haible  <bruno@clisp.org>
7769
7770         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7771         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7772         entries into a stack-allocated buffer directly.
7773         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7774
7775 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7776             Bruno Haible  <bruno@clisp.org>
7777
7778         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7779
7780          - There were several instances of this pattern:
7781
7782              for (;;) {
7783                n = acl (f, GETACLCNT, 0, NULL);
7784                [ allocate an array A of size N ]
7785                if (acl (f, GETACL, n, a) == n)
7786                  break;
7787              }
7788
7789            This loop might never terminate if some other process is constantly
7790            manipulating the file's ACL.  The loop should be rewritten to
7791            terminate.
7792
7793          - The acl (... GETACLNT ...) call is merely an optimization; its value
7794            is merely a hint as to how big to make the array.  A better
7795            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7796            and just guess a reasonably-big size, growing the size and trying
7797            again if it's not large enough.  This guarantees termination, and
7798            saves a system call.
7799
7800         * lib/acl-internal.h: Include <limits.h>.
7801         (MIN, SIZE_MAX): New macros.
7802         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7803         a stack-allocated buffer, and use malloc if it does not fit. Don't
7804         use GETACLCNT.
7805         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7806
7807 2012-02-19  Bruno Haible  <bruno@clisp.org>
7808
7809         acl: Fix endless loop on Solaris with vxfs.
7810         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7811         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7812         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7813         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7814         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7815         Reported by Bill Jones in
7816         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7817
7818 2012-02-19  Bruno Haible  <bruno@clisp.org>
7819
7820         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7821         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7822         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7823         that this function returns 0 in some more cases.
7824
7825 2012-02-19  Bruno Haible  <bruno@clisp.org>
7826
7827         acl: Update doc references.
7828         * doc/acl-resources.txt: Update links to Solaris documentation.
7829
7830 2012-02-19  Bruno Haible  <bruno@clisp.org>
7831
7832         Fix test failure in many locales on Solaris 11.
7833         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7834         'tr' arguments.
7835         * tests/test-pipe-filter-ii1.c (main): Likewise.
7836         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7837         expressions in the C locale.
7838         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7839         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7840
7841 2012-02-19  Bruno Haible  <bruno@clisp.org>
7842
7843         gnulib-tool: Improve usage message.
7844         * gnulib-tool (func_usage): Move doc of --help and --version to the
7845         section "Operation modes".
7846
7847 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7848
7849         README-release: make it easier to execute commands
7850         * top/README-release: break commands out on to separate lines.
7851
7852 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7853
7854         GNUmakefile: simplify detection of unconfigured trees
7855         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7856         whether the tree make is being run from is already configured or
7857         not.  Related simplifications.
7858
7859 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7860
7861         * gnulib-tool (func_usage): Document --help and --version.
7862
7863 2012-02-11  Jim Meyering  <meyering@redhat.com>
7864
7865         bootstrap: don't exit 0 upon gnulib-tool failure
7866         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7867         its exit status, not 0.
7868
7869 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7870
7871         README-release: various improvements
7872         * top/README-release: Give a command to push changes for the
7873         release.  Add "distcheck" to list of other pre-release checks.
7874         Fix instance of "make stable" which should be "make TYPE".
7875
7876 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7877
7878         maint: replace FSF snail-mail addresses with URLs
7879         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7880         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7881         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7882         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7883         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7884         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7885         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7886         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7887         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7888         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7889         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7890         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7891         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7892         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7893         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7894         * lib/glthread/thread.c, lib/glthread/thread.h:
7895         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7896         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7897         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7898         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7899         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7900         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7901         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7902         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7903         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7904         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7905         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7906         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7907         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7908         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7909         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7910         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7911         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7912         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7913         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7914         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7915         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7916         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7917         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7918         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7919         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7920         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7921         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7922         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7923         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7924         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7925         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7926         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7927         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7928         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7929         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7930         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7931         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7932         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7933         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7934         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7935         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7936         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7937         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7938         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7939         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7940         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7941         * tests/test-poll.c, tests/test-quotearg-simple.c:
7942         * tests/test-quotearg.c, tests/test-quotearg.h:
7943         * tests/test-round-ieee.c, tests/test-round1.c:
7944         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7945         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7946         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7947         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7948         * tests/test-strerror.c, tests/test-strerror_r.c:
7949         * tests/test-strsignal.c, tests/test-strverscmp.c:
7950         * tests/test-xmemdup0.c:
7951         Replace FSF snail mail addresses with URLs, as per GNU coding
7952         standards.  See glibc bug
7953         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7954
7955 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7956
7957         README-release: capitalize a word and split a line
7958         * top/README-release: Fix punctuation and spacing.
7959
7960 2012-02-08  Akim Demaille  <demaille@gostai.com>
7961
7962         fatal-signal: use C prototypes (with explicit void).
7963         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7964         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7965
7966 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7967
7968         regex: spelling fix
7969         * lib/regexec.c: spelling fix
7970
7971         regex: rely on stdint.h for SIZE_MAX
7972         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7973
7974 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         regex: merge glibc changes
7977
7978         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7979         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7980         (init_word_char): Work even if bitset words are not exactly 32 or
7981         64 bits wide.  Don't assume there are no padding bits.
7982         * lib/regex.c [_LIBC]: Do not include <config.h>.
7983         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7984         and -Wtype-limits.
7985         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7986         needless disagreement with glibc.  All uses changed.  Define it to
7987         1 only if _GNU_SOURCE, to match glibc.
7988         (_REG_RM_NAME): Remove; no longer needed, since the names in
7989         question are now all protected by __USE_GNU.
7990         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7991         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7992         * lib/regex_internal.h (MIN): New macro.
7993
7994         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7995         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7996
7997         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7998         * lib/regex_internal.c (re_string_fetch_byte_case):
7999         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8000         is miscompiled, and it turns out it is because of an incorrect
8001         attribute on re_string_fetch_byte_case.  Unlike
8002         re_string_peek_byte_case, this one is really not pure, it modifies
8003         memory (increments pstr->cur_idx), and with the pure attribute GCC
8004         assumed it doesn't and it cached the presumed value of
8005         regexp->cur_idx in a variable across the
8006          for (;; ++i)
8007            {
8008              if (i >= BRACKET_NAME_BUF_SIZE)
8009                return REG_EBRACK;
8010              if (token->type == OP_OPEN_CHAR_CLASS)
8011                ch = re_string_fetch_byte_case (regexp);
8012              else
8013                ch = re_string_fetch_byte (regexp);
8014              if (re_string_eoi(regexp))
8015                return REG_EBRACK;
8016              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8017                break;
8018              elem->opr.name[i] = ch;
8019            }
8020
8021         2011-11-29 Andreas Schwab <schwab@redhat.com>
8022         * lib/regcomp.c (build_equiv_class):
8023         Fix access after end of search string in regex matcher.
8024
8025         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8026         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8027
8028         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8029         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8030
8031         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8032         * lib/regcomp.c (parse_branch, parse_sub_exp):
8033         More regex memory leak fixes and tests.
8034         (parse_sub_exp, parse_bracket_exp):
8035         Fix memory leak for some invalid regular expressions.
8036
8037         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8038         * lib/regex_internal.c, lib/regexec.c:
8039         Fix unnecessary overallocation due to incomplete character.  When
8040         incomplete characters are found at the end of a string the code
8041         ran amok and allocated lots of memory.  Stricter limits are now in
8042         place.
8043
8044         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8045         * lib/regex.h: Update documentation.
8046
8047         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8048         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8049
8050         2010-05-05 Andreas Schwab <schwab@redhat.com>
8051         * lib/regexec.c (find_collation_sequence_value):
8052         Fix lookup of collation sequence value during regexp matching.
8053
8054         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8055         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8056
8057         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8058         * lib/regex.h: Cleanup namespace.
8059
8060         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8061         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8062
8063         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8064         * lib/regex_internal.h: Prevent some declarations and definitions
8065         to be seen when used in tests.
8066
8067         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8068         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8069         __libc_lock_* macros if not _LIBC.
8070         (struct re_dfa_t): Add lock.
8071
8072 2012-02-07  Eric Blake  <eblake@redhat.com>
8073
8074         maint.mk: also prohibit lower-case @var@
8075         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8076         lower case, like @top_srcdir@.
8077
8078 2012-02-04  Eric Blake  <eblake@redhat.com>
8079
8080         canonicalize: avoid uninitialized memory use
8081         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8082         random '/' left in dest.
8083         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8084
8085 2012-02-04  Bruno Haible  <bruno@clisp.org>
8086
8087         isatty: Fix test failure of ptsname_r on native Windows.
8088         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8089         and don't set errno.
8090         (isatty): Test first whether fd is valid. Set errno when returning 0.
8091
8092 2012-02-04  Bruno Haible  <bruno@clisp.org>
8093
8094         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8095         * tests/test-spawn-pipe-main.c: Include progname.h.
8096         (main): Invoke set_program_name.
8097         * modules/spawn-pipe-tests (Depends-on): Add progname.
8098
8099         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8100         * tests/test-nonblocking-socket-main.c: Include progname.h.
8101         (main): Invoke set_program_name.
8102         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8103
8104         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8105         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8106         (main): Invoke set_program_name.
8107         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8108
8109 2012-02-04  Eric Blake  <eblake@redhat.com>
8110
8111         canonicalize-lgpl: fix // handling
8112         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8113
8114         canonicalize: fix // handling
8115         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8116         /// to //, since only // is special.
8117
8118 2012-02-04  Bruno Haible  <bruno@clisp.org>
8119
8120         ioctl: Fix test failure on native Windows.
8121         * lib/ioctl.c: Include msvc-nothrow.h.
8122         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8123
8124 2012-02-04  Bruno Haible  <bruno@clisp.org>
8125
8126         fsync: Avoid test failure on native Windows.
8127         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8128         read-only.
8129
8130 2012-02-04  Bruno Haible  <bruno@clisp.org>
8131
8132         sys_select: Avoid syntax error on OpenBSD 5.0.
8133         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8134         currently being included, just include the system's <sys/select.h>.
8135
8136 2012-02-04  Bruno Haible  <bruno@clisp.org>
8137
8138         sys_select: Avoid syntax error on OpenBSD 5.0.
8139         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8140         <sys/select.h>, not before.
8141         Reported by Jiri B <jirib@devio.us>.
8142
8143 2012-02-04  Bruno Haible  <bruno@clisp.org>
8144
8145         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8146         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8147         global variables.
8148         * tests/test-get-rusage-data.c (main): Likewise.
8149         Reported by Jim Meyering.
8150
8151 2012-02-04  Bruno Haible  <bruno@clisp.org>
8152
8153         stdioext: Fix last commit.
8154         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8155
8156 2012-02-03  Bruno Haible  <bruno@clisp.org>
8157
8158         stdioext: Add tentative support for Plan9.
8159         * lib/stdio-impl.h: Include <errno.h>.
8160         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8161         * lib/freadable.c (freadable): Likewise.
8162         * lib/fwritable.c (fwritable): Likewise.
8163         * lib/fbufmode.c (fbufmode): Likewise.
8164         * lib/freading.c (freading): Likewise.
8165         * lib/fwriting.c (fwriting): Likewise.
8166         * lib/freadptr.c (freadptr): Likewise.
8167         * lib/freadseek.c (freadptrinc): Likewise.
8168         * lib/freadahead.c (freadahead): Likewise.
8169         * lib/fpurge.c (fpurge): Likewise.
8170         * lib/fseeko.c (rpl_fseeko): Likewise.
8171         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8172         Reported by Jens Staal <staal1978@gmail.com>.
8173
8174 2012-02-02  Jim Meyering  <meyering@redhat.com>
8175
8176         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8177         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8178         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8179         not even to try to add the attribute.  Instead, add a pragma to suppress
8180         the suggestion/warning.
8181
8182 2012-01-31  Karl Berry  <karl@gnu.org>
8183
8184         setstate doc: typo.
8185         * doc/posix-functions/setstate.texi (setstate): { not (.
8186
8187 2012-01-31  Bruno Haible  <bruno@clisp.org>
8188
8189         popen: Make more robust on Windows.
8190         * lib/popen.c: On native Windows, use the _popen based code even if
8191         HAVE_POPEN is set.
8192         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8193         environment variable on native Windows.
8194
8195 2012-01-30  Bruno Haible  <bruno@clisp.org>
8196
8197         pclose: Fix typo.
8198         * lib/stdio.in.h (pclose): Fix typo in warning message.
8199
8200 2012-01-30  Bruno Haible  <bruno@clisp.org>
8201
8202         doc about getlogin_r, setstate.
8203         * doc/posix-functions/getlogin_r.texi: List the incompatible
8204         declaration problem under "not fixed by gnulib".
8205         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8206         problem on Solaris 11 and other platforms.
8207
8208 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8209             Bruno Haible  <bruno@clisp.org>
8210
8211         poll tests: Make test more robust.
8212         * tests/test-poll.c: Include macros.h.
8213         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8214         return value of various I/O operations.
8215         * modules/poll-tests (Files): Add tests/macros.h.
8216
8217 2012-01-30  Bruno Haible  <bruno@clisp.org>
8218
8219         sys_stat: Fix support for mingw64 and MSVC.
8220         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8221         header files already do it.
8222         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8223         stat itself.
8224         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8225
8226 2012-01-30  Bruno Haible  <bruno@clisp.org>
8227
8228         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8230         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8231
8232 2012-01-29  Bruno Haible  <bruno@clisp.org>
8233
8234         quotearg: Fix test failure on MacOS X 10.5.
8235         * tests/test-quotearg-simple.c: Include localcharset.h.
8236         (main): If the locale encoding is not ASCII, bypass the tests of
8237         locale_quoting_style and clocale_quoting_style.
8238         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8239
8240 2012-01-29  Jim Meyering  <meyering@redhat.com>
8241
8242         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8243         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8244         detect uses of canonicalize_file_name.
8245
8246 2012-01-28  Bruno Haible  <bruno@clisp.org>
8247
8248         test-framework-sh: Fix test failure with AIX 7.1 diff.
8249         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8250         in column 1, like 'diff -c' does.
8251         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8252         whether 'diff -u' is used. Instead, test whether the output contains
8253         some '@' character.
8254
8255 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8256
8257         strtoimax: eliminate need for stdint.h, inttypes.h checks
8258         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8259         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8260         the prerequisites for a recently-introduced strtoimax test.
8261         I guess this might cause strtoimax to be replaced when not
8262         strictly necessary on older hosts, but this shouldn't introduce
8263         any bugs and it should make Emacs 'configure' faster on typical
8264         modern hosts.  Problem discovered when importing the latest gnulib
8265         to an Emacs test version.
8266         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8267
8268 2012-01-28  Bruno Haible  <bruno@clisp.org>
8269
8270         sys_time: Override 'struct timeval' on some native Windows platforms.
8271         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8272         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8273         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8274         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8275         needs to be overridden.
8276         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8277         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8278         * tests/test-sys_select.c: Check that the tv_sec member has the same
8279         size as a 'time_t'.
8280         * tests/test-sys_time.c: Likewise.
8281         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8282         is set, set also REPLACE_GETTIMEOFDAY.
8283         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8284         convert the resulting 'struct timeval' before returning.
8285         * lib/select.c: Include <sys/time.h>.
8286         (select, timeval): Undefine at the right place.
8287         * modules/select (Depends-on): Add sys_time.
8288         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8289         some Windows platforms.
8290         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8291
8292 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8293
8294         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8295         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8296         an integer.
8297         * lib/fcntl.c (dupfd): Likewise.
8298         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8299
8300 2012-01-28  Bruno Haible  <bruno@clisp.org>
8301
8302         fcntl: Avoid compilation error on native Windows.
8303         * modules/fcntl (Depends-on): Add 'close'.
8304
8305 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8306
8307         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8308         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8309         pointer to an integer.
8310         * lib/poll.c (IsConsoleHandle): Likewise.
8311         * lib/isatty.c (IsConsoleHandle): Likewise.
8312
8313 2012-01-28  Jim Meyering  <meyering@redhat.com>
8314
8315         doc: clarify README-release
8316         * top/README-release: Clarify: you should make a point to have
8317         the latest stable versions of build tools in your PATH, and the
8318         reference to buildreq is solely for its list of tool names, not
8319         for its minimal-functional version numbers.
8320         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8321
8322         maint.mk: use more readable (yet functionally equivalent) quoting
8323         It is common to quote a single quote in a single quoted string like
8324         this:  '...'\''...'.  Unless you know the idiom, that looks like
8325         gibberish, so prefer to double-quote the string when possible.
8326         Then you can use a more readable, lone single quote: "...'..."
8327         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8328         "don't" is more readable than the equivalent 'don'\''t'.
8329         (sc_cast_of_x_alloc_return_value): Likewise.
8330         (sc_cast_of_alloca_return_value): Likewise.
8331         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8332         rather than '\'':'\''.
8333
8334 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8335
8336         stdalign: relax _Alignof and tighten _Alignas test
8337         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8338         as it was too strict: alignof must divide offsetof, but it need
8339         not equal offsetof.  Inspired by Joseph S. Myers's comment
8340         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8341         Conversely, tighten the _Alignas test a bit, as the resulting
8342         alignment must be exactly 8.
8343
8344 2012-01-27  Bruno Haible  <bruno@clisp.org>
8345
8346         stdalign: Document the last change.
8347         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8348
8349 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         stdalign: check that alignof and offsetof are consistent
8352         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8353         Problem reported for gnulib by Richard W.M. Jones in
8354         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8355
8356 2012-01-27  Jim Meyering  <meyering@redhat.com>
8357
8358         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8359         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8360         convert a sequence with gaps to the minimal containing range.
8361         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8362         * tests/test-update-copyright.sh: Test for this.
8363         The FSF confirmed it is ok to do this, assuming there is at
8364         least one significant change per year in the affected range:
8365         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8366
8367 2012-01-26  Bruno Haible  <bruno@clisp.org>
8368
8369         pipe2: refine doc about thread-safety
8370         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8371         multithread-safety problem.
8372         * doc/glibc-functions/accept4.texi: Likewise.
8373
8374 2012-01-26  Bruno Haible  <bruno@clisp.org>
8375
8376         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8377         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8378         In the test program, include <fcntl.h>, for O_RDONLY.
8379
8380 2012-01-26  Eric Blake  <eblake@redhat.com>
8381
8382         pipe2: document lack of thread-safety in replacement
8383         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8384         issue in replacement.
8385         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8386         Based on a report by Eric Wong.
8387
8388 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8389             Bruno Haible  <bruno@clisp.org>
8390
8391         malloca: Avoid warnings on x86_64 mingw64.
8392         * lib/malloca.c: Include <stdint.h>.
8393         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8394         * modules/malloca (Depends-on): Add stdint.
8395         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8396
8397 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8398
8399         obstack: remove __STDC__ conditionals
8400         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8401         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8402         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8403         m4/include_next.m4 as the only gnulib-maintained places that still
8404         refer to __STDC__.
8405
8406 2012-01-24  Bruno Haible  <bruno@clisp.org>
8407
8408         havelib: Modern quoting.
8409         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8410         the recent change to the GNU coding standards.
8411
8412 2012-01-24  Bruno Haible  <bruno@clisp.org>
8413
8414         stdint: Improve support for Android.
8415         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8416         Reported by Simon Josefsson <simon@josefsson.org>.
8417
8418 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8419
8420         doc: omit trailing empty lines from INSTALL etc.
8421         * doc/Makefile (INSTALL): Omit trailing empty lines.
8422         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8423         omit trailing empty lines.  This simplifies the build procedure.
8424
8425 2012-01-23  Jim Meyering  <meyering@redhat.com>
8426
8427         tests: avoid spurious warnings about gl_sockets_startup
8428         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8429         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8430         reporting a "statement with no effect".
8431         * tests/test-accept.c (main): Mark as "(void)".
8432         * tests/test-accept4.c (main): Likewise.
8433         * tests/test-bind.c (main): Likewise.
8434         * tests/test-connect.c (main): Likewise.
8435         * tests/test-getpeername.c (main): Likewise.
8436         * tests/test-getsockname.c (main): Likewise.
8437         * tests/test-getsockopt.c (main): Likewise.
8438         * tests/test-listen.c (main): Likewise.
8439         * tests/test-recv.c (main): Likewise.
8440         * tests/test-recvfrom.c (main): Likewise.
8441         * tests/test-send.c (main): Likewise.
8442         * tests/test-sendto.c (main): Likewise.
8443         * tests/test-setsockopt.c (main): Likewise.
8444         * tests/test-shutdown.c (main): Likewise.
8445
8446 2012-01-21  Bruno Haible  <bruno@clisp.org>
8447
8448         locale-fr.m4: Fix for Android.
8449         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8450         failure of the test program on Bionic libc.
8451
8452 2012-01-21  Jim Meyering  <meyering@redhat.com>
8453
8454         bootstrap: fail when bootstrap_post_import_hook fails
8455         Otherwise, it's far too easy to miss diagnostics emitted
8456         between gnulib-tool's output and that of running configure.
8457         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8458
8459 2012-01-17  Jim Meyering  <meyering@redhat.com>
8460
8461         maint: enable sc_trailing_blank
8462         * build-aux/pmccabe.css: Remove trailing blanks.
8463         * doc/acl-cygwin.txt: Likewise.
8464         * doc/gnu-oids.texi: Likewise
8465         * cfg.mk: Enable sc_trailing_blank.
8466         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8467
8468 2012-01-17  Jim Meyering  <meyering@redhat.com>
8469
8470         maint: enable sc_prohibit_openat_without_use
8471         * cfg.mk: Enable sc_prohibit_openat_without_use.
8472         Exempt lib/selinux-at.c.
8473
8474 2012-01-17  Jim Meyering  <meyering@redhat.com>
8475
8476         maint: enable sc_prohibit_cloexec_without_use
8477         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8478         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8479
8480 2012-01-17  Jim Meyering  <meyering@redhat.com>
8481
8482         maint: enable sc_prohibit_intprops_without_use
8483         * cfg.mk: Enable sc_prohibit_intprops_without_use
8484         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8485
8486 2012-01-17  Jim Meyering  <meyering@redhat.com>
8487
8488         maint: enable sc_prohibit_hash_pjw_without_use
8489         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8490         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8491         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8492         following " (".
8493
8494 2012-01-17  Jim Meyering  <meyering@redhat.com>
8495
8496         maint: enable double-word-prohibiting rule
8497         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8498         Exempt three files.
8499
8500 2012-01-17  Jim Meyering  <meyering@redhat.com>
8501
8502         maint: remove empty lines at EOF, but excluding modules/*
8503         Apply syntax rules at home as well as abroad.  Most changes
8504         were induced by running this:
8505           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8506             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8507             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8508         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8509         Exempt modules/* and two binary files.
8510         Also exempt doc/INSTALL*, per request from Bruno Haible.
8511         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8512         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8513         * doc/Copyright/request-assign.future: Likewise.
8514         * doc/Copyright/request-disclaim.changes: Likewise.
8515         * doc/INSTALL: Likewise.
8516         * doc/INSTALL.ISO: Likewise.
8517         * doc/INSTALL.UTF-8: Likewise.
8518         * doc/acl-cygwin.txt: Likewise.
8519         * doc/acl-resources.txt: Likewise.
8520         * doc/fdl-1.2.texi: Likewise.
8521         * doc/fdl-1.3.texi: Likewise.
8522         * doc/fdl.texi: Likewise.
8523         * lib/argp-pin.c: Likewise.
8524         * lib/round.c: Likewise.
8525         * lib/unicase/u16-totitle.c: Likewise.
8526         * lib/unictype/block_test.c: Likewise.
8527         * lib/uninorm/canonical-decomposition.c: Likewise.
8528         * m4/README: Likewise.
8529         * m4/relocatable-lib.m4: Likewise.
8530         * tests/test-isnand-nolibm.c: Likewise.
8531         * tests/test-isnand.c: Likewise.
8532         * tests/uninorm/NormalizationTest.txt: Likewise.
8533
8534 2012-01-17  Jim Meyering  <meyering@redhat.com>
8535
8536         maint: add framework to run syntax-check rules against gnulib sources
8537         * cfg.mk: New file, to disable all currently-failing tests.
8538         We'll enable them one by one, as they are made to pass.
8539         * Makefile (sc_maint): New rule.
8540
8541 2012-01-21  Bruno Haible  <bruno@clisp.org>
8542
8543         stdint: Add support for Android.
8544         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8545         include the system's <stdint.h>.
8546         Reported by Simon Josefsson <simon@josefsson.org>.
8547
8548 2012-01-19  Jim Meyering  <meyering@redhat.com>
8549
8550         bootstrap: add bootstrap_post_import_hook
8551         Bison does still need something like the gnulib_mk_hook whose
8552         invocation I had to remove along with slurp in commit 767ccd40.
8553         Technically, we could get along without it, but doing so would
8554         have required living with a warning and a mandatory post-bootstrap
8555         automake rerun.
8556         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8557         (bootstrap_post_import_hook): New function.
8558         Invoke it after gnulib-tool --import and before autoreconf.
8559
8560 2012-01-18  Jim Meyering  <meyering@redhat.com>
8561
8562         gitlog-to-changelog: don't use "no_"-prefixed variable name
8563         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8564         to enable both --cluster and --no-cluster.  Change variable name,
8565         s/\$no_cluster/$cluster/, and reverse usage to match.
8566
8567         gitlog-to-changelog: use "||", not "or" in expressions
8568         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8569         expressions.
8570
8571 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8572
8573         gitlog-to-changelog: new option --no-cluster
8574         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8575         clustering of adjacent commit messages.
8576
8577 2012-01-17  Jim Meyering  <meyering@redhat.com>
8578
8579         maint: spell file systems with two words, not one
8580         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8581         two words, not one.
8582
8583 2012-01-16  Jim Meyering  <meyering@redhat.com>
8584
8585         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8586         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8587
8588 2012-01-16  Eric Blake  <eblake@redhat.com>
8589
8590         bootstrap: cater to autoconf 2.59
8591         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8592         is not available.
8593
8594         bootstrap: properly check for libtool
8595         * build-aux/bootstrap (libtoolize): Also run libtool when older
8596         usage is detected.
8597
8598 2012-01-15  Bruno Haible  <bruno@clisp.org>
8599
8600         Improve support for MSVC 9.
8601         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8602         clashes on MSVC.
8603         * lib/fcntl.in.h: Likewise.
8604         * lib/stdlib.in.h: Likewise.
8605         * lib/sys_stat.in.h: Likewise.
8606
8607 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8608
8609         gnupload: we hold the master copy of this script now
8610         For motivation and more information, see:
8611         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8612         * build-aux/gnupload: Make it clear in the heading comments that the
8613         master copy of this file is maintained by gnulib.  Since we are at
8614         it, bump its copyright year and ...
8615         ($scriptversion): ... the date in its version.
8616         ($usage): Patches and bug reports should be sent to the gnulib list,
8617         not the automake one.
8618         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8619         anymore.
8620
8621 2012-01-15  Bruno Haible  <bruno@clisp.org>
8622
8623         Fix module 'random'.
8624         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8625         initstate, setstate are declared.
8626
8627 2012-01-14  Bruno Haible  <bruno@clisp.org>
8628
8629         Tests for module 'random'.
8630         * modules/random-tests: New file.
8631         * tests/test-random.c: New file, based on tests/test-random_r.c.
8632
8633         New module 'random'.
8634         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8635         declarations.
8636         * lib/random.c: New file, based on glibc/stdlib/random.c.
8637         * m4/random.m4: New file.
8638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8639         HAVE_RANDOM.
8640         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8641         * modules/random: New file.
8642         * config/srclist.txt: Add an entry for random.c.
8643         * doc/posix-functions/random.texi: Mention the 'random' module.
8644         * doc/posix-functions/initstate.texi: Likewise.
8645         * doc/posix-functions/setstate.texi: Likewise.
8646         * doc/posix-functions/srandom.texi: Likewise.
8647
8648 2012-01-12  Bruno Haible  <bruno@clisp.org>
8649
8650         random_r: Use common idioms.
8651         * lib/random_r.c: Include <stdlib.h> first.
8652
8653         random_r: Override incompatible API on AIX, OSF/1.
8654         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8655         Override the system function if REPLACE_RANDOM_R is 1.
8656         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8657         and OSF/1, set REPLACE_RANDOM_R.
8658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8659         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8660         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8661         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8662         * doc/glibc-functions/random_r.texi: Likewise.
8663         * doc/glibc-functions/setstate_r.texi: Likewise.
8664
8665         random_r: Support for MSVC 9.
8666         * lib/random_r.c: Include stdint.h, not inttypes.h.
8667
8668 2012-01-12  Eric Blake  <eblake@redhat.com>
8669
8670         inet_ntop: guard extra work by IF_LINT
8671         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8672         better code generation when not checking for warnings.
8673         Suggested by Paul Eggert and Jim Meyering.
8674
8675         strptime: fix regression on mingw
8676         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8677         Fix regression.  Reported by Bruno Haible.
8678
8679 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8680             Bruno Haible  <bruno@clisp.org>
8681
8682         copy-file: add error-code-returning variant.
8683         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8684         (qcopy_file_preserving): New declaration.
8685         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8686         copy_file_preserving. Change return type to 'int'. Don't emit an error
8687         message here.
8688         (copy_file_preserving): New function.
8689         * tests/test-copy-file.c: Include <stdlib.h>.
8690         (main): Test qcopy_file_preserving if the environment variable
8691         NO_STDERR_OUTPUT is set.
8692         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8693         with NO_STDERR_OUTPUT
8694         * tests/test-copy-file-2.sh: Likewise.
8695
8696 2012-01-10  Bruno Haible  <bruno@clisp.org>
8697
8698         copy-file: Use 'quote' module consistently.
8699         * lib/copy-file.c (copy_file_preserving): Use quote().
8700
8701         copy-file: Refactor.
8702         * lib/copy-file.c: Include quote.h.
8703         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8704         message here.
8705         * modules/copy-file (Depends-on): Add quote.
8706
8707         acl: Export qcopy_acl.
8708         * lib/acl.h (qcopy_acl): New declaration.
8709         * lib/copy-acl.c (qcopy_acl): Make non-static.
8710
8711         acl: Rename a local variable.
8712         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8713
8714         acl: Align return values of copy_acl and qcopy_acl.
8715         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8716         maybe < -1.
8717
8718 2012-01-11  Eric Blake  <eblake@redhat.com>
8719
8720         strptime: silence gcc warnings
8721         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8722         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8723         Reported by Daniel P. Berrange.
8724
8725         inet_ntop: silence gcc warning
8726         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8727         Reported by Daniel P. Berrange.
8728
8729 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8730
8731         getloadavg test: skip the test on GNU/Linux without /proc mounted
8732         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8733         file.  When /proc is not mounted, it always fails with ENOENT.
8734         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8735         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8736
8737 2012-01-10  Bruno Haible  <bruno@clisp.org>
8738
8739         regex: Avoid link error on MSVC 9.
8740         * modules/regex (Depends-on): Add wctype.
8741
8742 2012-01-10  Bruno Haible  <bruno@clisp.org>
8743
8744         doc: Mention --with-tests option.
8745         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8746         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8747         --with-tests.
8748         Reported by Reuben Thomas.
8749
8750 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8751
8752         users.txt: order package names lexicographically.
8753         * users.txt: Order package names lexicographically.
8754
8755 2012-01-10  Jim Meyering  <meyering@redhat.com>
8756
8757         maint.mk: fix description in comment
8758         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8759
8760         ignore-value: remove deprecated ignore_ptr function
8761         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8762         * NEWS: Note this.
8763
8764 2012-01-09  Jim Meyering  <meyering@redhat.com>
8765
8766         test-init.sh: avoid a subshell
8767         * tests/test-init.sh: Remove protective subshell.
8768         Suggested by Bernhard Voelker.  While a subshell is normally
8769         required to protect against older shells (Solaris, FreeBSD) that
8770         warn about a missing program before performing redirection, the
8771         shell-selection tests performed by init.sh probably exclude any
8772         offending shell.
8773
8774 2012-01-08  Bruno Haible  <bruno@clisp.org>
8775
8776         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8777         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8778         variable.
8779
8780 2012-01-08  Bruno Haible  <bruno@clisp.org>
8781
8782         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8783         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8784         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8785         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8786         macro.
8787         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8788         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8789         * lib/spawn_faction_addopen.c: Add workaround implementation if
8790         HAVE_WORKING_POSIX_SPAWN.
8791         * modules/spawn (Makefile): Substitute
8792         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8793         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8794         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8795         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8796         (Depends-on): Update conditions.
8797         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8798         the Solaris 11 bug.
8799
8800 2012-01-08  Bruno Haible  <bruno@clisp.org>
8801
8802         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8803         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8804         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8805         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8806         macro.
8807         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8808         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8809         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8810         HAVE_WORKING_POSIX_SPAWN.
8811         * modules/spawn (Makefile): Substitute
8812         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8813         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8814         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8815         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8816         (Depends-on): Update conditions.
8817         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8818         the Solaris 11 bug.
8819
8820 2012-01-08  Bruno Haible  <bruno@clisp.org>
8821
8822         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8823         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8825         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8826         HAVE_WORKING_POSIX_SPAWN.
8827         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8828         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8829         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8830         * lib/spawn_faction_addclose.c: Add workaround implementation if
8831         HAVE_WORKING_POSIX_SPAWN.
8832         * modules/spawn (Makefile): Substitute
8833         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8834         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8835         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8836         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8837         (Depends-on): Update conditions.
8838         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8839         the Solaris 11 bug.
8840
8841 2012-01-08  Bruno Haible  <bruno@clisp.org>
8842
8843         doc: Update for Solaris 11 2011-11.
8844         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8845         * m4/printf.m4: Update comments.
8846
8847 2012-01-08  Bruno Haible  <bruno@clisp.org>
8848
8849         mktime: Avoid compilation error on Solaris 11.
8850         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8851
8852 2012-01-08  Bruno Haible  <bruno@clisp.org>
8853
8854         doc: Small fix.
8855         * doc/posix-headers/nl_types.texi: Correct platforms list.
8856
8857 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8858
8859         Add lgpl-3.0 module.
8860         * MODULES.html.sh (Support for building documentation): Add
8861         lgpl-3.0.
8862         * modules/lgpl-3.0: New file.
8863
8864 2012-01-08  Jim Meyering  <meyering@redhat.com>
8865
8866         select.c: indent with spaces, not TABs
8867         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8868
8869 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8870
8871         quotearg: do not use grave accent for left quote
8872         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8873         locale_quoting_style.
8874         (quotearg_buffer_restyled): Fix example.
8875         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8876
8877 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8878
8879         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8880         Most programs do not have translation catalogs for English and much
8881         less separate catalogs for British and American English.  Drop the
8882         suggestion to translators about these two, and provide it
8883         automatically for Unicode locales.  Like most programs, even those
8884         using American English, we use single quotation marks.  This conflicts
8885         with the American typographic convention, but works better when you
8886         cite the entire error message within double quotes.  It also tries not
8887         to clash with established practice and with what non-gnulib programs
8888         will usually do.
8889         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8890         using an UTF-8 or GB-18030 locale.  The list of other locales with
8891         quotes was provided by Bruno Haible.
8892         (quotearg_buffer_restyled): Adjust instructions to translators.
8893         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8894         text, since this would be wrong when using Unicode.
8895         * modules/quotearg: Depend on c-strcaseeq.
8896
8897 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8898
8899         quotearg: fix Wikipedia link
8900         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8901
8902 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8903
8904         Fix for mingw with MSVC9.
8905         * m4/ld-version-script.m4: Check that compiler rejects version
8906         scripts with syntax errors.  Reported by Bruno Haible
8907         <bruno@clisp.org>.
8908
8909 2012-01-06  Bruno Haible  <bruno@clisp.org>
8910
8911         Talk about "native Windows API", not "Woe32".
8912         * lib/accept4.c: Update comments to mention native Windows.
8913         * lib/execute.c: Likewise.
8914         * lib/fatal-signal.c: Likewise.
8915         * lib/localcharset.c: Likewise.
8916         * lib/nanosleep.c: Likewise.
8917         * lib/nl_langinfo.c: Likewise.
8918         * lib/pclose.c: Likewise.
8919         * lib/pipe-filter-gi.c: Likewise.
8920         * lib/pipe-filter-ii.c: Likewise.
8921         * lib/pipe.c: Likewise.
8922         * lib/pipe2.c: Likewise.
8923         * lib/popen.c: Likewise.
8924         * lib/progreloc.c: Likewise.
8925         * lib/relocatable.c: Likewise.
8926         * lib/sigaction.c: Likewise.
8927         * lib/sigprocmask.c: Likewise.
8928         * lib/spawn-pipe.h: Likewise.
8929         * lib/spawn-pipe.c: Likewise.
8930         * lib/spawni.c: Likewise.
8931         * lib/stat-time.h: Likewise.
8932         * lib/w32spawn.h: Likewise.
8933         * tests/test-isatty.c: Likewise.
8934         * lib/config.charset: More comments.
8935         * doc/gnulib-intro.texi: Mention native Windows.
8936         * doc/posix-functions/_Exit_C99.texi: Likewise.
8937         * doc/posix-headers/fcntl.texi: Likewise.
8938
8939 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8940
8941         argp: Avoid crash if translator uses % characters in a translation.
8942         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8943         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8944
8945 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8946
8947         doc: C11 and C++11 are now official
8948         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8949         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8950         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8951         * modules/stdalign:
8952         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8953
8954 2012-01-06  Bruno Haible  <bruno@clisp.org>
8955
8956         uc-is-grapheme-break tests: Tweak.
8957         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8958         message.
8959
8960 2012-01-06  Bruno Haible  <bruno@clisp.org>
8961
8962         test-init.sh: correct the test for diff -u
8963         * tests/test-init.sh: Also redirect stdout to /dev/null.
8964
8965 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8966
8967         Use ', not `, for quoting output.
8968         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8969         (print_changelog_deltas, get_tool_versions, main program):
8970         * build-aux/git-version-gen:
8971         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8972         * build-aux/move-if-change (help):
8973         * build-aux/useless-if-before-free (usage, main program):
8974         * check-module (parse_module_file, usage)
8975         (find_included_lib_files, check_module):
8976         * lib/argmatch.c (main) [TEST]:
8977         * lib/argp-help.c (_help):
8978         * lib/getopt1.c (main) [TEST]:
8979         * lib/git-merge-changelog.c (usage):
8980         * lib/xstrtol-error.c (xstrtol_error):
8981         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8982         * m4/argz.m4 (gl_FUNC_ARGZ):
8983         * m4/bison.m4 (gl_BISON):
8984         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8985         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8986         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8987         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8988         * m4/gc-random.m4 (gl_GC_RANDOM):
8989         * m4/intl.m4 (gt_CHECK_DECL):
8990         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8992         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8993         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8994         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8995         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8996         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8997         * tests/test-dirname.c (main):
8998         * tests/test-getpass.c (main):
8999         * tests/test-iconvme.c (main):
9000         * tests/test-parse-datetime.c (LOG):
9001         * tests/test-xstrtoimax.sh:
9002         * tests/test-xstrtol.sh:
9003         * tests/test-xstrtoll.sh:
9004         * tests/test-xstrtoumax.sh:
9005         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9006         * top/GNUmakefile (abort-due-to-no-makefile):
9007         Quote 'like this', not `like this', as per the recent change to
9008         the GNU coding standards.
9009
9010 2012-01-05  Bruno Haible  <bruno@clisp.org>
9011
9012         strtoimax: Don't force a replacement on systems where intmax_t is int.
9013         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9014         'intmax_t' is not larger than 'int'.
9015         Reported by Pádraig Brady <P@draigBrady.com>.
9016
9017 2012-01-05  Bruno Haible  <bruno@clisp.org>
9018
9019         doc: Mention NetBSD bugs.
9020         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9021         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9022
9023 2012-01-05  Bruno Haible  <bruno@clisp.org>
9024
9025         strtoumax tests: Enhance tests.
9026         * tests/test-strtoumax.c (main): Add tests for large values.
9027
9028 2012-01-05  Bruno Haible  <bruno@clisp.org>
9029
9030         strtoimax: Work around AIX 5.1 bug.
9031         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9032         definition.
9033         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9034         Set HAVE_STRTOIMAX.
9035         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9036         REPLACE_STRTOIMAX.
9037         * modules/inttypes-incomplete (Makefile.am): Substitute
9038         REPLACE_STRTOIMAX.
9039         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9040         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9041         (Depends-on): Update conditions.
9042         * tests/test-strtoimax.c (main): Add tests for large values.
9043         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9044
9045 2012-01-05  Bruno Haible  <bruno@clisp.org>
9046
9047         inttypes: Modernize.
9048         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9049         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9050         (Makefile.am): Update inttypes.h rule.
9051
9052 2012-01-05  Jim Meyering  <meyering@redhat.com>
9053
9054         init.sh: don't waste a subshell just to redirect stderr
9055         * tests/init.sh: In testing for diff -u and diff -c, use a
9056         stderr-redirecting exec inside `...` rather than a subshell.
9057
9058         test-init.sh: avoid failure on HP-UX 11.00
9059         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9060         resolves to diff -c or cmp.  Reported by Bruno Haible.
9061
9062 2012-01-05  Bruno Haible  <bruno@clisp.org>
9063
9064         Tests for module 'strtoull'.
9065         * modules/strtoull-tests: New file.
9066         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9067
9068 2012-01-05  Bruno Haible  <bruno@clisp.org>
9069
9070         Tests for module 'strtoll'.
9071         * modules/strtoll-tests: New file.
9072         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9073
9074 2012-01-05  Bruno Haible  <bruno@clisp.org>
9075
9076         Tests for module 'strtoul'.
9077         * modules/strtoul-tests: New file.
9078         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9079
9080 2012-01-05  Bruno Haible  <bruno@clisp.org>
9081
9082         Tests for module 'strtol'.
9083         * modules/strtol-tests: New file.
9084         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9085
9086 2012-01-04  Jim Meyering  <meyering@redhat.com>
9087
9088         test-init.sh: accommodate Solaris 5.10's different diff -u output
9089         * tests/test-init.sh: Also exempt @@ lines from the comparison
9090         of diff output, since Solaris 5.10 and GNU diff formats differ.
9091         Reported by Stefano Lattarini.
9092
9093 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9094
9095         test-posixtm: don't assume signed integer wraparound
9096         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9097         after signed integer overflow.  Inspired by (though it may not
9098         fix) Bruno Haible's bug report in
9099         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9100
9101         Spell out "Windows 9x" and "Windows XP".
9102         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9103         "Windows 9x" and "WinXP" with "Windows XP".
9104
9105 2012-01-04  Jim Meyering  <meyering@redhat.com>
9106
9107         test-vc-list-files-cvs.sh: remove obsolete comment
9108         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9109         double exit.  Now that's all encapsulated via skip_ and Exit.
9110
9111 2012-01-04  Bruno Haible  <bruno@clisp.org>
9112
9113         Talk about "native Windows API", not "Win32".
9114         * lib/classpath.c: Update comments to mention native Windows.
9115         * lib/csharpexec.c: Likewise.
9116         * lib/dup2.c: Likewise.
9117         * lib/error.c: Likewise.
9118         * lib/fcntl.c: Likewise.
9119         * lib/filename.h: Likewise.
9120         * lib/findprog.c: Likewise.
9121         * lib/get-rusage-as.c: Likewise.
9122         * lib/get-rusage-data.c: Likewise.
9123         * lib/getpagesize.c: Likewise.
9124         * lib/javaexec.c: Likewise.
9125         * lib/msvc-inval.c: Likewise.
9126         * lib/msvc-nothrow.c: Likewise.
9127         * lib/nanosleep.c: Likewise.
9128         * lib/nonblocking.c: Likewise.
9129         * lib/printf-parse.c: Likewise.
9130         * lib/setlocale.c: Likewise.
9131         * lib/sigaction.c: Likewise.
9132         * lib/strerror_r.c: Likewise.
9133         * lib/tmpdir.c: Likewise.
9134         * lib/vasnprintf.c: Likewise.
9135         * lib/w32spawn.h: Likewise.
9136         * lib/waitpid.c: Likewise.
9137         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9138         * m4/locale-ar.m4: Likewise.
9139         * m4/locale-fr.m4: Likewise.
9140         * m4/locale-ja.m4: Likewise.
9141         * m4/locale-tr.m4: Likewise.
9142         * m4/locale-zh.m4: Likewise.
9143         * m4/printf.m4: Likewise.
9144         * tests/test-cloexec.c: Likewise.
9145         * tests/test-copy-acl.sh: Likewise.
9146         * tests/test-copy-file.sh: Likewise.
9147         * tests/test-file-has-acl.sh: Likewise.
9148         * tests/test-set-mode-acl.sh: Likewise.
9149         * tests/test-dup-safer.c: Likewise.
9150         * tests/test-dup2.c: Likewise.
9151         * tests/test-dup3.c: Likewise.
9152         * tests/test-fcntl.c: Likewise.
9153         * tests/test-nonblocking-pipe.h: Likewise.
9154         * tests/test-nonblocking-socket.h: Likewise.
9155         * tests/test-pipe.c: Likewise.
9156         * tests/test-pipe2.c: Likewise.
9157         * tests/test-spawn-pipe-child.c: Likewise.
9158         * doc/acl-resources.txt: Likewise.
9159         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9160         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9161         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9162         * lib/localcharset.c: Update comments to mention native Windows.
9163         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9164         * lib/localename.c: Likewise.
9165         * lib/progreloc.c: Likewise.
9166         * lib/relocatable.c: Likewise.
9167         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9168         (windows_compute_revents): Renamed from win32_compute_revents.
9169         (windows_compute_revents_socket): Renamed from
9170         win32_compute_revents_socket.
9171         * lib/select.c: Update comments to mention native Windows.
9172         (windows_poll_handle): Renamed from win32_poll_handle.
9173         * m4/threadlib.m4: Update comments to mention native Windows.
9174         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9175         --enable-threads=windows instead of --enable-threads=win32. Set
9176         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9177         * lib/glthread/lock.h: Update comments to mention native Windows.
9178         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9179         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9180         USE_WIN32_THREADS.
9181         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9182         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9183         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9184         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9185         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9186         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9187         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9188         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9189         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9190         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9191         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9192         * tests/test-tls.c: Likewise.
9193         Rationale:
9194         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9195         on both 32-bit and 64-bit Windows systems.
9196         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9197         line of distinction is between "native Windows" on one side and Unix/
9198         POSIX systems on the other side. More details in
9199         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9200         Suggested by Paul Eggert.
9201
9202 2012-01-03  Bruno Haible  <bruno@clisp.org>
9203
9204         isatty: Support for MSVC 9.
9205         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9206         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9207         (_isatty_nothrow): New function.
9208         (isatty): Use it instead of _isatty.
9209         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9210         * lib/poll.c (IsConsoleHandle): Likewise.
9211         * lib/select.c (IsConsoleHandle): Likewise.
9212         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9213         (gl_PREREQ_ISATTY): New macro.
9214         * modules/isatty (Depends-on): Add msvc-inval.
9215         (configure.ac): Invoke gl_PREREQ_ISATTY.
9216
9217 2012-01-03  Jim Meyering  <meyering@redhat.com>
9218
9219         maint.mk: remove temporary transition aid from over 1.5 years ago
9220         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9221         purpose was to aid in the transition (avoiding silent malfunction)
9222         from that old name to the new _sc_search_regexp.  This shim was
9223         added by commit 219c504b.
9224
9225         init.sh: do not try to accommodate compare arguments starting with "-"
9226         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9227         compare arguments that start with "-".  Besides, we do not worry
9228         about this when invoking diff or cmp; why start now with sed?
9229         Using "--" to separate options from argument would trigger sed
9230         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9231         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9232
9233 2012-01-02  Bruno Haible  <bruno@clisp.org>
9234
9235         Enhance tests for module 'isatty'.
9236         * modules/isatty-tests (Depends-on): Add pipe-posix.
9237         * tests/test-isatty.c: Include <fcntl.h>.
9238         (DEV_NULL): New macro.
9239         (main): Test the resut of isatty() also on regular files, pipes, and
9240         /dev/null.
9241
9242         New module 'isatty'.
9243         * lib/unistd.in.h (isatty): New declaration.
9244         * lib/isatty.c: New file, based on an idea of
9245         Bastien Roucariès <roucaries.bastien@gmail.com>.
9246         * m4/isatty.m4: New file.
9247         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9248         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9249         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9250         REPLACE_ISATTY.
9251         * modules/isatty: New file.
9252         * doc/posix-functions/isatty.texi: Mention the new module.
9253         Suggested by Paolo Bonzini.
9254
9255 2012-01-02  Bruno Haible  <bruno@clisp.org>
9256
9257         canonicalize: Tweak 2011-12-29 commit.
9258         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9259         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9260
9261 2012-01-02  Jim Meyering  <meyering@redhat.com>
9262
9263         gitlog-to-changelog: describe input syntax in --help output
9264         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9265
9266         gitlog-to-changelog: fix typo in --help: show backslash before email @
9267         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9268         in sources, but not in actual output.
9269
9270 2011-12-30  Jim Meyering  <meyering@redhat.com>
9271
9272         gitlog-to-changelog: don't malfunction when name contains %-directive
9273         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9274         in a name string cause trouble.  E.g., with a user name of "%s",
9275         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9276
9277 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9278
9279         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9280         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9281         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9282         the "  (tiny change)" notation that is appended to the standard
9283         ChangeLog "date  name  email" header line.
9284
9285 2012-01-01  Jim Meyering  <meyering@redhat.com>
9286
9287         test-framework-sh: init.sh: fix "make dist" failure
9288         When using gnulib-tool's --with-tests option and any module that
9289         depends on test-framework-sh, "make dist" would fail due to the
9290         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9291         in the gltests directory, and not in the gllib/ directory.
9292         One way to work around that is to move the EXTRA_DIST += init.sh
9293         from the primary module to the -tests one:
9294         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9295         * modules/test-framework-sh (Makefile.am): ...not here.
9296         Reported by Tom G. Christensen in
9297         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9298
9299         version-etc: update copyright year reported by --version
9300         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9301
9302 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9303
9304         canonicalize: only stat() if required
9305         * lib/canonicalize.c (canonicalize_filename_mode):
9306         Avoid calling l?stat() when both CAN_MISSING,
9307         and CAN_NOLINKS are set, as we neither need
9308         to resolve symlinks or test component existence.
9309
9310 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         doc: cover st_ino issues once; add OpenVMS etc.
9313         * doc/posix-functions/stat.texi (stat):
9314         * doc/posix-functions/lstat.texi (lstat):
9315         * doc/posix-functions/fstatat.texi (fstatat):
9316         * doc/posix-functions/fstat.texi (fstat):
9317         Move general 'struct stat' stuff to sys_stat.texi,
9318         leaving behind a pointer.
9319         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9320         Merge duplicate info about 'struct stat' problems into here.
9321         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9322         and suggest partial workarounds.
9323
9324         same-inode: port to OpenVMS
9325         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9326         three st_ino values.
9327
9328 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9329
9330         canonicalize: fix references to stat() and lstat()
9331         * lib/canonicalize.c (canonicalize_filename_mode):
9332         Ensure references always resolve to a replacement
9333         function if required (even via a macro).
9334
9335 2011-12-30  Jim Meyering  <meyering@redhat.com>
9336
9337         gitlog-to-changelog: remove a little duplication
9338         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9339         rather than twice.
9340
9341 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9342
9343         canonicalize: add support for not resolving symlinks
9344         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9345         indicate we don't want to follow symlinks.  Also
9346         provide CAN_MODE_MASK to aid setting these existing
9347         mutually exclusive values.
9348         * lib/canonicalize.c (canonicalize_filename_mode):
9349         Extract the flags from can_mode parameter, which
9350         are currently just used to select between stat()
9351         and lstat().  Also ensure that mutually exclusive
9352         values are flagged immediately as invalid.
9353         * tests/test-canonicalize.c: Verify symlinks are
9354         not followed, and that invalid flag combinations
9355         are diagnosed.
9356
9357 2011-12-25  Jim Meyering  <meyering@redhat.com>
9358
9359         gitlog-to-changelog: do not clump multi-paragraph entries
9360         Identical header lines (date,name,email+coauthors) are suppressed,
9361         thus putting all entries with those same characteristics under
9362         a single header.  However, when a log entry consists of two or
9363         more paragraphs, it may not be clear where it starts and ends.
9364         This change makes it so that such an entry is always separated
9365         from others by a header line, even when that header would
9366         otherwise be suppressed.
9367         * build-aux/gitlog-to-changelog: Implement the above.
9368         Inspired by a related request from Stefano Lattarini in
9369         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9370
9371 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9372
9373         announce-gen: fix `cmd' typo in diagnostic
9374         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9375         diagnostic: a missing '$' meant that the command was not output.
9376
9377 2011-12-23  Jim Meyering  <meyering@redhat.com>
9378
9379         test-framework-sh: distribute init.sh
9380         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9381         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9382         fail due to the lack of init.sh.
9383
9384         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9385         * modules/atexit-tests: Rather than listing tests/init.sh,
9386         now that there's a module for it, simply depend on that new module.
9387         * modules/closein-tests: Likewise.
9388         * modules/exclude-tests: Likewise.
9389         * modules/getcwd-tests: Likewise.
9390         * modules/perror-tests: Likewise.
9391         * modules/pread-tests: Likewise.
9392         * modules/pwrite-tests: Likewise.
9393         * modules/vc-list-files-tests: Likewise.
9394         * modules/verify-tests: Likewise.
9395         * modules/xalloc-die-tests: Likewise.
9396         * modules/xstrtoimax-tests: Likewise.
9397         * modules/xstrtol-tests: Likewise.
9398         * modules/xstrtoll-tests: Likewise.
9399         * modules/xstrtoumax-tests: Likewise.
9400         * modules/yesno-tests: Likewise.
9401
9402 2011-12-22  Jim Meyering  <meyering@redhat.com>
9403
9404         test-framework-sh: add minimal tests of init.sh's compare function
9405         * modules/test-framework-sh-tests: New file.
9406         * tests/test-init.sh: New file.
9407
9408         test-framework-sh: new module
9409         * modules/test-framework-sh: New file.
9410         * MODULES.html.sh (Support for maintaining and releasing projects):
9411         List it.
9412
9413         init.sh: do not emit simulated diff output to stderr
9414         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9415
9416 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9417
9418         .gitignore: ignore gnulib.dvi and regex.info
9419         * doc/.gitignore:add gnulib.dvi and regex.info
9420
9421 2011-12-22  Jim Meyering  <meyering@redhat.com>
9422
9423         init.sh: correct previous change
9424         * tests/init.sh (compare): My previous change was wrong.
9425         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9426
9427         init.sh: avoid unwarranted test failure when using "set -e"
9428         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9429         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9430         a use like "compare exp out" would get evoke an unconditional failure.
9431
9432 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9433
9434         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9435         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9436         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9437         autoreconf that did not.
9438         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9439         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9440
9441 2011-12-17  Jim Meyering  <meyering@redhat.com>
9442
9443         bootstrap: remove some now-unneeded code
9444         This script arose back when gnulib-tool was young.
9445         Since then, it has seen improvements that render much of this
9446         script unnecessary.  In particular, it can now make symlinks
9447         to the files it uses.  Also, I no longer see as much value in
9448         marking files as read-only via comments.
9449         If you relied on the symlink-creation feature of the preceding
9450         version of this script, you can get most of that functionality
9451         by adding the --symlink option to the definition of
9452         gnulib_tool_option_extras in your bootstrap.conf file.
9453         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9454         Run autopoint and libtoolize *before* gnulib-tool.
9455         After it, run an abbreviated autoreconf, rather than a loop around
9456         all tools.
9457         (slirp, bt_mark_as_generated): Remove functions.
9458
9459 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9460
9461         ftoastr: fix typo
9462         * lib/ftoastr.h: Fix misspelling in comment.
9463
9464 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9465
9466         * top/README-release: fix punctuation.
9467
9468 2011-12-17  Jim Meyering  <meyering@redhat.com>
9469
9470         bootstrap: correct the recent buildreq change
9471         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9472         had no effect.
9473         * build-aux/bootstrap (buildreq): Bracket each search term with
9474         "*...*", so that the shell "case" statement works as intended.
9475         Add comments.
9476
9477 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9478
9479         build: let bootstrap resort to wget when downloading .po files
9480         * build-aux/bootstrap (download_po_files): Fallback to wget when
9481         downloading the .po files via rsync fails.  This is necessary to
9482         bootstrap from behind a strict firewall.
9483
9484 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9485
9486         stdint: don't assume C++11 when compiling with g++
9487         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9489         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9490         work also in C++ before C++11, as that improperly inhibits
9491         generating a substitute stdint.h for that case.
9492
9493 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9494
9495         alloca: protect comment from gnulib-tool
9496         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9497         that gnulib-tool doesn't think it's a license, and munge it to
9498         say "GCC version 3".
9499
9500 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9501
9502         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9503         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9504         $(abs_top_builddir) instead of $(top_builddir).
9505
9506 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9507
9508         strftime-tests: also test nanoseconds
9509         * tests/test-strftime.c (T): Add a test of %N.
9510
9511 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9512
9513         inttypes, stdint: add C++11 support
9514         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9515         when including inttypes.h and stdint.h.  Support this change to
9516         the standard.
9517         * doc/posix-headers/inttypes.texi (inttypes.h):
9518         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9519         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9520         Define if not defined already, for the benefit of pre-C++11 hosts.
9521         Define the standard format macros (e.g., PRId8) always.
9522         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9523         Likewise, if __cpluspus.  Define the standard constant and limit
9524         macros (e.g., INT8_C, INT8_MAX) always.
9525         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9526         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9527         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9528         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9529         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9530         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9531         Likewise.
9532
9533 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9534
9535         nonblocking tests: Fix test failure on Linux/PPC.
9536         Suggested by Prerna Saxena in
9537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9538         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9539         Set to 1100000.
9540
9541 2011-12-12  Jim Meyering  <meyering@redhat.com>
9542
9543         argmatch: don't hard-code `' when listing valid option arguments
9544         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9545         use the quote function to add quotes.  Use fputs rather than
9546         fprintf for the format string with no format directive.
9547
9548 2011-12-07  Eric Blake  <eblake@redhat.com>
9549
9550         bootstrap: detect tools required by gnulib-tool
9551         * build-aux/bootstrap (buildreq): Provide minimum implicit
9552         dependencies.
9553         * DEPENDENCIES: Mention patch as a prereq.
9554
9555 2011-12-04  Bruno Haible  <bruno@clisp.org>
9556
9557         sethostname: Port to Windows platforms.
9558         * lib/sethostname.c: Provide an alternate implementation for Windows
9559         platforms.
9560         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9561         (main): Skip the test if sethostname() fails with EPERM. On Windows
9562         platforms, don't check the result of gethostname().
9563
9564 2011-12-04  Bruno Haible  <bruno@clisp.org>
9565             Jim Meyering  <meyering@redhat.com>
9566
9567         tests: Avoid spurious error message on platforms without mktemp program.
9568         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9569
9570 2011-12-04  Bruno Haible  <bruno@clisp.org>
9571
9572         sethostname: Fix documentation.
9573         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9574         "not fixed" section.
9575
9576 2011-12-03  Bruno Haible  <bruno@clisp.org>
9577
9578         gnulib-tool: Verify that the License field is present and non-empty.
9579         * gnulib-tool (func_get_license_raw): New function, extracted from
9580         func_get_license.
9581         (func_get_license): Use it. Warn if the module is not a test module and
9582         has no license.
9583         Suggested by Jim Meyering.
9584
9585 2011-12-03  Bruno Haible  <bruno@clisp.org>
9586
9587         sethostname tests: Fix link error on mingw.
9588         * tests/test-sethostname1.c: New file, extracted from
9589         tests/test-sethostname.c.
9590         * tests/test-sethostname2.c: New file, extracted from
9591         tests/test-sethostname.c.
9592         * tests/test-sethostname.c: Remove file.
9593         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9594         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9595         (Depends-on): Add gethostname.
9596         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9597         Link the latter with $(GETHOSTNAME_LIB).
9598
9599         sethostname tests: Fix compilation error on mingw.
9600         * tests/test-sethostname.c: Don't include <sys/types.h>.
9601         (geteuid): Use a dummy value without uid_t.
9602         * modules/sethostname-tests (Depends-on): Remove sys_types.
9603
9604         sethostname tests: Avoid a gcc warning.
9605         * tests/test-sethostname.c (main): Remove an unused variable.
9606
9607         Tweak last commit.
9608         * modules/sethostname-tests (Files): Sort by decreasing importance.
9609         (configure.ac): Check for geteuid.
9610         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9611         the test when there's nothing to test. Drop an unnecessary cast.
9612         Improve an error message. Verify that the final sethostname() call
9613         succeeds.
9614
9615 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9616
9617         Add a test suite for the sethostname module.
9618         * modules/sethostname-tests: New file.  A test program
9619         for the sethostname module.
9620         * tests/test-sethostname.c: Likewise.
9621
9622 2011-12-03  Bruno Haible  <bruno@clisp.org>
9623
9624         Tweak last commit.
9625         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9626         Fix preprocessor directives indentation. Fix typos.
9627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9628         * modules/unistd (Makefile): Likewise.
9629
9630 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9631
9632         Integrate the sethostname module into unistd.
9633         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9634         into the unistd.h header.
9635         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9636         preprocessor directives.
9637         * modules/unistd: Setup the Makefile substitutions of the
9638         SETHOSTNAME preprocessor directives.
9639
9640 2011-12-03  Bruno Haible  <bruno@clisp.org>
9641
9642         Tweak last commit.
9643         * lib/sethostname.c: Don't include <string.h>.
9644         (sethostname): No need to copy the argument string to the stack. Don't
9645         call clearerr. Preserve errno when fprintf failed.
9646         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9647         Don't invoke AC_REPLACE_FUNCS.
9648         * modules/sethostname (Link): Remove empty section.
9649         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9650         failure problem.
9651
9652 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9653
9654         New module 'sethostname'.
9655         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9656         for systems that lack it.
9657         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9658         sethostname declaration and function.
9659         * modules/sethostname: New file.  Define the sethostname module.
9660
9661 2011-12-03  Bruno Haible  <bruno@clisp.org>
9662
9663         Tweak last commit.
9664         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9665
9666 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9667
9668         Split the HOST_NAME_MAX detection into a separate m4 macro.
9669         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9670         macro so it can be used by the pending sethostname module.
9671
9672 2011-12-03  Bruno Haible  <bruno@clisp.org>
9673
9674         Fix module descriptions syntax.
9675         * modules/argv-iter (License): Fix syntax.
9676         * modules/di-set (License): Likewise.
9677         * modules/ino-map (License): Likewise.
9678         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9679
9680 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9681
9682         stdalign: port to Clang 3.0
9683         Problem reported by Simon Josefsson in
9684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9685         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9686         which has <stdalign.h> but which does not define alignof.
9687         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9688
9689 2011-12-01  Eric Blake  <eblake@redhat.com>
9690
9691         mktempd: silence dd usage
9692         * build-aux/mktempd (rand_bytes): Silence dd.
9693
9694 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9695
9696         manywarnings: Don't mention gcc version in docstring.
9697         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9698         Jim Meyering <meyering@redhat.com>.
9699
9700 2011-11-30  Jim Meyering  <meyering@redhat.com>
9701
9702         hash: mark a few floating point constants with "f" suffix
9703         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9704         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9705         floating point constants with "f", since they're destined to be
9706         saved/used as "float"s.
9707
9708 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9709
9710         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9711         * tests/test-float.c (test_long_double): Correct and re-enable the
9712         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9713
9714 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9715
9716         Avoid subtracting two pointers that don't point into the same block.
9717         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9718         only pointers into the same memory block are subtracted. We cannot
9719         assume that sizeof (ptrdiff_t) == sizeof (void *).
9720
9721 2011-11-29  Eric Blake  <eblake@redhat.com>
9722
9723         maint.mk: add syntax check for use of compare from init.sh
9724         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9725         moved here from coreutils.
9726
9727         manywarnings: drop -Wunsuffixed-float-constants
9728         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9729         '1.0D', which is the only way to silence this warning for 'double'.
9730
9731 2011-11-29  Jim Meyering  <meyering@redhat.com>
9732
9733         hash: mark compute_bucket_size with the pure attribute
9734         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9735
9736         quotearg, propername: correct pragma guard expression
9737         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9738         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9739
9740 2011-11-28  Jim Meyering  <meyering@redhat.com>
9741
9742         propername: do not mark proper_name with the const attribute
9743         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9744         since it examines data pointed to by its parameter.
9745         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9746         the suggestion from -Wsuggest-attribute=const.
9747
9748         propername: mark one more function as const
9749         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9750
9751 2011-11-27  Jim Meyering  <meyering@redhat.com>
9752
9753         mark functions with const and pure attributes
9754
9755         Mark functions per suggestions from gcc-4.6 when using these options:
9756         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9757         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9758         Follow these guidelines: when possible, apply the attribute to
9759         an extern declaration, not to its definition.  Apply it to the
9760         definition only when the definition is static.
9761         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9762         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9763         * lib/base64.h (isbase64): Likewise.
9764         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9765         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9766         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9767         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9768         (c_tolower, c_toupper): Likewise.
9769         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9770         * lib/chdir-long.c (find_non_slash): Likewise.
9771         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9772         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9773         * lib/file-type.h (file_type): Likewise.
9774         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9775         * lib/filevercmp.c (verrevcmp): Likewise.
9776         * lib/freadahead.h (freadahead): Likewise.
9777         * lib/fts.c (fts_maxarglen): Likewise.
9778         * lib/hash-pjw.h (hash_pjw): Likewise.
9779         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9780         * lib/hash.c (is_prime, next_prime): Likewise.
9781         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9782         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9783         (hash_table_ok, hash_get_first, hash_string): Likewise.
9784         (compute_bucket_size): Likewise.
9785         * lib/i-ring.h (i_ring_empty): Likewise.
9786         * lib/isnan.c (isnanl): Likewise.
9787         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9788         * lib/memcasecmp.h (memcasecmp): Likewise.
9789         * lib/memchr2.h (memchr2): Likewise.
9790         * lib/memcmp2.h (memcmp2): Likewise.
9791         * lib/parse-datetime.y (lookup_zone): Likewise.
9792         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9793         [!WINDOWS_SOCKETS]: Likewise.
9794         * lib/strnlen1.h (strnlen1): Likewise.
9795         * lib/uniwidth.in.h (uc_width): Likewise.
9796         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9797         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9798         (quoting_options_from_style): Add a comment.
9799         * lib/propername.h (proper_name): Add a comment.
9800
9801 2011-11-27  Bruno Haible  <bruno@clisp.org>
9802
9803         Remove unused macros from !_LIBC code in glibc-borrowed files.
9804         * lib/fnmatch.c (STRCOLL): Remove macro.
9805         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9806         * lib/glob.c (__stat, __readdir64): Remove macros.
9807         * lib/tempname.c (__open64, __xstat64): Remove macros.
9808         Suggested by Paul Eggert.
9809
9810 2011-11-27  Bruno Haible  <bruno@clisp.org>
9811
9812         getcwd: Fix link error on MSVC 9.
9813         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9814
9815 2011-11-27  Bruno Haible  <bruno@clisp.org>
9816
9817         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9818         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9819         HAVE_OPENDIR is 0.
9820         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9821         HAVE_CLOSEDIR is 0.
9822         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9823         is 0.
9824         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9825
9826 2011-11-27  Bruno Haible  <bruno@clisp.org>
9827
9828         getcwd: Fix bug from 2011-08-17.
9829         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9830         platforms that need it.
9831         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9832         code of 4 to be a failure, not a success. This ensures that
9833         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9834
9835 2011-11-27  Bruno Haible  <bruno@clisp.org>
9836
9837         binary-io tests: Avoid test failure on mingw when libtool is used.
9838         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9839         Don't verify the size of t-bin-out1.tmp here.
9840         * tests/test-binary-io.sh: Verify it here.
9841         Reported by Simon Josefsson.
9842
9843 2011-11-26  Bruno Haible  <bruno@clisp.org>
9844
9845         Fix conflict between two instantiations of module 'unistd'.
9846         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9847         ${include_guard_prefix} also in the autoconf snippet.
9848         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9850         GNULIB_UNISTD_H_GETOPT.
9851         * modules/getopt-posix (configure.ac): Set the
9852         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9853         * modules/getopt-gnu (configure.ac): Likewise.
9854         * modules/unistd (Makefile.am): Change the substitution value of
9855         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9856         Reported by Simon Josefsson.
9857
9858 2011-11-25  Bruno Haible  <bruno@clisp.org>
9859
9860         pagealign_alloc: Doc and comments.
9861         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9862         module.
9863         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9864
9865 2011-11-25  Jim Meyering  <meyering@redhat.com>
9866
9867         test-update-copyright.sh: avoid false-positive failure
9868         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9869         around false positive failure on Cygwin/Windows.  The latter was
9870         matching erroneously-created files with names like
9871         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9872
9873 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9874
9875         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9876         * m4/valgrind-tests.m4: Check that the parameters that will be
9877         used works, not just a subset of them.  Reported by Bruno Haible
9878         <bruno@clisp.org>.
9879
9880 2011-11-24  Jim Meyering  <meyering@redhat.com>
9881
9882         test-stdalign.c: comment out long double tests
9883         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9884         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9885         error: '_Alignas' specifiers cannot reduce alignment of \
9886         'static_longdouble_alignas'.
9887
9888 2011-11-22  Jim Meyering  <meyering@redhat.com>
9889
9890         init.sh: make "compare /dev/null FILE" output more readable
9891         * tests/init.sh (compare_): Document the preferred order of arguments.
9892         (emit_diff_u_header_): New function.
9893         (compare_dev_null_): Emit a simulated diff, rather than just the
9894         contents of the unexpected file.  Suggestion from Bruno Haible.
9895
9896 2011-11-21  Jim Meyering  <meyering@redhat.com>
9897             Eric Blake  <eblake@redhat.com>
9898
9899         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9900         * tests/init.sh: Make our compare function slightly more portable.
9901         Reported by Bruno Haible in
9902         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9903
9904 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9905
9906         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9907         before using it, in code that ends up in config.h.
9908
9909 2011-11-20  Bruno Haible  <bruno@clisp.org>
9910
9911         getcwd: Work around getcwd bug on AIX 5..7.
9912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9913         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9914         Use a different value for gl_cv_func_getcwd_path_max. Move the
9915         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9916         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9917         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9918         Define HAVE_MINIMALLY_WORKING_GETCWD.
9919         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9920         where it is not even minimally working, that is, on AIX.
9921         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9922         m4/getcwd-path-max.m4.
9923         (main): Update exit code computation.
9924         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9925         getcwd does not handle long file names.
9926
9927 2011-11-20  Bruno Haible  <bruno@clisp.org>
9928
9929         getcwd: Fix bug from 2009-09-10.
9930         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9931         like "no".
9932
9933 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9934
9935         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9936
9937 2011-11-20  Bruno Haible  <bruno@clisp.org>
9938
9939         fma tests: Avoid shadowing local variables.
9940         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9941         expected.
9942
9943 2011-11-20  Bruno Haible  <bruno@clisp.org>
9944
9945         copysignf tests: Fix.
9946         * tests/test-copysignf.c: Fix signature check.
9947
9948 2011-11-20  Bruno Haible  <bruno@clisp.org>
9949
9950         fma: Remove unused code.
9951         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9952         unused macros.
9953
9954 2011-11-20  Bruno Haible  <bruno@clisp.org>
9955
9956         sethostname: Fix doc about AIX.
9957         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9958         sethostname; it has it.
9959
9960         sethostname: Mention more portability problems.
9961         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9962         problem.
9963         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9964
9965 2011-11-19  Bruno Haible  <bruno@clisp.org>
9966
9967         Depend on module fcntl-h when AT_FDCWD is used.
9968         * modules/utimens (Depends-on): Add fcntl-h.
9969         * modules/areadlinkat (Depends-on): Likewise.
9970         * modules/areadlinkat-with-size (Depends-on): Likewise.
9971         * modules/faccessat (Depends-on): Likewise.
9972         * modules/fchmodat (Depends-on): Likewise.
9973         * modules/fchownat (Depends-on): Likewise.
9974         * modules/getcwd (Depends-on): Likewise.
9975         * modules/mkdirat (Depends-on): Likewise.
9976         * modules/mkfifoat (Depends-on): Likewise.
9977         * modules/readlinkat (Depends-on): Likewise.
9978         * modules/symlinkat (Depends-on): Likewise.
9979         * modules/dup2-tests (Depends-on): Likewise.
9980         * modules/fdutimensat-tests (Depends-on): Likewise.
9981         * modules/futimens-tests (Depends-on): Likewise.
9982
9983 2011-11-19  Bruno Haible  <bruno@clisp.org>
9984
9985         euidaccess: Update a comment.
9986         * lib/euidaccess.c: Update comment about platforms with faccessat.
9987
9988 2011-11-19  Bruno Haible  <bruno@clisp.org>
9989
9990         openat: Fix file list.
9991         * modules/openat (Files): Remove lib/at-func.c.
9992
9993 2011-11-19  Bruno Haible  <bruno@clisp.org>
9994
9995         fstatat: Simplify.
9996         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9997         gnulib should define rpl_fstatat, there is a
9998         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9999
10000 2011-11-19  Bruno Haible  <bruno@clisp.org>
10001
10002         Ensure 'inline' can be used in tests/test-utimens-common.h.
10003         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10004         * modules/futimens-tests (configure.ac): Likewise.
10005         * modules/utimens-tests (configure.ac): Likewise.
10006         * modules/utimensat-tests (configure.ac): Likewise.
10007
10008 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10009
10010         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10011         not hash_insert0.
10012         (hash_insert_if_absent): Doc fix.
10013
10014 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10015
10016         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10017
10018 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10019
10020         test-getcwd: disambiguate exit status
10021         * tests/test-getcwd.c (test_long_name): Return 0..7.
10022         (main): Exit with an unambiguous exit status.  The old
10023         code yielded a mysterious mixture of two failure codes.
10024
10025         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10026         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10027         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10028         rpl_fstatat or fstatat.  This should fix the other problem
10029         reported by Kai Habel in
10030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10031         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10033         and I reproduced it on a Solaris 8 host we still have in production.
10034
10035 2011-11-18  Jim Meyering  <meyering@redhat.com>
10036
10037         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10038         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10039         Add a sentence to the comment.
10040         (hash_insert0): New function that simply calls hash_insert_if_absent.
10041         * lib/hash.h (hash_insert_if_absent): Declare it.
10042         (hash_insert0): Add deprecation attribute.
10043         (_GL_ATTRIBUTE_DEPRECATED): Define.
10044         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10045         not hash_insert0.
10046         * NEWS: Mention it, even though it's not really an incompatible change.
10047
10048 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10049
10050         openat: avoid compilation failure due to lack of <errno.h> inclusion
10051         * lib/openat.c: Include <errno.h>.
10052
10053 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10054
10055         * modules/getcwd (Depends-on): Add fdopendir.
10056         This fixes one of the two problems reported by Kai Habel in
10057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10058
10059         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10060         stdalign problem reported by Ian Beckwith in
10061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10062         * modules/crypto/gc-arcfour (Depends-on):
10063         Depend conditionally on crypto/arcfour.
10064         * modules/crypto/gc-arctwo (Depends-on):
10065         Depend conditionally on crypto/arctwo.
10066         * modules/crypto/gc-des (Depends-on):
10067         Depend conditionally on crypto/des.
10068         * modules/crypto/gc-hmac-md5 (Depends-on):
10069         Depend conditionally on crypto/hmac-md5.
10070         * modules/crypto/gc-hmac-sha1 (Depends-on):
10071         Depend conditionally on crypto/hmac-sha1.
10072         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10073         * modules/crypto/gc-md4 (Depends-on):
10074         Depend conditionally on crypto/md4.
10075         * modules/crypto/gc-md5 (Depends-on):
10076         Depend conditionally on crypto/md5.
10077         * modules/crypto/gc-rijndael (Depends-on):
10078         Depend conditionally on crypto/rijndael.
10079         * modules/crypto/gc-sha1 (Depends-on):
10080         Depend conditionally on crypto/sha1.
10081         * modules/crypto/gc-arcfour:
10082         * modules/crypto/gc-arctwo:
10083         * modules/crypto/gc-des:
10084         * modules/crypto/gc-hmac-md5:
10085         * modules/crypto/gc-hmac-sha1:
10086         * modules/crypto/gc-md2:
10087         * modules/crypto/gc-md4:
10088         * modules/crypto/gc-md5:
10089         * modules/crypto/gc-rijndael:
10090         * modules/crypto/gc-sha1:
10091         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10092         now that the conditional dependencies do the work for us.
10093
10094 2011-11-17  Jim Meyering  <meyering@redhat.com>
10095
10096         tests: factor st_ctime-comparison out of two headers
10097         * tests/test-utimens-common.h (ctime_compare): Define.
10098         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10099         * tests/test-lutimens.h (test_lutimens): Likewise.
10100         * tests/test-utimens.h (test_utimens): Likewise.
10101
10102         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10103         Invoke the test program via an init.sh-using wrapper.
10104         * tests/test-getcwd.sh: New file.
10105         * modules/getcwd-tests (Files): Add it.
10106         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10107
10108 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10109
10110         gitlog-to-changelog: support multi-author commits.
10111         The FSF cares about keeping track of all authors of patches to its
10112         projects, but Git doesn't provide obvious support for multi-author
10113         changesets. Consensus seems to be forming around the use of extra
10114         Signed-off-by inspired lines in the log message formatted as
10115         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10116         multi-author commits between version control systems.
10117         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10118         log message and output in standard ChangeLog multi-author format.
10119         Reported by Peter Rosin <peda@lysator.liu.se>
10120
10121 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10122             Bruno Haible  <bruno@clisp.org>
10123
10124         Fix some modules' file list.
10125         * modules/fstatat (Files): Add m4/lstat.m4.
10126         * modules/openat (Files): Likewise.
10127         * modules/unlinkat (Files): Likewise.
10128
10129 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10130
10131         maint.mk: fix tight-scope.mk generation in VPATH builds.
10132         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10133         reference with $(srcdir) so that the file is found correctly even
10134         when running `make syntax-check' in a VPATH build.
10135
10136 2011-11-13  Bruno Haible  <bruno@clisp.org>
10137             Jim Meyering  <meyering@redhat.com>
10138
10139         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10140         * tests/init.sh (compare): Remove "No differences encountered" or
10141         synonymous output from the 'diff' program.
10142
10143 2011-11-13  Bruno Haible  <bruno@clisp.org>
10144
10145         Makefile: Tweak indentation.
10146         * Makefile: Use tab as first character in every line that contains rule
10147         commands.
10148
10149 2011-11-13  Bruno Haible  <bruno@clisp.org>
10150
10151         Syntax check for copyright statements.
10152         * check-copyright: New file.
10153         * Makefile (sc_check_copyright): New rule.
10154
10155 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10156
10157         * build-aux/git-version-gen: Add --prefix to configure the tag
10158         match string.
10159
10160 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10161
10162         * build-aux/git-version-gen: Add --help and --version.
10163
10164 2011-11-12  Jim Meyering  <meyering@redhat.com>
10165
10166         revamp the other test-exclude?.sh scripts to use init.sh, too
10167         * tests/test-exclude1.sh: Use init.sh.
10168         * tests/test-exclude2.sh: Likewise.
10169         * tests/test-exclude3.sh: Likewise.
10170         * tests/test-exclude4.sh: Likewise.
10171         * tests/test-exclude5.sh: Likewise.
10172         * tests/test-exclude6.sh: Likewise.
10173         * tests/test-exclude7.sh: Likewise.
10174         * tests/test-exclude8.sh: Likewise.
10175         * modules/exclude-tests (Files): List init.sh.
10176
10177         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10178         These shell scripts ignored failure of the binary test-exclude,
10179         so making the latter return 77 didn't cause them to be skipped.
10180         * tests/test-exclude5.sh: Exit with test-exclude's error status
10181         when that program fails.  Revamp to use init.sh.
10182         * tests/test-exclude2.sh: Likewise.
10183
10184         test-exclude: fix a typo
10185         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10186
10187 2011-11-11  Bruno Haible  <bruno@clisp.org>
10188
10189         obstack: Fix compilation error on MSVC 9.
10190         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10191
10192 2011-11-11  Jim Meyering  <meyering@redhat.com>
10193
10194         test-exclude: skip tests rather than failing on deficient systems
10195         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10196         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10197         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10198         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10199
10200 2011-11-10  Bruno Haible  <bruno@clisp.org>
10201
10202         ptsname_r test: Avoid gcc warning on glibc systems.
10203         * tests/test-ptsname_r.c (null_ptr): New function.
10204         (test_errors): Use it.
10205
10206 2011-11-10  Bruno Haible  <bruno@clisp.org>
10207
10208         ptsname_r: Avoid compilation error on OSF/1 5.1.
10209         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10211         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10212         function is not declared or incompatibly declared.
10213         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10214         * modules/ptsname_r (Depends-on, configure.ac): Update.
10215         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10216
10217 2011-11-10  Bruno Haible  <bruno@clisp.org>
10218
10219         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10220         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10221         When cross-compiling, guess yes on all platforms except AIX.
10222         Reported by Ludovic Courtès <ludo@gnu.org>.
10223
10224 2011-11-09  Bruno Haible  <bruno@clisp.org>
10225
10226         ptsname_r tests: Fix bugs.
10227         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10228         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10229
10230 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10231
10232         fstatat: work with cross-compilation
10233         Problem reported by Ludovic Courtès in
10234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10235         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10236         "cross-compiling" and assume the bug is present.  Replace
10237         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10238         an inverted sense, to be more conservative about our assumptions.
10239         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10240
10241 2011-11-09  Bruno Haible  <bruno@clisp.org>
10242
10243         Improve MODULES.html output.
10244         * modules/mkfifoat (Description): Use the word "function".
10245         * modules/readlinkat (Description): Likewise.
10246         * modules/symlinkat (Description): Likewise.
10247
10248 2011-11-09  Eric Blake  <eblake@redhat.com>
10249
10250         ptsname_r-tests: new test module
10251         * modules/ptsname_r-tests: New module.
10252         * tests/test-ptsname_r.c: New file.
10253
10254         ptsname_r: new module
10255         * modules/ptsname_r: New module.
10256         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10257         * lib/ptsname.c (__ptsname_r): Split...
10258         * lib/ptsname_r.c: ...into new file.
10259         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10260         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10261         * modules/stdlib (Makefile.am): Substitute witnesses.
10262         * lib/stdlib.in.h (ptsname_r): Declare it.
10263         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10264         * MODULES.html.sh (Misc): Likewise.
10265         * modules/ptsname (Depends-on): Alter dependency.
10266         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10267
10268 2011-11-09  Jim Meyering  <meyering@redhat.com>
10269
10270         announce-gen: be more concise when there's only one URL+tarball
10271         * build-aux/announce-gen (get_tool_versions): When you distribute
10272         only one type of tarball, combine the first two "Here are..."
10273         sections and make the key-checking grammar independent of
10274         how many tarballs there are.
10275
10276 2011-11-09  Eric Blake  <eblake@redhat.com>
10277
10278         openpty: provide a stub on mingw
10279         * lib/pty.in.h (includes): Provide forward declarations.
10280         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10281
10282         raise: fix mingw handling of SIGPIPE
10283         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10284
10285 2011-11-08  Bruno Haible  <bruno@clisp.org>
10286
10287         More conditional dependencies.
10288         * modules/faccessat (Depends-on): Add conditions.
10289         * modules/fchmodat (Depends-on): Likewise.
10290         * modules/fchownat (Depends-on): Likewise.
10291         * modules/fstatat (Depends-on): Likewise.
10292         * modules/mkfifoat (Depends-on): Likewise.
10293         * modules/readlinkat (Depends-on): Likewise.
10294         * modules/symlinkat (Depends-on): Likewise.
10295         * modules/unlinkat (Depends-on): Likewise.
10296         * modules/utimensat (Depends-on): Likewise.
10297         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10298         * modules/linkat (Depends-on): Refine the conditions.
10299         * modules/renameat (Depends-on): Likewise.
10300
10301 2011-11-08  Bruno Haible  <bruno@clisp.org>
10302
10303         faccessat: Move AC_LIBOBJ invocation to module description.
10304         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10305         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10306         invocation from here...
10307         * modules/faccessat (configure.ac): ... to here. Invoke
10308         gl_PREREQ_FACCESSAT.
10309
10310 2011-11-08  Bruno Haible  <bruno@clisp.org>
10311
10312         faccessat: Simplify autoconf macro.
10313         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10314         gl_FUNC_EUIDACCESS.
10315
10316 2011-11-08  Bruno Haible  <bruno@clisp.org>
10317
10318         renameat: Fix dependencies.
10319         * modules/renameat (Depends-on): Add stdbool.
10320
10321 2011-11-08  Bruno Haible  <bruno@clisp.org>
10322
10323         mkfifoat: Fix module description.
10324         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10325         not gl_UNISTD_MODULE_INDICATOR.
10326
10327 2011-11-08  Bruno Haible  <bruno@clisp.org>
10328
10329         fstatat: Remove unused dependency.
10330         * modules/fstatat (Depends-on): Remove fstat.
10331
10332 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10333
10334         GNUmakefile: behave when Makefile is missing.
10335         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10336
10337 2011-11-08  Bruno Haible  <bruno@clisp.org>
10338
10339         openat: Conditionalize dependencies.
10340         * lib/openat.c: Reduce the scope of some #includes.
10341         * modules/openat (Depends-on): Add conditions.
10342
10343 2011-11-07  Jim Meyering  <meyering@redhat.com>
10344
10345         maint.mk: extract GPG key ID without using a temporary file
10346         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10347         without using a temporary file.  Based on a suggestion from Werner Koch
10348         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10349
10350 2011-11-07  Eric Blake  <eblake@redhat.com>
10351
10352         grantpt: fix typo
10353         * lib/stdlib.in.h (grantpt): Check correct function.
10354
10355         maint.mk: silence new syntax check
10356         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10357
10358 2011-11-06  Bruno Haible  <bruno@clisp.org>
10359
10360         Doc about floating-point and math API.
10361         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10362         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10363
10364 2011-11-06  Bruno Haible  <bruno@clisp.org>
10365
10366         stdalign tests: Skip the test when compiled by Sun C.
10367         * tests/test-stdalign.c (main): Skip the test on Sun C.
10368
10369 2011-11-06  Bruno Haible  <bruno@clisp.org>
10370
10371         ansi-c++-opt: Complete the 2011-06-05 change.
10372         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10373         does not support namespaces, set the variable to "no", not to ":".
10374
10375 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10376
10377         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10378
10379 2011-11-06  Bruno Haible  <bruno@clisp.org>
10380
10381         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10382         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10383         (minus_zerol) [HP-UX]: New macro.
10384         (unary_minus) [HP-UX]: New function.
10385         (copysignl) [HP-UX]: Use unary_minus function.
10386
10387 2011-11-06  Bruno Haible  <bruno@clisp.org>
10388
10389         ldexp, ldexpf, ldexpl: Enhance tests.
10390         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10391         and tests/test-ldexpl.c.
10392         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10393         LDEXP, MIN_EXP, MAX_EXP): New macros.
10394         Include test-ldexp.h.
10395         (main): Just call test_function.
10396         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10397         infinity.h, nan.h.
10398         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10399         MAX_EXP): New macros.
10400         Include test-ldexp.h.
10401         (x, y): Remove variables.
10402         (main): Just call test_function.
10403         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10404         infinity.h, nan.h.
10405         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10406         MAX_EXP): New macros.
10407         Include test-ldexp.h.
10408         (x, y): Remove variables.
10409         (main): Just call test_function.
10410         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10411         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10412         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10413         (Depends-on): Add isnand-nolibm, signbit, float.
10414         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10415         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10416         (Depends-on): Add isnanf-nolibm, signbit, float.
10417
10418 2011-11-06  Bruno Haible  <bruno@clisp.org>
10419
10420         math tests: Cosmetics.
10421         * tests/test-math-c++.cc: Reorder declarations.
10422
10423 2011-11-05  Bruno Haible  <bruno@clisp.org>
10424
10425         fma*: Simplify test.
10426         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10427         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10428
10429         Tests for module 'fmal'.
10430         * modules/fmal-tests: New file.
10431         * tests/test-fmal1.c: New file.
10432         * tests/test-fmal2.c: New file.
10433
10434         New module 'fmal'.
10435         * lib/math.in.h (fmal): New declaration.
10436         * lib/fmal.c: New file.
10437         * m4/fmal.m4: New file.
10438         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10440         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10441         REPLACE_FMAL.
10442         * modules/fmal: New file.
10443         * doc/posix-functions/fmal.texi: Mention the new module and the various
10444         bugs.
10445
10446         Tests for module 'fmaf'.
10447         * modules/fmaf-tests: New file.
10448         * tests/test-fmaf1.c: New file.
10449         * tests/test-fmaf2.c: New file.
10450
10451         New module 'fmaf'.
10452         * lib/math.in.h (fmaf): New declaration.
10453         * lib/fmaf.c: New file.
10454         * m4/fmaf.m4: New file.
10455         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10457         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10458         REPLACE_FMAF.
10459         * modules/fmaf: New file.
10460         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10461         bugs.
10462
10463         Tests for module 'fma'.
10464         * modules/fma-tests: New file.
10465         * tests/test-fma1.c: New file.
10466         * tests/test-fma1.h: New file.
10467         * tests/test-fma2.c: New file.
10468         * tests/test-fma2.h: New file.
10469
10470         New module 'fma'.
10471         * lib/math.in.h (fma): New declaration.
10472         * lib/fma.c: New file.
10473         * m4/fma.m4: New file.
10474         * m4/fegetround.m4: New file.
10475         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10477         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10478         REPLACE_FMA.
10479         * modules/fma: New file.
10480         * doc/posix-functions/fma.texi: Mention the new module and the various
10481         bugs.
10482
10483         Extend gl_MATHFUNC.
10484         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10485         Support 'void' as argument type.
10486         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10487
10488 2011-11-05  Jim Meyering  <meyering@redhat.com>
10489
10490         maint.mk: also prohibit inclusion of dirent.h without use
10491         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10492
10493 2011-11-05  Bruno Haible  <bruno@clisp.org>
10494
10495         ldexpl tests: Avoid test failure on MSVC 9.
10496         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10497         value. Needed in order to enforce the conversion from a value greater
10498         than LDBL_MAX to Infinity.
10499
10500 2011-11-05  Bruno Haible  <bruno@clisp.org>
10501
10502         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10503         * modules/at-internal: New file, extracted from modules/openat.
10504         * modules/openat-h: New file.
10505         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10506         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10507         * modules/openat (Description): Add reference to POSIX function.
10508         (Files): Remove lib/openat.h, lib/openat-proc.c.
10509         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10510         intprops, unistd.
10511         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10512         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10513         gl_FCNTL_MODULE_INDICATOR.
10514         (Include): Remove unistd.h, openat.h.
10515         * modules/areadlinkat (Files): Add lib/at-func.c.
10516         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10517         openat-die, openat-h, save-cwd.
10518         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10519         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10520         openat-die, openat-h, save-cwd, unistd.
10521         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10522         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10523         openat-h, save-cwd. Remove fcntl-h, openat.
10524         * modules/fchmodat (Files): Remove lib/openat.h.
10525         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10526         openat, stdbool, unistd.
10527         * modules/fchownat (Files): Remove lib/openat.h.
10528         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10529         openat, stdbool, sys_stat.
10530         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10531         lib/openat-proc.c.
10532         (Depends-on): Add at-internal.
10533         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10534         * modules/fstatat (Files): Remove lib/openat.h.
10535         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10536         stdbool, unistd.
10537         * modules/fts (Depends-on): Add openat-h.
10538         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10539         openat.
10540         * modules/mkdirat (Files): Remove lib/openat.h.
10541         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10542         openat, stdbool, sys_stat.
10543         * modules/mkfifoat (Files): Add lib/at-func.c.
10544         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10545         openat-h, save-cwd. Remove fcntl-h, openat.
10546         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10547         * modules/readlinkat (Files): Add lib/at-func.c.
10548         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10549         openat-h, save-cwd. Remove fcntl-h, openat.
10550         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10551         openat.
10552         * modules/selinux-at (Files): Add lib/at-func.c.
10553         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10554         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10555         * modules/symlinkat (Files): Add lib/at-func.c.
10556         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10557         openat-h, save-cwd. Remove fcntl-h, openat.
10558         * modules/unlinkat (Files): Remove lib/openat.h.
10559         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10560         stdbool.
10561         * modules/utimensat (Files): Add lib/at-func.c.
10562         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10563         openat-die, openat-h, save-cwd.
10564         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10565         * modules/fdutimensat-tests (Depends-on): Add openat.
10566         * modules/fstatat-tests (Depends-on): Add openat-h.
10567         * modules/readlinkat-tests (Depends-on): Add openat.
10568         * modules/symlinkat-tests (Depends-on): Add openat.
10569
10570 2011-11-05  Bruno Haible  <bruno@clisp.org>
10571
10572         openat: Include <stdbool.h>.
10573         * lib/openat.c: Include <stdbool.h>.
10574
10575 2011-11-04  Bruno Haible  <bruno@clisp.org>
10576
10577         fchownat, renameat, unlinkat: Fix dependencies.
10578         * modules/fchownat (Depends-on): Add fstatat.
10579         * modules/renameat (Depends-on): Likewise.
10580         * modules/unlinkat (Depends-on): Likewise.
10581
10582 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10583
10584         openat: remove direct dependency on dirent
10585         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10586         and hasn't been needed ever since fdopendir was split into its own
10587         module on 2009-08-31.
10588         * modules/openat (Depends-on): Remove dirent.
10589
10590 2011-11-04  Bruno Haible  <bruno@clisp.org>
10591
10592         renameat: Optimize code size.
10593         * modules/renameat (configure.ac): Don't compile at-func2.c if
10594         REPLACE_RENAMEAT is 1.
10595
10596 2011-11-04  Bruno Haible  <bruno@clisp.org>
10597
10598         openat tests: Fix file list.
10599         * modules/openat-tests (Files): Add tests/test-open.h.
10600
10601 2011-11-04  Bruno Haible  <bruno@clisp.org>
10602
10603         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10604         * modules/fchmodat (Depends-on): Add openat-die.
10605         * modules/fchownat (Depends-on): Likewise.
10606         * modules/linkat (Depends-on): Likewise.
10607         * modules/renameat (Depends-on): Likewise.
10608         * modules/openat (Depends-on): Add dirent.
10609
10610 2011-11-04  Jim Meyering  <meyering@redhat.com>
10611
10612         at-func*.c: fix comments
10613         * lib/at-func2.c: Correct/improve first-line comment.
10614         * lib/at-func.c: Correct grammar in first-line comment.
10615
10616 2011-11-04  Bruno Haible  <bruno@clisp.org>
10617
10618         New module 'mkdirat', split off from module 'openat'.
10619         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10620         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10621         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10622         * modules/mkdirat: New file, extracted from modules/openat.
10623         * modules/openat (Files): Remove lib/mkdirat.c.
10624         (Depends-on): Remove mkdir.
10625         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10626         (Include): Remove <sys/stat.h>.
10627         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10628         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10629         tests/test-mkdir.h.
10630         (Depends-on): Remove ignore-value.
10631         (Makefile.am): Remove rules for test-mkdirat.
10632         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10633         of module 'openat'.
10634         * NEWS: Mention the change.
10635
10636 2011-11-04  Bruno Haible  <bruno@clisp.org>
10637
10638         closedir: Avoid warning on mingw.
10639         * lib/closedir.c: Include <unistd.h>.
10640
10641 2011-11-04  Bruno Haible  <bruno@clisp.org>
10642
10643         New module 'fstatat', split off from module 'openat'.
10644         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10645         defined.
10646         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10647         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10648         gl_FUNC_FSTATAT.
10649         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10650         * modules/fstatat: New file, extracted from modules/openat.
10651         * modules/openat (Files): Remove lib/fstatat.c.
10652         (Depends-on): Remove lstat.
10653         (configure.ac): Remove AC_LIBOBJ of fstatat.
10654         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10655         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10656         tests/test-lstat.h, tests/test-stat.h.
10657         (Depends-on): Remove getcwd-lgpl.
10658         (Makefile.am): Remove rules for test-fstatat.
10659         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10660         of module 'openat'.
10661         * NEWS: Mention the change.
10662         * modules/getcwd (Depends-on): Add fstatat.
10663         * modules/linkat (Depends-on): Likewise.
10664         * modules/mkfifoat-tests (Depends-on): Likewise.
10665         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10666
10667 2011-11-03  Bruno Haible  <bruno@clisp.org>
10668
10669         New module 'unlinkat', split off from module 'openat'.
10670         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10671         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10672         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10673         * modules/unlinkat: New file, extracted from modules/openat. Correct
10674         the dependency conditions.
10675         * modules/openat (Files): Remove lib/unlinkat.c.
10676         (Depends-on): Remove rmdir, unlink.
10677         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10678         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10679         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10680         tests/test-rmdir.h, tests/test-unlink.h.
10681         (Depends-on): Remove unlinkdir.
10682         (Makefile.am): Remove rules for test-unlinkat.
10683         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10684         of module 'openat'.
10685         * NEWS: Mention the change.
10686         * modules/linkat-tests (Depends-on): Add unlinkat.
10687         * modules/mkfifoat-tests (Depends-on): Likewise.
10688         * modules/readlinkat-tests (Depends-on): Likewise.
10689
10690 2011-11-02  Bruno Haible  <bruno@clisp.org>
10691
10692         New module 'fchmodat', split off from module 'openat'.
10693         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10694         defined.
10695         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10696         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10697         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10698         * modules/fchmodat: New file, extracted from modules/openat.
10699         * modules/openat (Files): Remove lib/fchmodat.c.
10700         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10701         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10702         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10703         (Makefile.am): Remove rules for test-fchmodat.
10704         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10705         of module 'openat'.
10706         * NEWS: Mention the change.
10707
10708 2011-11-02  Jim Meyering  <meyering@redhat.com>
10709
10710         putenv: indent #definition of "environ" to placate cppi
10711         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10712
10713         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10714         Git logs are often treated as immutable, because editing them
10715         changes the SHA1 checksums of all descendants.  Thus, errors in
10716         git logs tend to stay there forever.  However, when we generate
10717         a ChangeLog file -- typically for distribution -- from that git log,
10718         we can actually make corrections in the generated file.  The key
10719         lies in recording in machine-readable/applicable form the desired
10720         corrections.  See --help for description and an example.
10721         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10722         (usage): Describe it; alphabetize option descriptions.
10723         (main): Honor the new option, carefully.
10724
10725 2011-11-01  Jim Meyering  <meyering@redhat.com>
10726
10727         gitlog-to-changelog: avoid an infloop
10728         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10729         that ends up being empty.
10730
10731 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10732
10733         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10734         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10735         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10736         contains (possibly-quoted) backslashes.  This should avoid
10737         all-too-common shell bugs if COMPLICATED contains backslashes in
10738         the "wrong" places.  Reported by David Evans in
10739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10740         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10741         because we want ASCII ranges.  Is there some reason we don't use
10742         the C locale everywhere in this script?
10743         (func_module, top level): Avoid unwanted pathname expansion when
10744         $repo_url_prefix or $repo_url_suffix_repl contain shell
10745         metacharacters like '?' and '*'.
10746
10747 2011-11-01  Bruno Haible  <bruno@clisp.org>
10748
10749         fchownat: Improve description.
10750         * modules/fchownat (Description): Add link to function.
10751
10752 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10753
10754         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10755         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10757         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10758
10759 2011-11-01  Bruno Haible  <bruno@clisp.org>
10760
10761         alignof: Avoid collision with stdalign module.
10762         * lib/alignof.h (alignof): Remove macro.
10763         * NEWS: Mention the change.
10764         Reported by Paul Eggert.
10765
10766 2011-11-01  Bruno Haible  <bruno@clisp.org>
10767
10768         New module 'fchownat', split off from module 'openat'.
10769         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10770         defined.
10771         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10772         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10773         invoke gl_FUNC_FCHOWNAT.
10774         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10775         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10776         * modules/fchownat: New file, extracted from modules/openat.
10777         * modules/openat (Files): Remove lib/fchownat.c.
10778         (Depends-on): Remove lchown.
10779         (configure.ac): Remove AC_LIBOBJ of fchownat.
10780         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10781         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10782         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10783         (Depends-on): Remove mgetgroups, usleep, stat-time.
10784         (configure.ac): Remove test for getegid.
10785         (Makefile.am): Remove rules for test-fchownat.
10786         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10787         of module 'openat'.
10788         * NEWS: Mention the change.
10789
10790 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10791
10792         stdalign: port better to MSVC and to Sun C 5.11
10793         This fixes some of the problems reported by Bruno Haible in
10794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10795         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10796         shortcomings of MSVC and of Sun C 5.11.
10797         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10798         around __declspec arg.
10799         * modules/stdalign-tests (Files): Add tests/macros.h.
10800         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10801         Include macros.h, for ASSERT.
10802         (DECLARE_ALIGNED): Remove.
10803         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10804         to catch bug), and to 1 if not (simplifies the rest of the code).
10805         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10806         (CHECK_AUTO): Remove.
10807         (CHECK_ALIGNED): Check only the alignment of the static vars,
10808         since auto var alignment isn't supported by Sun C 5.11.
10809         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10810         ASSERT failures are easier to diagnose.
10811
10812 2011-10-31  Bruno Haible  <bruno@clisp.org>
10813
10814         doc about some IRIX 5.3 problems.
10815         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10816         on IRIX 5.3.
10817         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10818         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10819         5.3.
10820         * doc/posix-functions/grantpt.texi: Likewise.
10821         * doc/posix-functions/unlockpt.texi: Likewise.
10822         * doc/posix-functions/lgamma.texi: Likewise.
10823         * doc/posix-functions/nextafter.texi: Likewise.
10824         * doc/posix-functions/remainder.texi: Likewise.
10825         * doc/posix-functions/select.texi: Mention misplaced declaration on
10826         IRIX 5.3.
10827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10828
10829 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10830
10831         gitlog-to-changelog: fix git-log invocation.
10832         git-log mishandles date strings before 1970-01-01 UTC, and there is
10833         no use to specify --since=1970-01-01 by default anyway.
10834         * build-aux/gitlog-to-changelog: By default, when no --since option
10835         was given, do not specify explicit --since option to git-log.
10836
10837 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10838
10839         gitlog-to-changelog: new option --append-dot.
10840         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10841         first non-blank line of each commit message terminated with a dot.
10842
10843 2011-10-30  Bruno Haible  <bruno@clisp.org>
10844
10845         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10846         * lib/ffsl.h: Include <config.h>.
10847         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10848
10849 2011-10-30  Jim Meyering  <meyering@redhat.com>
10850
10851         GNUmakefile: reenable "make syntax-check" for most projects
10852         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10853         build-aux variable", "syntax-check" would do nothing but succeed with
10854         the "No version control files detected..." diagnostic (unless you
10855         happened to override _build-aux via cfg.mk).
10856         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10857         to precede inclusion of maint.mk.  Otherwise, these variables would
10858         be used undefined in any project that does not override the default.
10859
10860 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10861
10862         gitlog-to-changelog: treat a message with only blank lines as empty.
10863         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10864         trailing blank lines before the code that issues a warning about an
10865         empty commit message.
10866
10867 2011-10-30  Jim Meyering  <meyering@redhat.com>
10868
10869         test-parse-datetime.c: avoid new DST-related false positive test failure
10870         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10871         based on the time/date we'll convert, not the current time.
10872         Otherwise, the moment we cross a DST boundary like today's in
10873         Europe, (CEST to CET), that offset ends up being one hour off.
10874
10875 2011-10-27  Bruno Haible  <bruno@clisp.org>
10876
10877         fstat: Tweak documentation.
10878         * modules/fstat (Description): More precise description.
10879
10880 2011-10-27  Bruno Haible  <bruno@clisp.org>
10881
10882         Update documentation regarding 'largefile' module.
10883         * doc/posix-functions/fstat.texi: Tweak wording.
10884         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10885         problems with huge directories and/or small ino_t types.
10886         * doc/posix-functions/readdir.texi: Likewise.
10887         * doc/posix-functions/rewinddir.texi: Likewise.
10888
10889 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10890
10891         maint.mk: don't maintain a second build-aux variable.
10892         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10893         depends on GNUmakefile, which already maintains a cfg.mk
10894         overridable $(_build-aux) for projects with a non-standard
10895         build-aux directory location, although without the $(srcdir)
10896         prefix.  Use that variable consistently instead of introducing a
10897         second one.  Adjust all call sites.
10898
10899 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10900
10901         Add stdalign module and use it in other modules.
10902         This is based on a previous proposal by Bruno Haible
10903         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10904
10905         stdalign: new module
10906         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10907         * modules/stdalign: New files.
10908         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10909         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10910
10911         stdalign-tests: new module
10912         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10913
10914         argp: use stdalign
10915         * lib/argp-parse.c: Include <stdalign.h>.
10916         (alignof): Remove.
10917         * modules/argp (Depends-on): Add stdalign.
10918
10919         crypto libraries: use stdalign
10920         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10921         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10922         Do not include <stdlib.h> twice, in md4.c.
10923         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10924         because we are accessing a pointer's bit-pattern, not a size.
10925         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10926         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10927         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10928         * modules/crypto/sha512: Likewise.
10929
10930         sys_socket: use stdalign, not alignof
10931         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10932         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10933
10934 2011-10-27  Bruno Haible  <bruno@clisp.org>
10935
10936         raise test: Avoid a test failure on Linux/MIPS.
10937         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10938         because 99 is a valid signal on Linux/MIPS.
10939
10940 2011-10-27  Bruno Haible  <bruno@clisp.org>
10941
10942         nonblocking tests: Fix test failure on Linux/MIPS.
10943         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10944         Set to 270000.
10945
10946 2011-10-27  Bruno Haible  <bruno@clisp.org>
10947
10948         utimensat: Work around problem on Linux/hppa.
10949         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10950         values.
10951         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10952
10953 2011-10-25  Jim Meyering  <meyering@redhat.com>
10954
10955         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10956         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10957         after symbols like NULL, size_t, etc.
10958         Reported by Alfred M. Szmidt.
10959
10960         maint.mk: exempt ENODATA from a syntax-check rule
10961         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10962         from the sc_prohibit_always-defined_macros syntax-check rule.
10963         Add a comment.  See this for more details:
10964         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10965
10966 2011-10-23  Jim Meyering  <meyering@redhat.com>
10967
10968         fts: close parent dir FD before returning from post-traversal fts_read
10969         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10970         unlink A, even though an FD open on A remained.  This is suboptimal
10971         (holding a file descriptor open longer than needed), but otherwise not
10972         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10973         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10974         that represents a real problem: it causes the removal of A to fail
10975         with e.g., "rm: cannot remove `A': Device or resource busy"
10976
10977         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10978         directory file descriptors.  After completing the final, FTS_DP,
10979         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10980         cache, but then proceeded to add a new FD to it via the subsequent
10981         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10982         final file descriptor would be closed only via fts_close's call to
10983         fd_ring_clear.  Now, it is usually closed earlier, via the final
10984         FTS_DP-returning fts_read call.
10985         * lib/fts.c (restore_initial_cwd): New function, converted from
10986         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10987         Update callers.
10988         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10989         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10990
10991 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10992             Bruno Haible  <bruno@clisp.org>
10993             Jim Meyering  <jim@meyering.net>
10994
10995         readme-release: improve safety of release prep instructions.
10996         * README-release: Don't git pull all branches when only master
10997         is needed for the release process.
10998         Run make maintainer-clean before changing trees and merging.
10999         Don't try to run ./configure right after git pull in case files
11000         that influence the bootstrap process have changed, move the
11001         ./configure step to after running ./bootstrap.
11002         Don't bootstrap "one last time"... it's the first time!
11003
11004 2011-10-22  Bruno Haible  <bruno@clisp.org>
11005
11006         errno, strerror-override: Support for MSVC 10.
11007         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11008         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11009         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11010         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11011         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11012         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11013         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11014         Assign values compatible with MSVC 10.
11015         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11016         New macros.
11017         (GNULIB_defined_EWINSOCK): New macro.
11018         * lib/strerror-override.c (strerror_override): Update accordingly.
11019         * lib/strerror-override.h: Likewise.
11020         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11021         longer equal to the corresponding errno value.
11022         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11023
11024 2011-10-22  Bruno Haible  <bruno@clisp.org>
11025
11026         perror: Recognize when test program crashes.
11027         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11028         strerror, set gl_cv_func_perror_works to no.
11029         Reported by Daniel Richard G. <skunk@iskunk.org>.
11030
11031         perror: Fix indentation.
11032         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11033
11034 2011-10-22  Bruno Haible  <bruno@clisp.org>
11035
11036         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11037         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11038         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11039         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11040         functions, not as a macro.
11041         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11042         macros.
11043         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11044         absence of macro.
11045         Suggested by Eric Blake.
11046         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11047
11048 2011-10-21  Bruno Haible  <bruno@clisp.org>
11049
11050         relocatable-prog-wrapper: Don't leave object files behind.
11051         * build-aux/install-reloc: Re-synchronize list of .o files to be
11052         removed with list of compilation units.
11053
11054 2011-10-20  Bruno Haible  <bruno@clisp.org>
11055
11056         openpty, posix_openpt: Remove code duplication.
11057         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11058         * lib/openpty.c: Include <stdlib.h>.
11059         (openpty): Use posix_openpt on all platforms except IRIX.
11060         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11061
11062 2011-10-20  Bruno Haible  <bruno@clisp.org>
11063
11064         unlockpt: Detect invalid argument.
11065         * lib/unlockpt.c: Include <fcntl.h>.
11066         (unlockpt): Check whether fd is valid, using fcntl().
11067         * modules/unlockpt (Depends-on): Add fcntl-h.
11068
11069 2011-10-20  Bruno Haible  <bruno@clisp.org>
11070
11071         openpty: Avoid compilation error on AIX 6.1.
11072         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11073
11074 2011-10-20  Bruno Haible  <bruno@clisp.org>
11075
11076         posix_openpt: Support for OpenBSD.
11077         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11078         (posix_openpt) [OpenBSD]: New code.
11079         * lib/grantpt.c: Include <fcntl.h>.
11080         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11081         * modules/grantpt (Depends-on): Add fcntl-h.
11082
11083 2011-10-20  Bruno Haible  <bruno@clisp.org>
11084
11085         posix_openpt test: Coding style.
11086         * tests/test-posix_openpt.c: Use GNU coding style.
11087
11088 2011-10-20  Bruno Haible  <bruno@clisp.org>
11089
11090         grantpt: Support --avoid=pt_chown.
11091         * modules/grantpt (Files): Add lib/pty-private.h.
11092
11093 2011-10-20  Bruno Haible  <bruno@clisp.org>
11094
11095         posix_openpt: Fix autoconf macro.
11096         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11097         unneeded check for _getpty.
11098
11099 2011-10-20  Bruno Haible  <bruno@clisp.org>
11100
11101         openpty: Update comments.
11102         * lib/openpty.c: Add comments about Minix.
11103
11104 2011-10-19  Eric Blake  <eblake@redhat.com>
11105
11106         openpty: relax license
11107         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11108
11109         pt_chown: use configmake to simplify build
11110         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11111
11112         ptsname and others: relax license
11113         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11114         * modules/unlockpt (License): Likewise.
11115         * modules/pt_chown (License): Likewise.
11116         * modules/ptsname (License): Likewise.
11117         * modules/ttyname_r (License): Likewise.
11118
11119 2011-10-19  Jim Meyering  <meyering@redhat.com>
11120
11121         posix_openpt: remove spurious #endif
11122         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11123
11124 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11125
11126         maint.mk: Respect $(build_aux) in web-manual rule.
11127         * top/maint.mk (web-manual): Find gen-announce script in user's
11128         $(build_aux) directory instead of hard-coding 'build-aux'.
11129
11130 2011-10-19  Bruno Haible  <bruno@clisp.org>
11131
11132         posix_openpt: Fix compilation error.
11133         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11134         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11135         Mention the openpty module as an alternative.
11136
11137 2011-10-19  Bruno Haible  <bruno@clisp.org>
11138
11139         Support for old NeXTstep 3.3 frexp().
11140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11141         execution time of the test to 5 seconds.
11142         Reported by Daniel Richard G. <skunk@iskunk.org>.
11143
11144 2011-10-19  Bruno Haible  <bruno@clisp.org>
11145
11146         Support for old NeXTstep 3.3 sed.
11147         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11148         part, use /.../, not \|...|. Escape periods in the header file name.
11149         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11150         Reported by Daniel Richard G. <skunk@iskunk.org>.
11151
11152 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11153
11154         Support for old NeXTstep 3.3 gcc.
11155         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11156         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11157         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11158         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11159         * lib/regex.h (_Restrict_arr_): Likewise.
11160         * lib/regex_internal.h (re_token_t): Likewise.
11161         * lib/regexec.c (check_node_accept_bytes): Likewise.
11162         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11163
11164 2011-10-18  Eric Blake  <eblake@redhat.com>
11165
11166         posix_openpt: new module
11167         * modules/posix_openpt: New module.
11168         * m4/posix_openpt.m4: New file.
11169         * lib/posix_openpt.c: Likewise.
11170         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11171         (gl_STDLIB_H_DEFAULTS): Set defaults.
11172         * modules/stdlib (Makefile.am): Substitute macros.
11173         * lib/stdlib.in.h (posix_openpt): Declare.
11174         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11175         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11176         * modules/posix_openpt-tests: New test module.
11177         * tests/test-posix_openpt.c: New test.
11178
11179 2011-10-15  Bruno Haible  <bruno@clisp.org>
11180
11181         xstrtoll: Fix compilation failure.
11182         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11183         from lib/strtol.c.
11184         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11185         some platforms.
11186         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11187
11188 2011-10-15  Bruno Haible  <bruno@clisp.org>
11189
11190         vasnprintf: Optimize bit search operation.
11191         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11193         gl_DOUBLE_EXPONENT_LOCATION.
11194         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11195         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11196         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11197         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11198         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11199         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11200         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11201         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11202         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11203
11204 2011-10-15  Bruno Haible  <bruno@clisp.org>
11205
11206         vasnprintf: Fix comments.
11207         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11208
11209 2011-10-14  Bruno Haible  <bruno@clisp.org>
11210
11211         Tests for module 'integer_length_ll'.
11212         * modules/integer_length_ll-tests: New file.
11213         * tests/test-integer_length_ll.c: New file.
11214
11215         New module 'integer_length_ll'.
11216         * lib/integer_length_ll.c: New file.
11217         * modules/integer_length_ll: New file.
11218
11219 2011-10-14  Bruno Haible  <bruno@clisp.org>
11220
11221         Tests for module 'integer_length_l'.
11222         * modules/integer_length_l-tests: New file.
11223         * tests/test-integer_length_l.c: New file.
11224
11225         New module 'integer_length_l'.
11226         * lib/integer_length_l.c: New file.
11227         * modules/integer_length_l: New file.
11228
11229 2011-10-14  Bruno Haible  <bruno@clisp.org>
11230
11231         Tests for module 'integer_length'.
11232         * modules/integer_length-tests: New file.
11233         * tests/test-integer_length.c: New file.
11234
11235         New module 'integer_length'.
11236         * lib/integer_length.h: New file.
11237         * lib/integer_length.c: New file.
11238         * modules/integer_length: New file.
11239
11240 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11241
11242         popen: Fix dependency conditions.
11243         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11244
11245 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11246
11247         perror: Fix autoconf test.
11248         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11249         <stdlib.h> and <string.h>.
11250
11251 2011-10-14  Bruno Haible  <bruno@clisp.org>
11252
11253         ffsl: Optimize on 64-bit platforms.
11254         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11255         unrolling.
11256
11257 2011-10-13  Bruno Haible  <bruno@clisp.org>
11258
11259         ffsl: Optimize on 32-bit platforms.
11260         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11261         use ffs() without a loop.
11262
11263         ffsl, ffsll: Optimize for GCC.
11264         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11265         * lib/ffsl.c (GCC_BUILTIN): New macro.
11266         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11267
11268 2011-10-13  Bruno Haible  <bruno@clisp.org>
11269
11270         ffs, bcopy, memset: Support symbol renaming via config.h.
11271         * lib/ffs.c: Include <config.h>.
11272         * lib/bcopy.c: Likewise.
11273         * lib/memset.c: Likewise.
11274
11275 2011-10-10  Bruno Haible  <bruno@clisp.org>
11276
11277         atanl: Simplify for platforms where 'long double' == 'double'.
11278         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11279         alternative implementation.
11280         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11281         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11282         * modules/atanl (Depends-on): Add atan. Update conditions.
11283
11284 2011-10-10  Bruno Haible  <bruno@clisp.org>
11285
11286         acosl: Simplify for platforms where 'long double' == 'double'.
11287         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11288         alternative implementation.
11289         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11290         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11291         * modules/acosl (Depends-on): Add acos. Update conditions.
11292
11293 2011-10-10  Bruno Haible  <bruno@clisp.org>
11294
11295         asinl: Simplify for platforms where 'long double' == 'double'.
11296         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11297         alternative implementation.
11298         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11299         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11300         * modules/asinl (Depends-on): Add asin. Update conditions.
11301
11302 2011-10-10  Bruno Haible  <bruno@clisp.org>
11303
11304         tanl: Simplify for platforms where 'long double' == 'double'.
11305         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11306         implementation.
11307         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11308         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11309         * modules/tanl (Depends-on): Add tan. Update conditions.
11310         (configure.ac): Don't compile trigl.c if
11311         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11312
11313 2011-10-10  Bruno Haible  <bruno@clisp.org>
11314
11315         cosl: Simplify for platforms where 'long double' == 'double'.
11316         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11317         implementation.
11318         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11319         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11320         * modules/cosl (Depends-on): Add cos. Update conditions.
11321         (configure.ac): Don't compile sincosl.c and trigl.c if
11322         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11323
11324 2011-10-10  Bruno Haible  <bruno@clisp.org>
11325
11326         sinl: Simplify for platforms where 'long double' == 'double'.
11327         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11328         implementation.
11329         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11330         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11331         * modules/sinl (Depends-on): Add sin. Update conditions.
11332         (configure.ac): Don't compile sincosl.c and trigl.c if
11333         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11334
11335 2011-10-10  Bruno Haible  <bruno@clisp.org>
11336
11337         logl: Simplify for platforms where 'long double' == 'double'.
11338         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11339         implementation.
11340         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11341         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11342         * modules/logl (Depends-on): Add log. Update conditions.
11343
11344 2011-10-10  Bruno Haible  <bruno@clisp.org>
11345
11346         expl: Simplify for platforms where 'long double' == 'double'.
11347         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11348         implementation.
11349         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11350         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11351         * modules/expl (Depends-on): Add exp. Update conditions.
11352
11353 2011-10-10  Bruno Haible  <bruno@clisp.org>
11354
11355         sqrtl: Simplify for platforms where 'long double' == 'double'.
11356         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11357         alternative implementation.
11358         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11359         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11360         * modules/sqrtl (Depends-on): Update conditions.
11361
11362 2011-10-10  Bruno Haible  <bruno@clisp.org>
11363
11364         ldexpl: Simplify for platforms where 'long double' == 'double'.
11365         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11366         alternative implementation.
11367         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11368         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11369         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11370
11371 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11372
11373         ffsll: set correct witness
11374         * modules/ffsll (configure.ac): Fix typo.
11375
11376 2011-10-10  Bruno Haible  <bruno@clisp.org>
11377
11378         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11379         * lib/printf-frexpl.c: Include <config.h>.
11380         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11381         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11382         second time.
11383         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11384         gl_LONG_DOUBLE_VS_DOUBLE.
11385         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11386         conditions.
11387
11388 2011-10-10  Bruno Haible  <bruno@clisp.org>
11389
11390         frexpl: Simplify for platforms where 'long double' == 'double'.
11391         * lib/frexpl.c: Include <config.h>.
11392         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11393         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11394         time.
11395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11396         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11397         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11398         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11399         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11400         conditions.
11401
11402 2011-10-10  Jim Meyering  <meyering@redhat.com>
11403
11404         test-renameat: don't leave behind a temporary file
11405         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11406           ERROR: files left in build directory after distclean:
11407           ./gltests/test-renameat.too
11408           make[1]: *** [distcleancheck] Error 1
11409         Reported by Tom G. Christensen.
11410
11411 2011-10-09  Bruno Haible  <bruno@clisp.org>
11412
11413         rint: Determine RINT_LIBM correctly on AIX 7.
11414         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11415         directly, not only through a function pointer. Also accept an optional
11416         4th argument with extra code.
11417         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11418         rintf() call by gcc when optimizing.
11419
11420         mathfunc.m4: Refactor.
11421         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11422         m4 variable.
11423
11424 2011-10-09  Bruno Haible  <bruno@clisp.org>
11425
11426         rintl: Simplify for platforms where 'long double' == 'double'.
11427         * lib/rintl.c: Include <config.h>.
11428         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11429         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11430         time.
11431         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11432         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11433         * modules/rintl (Depends-on): Add rint. Update conditions.
11434
11435 2011-10-09  Bruno Haible  <bruno@clisp.org>
11436
11437         roundl: Simplify for platforms where 'long double' == 'double'.
11438         * lib/roundl.c: Include <config.h>.
11439         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11440         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11441         time.
11442         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11443         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11444         * modules/roundl (Depends-on): Add round. Update conditions.
11445
11446 2011-10-09  Bruno Haible  <bruno@clisp.org>
11447
11448         truncl: Simplify for platforms where 'long double' == 'double'.
11449         * lib/truncl.c: Include <config.h>.
11450         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11451         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11452         time.
11453         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11454         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11455         * modules/truncl (Depends-on): Add trunc. Update conditions.
11456
11457 2011-10-09  Bruno Haible  <bruno@clisp.org>
11458
11459         ceill: Simplify for platforms where 'long double' == 'double'.
11460         * lib/ceill.c: Include <config.h>.
11461         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11462         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11463         time.
11464         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11465         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11466         * modules/ceill (Depends-on): Add ceil. Update conditions.
11467
11468 2011-10-09  Bruno Haible  <bruno@clisp.org>
11469
11470         floorl: Simplify for platforms where 'long double' == 'double'.
11471         * lib/floorl.c: Include <config.h>.
11472         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11473         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11474         time.
11475         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11476         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11477         * modules/floorl (Depends-on): Add floor. Update conditions.
11478
11479 2011-10-09  Bruno Haible  <bruno@clisp.org>
11480
11481         rint: Fix ordering constraints.
11482         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11483         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11484         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11485
11486 2011-10-09  Bruno Haible  <bruno@clisp.org>
11487
11488         copysignl: Simplify for platforms where 'long double' == 'double'.
11489         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11490         alternative.
11491         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11492         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11493         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11494
11495 2011-10-09  Bruno Haible  <bruno@clisp.org>
11496
11497         Tests for module 'rintl'.
11498         * modules/rintl-tests: New file.
11499         * tests/test-rintl.c: New file.
11500
11501         New module 'rintl'.
11502         * lib/math.in.h (rintl): New declaration.
11503         * lib/rintl.c: New file.
11504         * m4/rintl.m4: New file.
11505         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11507         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11508         * modules/rintl: New file.
11509         * tests/test-math-c++.cc: Check the declaration of rintl.
11510         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11511         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11512         * doc/posix-functions/rintl.texi: Mention the new module.
11513
11514 2011-10-09  Bruno Haible  <bruno@clisp.org>
11515
11516         Tests for module 'rintf'.
11517         * modules/rintf-tests: New file.
11518         * tests/test-rintf.c: New file.
11519
11520         New module 'rintf'.
11521         * lib/math.in.h (rintf): New declaration.
11522         * lib/rintf.c: New file.
11523         * m4/rintf.m4: New file.
11524         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11526         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11527         * modules/rintf: New file.
11528         * tests/test-math-c++.cc: Check the declaration of rintf.
11529         * doc/posix-functions/rintf.texi: Mention the new module.
11530
11531 2011-10-09  Bruno Haible  <bruno@clisp.org>
11532
11533         rint: Support for MSVC.
11534         * lib/math.in.h (rint): New declaration.
11535         * lib/rint.c: New file.
11536         * m4/rint.m4: New file.
11537         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11539         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11540         * modules/rint (Description): Fix.
11541         (Files): Add lib/rint.c, m4/rint.m4.
11542         (Depends-on): Add math.
11543         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11544         gl_MATH_MODULE_INDICATOR.
11545         * tests/test-math-c++.cc: Check the declaration of rint.
11546         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11547         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11548         * doc/posix-functions/rint.texi: Mention the replacement provided by
11549         the module.
11550
11551         rint tests: More tests.
11552         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11553         minus-zero.h, infinity.h, nan.h.
11554         (main): Skip the test if the current rounding mode is not standard. Add
11555         tests for negative numbers, minus zero, infinity, NaN.
11556         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11557         tests/nan.h.
11558         (Depends-on): Add isnand-nolibm.
11559
11560 2011-10-09  Bruno Haible  <bruno@clisp.org>
11561
11562         Tests for module 'copysignl'.
11563         * modules/copysignl-tests: New file.
11564         * tests/test-copysignl.c: New file.
11565
11566         New module 'copysignl'.
11567         * lib/math.in.h (copysignl): New declaration.
11568         * lib/copysignl.c: New file.
11569         * m4/copysignl.m4: New file.
11570         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11572         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11573         HAVE_COPYSIGNL.
11574         * modules/copysignl: New file.
11575         * tests/test-math-c++.cc: Check the declaration of copysignl.
11576         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11577         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11578         * doc/posix-functions/copysignl.texi: Mention the new module.
11579
11580 2011-10-09  Bruno Haible  <bruno@clisp.org>
11581
11582         Tests for module 'copysignf'.
11583         * modules/copysignf-tests: New file.
11584         * tests/test-copysignf.c: New file.
11585
11586         New module 'copysignf'.
11587         * lib/math.in.h (copysignf): New declaration.
11588         * lib/copysignf.c: New file.
11589         * m4/copysignf.m4: New file.
11590         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11592         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11593         HAVE_COPYSIGNF.
11594         * modules/copysignf: New file.
11595         * tests/test-math-c++.cc: Check the declaration of copysignf.
11596         * doc/posix-functions/copysignf.texi: Mention the new module.
11597
11598 2011-10-09  Bruno Haible  <bruno@clisp.org>
11599
11600         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11601         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11602         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11603         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11604         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11605         gl_SIGNAL_H_DEFAULTS.
11606
11607 2011-10-09  Bruno Haible  <bruno@clisp.org>
11608
11609         poll: Make macro safer.
11610         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11611         ac_cv_header_poll_h is not set.
11612
11613 2011-10-09  Bruno Haible  <bruno@clisp.org>
11614
11615         copysign: Provide replacement.
11616         * lib/math.in.h (copysign): New declaration.
11617         * lib/copysign.c: New file.
11618         * m4/copysign.m4: New file.
11619         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11621         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11622         HAVE_COPYSIGN.
11623         * modules/copysign (Description): Clarify.
11624         (Files): Add lib/copysign.c, m4/copysign.m4.
11625         (Depends-on): Add math, signbit.
11626         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11627         gl_MATH_MODULE_INDICATOR.
11628         * tests/test-math-c++.cc: Check the declaration of copysign.
11629         * doc/posix-functions/copysign.texi: Mention the effects of the module
11630         on Minix and MSVC.
11631
11632 2011-10-09  Bruno Haible  <bruno@clisp.org>
11633
11634         isinf: Ensure macro on AIX 5.1.
11635         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11636         macro.
11637         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11638
11639 2011-10-09  Bruno Haible  <bruno@clisp.org>
11640
11641         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11642         * modules/snprintf-posix-tests (configure.ac): Require
11643         gl_LONG_DOUBLE_VS_DOUBLE.
11644         * modules/sprintf-posix-tests (configure.ac): Likewise.
11645         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11646         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11647         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11648         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11649         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11650         tests on platforms where 'long double' is the same as 'double'.
11651         * tests/test-sprintf-posix.h (test_function): Likewise.
11652         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11653         * tests/test-vasprintf-posix.c (test_function): Likewise.
11654
11655         *printf: Fix for platforms where 'long double' == 'double'.
11656         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11657         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11658         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11659         * modules/fprintf-posix (Files): Likewise.
11660         * modules/obstack-printf-posix (Files): Likewise.
11661         * modules/snprintf-posix (Files): Likewise.
11662         * modules/sprintf-posix (Files): Likewise.
11663         * modules/vasnprintf (Files): Likewise.
11664         * modules/vasnprintf-posix (Files): Likewise.
11665         * modules/vasprintf-posix (Files): Likewise.
11666         * modules/vdprintf-posix (Files): Likewise.
11667         * modules/vfprintf-posix (Files): Likewise.
11668         * modules/vsnprintf-posix (Files): Likewise.
11669         * modules/vsprintf-posix (Files): Likewise.
11670         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11671         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11672         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11673         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11674         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11675         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11676         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11677
11678         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11679         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11680         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11681         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11682         'long double'.
11683         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11684
11685         isinf: Fix for platforms where 'long double' == 'double'.
11686         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11687         Don't blindly assume 80-bit 'long double'.
11688
11689         isfinite: Fix for platforms where 'long double' == 'double'.
11690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11691         Don't blindly assume 80-bit 'long double'.
11692
11693         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11694         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11695         * modules/isfinite-tests (configure.ac): Require
11696         gl_LONG_DOUBLE_VS_DOUBLE.
11697         * modules/isinf-tests (configure.ac): Likewise.
11698         * modules/isnan-tests (configure.ac): Likewise.
11699         * modules/isnanl-tests (configure.ac): Likewise.
11700         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11701         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11702         tests on platforms where 'long double' is the same as 'double'.
11703         * tests/test-isinf.c (test_isinfl): Likewise.
11704         * tests/test-isnan.c (test_long_double): Likewise.
11705         * tests/test-isnanl.h (main): Likewise.
11706
11707 2011-10-08  Bruno Haible  <bruno@clisp.org>
11708
11709         Tests for module 'tanhf'.
11710         * modules/tanhf-tests: New file.
11711         * tests/test-tanhf.c: New file.
11712
11713         New module 'tanhf'.
11714         * lib/math.in.h (tanhf): New declaration.
11715         * lib/tanhf.c: New file.
11716         * m4/tanhf.m4: New file.
11717         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11719         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11720         * modules/tanhf: New file.
11721         * tests/test-math-c++.cc: Check the declaration of tanhf.
11722         * doc/posix-functions/tanhf.texi: Mention the new module.
11723
11724         tanh: Use a .m4 file.
11725         * m4/tanh.m4: New file.
11726         * modules/tanh (Files): Add it.
11727         (configure.ac): Just invoke gl_FUNC_TANH.
11728
11729 2011-10-08  Bruno Haible  <bruno@clisp.org>
11730
11731         Tests for module 'coshf'.
11732         * modules/coshf-tests: New file.
11733         * tests/test-coshf.c: New file.
11734
11735         New module 'coshf'.
11736         * lib/math.in.h (coshf): New declaration.
11737         * lib/coshf.c: New file.
11738         * m4/coshf.m4: New file.
11739         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11741         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11742         * modules/coshf: New file.
11743         * tests/test-math-c++.cc: Check the declaration of coshf.
11744         * doc/posix-functions/coshf.texi: Mention the new module.
11745
11746         cosh: Use a .m4 file.
11747         * m4/cosh.m4: New file.
11748         * modules/cosh (Files): Add it.
11749         (configure.ac): Just invoke gl_FUNC_COSH.
11750
11751 2011-10-08  Bruno Haible  <bruno@clisp.org>
11752
11753         Tests for module 'sinhf'.
11754         * modules/sinhf-tests: New file.
11755         * tests/test-sinhf.c: New file.
11756
11757         New module 'sinhf'.
11758         * lib/math.in.h (sinhf): New declaration.
11759         * lib/sinhf.c: New file.
11760         * m4/sinhf.m4: New file.
11761         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11763         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11764         * modules/sinhf: New file.
11765         * tests/test-math-c++.cc: Check the declaration of sinhf.
11766         * doc/posix-functions/sinhf.texi: Mention the new module.
11767
11768         sinh: Use a .m4 file.
11769         * m4/sinh.m4: New file.
11770         * modules/sinh (Files): Add it.
11771         (configure.ac): Just invoke gl_FUNC_SINH.
11772
11773 2011-10-08  Bruno Haible  <bruno@clisp.org>
11774
11775         Tests for module 'atan2f'.
11776         * modules/atan2f-tests: New file.
11777         * tests/test-atan2f.c: New file.
11778
11779         New module 'atan2f'.
11780         * lib/math.in.h (atan2f): New declaration.
11781         * lib/atan2f.c: New file.
11782         * m4/atan2f.m4: New file.
11783         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11785         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11786         * modules/atan2f: New file.
11787         * tests/test-math-c++.cc: Check the declaration of atan2f.
11788         * doc/posix-functions/atan2f.texi: Mention the new module.
11789
11790         atan2: Use a .m4 file.
11791         * m4/atan2.m4: New file.
11792         * modules/atan2 (Files): Add it.
11793         (configure.ac): Just invoke gl_FUNC_ATAN2.
11794
11795 2011-10-08  Bruno Haible  <bruno@clisp.org>
11796
11797         Tests for module 'atanf'.
11798         * modules/atanf-tests: New file.
11799         * tests/test-atanf.c: New file.
11800
11801         New module 'atanf'.
11802         * lib/math.in.h (atanf): New declaration.
11803         * lib/atanf.c: New file.
11804         * m4/atanf.m4: New file.
11805         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11807         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11808         * modules/atanf: New file.
11809         * tests/test-math-c++.cc: Check the declaration of atanf.
11810         * doc/posix-functions/atanf.texi: Mention the new module.
11811
11812         atan: Use a .m4 file.
11813         * m4/atan.m4: New file.
11814         * modules/atan (Files): Add it.
11815         (configure.ac): Just invoke gl_FUNC_ATAN.
11816
11817 2011-10-08  Bruno Haible  <bruno@clisp.org>
11818
11819         Tests for module 'acosf'.
11820         * modules/acosf-tests: New file.
11821         * tests/test-acosf.c: New file.
11822
11823         New module 'acosf'.
11824         * lib/math.in.h (acosf): New declaration.
11825         * lib/acosf.c: New file.
11826         * m4/acosf.m4: New file.
11827         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11829         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11830         * modules/acosf: New file.
11831         * tests/test-math-c++.cc: Check the declaration of acosf.
11832         * doc/posix-functions/acosf.texi: Mention the new module.
11833
11834         acos: Use a .m4 file.
11835         * m4/acos.m4: New file.
11836         * modules/acos (Files): Add it.
11837         (configure.ac): Just invoke gl_FUNC_ACOS.
11838
11839 2011-10-08  Bruno Haible  <bruno@clisp.org>
11840
11841         Tests for module 'asinf'.
11842         * modules/asinf-tests: New file.
11843         * tests/test-asinf.c: New file.
11844
11845         New module 'asinf'.
11846         * lib/math.in.h (asinf): New declaration.
11847         * lib/asinf.c: New file.
11848         * m4/asinf.m4: New file.
11849         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11851         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11852         * modules/asinf: New file.
11853         * tests/test-math-c++.cc: Check the declaration of asinf.
11854         * doc/posix-functions/asinf.texi: Mention the new module.
11855
11856         asin: Use a .m4 file.
11857         * m4/asin.m4: New file.
11858         * modules/asin (Files): Add it.
11859         (configure.ac): Just invoke gl_FUNC_ASIN.
11860
11861 2011-10-08  Bruno Haible  <bruno@clisp.org>
11862
11863         Tests for module 'tanf'.
11864         * modules/tanf-tests: New file.
11865         * tests/test-tanf.c: New file.
11866
11867         New module 'tanf'.
11868         * lib/math.in.h (tanf): New declaration.
11869         * lib/tanf.c: New file.
11870         * m4/tanf.m4: New file.
11871         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11873         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11874         * modules/tanf: New file.
11875         * tests/test-math-c++.cc: Check the declaration of tanf.
11876         * doc/posix-functions/tanf.texi: Mention the new module.
11877
11878         tan: Use a .m4 file.
11879         * m4/tan.m4: New file.
11880         * modules/tan (Files): Add it.
11881         (configure.ac): Just invoke gl_FUNC_TAN.
11882
11883 2011-10-08  Bruno Haible  <bruno@clisp.org>
11884
11885         Tests for module 'cosf'.
11886         * modules/cosf-tests: New file.
11887         * tests/test-cosf.c: New file.
11888
11889         New module 'cosf'.
11890         * lib/math.in.h (cosf): New declaration.
11891         * lib/cosf.c: New file.
11892         * m4/cosf.m4: New file.
11893         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11895         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11896         * modules/cosf: New file.
11897         * tests/test-math-c++.cc: Check the declaration of cosf.
11898         * doc/posix-functions/cosf.texi: Mention the new module.
11899
11900         cos: Use a .m4 file.
11901         * m4/cos.m4: New file.
11902         * modules/cos (Files): Add it.
11903         (configure.ac): Just invoke gl_FUNC_COS.
11904
11905 2011-10-08  Bruno Haible  <bruno@clisp.org>
11906
11907         Tests for module 'sinf'.
11908         * modules/sinf-tests: New file.
11909         * tests/test-sinf.c: New file.
11910
11911         New module 'sinf'.
11912         * lib/math.in.h (sinf): New declaration.
11913         * lib/sinf.c: New file.
11914         * m4/sinf.m4: New file.
11915         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11917         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11918         * modules/sinf: New file.
11919         * tests/test-math-c++.cc: Check the declaration of sinf.
11920         * doc/posix-functions/sinf.texi: Mention the new module.
11921
11922         sin: Use a .m4 file.
11923         * m4/sin.m4: New file.
11924         * modules/sin (Files): Add it.
11925         (configure.ac): Just invoke gl_FUNC_SIN.
11926
11927 2011-10-08  Bruno Haible  <bruno@clisp.org>
11928
11929         Tests for module 'powf'.
11930         * modules/powf-tests: New file.
11931         * tests/test-powf.c: New file.
11932
11933         New module 'powf'.
11934         * lib/math.in.h (powf): New declaration.
11935         * lib/powf.c: New file.
11936         * m4/powf.m4: New file.
11937         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11939         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11940         * modules/powf: New file.
11941         * tests/test-math-c++.cc: Check the declaration of powf.
11942         * doc/posix-functions/powf.texi: Mention the new module.
11943
11944         pow: Use a .m4 file.
11945         * m4/pow.m4: New file.
11946         * modules/pow (Files): Add it.
11947         (configure.ac): Just invoke gl_FUNC_POW.
11948
11949 2011-10-08  Bruno Haible  <bruno@clisp.org>
11950
11951         Tests for module 'log10f'.
11952         * modules/log10f-tests: New file.
11953         * tests/test-log10f.c: New file.
11954
11955         New module 'log10f'.
11956         * lib/math.in.h (log10f): New declaration.
11957         * lib/log10f.c: New file.
11958         * m4/log10f.m4: New file.
11959         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11961         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11962         * modules/log10f: New file.
11963         * tests/test-math-c++.cc: Check the declaration of log10f.
11964         * doc/posix-functions/log10f.texi: Mention the new module.
11965
11966         log10: Use a .m4 file.
11967         * m4/log10.m4: New file.
11968         * modules/log10 (Files): Add it.
11969         (configure.ac): Just invoke gl_FUNC_LOG10.
11970
11971 2011-10-08  Bruno Haible  <bruno@clisp.org>
11972
11973         Tests for module 'logf'.
11974         * modules/logf-tests: New file.
11975         * tests/test-logf.c: New file.
11976
11977         New module 'logf'.
11978         * lib/math.in.h (logf): New declaration.
11979         * lib/logf.c: New file.
11980         * m4/logf.m4: New file.
11981         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11983         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11984         * modules/logf: New file.
11985         * tests/test-math-c++.cc: Check the declaration of logf.
11986         * doc/posix-functions/logf.texi: Mention the new module.
11987
11988         log: Use a .m4 file.
11989         * m4/log.m4: New file.
11990         * modules/log (Files): Add it.
11991         (configure.ac): Just invoke gl_FUNC_LOG.
11992
11993 2011-10-08  Bruno Haible  <bruno@clisp.org>
11994
11995         Tests for module 'expf'.
11996         * modules/expf-tests: New file.
11997         * tests/test-expf.c: New file.
11998
11999         New module 'expf'.
12000         * lib/math.in.h (expf): New declaration.
12001         * lib/expf.c: New file.
12002         * m4/expf.m4: New file.
12003         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12005         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12006         * modules/expf: New file.
12007         * tests/test-math-c++.cc: Check the declaration of expf.
12008         * doc/posix-functions/expf.texi: Mention the new module.
12009
12010         exp: Use a .m4 file.
12011         * m4/exp.m4: New file.
12012         * modules/exp (Files): Add it.
12013         (configure.ac): Just invoke gl_FUNC_EXP.
12014
12015 2011-10-08  Bruno Haible  <bruno@clisp.org>
12016
12017         Tests for module 'sqrtf'.
12018         * modules/sqrtf-tests: New file.
12019         * tests/test-sqrtf.c: New file.
12020
12021         New module 'sqrtf'.
12022         * lib/math.in.h (sqrtf): New declaration.
12023         * lib/sqrtf.c: New file.
12024         * m4/sqrtf.m4: New file.
12025         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12027         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12028         * modules/sqrtf: New file.
12029         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12030         * doc/posix-functions/sqrtf.texi: Mention the new module.
12031
12032 2011-10-08  Bruno Haible  <bruno@clisp.org>
12033
12034         Tests: Avoid link failures w.r.t. libintl.
12035         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12036         $(LIBINTL).
12037         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12038         $(LIBINTL).
12039         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12040         against $(LIBINTL).
12041         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12042         $(LIBINTL).
12043         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12044         $(LIBINTL).
12045         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12046
12047 2011-10-08  Bruno Haible  <bruno@clisp.org>
12048
12049         pow tests: Defeat compiler optimizations.
12050         * tests/test-pow.c (main): Assign arguments to x and y before use.
12051
12052 2011-10-08  Bruno Haible  <bruno@clisp.org>
12053
12054         gnulib-tool: Improve last commit.
12055         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12056         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12057         ignore dependencies that are not among the modules list.
12058
12059 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12060
12061         gnulib-tool: don't follow dependencies to avoided modules
12062         This fixes a bug that is related to the previous one.
12063         * gnulib-tool (func_modules_transitive_closure)
12064         (func_emit_autoconf_snippets):
12065         Check whether a dependency is acceptable before using it.
12066         (--extract-dependencies): Report an error if --avoid is also used,
12067         since this combination of options is not yet supported.
12068
12069         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12070         Problem reported by Peter Dyballa in
12071         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12072         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12073         when echoing "$condition".
12074
12075 2011-10-07  Bruno Haible  <bruno@clisp.org>
12076
12077         Fix documentation about math functions on MacOS X.
12078         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12079         MacOS X 10.5.
12080         * doc/posix-functions/fdim.texi: Likewise.
12081         * doc/posix-functions/feclearexcept.texi: Likewise.
12082         * doc/posix-functions/fegetenv.texi: Likewise.
12083         * doc/posix-functions/fegetround.texi: Likewise.
12084         * doc/posix-functions/feholdexcept.texi: Likewise.
12085         * doc/posix-functions/feraiseexcept.texi: Likewise.
12086         * doc/posix-functions/fesetenv.texi: Likewise.
12087         * doc/posix-functions/fesetround.texi: Likewise.
12088         * doc/posix-functions/fetestexcept.texi: Likewise.
12089         * doc/posix-functions/feupdateenv.texi: Likewise.
12090         * doc/posix-functions/fmax.texi: Likewise.
12091         * doc/posix-functions/fmin.texi: Likewise.
12092         * doc/posix-functions/log2.texi: Likewise.
12093         * doc/posix-functions/modff.texi: Likewise.
12094         * doc/posix-functions/nan.texi: Likewise.
12095         * doc/posix-functions/nanf.texi: Likewise.
12096         * doc/posix-functions/nextafterf.texi: Likewise.
12097         * doc/posix-functions/remquo.texi: Likewise.
12098
12099 2011-10-07  Bruno Haible  <bruno@clisp.org>
12100
12101         modff: Drop assumption about library that defines modff.
12102         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12103         AC_CHECK_FUNCS.
12104         * modules/modff (Files): Add m4/mathfunc.m4.
12105
12106 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12107
12108         raise tests: Avoid a GCC warning.
12109         * tests/test-raise.c (handler): Use _Noreturn.
12110
12111 2011-10-07  Bruno Haible  <bruno@clisp.org>
12112
12113         Tests for module 'ldexpf'.
12114         * modules/ldexpf-tests: New file.
12115         * tests/test-ldexpf.c: New file.
12116
12117         New module 'ldexpf'.
12118         * lib/math.in.h (ldexpf): New declaration.
12119         * lib/ldexpf.c: New file.
12120         * m4/ldexpf.m4: New file.
12121         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12123         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12124         * modules/ldexpf: New file.
12125         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12126         * doc/posix-functions/ldexpf.texi: Mention the new module.
12127
12128 2011-10-06  Bruno Haible  <bruno@clisp.org>
12129
12130         frexpf: Work around problems on IRIX and mingw.
12131         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12133         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12134         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12135         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12136         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12137         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12138
12139 2011-10-06  Bruno Haible  <bruno@clisp.org>
12140
12141         fabsf: Drop assumption about library that defines fabsf.
12142         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12143         AC_CHECK_FUNCS.
12144         * modules/fabsf (Files): Add m4/mathfunc.m4.
12145
12146 2011-10-06  Bruno Haible  <bruno@clisp.org>
12147
12148         frexpf: Drop assumption about library that defines frexpf.
12149         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12150         'int *', 'float *', 'long double *', 'float', 'long double'.
12151         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12152         AC_CHECK_FUNCS.
12153         * modules/frexpf (Files): Add m4/mathfunc.m4.
12154
12155         Tests for module 'frexpf'.
12156         * modules/frexpf-tests: New file.
12157         * tests/test-frexpf.c: New file.
12158
12159         New module 'frexpf'.
12160         * lib/math.in.h (frexpf): New declaration.
12161         * lib/frexpf.c: New file.
12162         * m4/frexpf.m4: New file.
12163         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12165         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12166         * modules/frexpf: New file.
12167         * tests/test-math-c++.cc: Check the declaration of frexpf.
12168         * doc/posix-functions/frexpf.texi: Mention the new module.
12169
12170 2011-10-06  Bruno Haible  <bruno@clisp.org>
12171
12172         math: Sort function declarations of math.in.h.
12173         * lib/math.in.h (frexp, logb): Move declarations.
12174
12175 2011-10-05  Bruno Haible  <bruno@clisp.org>
12176
12177         Tests for module 'modff'.
12178         * modules/modff-tests: New file.
12179         * tests/test-modff.c: New file.
12180
12181         New module 'modff'.
12182         * lib/math.in.h (modff): New declaration.
12183         * lib/modff.c: New file.
12184         * m4/modff.m4: New file.
12185         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12187         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12188         * modules/modff: New file.
12189         * tests/test-math-c++.cc: Check the declaration of modff.
12190         * doc/posix-functions/modff.texi: Mention the new module.
12191
12192         modf tests: Make test sharper.
12193         * tests/test-modf.c (main): Strengthen upper bound.
12194
12195         modf: Use a .m4 file.
12196         * m4/modf.m4: New file.
12197         * modules/modf (Files): Add it.
12198         (configure.ac): Just invoke gl_FUNC_MODF.
12199
12200 2011-10-05  Bruno Haible  <bruno@clisp.org>
12201
12202         Tests for module 'fmodf'.
12203         * modules/fmodf-tests: New file.
12204         * tests/test-fmodf.c: New file.
12205
12206         New module 'fmodf'.
12207         * lib/math.in.h (fmodf): New declaration.
12208         * lib/fmodf.c: New file.
12209         * m4/fmodf.m4: New file.
12210         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12212         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12213         * modules/fmodf: New file.
12214         * tests/test-math-c++.cc: Check the declaration of fmodf.
12215         * doc/posix-functions/fmodf.texi: Mention the new module.
12216
12217         fmod: Use a .m4 file.
12218         * m4/fmod.m4: New file.
12219         * modules/fmod (Files): Add it.
12220         (configure.ac): Just invoke gl_FUNC_FMOD.
12221
12222 2011-10-05  Bruno Haible  <bruno@clisp.org>
12223
12224         Tests for module 'fabsf'.
12225         * modules/fabsf-tests: New file.
12226         * tests/test-fabsf.c: New file.
12227
12228         New module 'fabsf'.
12229         * lib/math.in.h (fabsf): New declaration.
12230         * lib/fabsf.c: New file.
12231         * m4/fabsf.m4: New file.
12232         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12234         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12235         * modules/fabsf: New file.
12236         * tests/test-math-c++.cc: Check the declaration of fabsf.
12237         * doc/posix-functions/fabsf.texi: Mention the new module.
12238
12239         fabs: Use a .m4 file.
12240         * m4/fabs.m4: New file.
12241         * modules/fabs (Files): Add it.
12242         (configure.ac): Just invoke gl_FUNC_FABS.
12243
12244 2011-10-05  Jim Meyering  <meyering@redhat.com>
12245
12246         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12247         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12248         ls -lL regression introduced in coreutils-8.12, it does so at the
12249         cost of an additional stat call in the common case.  Besides, now
12250         that the kernel change that prompted commit 95f7c57f has been reverted
12251         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12252         we have no use for commit 95f7c57f, "file-has-acl: use
12253         acl_extended_file_nofollow if available".
12254
12255 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12256
12257         file-has-acl: revert unintended change in behavior of ls -L
12258         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12259         derived from...
12260         (file_has_acl): ...code here.  Call it.
12261         This problem was introduced with 2011-07-22 commit 95f7c57f,
12262         "file-has-acl: use acl_extended_file_nofollow if available".
12263         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12264
12265 2011-10-03  Bruno Haible  <bruno@clisp.org>
12266
12267         poll: Avoid link errors on MSVC.
12268         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12269         * modules/poll (Depends-on): Add sockets.
12270         (Link): New section.
12271         * NEWS: Mention the change.
12272         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12273         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12274         $(LIB_POLL) instead of $(LIBSOCKET).
12275
12276 2011-10-03  Bruno Haible  <bruno@clisp.org>
12277
12278         sys_select tests: Fix link error on MSVC 9.
12279         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12280         with $(LIB_SELECT) instead of $(LIBSOCKET).
12281
12282 2011-10-03  Bruno Haible  <bruno@clisp.org>
12283
12284         sys_select: Fix compilation error on mingw.
12285         * lib/sys_select.in.h: On native Windows, include <io.h>.
12286
12287 2011-10-03  Bruno Haible  <bruno@clisp.org>
12288
12289         wmemset: Support for MSVC.
12290         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12291         whether wmemset() exists.
12292
12293 2011-10-03  Bruno Haible  <bruno@clisp.org>
12294
12295         wmemmove: Support for MSVC.
12296         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12297         whether wmemmove() exists.
12298
12299 2011-10-03  Bruno Haible  <bruno@clisp.org>
12300
12301         wmemcpy: Support for MSVC.
12302         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12303         whether wmemcpy() exists.
12304
12305 2011-10-03  Bruno Haible  <bruno@clisp.org>
12306
12307         wmemcmp: Support for MSVC.
12308         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12309         whether wmemcmp() exists.
12310
12311 2011-10-03  Bruno Haible  <bruno@clisp.org>
12312
12313         wmemchr: Support for MSVC.
12314         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12315         whether wmemchr() exists.
12316
12317 2011-10-03  Bruno Haible  <bruno@clisp.org>
12318
12319         glthread/*, strsignal: Support for MSVC.
12320         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12321         including <winsock.h> on MSVC 9.
12322         * lib/glthread/lock.h: Likewise.
12323         * lib/glthread/thread.h: Likewise.
12324         * lib/glthread/tls.h: Likewise.
12325         * lib/glthread/yield.h: Likewise.
12326         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12327         if HAVE_UNISTD_H is false.
12328         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12329
12330 2011-10-03  Bruno Haible  <bruno@clisp.org>
12331
12332         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12333         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12334         Set to 100000.
12335
12336 2011-10-03  Bruno Haible  <bruno@clisp.org>
12337
12338         acl: Fix specification.
12339         * lib/file-has-acl.c (file_has_acl): Fix specification.
12340
12341 2011-10-03  Bruno Haible  <bruno@clisp.org>
12342
12343         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12344         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12345         (compute_curr_prefix, shared_library_fullname,
12346         find_shared_library_fullname, get_shared_library_fullname, relocate):
12347         Use it together with PIC && INSTALLDIR.
12348         Reported by <jojelino@gmail.com>
12349         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12350
12351 2011-10-01  Jim Meyering  <meyering@redhat.com>
12352
12353         maint.mk: adjust a release-related rule not to require use of gzip
12354         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12355         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12356         projects that build only .tar.xz files.  Also fix an erroneous test.
12357
12358         test-linkat: don't leave behind a temporary file
12359         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12360         Otherwise, coreutils' "make distcheck" would fail with this:
12361           Only in /c/cu/tests/torture/coreutils/test/\
12362             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12363           make[2]: *** [my-distcheck] Error 1
12364
12365         float, math: add omitted file
12366         * lib/itold.c: Add file, required for yesterday's float change.
12367
12368 2011-10-01  Bruno Haible  <bruno@clisp.org>
12369
12370         isinf: Fix for OpenBSD/x86.
12371         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12372         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12373         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12374
12375 2011-10-01  Bruno Haible  <bruno@clisp.org>
12376
12377         isfinite: Fix syntax error in configure test.
12378         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12379
12380         isfinite: Fix typo.
12381         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12382         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12383
12384 2011-10-01  Bruno Haible  <bruno@clisp.org>
12385
12386         nonblocking tests: Fix test failure on Linux/IA-64.
12387         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12388         Set to 270000.
12389
12390 2011-10-01  Bruno Haible  <bruno@clisp.org>
12391
12392         mkfifoat tests: Fix a test failure on mingw.
12393         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12394         with error ENOSYS.
12395
12396 2011-09-30  Bruno Haible  <bruno@clisp.org>
12397
12398         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12399         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12400         'long double'. Set REPLACE_ITOLD.
12401         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12402         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12403         * lib/itold.c: New file.
12404         * modules/float (Files): Add lib/itold.c.
12405         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12406         (Makefile.am): Substitute REPLACE_ITOLD.
12407         * modules/math (Depends-on): Add float.
12408         (Makefile.am): Substitute REPLACE_ITOLD.
12409         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12410         * doc/posix-headers/math.texi: Likewise.
12411         * doc/posix-functions/logl.texi: Likewise.
12412
12413 2011-09-30  Bruno Haible  <bruno@clisp.org>
12414
12415         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12416         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12417         Set to 140000.
12418
12419 2011-09-30  Bruno Haible  <bruno@clisp.org>
12420
12421         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12422         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12423         invocation, say "right after AC_PROG_CC_STDC", not "right after
12424         AC_PROG_CC".
12425         Reported by Gary V. Vaughan <gary@gnu.org>.
12426
12427 2011-09-30  Bruno Haible  <bruno@clisp.org>
12428
12429         Centralize C99 requirement.
12430         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12431         * modules/stdarg (configure.ac-early): Invoke it instead of
12432         AC_PROG_CC_STDC.
12433         Reported by Gary V. Vaughan and Paul Eggert.
12434
12435 2011-09-29  Bruno Haible  <bruno@clisp.org>
12436
12437         float: Fix LDBL_MAX value on Linux/PowerPC.
12438         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12439         on Linux/PowerPC.
12440         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12441         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12442         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12443         platform.
12444         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12445
12446 2011-09-29  Bruno Haible  <bruno@clisp.org>
12447
12448         doc: Improve doc about gl_EARLY.
12449         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12450         AC_PROG_CC_STDC invocation.
12451         Reported by Gary V. Vaughan <gary@gnu.org>.
12452
12453 2011-09-28  Bruno Haible  <bruno@clisp.org>
12454
12455         fgetc, fputc, fread, fwrite tests: Fix link error.
12456         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12457         on non-MSVC platforms.
12458         * tests/test-fputc.c (main): Likewise.
12459         * tests/test-fread.c (main): Likewise.
12460         * tests/test-fwrite.c (main): Likewise.
12461         Reported by Jim Meyering.
12462
12463 2011-09-27  Bruno Haible  <bruno@clisp.org>
12464
12465         fputc, fwrite tests: Avoid test failure on MSVC.
12466         * tests/test-fgetc.c: Include msvc-inval.h.
12467         (main): Invoke gl_msvc_inval_ensure_handler.
12468         * tests/test-fputc.c: Include msvc-inval.h.
12469         (main): Invoke gl_msvc_inval_ensure_handler.
12470         * tests/test-fread.c: Include msvc-inval.h.
12471         (main): Invoke gl_msvc_inval_ensure_handler.
12472         * tests/test-fwrite.c: Include msvc-inval.h.
12473         (main): Invoke gl_msvc_inval_ensure_handler.
12474         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12475         * modules/fputc-tests (Depends-on): Likewise.
12476         * modules/fread-tests (Depends-on): Likewise.
12477         * modules/fwrite-tests (Depends-on): Likewise.
12478
12479 2011-09-27  Bruno Haible  <bruno@clisp.org>
12480
12481         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12482         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12483         (raise): Remove older, duplicated declaration.
12484         (_gl_raise_SIGPIPE): New declaration.
12485         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12486         (rpl_raise): Remove function.
12487         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12488         a gnulib-defined SIGPIPE here.
12489         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12490         'sigprocmask' has detected missing signal-blocking and the module
12491         'sigpipe' is enabled.
12492         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12493
12494 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12495
12496         base64-tests: avoid memory leak
12497         * tests/test-base64.c (main): Plug memory leak.
12498
12499         base32: new module
12500         * modules/base32: New module.
12501         * lib/base32.c: New file.
12502         * lib/base32.h: Likewise.
12503         * m4/base32.m4: Likewise.
12504         * modules/base32-tests: New test.
12505         * tests/test-base32.c: Likewise.
12506         * MODULES.html.sh (Misc): Mention it.
12507
12508 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12509
12510         gnulib: use more-standard license notice wording
12511         * gnulib-tool (func_emit_copyright_notice): When emitting a
12512         license notice into a file, use the standard wording as suggested
12513         by the current information for GNU maintainers, except say "file"
12514         rather than "program".  The new wording gives a license version
12515         number, which addresses an issue raised by Glenn Morris in
12516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12517         * m4/onceonly.m4: Use that same wording here, too.
12518
12519         dup2: minor simplification
12520         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12521         as lib/dup2.c no longer uses 'inline'.
12522
12523 2011-09-25  Bruno Haible  <bruno@clisp.org>
12524
12525         strings: Fix compilation error on MSVC.
12526         * lib/strings.in.h: Include <stddef.h> for size_t.
12527
12528 2011-09-25  Bruno Haible  <bruno@clisp.org>
12529
12530         fflush et al.: Document limitation on MSVC.
12531         * doc/posix-functions/fflush.texi: Document possible crash in handling
12532         mode other than DEFAULT_HANDLING.
12533         * doc/posix-functions/fgetc.texi: Likewise.
12534         * doc/posix-functions/fputc.texi: Likewise.
12535         * doc/posix-functions/fread.texi: Likewise.
12536         * doc/posix-functions/fwrite.texi: Likewise.
12537
12538 2011-09-25  Bruno Haible  <bruno@clisp.org>
12539
12540         msvc-inval: Allow three invalid parameter handling modes.
12541         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12542         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12543         macros.
12544         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12545         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12546         SANE_LIBRARY_HANDLING as a no-op.
12547         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12548         <stdlib.h>.
12549         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12550
12551 2011-09-25  Bruno Haible  <bruno@clisp.org>
12552
12553         msvc-inval: Make handler multithread-safe.
12554         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12555         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12556         declarations.
12557         (gl_msvc_inval_current): New declaration.
12558         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12559         Operate on the structure returned by gl_msvc_inval_current().
12560         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12561         Remove varaiables.
12562         (tls_index, tls_initialized): New variables.
12563         (not_per_thread): New variable.
12564         (gl_msvc_inval_current): New function.
12565         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12566         returned by gl_msvc_inval_current().
12567
12568 2011-09-25  Bruno Haible  <bruno@clisp.org>
12569
12570         msvc-inval: Install handler globally.
12571         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12572         !_MSC_VER.
12573         (gl_msvc_invalid_parameter_handler): Remove declaration.
12574         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12575         declarations.
12576         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12577         Install the handler globally, don't uninstall it.
12578         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12579         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12580         currently valid, call RaiseException instead.
12581         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12582         for !_MSC_VER.
12583
12584 2011-09-25  Bruno Haible  <bruno@clisp.org>
12585
12586         strerror_r-posix: Fix for MSVC 9.
12587         * lib/strerror_r.c (local_snprintf): New function.
12588         (snprintf): Define to local_snprintf, not to _snprintf.
12589
12590 2011-09-25  Bruno Haible  <bruno@clisp.org>
12591
12592         ftruncate: Support for MSVC 9.
12593         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12594         (chsize_nothrow): New function.
12595         (chsize): Redefine as a macro.
12596         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12597         * modules/ftruncate (Depends-on): Add msvc-inval.
12598
12599 2011-09-25  Bruno Haible  <bruno@clisp.org>
12600
12601         New module 'fstat'.
12602         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12603         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12604         * lib/fchdir.c (rpl_fstat): Remove function.
12605         * m4/fstat.m4: New file.
12606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12608         declared.
12609         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12610         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12611         * modules/fstat: New file.
12612         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12613         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12614         is set.
12615         * doc/posix-functions/fstat.texi: Mention the new module and the
12616         problem on MSVC.
12617         * NEWS: Mention the change.
12618         * modules/acl (Depends-on): Add fstat.
12619         * modules/chdir-safer (Depends-on): Likewise.
12620         * modules/chown (Depends-on): Likewise.
12621         * modules/copy-file (Depends-on): Likewise.
12622         * modules/fchdir (Depends-on): Likewise.
12623         * modules/fdopendir (Depends-on): Likewise.
12624         * modules/fopen (Depends-on): Likewise.
12625         * modules/fts (Depends-on): Likewise.
12626         * modules/getcwd (Depends-on): Likewise.
12627         * modules/isapipe (Depends-on): Likewise.
12628         * modules/linkat (Depends-on): Likewise.
12629         * modules/lseek (Depends-on): Likewise.
12630         * modules/mkdir-p (Depends-on): Likewise.
12631         * modules/open (Depends-on): Likewise.
12632         * modules/openat (Depends-on): Likewise.
12633         * modules/read-file (Depends-on): Likewise.
12634         * modules/renameat (Depends-on): Likewise.
12635         * modules/utimens (Depends-on): Likewise.
12636
12637 2011-09-25  Bruno Haible  <bruno@clisp.org>
12638
12639         linkat: Fix compilation on MSVC 9.
12640         * lib/linkat.c: Don't include <stdint.h>.
12641
12642 2011-09-25  Bruno Haible  <bruno@clisp.org>
12643
12644         fclose: Support for MSVC 9.
12645         * lib/fclose.c: Include msvc-inval.h.
12646         (fclose_nothrow): New function.
12647         (rpl_fclose): Use it.
12648         * modules/fclose (Depends-on): Add msvc-inval.
12649         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12650
12651 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12652
12653         dup2: minor simplifications
12654         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12655         that it's a performance win.
12656         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12657         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12658
12659 2011-09-24  Jim Meyering  <meyering@redhat.com>
12660
12661         test-futimens: avoid a warning from gcc -Wshadow
12662         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12663         to avoid a shadowing warning.
12664
12665 2011-09-24  Bruno Haible  <bruno@clisp.org>
12666
12667         fdopen: Support for MSVC 9.
12668         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12669         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12670         * lib/fdopen.c: Include msvc-inval.h.
12671         (fdopen_nothrow): New function.
12672         (rpl_fdopen): Use it.
12673         * modules/fdopen (Depends-on): Add msvc-inval.
12674         * modules/fclose-tests (Depends-on): Add fdopen.
12675         * modules/fflush-tests (Depends-on): Likewise.
12676         * modules/fgetc-tests (Depends-on): Likewise.
12677         * modules/fputc-tests (Depends-on): Likewise.
12678         * modules/fread-tests (Depends-on): Likewise.
12679         * modules/freopen-tests (Depends-on): Likewise.
12680         * modules/fseeko-tests (Depends-on): Likewise.
12681         * modules/ftello-tests (Depends-on): Likewise.
12682         * modules/fwrite-tests  (Depends-on): Likewise.
12683         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12684
12685 2011-09-24  Bruno Haible  <bruno@clisp.org>
12686
12687         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12688         * modules/fgetc-tests (Depends-on): Add unistd.
12689         * modules/fputc-tests (Depends-on): Likewise.
12690         * modules/fread-tests (Depends-on): Likewise.
12691         * modules/fwrite-tests (Depends-on): Likewise.
12692
12693 2011-09-24  Bruno Haible  <bruno@clisp.org>
12694
12695         dup: Simplify autoconf test.
12696         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12697         on gl_MSVC_INVAL's result.
12698
12699 2011-09-24  Bruno Haible  <bruno@clisp.org>
12700
12701         Tests for function fwrite().
12702         * modules/fwrite-tests: New file.
12703         * tests/test-fwrite.c: New file.
12704         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12705
12706         Tests for function fread().
12707         * modules/fread-tests: New file.
12708         * tests/test-fread.c: New file.
12709         * modules/stdio-tests (Depends-on): Add fread-tests.
12710
12711         Activate fputc tests.
12712         * modules/stdio-tests (Depends-on): Add fputc-tests.
12713
12714         Enhance fgetc, fputc tests.
12715         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12716         * tests/test-fputc.c (main): Likewise.
12717
12718 2011-09-24  Bruno Haible  <bruno@clisp.org>
12719
12720         write: Support for MSVC 9.
12721         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12722         is not 1.
12723         * lib/write.c (write_nothrow): New function.
12724         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12725         not 1. Use write_nothrow.
12726         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12727         invalid parameter handler.
12728         (gl_PREREQ_WRITE): New macro.
12729         * modules/write (Depends-on): Add msvc-inval.
12730         (configure.ac): Invoke gl_PREREQ_WRITE.
12731         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12732
12733 2011-09-24  Bruno Haible  <bruno@clisp.org>
12734
12735         read: Fix last commit.
12736         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12737
12738 2011-09-24  Bruno Haible  <bruno@clisp.org>
12739
12740         dup2: Fix last commit.
12741         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12742         (rpl_dup2): Disable fcntl workaround on native Windows.
12743
12744         sigprocmask: Make code safer.
12745         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12746         section that changes macro definitions for this compilation unit.
12747
12748 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12749
12750         dup2: clarify by coalescing Windows-specific material
12751         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12752         "msvc-nothrow.h"' to the Windows-specific section, so that the
12753         Emacs source need not contain these include files.
12754         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12755         Windows-specific fixes into this function rather than just the
12756         nothrow fix, as this shortens and clarifies the code.  Always
12757         define as a function, as that's a bit cleaner than having it be
12758         sometimes a function and sometimes a macro.
12759         (rpl_dup2): Move the Windows-specific stuff out of here and into
12760         ms_windows_dup2.  Don't protect the Haiku-related fix with
12761         "#if !defined __linux__", as the same code also works around
12762         a Linux kernel bug, and it doesn't add any system calls on any
12763         platform.  Add comment about FreeBSD 6.1.
12764
12765         sigprocmask: move #include directive
12766         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12767         Windows-specific section, so that the Emacs source need not
12768         contain msvc-inval.h.
12769
12770 2011-09-23  Bruno Haible  <bruno@clisp.org>
12771
12772         read: Support for MSVC 9.
12773         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12774         is not 1.
12775         * lib/read.c (read_nothrow): New function.
12776         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12777         read_nothrow.
12778         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12779         invalid parameter handler.
12780         (gl_PREREQ_READ): New macro.
12781         * modules/read (Depends-on): Add msvc-inval.
12782         (configure.ac): Invoke gl_PREREQ_READ.
12783         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12784
12785 2011-09-23  Bruno Haible  <bruno@clisp.org>
12786
12787         close: Support for MSVC 9.
12788         * lib/close.c: Include <errno.h>, msvc-inval.h.
12789         (close_nothrow): New function.
12790         (rpl_close): Use it.
12791         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12792         invalid parameter handler.
12793         * modules/close (Depends-on): Add msvc-inval.
12794         * modules/dup2-tests (Depends-on): Add close.
12795         * modules/dup3-tests (Depends-on): Likewise.
12796         * modules/fcntl-tests (Depends-on): Likewise.
12797         * modules/spawn-pipe-tests (Depends-on): Likewise.
12798         * modules/unistd-safer-tests (Depends-on): Likewise.
12799         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12800
12801 2011-09-23  Bruno Haible  <bruno@clisp.org>
12802
12803         New module 'dup'.
12804         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12805         Allow replacement.
12806         * lib/dup.c: New file.
12807         * lib/fchdir.c (rpl_dup): Remove function.
12808         * m4/dup.m4: New file.
12809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12810         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12811         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12812         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12813         * modules/dup: New file.
12814         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12815         'dup' module is in use.
12816         * modules/fdopendir (Depends-on): Add dup.
12817         * modules/fdutimensat-tests (Depends-on): Likewise.
12818         * modules/fts (Depends-on): Likewise.
12819         * modules/futimens-tests (Depends-on): Likewise.
12820         * modules/posix_spawnp-tests (Depends-on): Likewise.
12821         * modules/unistd-safer-tests (Depends-on): Likewise.
12822         * modules/utimens-tests (Depends-on): Likewise.
12823         * doc/posix-functions/dup.texi: Mention the new module and the problem
12824         on MSVC.
12825
12826 2011-09-23  Bruno Haible  <bruno@clisp.org>
12827
12828         getdtablesize: Support for MSVC 9.
12829         * lib/getdtablesize.c: Include msvc-inval.h.
12830         (_setmaxstdio_nothrow): New function.
12831         (_setmaxstdio): Redefine it.
12832         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12833         * modules/getdtablesize (Depends-on): Add msvc-inval.
12834         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12835
12836 2011-09-23  Bruno Haible  <bruno@clisp.org>
12837
12838         signal-h: Rename from signal.
12839         * modules/signal-h: Renamed from modules/signal.
12840         * modules/pthread_sigmask (Depends-on): Update.
12841         * modules/raise (Depends-on): Likewise.
12842         * modules/sigaction (Depends-on): Likewise.
12843         * modules/sigpipe (Depends-on): Likewise.
12844         * modules/sigprocmask (Depends-on): Likewise.
12845         * modules/sys_select (Depends-on): Likewise.
12846         * modules/signal-h-tests: Renamed from modules/signal-tests.
12847         (Files, Depends-on, Makefile.am): Update.
12848         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12849         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12850         (Files, Makefile.am): Update.
12851         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12852         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12853         * modules/signal: New placeholder file.
12854         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12855         * doc/posix-headers/signal.texi: Update.
12856         * NEWS: Mention the change.
12857
12858 2011-09-23  Bruno Haible  <bruno@clisp.org>
12859
12860         sigprocmask: Avoid crashes through signal() on MSVC 9.
12861         * lib/sigprocmask.c: Include msvc-inval.h.
12862         (signal_nothrow): New function.
12863         (signal): Redefine it.
12864         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12865         * modules/sigprocmask (Depends-on): Add msvc-inval.
12866         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12867
12868 2011-09-23  Bruno Haible  <bruno@clisp.org>
12869
12870         Tests for module 'raise'.
12871         * modules/raise-tests: New file.
12872         * tests/test-raise.c: New file.
12873
12874         raise: Support for MSVC.
12875         * lib/signal.in.h (raise): New declaration.
12876         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12877         for native Windows platforms.
12878         * m4/raise.m4: New file.
12879         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12880         HAVE_RAISE, REPLACE_RAISE.
12881         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12882         REPLACE_RAISE.
12883         * modules/raise (Status, Notice): Remove fields.
12884         (Files): Add m4/raise.m4.
12885         (Depends-on): Add signal, msvc-inval.
12886         (configure.ac): Use the common idioms.
12887         (Maintainer): Add me.
12888         * tests/test-signal-c++.cc: Check the signature of raise.
12889         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12890
12891 2011-09-23  Bruno Haible  <bruno@clisp.org>
12892
12893         pipe2: Fix compilation on pre-C99 compilers.
12894         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12895
12896 2011-09-23  Bruno Haible  <bruno@clisp.org>
12897
12898         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12899         * lib/msvc-nothrow.h: New file.
12900         * lib/msvc-nothrow.c: New file.
12901         * m4/msvc-nothrow.m4: New file.
12902         * modules/msvc-nothrow: New file.
12903         * lib/dup2.c: Include msvc-nothrow.h.
12904         (rpl_dup2): No need to protect _get_osfhandle call here.
12905         * lib/accept4.c: Include msvc-nothrow.h.
12906         * lib/error.c: Likewise.
12907         * lib/fcntl.c: Likewise.
12908         * lib/lseek.c: Likewise.
12909         * lib/nonblocking.c: Likewise.
12910         * lib/poll.c: Likewise.
12911         * lib/read.c: Likewise.
12912         * lib/select.c: Likewise.
12913         * lib/sockets.h: Likewise.
12914         * lib/sockets.c: Likewise.
12915         * lib/stdio-read.c: Likewise.
12916         * lib/stdio-write.c: Likewise.
12917         * lib/write.c: Likewise.
12918         * lib/w32sock.h: Likewise.
12919         * lib/w32spawn.h: Likewise.
12920         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12921         * lib/fsync.c: Likewise.
12922         * lib/isapipe.c: Likewise.
12923         * modules/dup2 (Depends-on): Add msvc-nothrow.
12924         * modules/accept4 (Depends-on): Likewise.
12925         * modules/error (Depends-on): Likewise.
12926         * modules/fcntl (Depends-on): Likewise.
12927         * modules/lseek (Depends-on): Likewise.
12928         * modules/nonblocking (Depends-on): Likewise.
12929         * modules/poll (Depends-on): Likewise.
12930         * modules/read (Depends-on): Likewise.
12931         * modules/select (Depends-on): Likewise.
12932         * modules/sockets (Depends-on): Likewise.
12933         * modules/sigpipe (Depends-on): Likewise.
12934         * modules/write (Depends-on): Likewise.
12935         * modules/accept (Depends-on): Likewise.
12936         * modules/bind (Depends-on): Likewise.
12937         * modules/connect (Depends-on): Likewise.
12938         * modules/gethostname (Depends-on): Likewise.
12939         * modules/getpeername (Depends-on): Likewise.
12940         * modules/getsockname (Depends-on): Likewise.
12941         * modules/getsockopt (Depends-on): Likewise.
12942         * modules/ioctl (Depends-on): Likewise.
12943         * modules/listen (Depends-on): Likewise.
12944         * modules/recv (Depends-on): Likewise.
12945         * modules/recvfrom (Depends-on): Likewise.
12946         * modules/send (Depends-on): Likewise.
12947         * modules/sendto (Depends-on): Likewise.
12948         * modules/setsockopt (Depends-on): Likewise.
12949         * modules/shutdown (Depends-on): Likewise.
12950         * modules/socket (Depends-on): Likewise.
12951         * modules/execute (Depends-on): Likewise.
12952         * modules/spawn-pipe (Depends-on): Likewise.
12953         * modules/flock (Depends-on): Likewise.
12954         * modules/fsync (Depends-on): Likewise.
12955         * modules/isapipe (Depends-on): Likewise.
12956         * tests/test-cloexec.c: Include msvc-nothrow.h.
12957         * tests/test-dup-safer.c: Likewise.
12958         * tests/test-dup2.c: Likewise.
12959         * tests/test-dup3.c: Likewise.
12960         * tests/test-fcntl.c: Likewise.
12961         * tests/test-pipe.c: Likewise.
12962         * tests/test-pipe2.c: Likewise.
12963         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12964         * modules/unistd-safer-tests (Depends-on): Likewise.
12965         * modules/dup2-tests (Depends-on): Likewise.
12966         * modules/dup3-tests (Depends-on): Likewise.
12967         * modules/fcntl-tests (Depends-on): Likewise.
12968         * modules/pipe-posix-tests (Depends-on): Likewise.
12969         * modules/pipe2-tests (Depends-on): Likewise.
12970
12971 2011-09-23  Bruno Haible  <bruno@clisp.org>
12972
12973         dup2: Make code more maintainable.
12974         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12975         (rpl_dup2): Use it.
12976         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12977         * modules/dup2 (configure.ac): Invoke it.
12978         Reported by Paul Eggert.
12979
12980 2011-09-23  Bruno Haible  <bruno@clisp.org>
12981
12982         msvc-inval: Fix compilation error.
12983         * lib/msvc-inval.h: Include <excpt.h>.
12984
12985 2011-09-23  Bruno Haible  <bruno@clisp.org>
12986
12987         mkdir: Tweak for MSVC 9.
12988         * lib/sys_stat.in.h: Update comments.
12989         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12990
12991         Tests for module 'chdir'.
12992         * modules/chdir-tests: New file.
12993         * tests/test-chdir.c: New file.
12994
12995         New module 'chdir'.
12996         * modules/chdir: New file.
12997         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12998         (chdir): New declaration.
12999         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13000         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13001         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13002         * tests/test-unistd-c++.cc: Check signature of chdir.
13003         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13004         * modules/chdir-long (Depends-on): Add chdir.
13005         * modules/fchdir (Depends-on): Likewise.
13006         * modules/rename (Depends-on): Likewise.
13007         * modules/savewd (Depends-on): Likewise.
13008
13009         rmdir: Support for mingw, MSVC 9.
13010         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13011         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13012
13013         getcwd: Tweak for MSVC 9.
13014         * lib/unistd.in.h: Update comments.
13015         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13016
13017 2011-09-22  Bruno Haible  <bruno@clisp.org>
13018
13019         strerror_r-posix: Avoid a link error on MSVC.
13020         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13021         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13022
13023 2011-09-22  Bruno Haible  <bruno@clisp.org>
13024
13025         select: Avoid link errors on MSVC.
13026         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13027         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13028         * modules/pselect (Link): Likewise.
13029         * NEWS: Mention the change.
13030         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13031         test-select-stdin against $(LIB_SELECT).
13032         * modules/pselect-tests (Makefile.am): Link test-pselect against
13033         $(LIB_SELECT).
13034
13035 2011-09-22  Bruno Haible  <bruno@clisp.org>
13036
13037         select: Avoid compilation error on MSVC.
13038         * lib/select.c: Don't include <stdbool.h>.
13039
13040 2011-09-21  Bruno Haible  <bruno@clisp.org>
13041
13042         Consolidate all uses of PATH_MAX in *.m4 files.
13043         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13044         macros.
13045         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13046         and gl_PATHMAX_SNIPPET.
13047         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13049         * modules/chdir-long (Files): Add m4/pathmax.m4.
13050         * modules/getcwd (Files): Likewise.
13051
13052 2011-09-21  Bruno Haible  <bruno@clisp.org>
13053
13054         ftruncate: Un-deprecate, concentrate on Win32 support.
13055         * modules/ftruncate (Status, Notice): Remove sections.
13056         (Depends-on): Add largefile.
13057         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13058         non-mingw platforms.
13059         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13060         include <io.h>.
13061         * modules/perror-tests (Depends-on): Add ftruncate.
13062         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13063         'ftruncate' module.
13064
13065 2011-09-21  Bruno Haible  <bruno@clisp.org>
13066
13067         Add dependencies to new dirent related modules.
13068         * modules/opendir (Depends-on): Add closedir.
13069         * modules/getcwd (Depends-on): Add opendir, closedir.
13070         * modules/dirent-safer-tests (Depends-on): Likewise.
13071         * modules/fdopendir-tests (Depends-on): Likewise.
13072         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13073         * modules/renameat-tests (Depends-on): Likewise.
13074
13075 2011-09-21  Bruno Haible  <bruno@clisp.org>
13076
13077         opendir: Avoid compilation error on mingw.
13078         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13079         * modules/opendir (Depends-on): Add unistd.
13080
13081 2011-09-21  Bruno Haible  <bruno@clisp.org>
13082
13083         ftruncate tests: Avoid a test failure on mingw.
13084         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13085
13086 2011-09-21  Bruno Haible  <bruno@clisp.org>
13087
13088         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13089         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13090         native Windows.
13091
13092 2011-09-21  Bruno Haible  <bruno@clisp.org>
13093
13094         New module 'fdopen'.
13095         * lib/stdio.in.h (fdopen): New declaration.
13096         * lib/fdopen.c: New file.
13097         * m4/fdopen.m4: New file.
13098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13099         REPLACE_FDOPEN.
13100         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13101         REPLACE_FDOPEN.
13102         * modules/fdopen: New file.
13103         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13104         * tests/test-stdio-c++.cc: Check signature of fdopen.
13105         * doc/posix-functions/fdopen.texi: Mention the new module.
13106
13107 2011-09-21  Bruno Haible  <bruno@clisp.org>
13108
13109         unlockpt tests: Avoid test failure on NetBSD 5.1.
13110         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13111         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13112
13113 2011-09-21  Bruno Haible  <bruno@clisp.org>
13114
13115         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13116         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13117         * tests/test-getlogin_r.c (main): Likewise.
13118
13119 2011-09-20  Bruno Haible  <bruno@clisp.org>
13120
13121         time tests: Don't require pid_t.
13122         * doc/posix-headers/time.texi: Revert last change.
13123         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13124         * tests/test-time.c: Comment out the check for pid_t.
13125
13126 2011-09-20  Bruno Haible  <bruno@clisp.org>
13127
13128         fsync tests: Avoid a test failure on mingw.
13129         * tests/test-fsync.c (main): Allow a failure with EIO.
13130
13131 2011-09-20  Bruno Haible  <bruno@clisp.org>
13132
13133         euidaccess: Update comments.
13134         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13135
13136 2011-09-20  Bruno Haible  <bruno@clisp.org>
13137
13138         Ensure EBADF returns for socket functions on mingw.
13139         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13140         descriptor is invalid.
13141         * lib/bind.c (rpl_bind): Likewise.
13142         * lib/connect.c (rpl_connect): Likewise.
13143         * lib/getpeername.c (rpl_getpeername): Likewise.
13144         * lib/getsockname.c (rpl_getsockname): Likewise.
13145         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13146         * lib/listen.c (rpl_listen): Likewise.
13147         * lib/recv.c (rpl_recv): Likewise.
13148         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13149         * lib/send.c (rpl_send): Likewise.
13150         * lib/sendto.c (rpl_sendto): Likewise.
13151         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13152         * lib/shutdown.c (rpl_shutdown): Likewise.
13153
13154 2011-09-20  Bruno Haible  <bruno@clisp.org>
13155
13156         select tests: EBADF tests.
13157         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13158         test_bad_fd): New functions.
13159         (test_function): Invoke also test_bad_fd.
13160
13161 2011-09-20  Bruno Haible  <bruno@clisp.org>
13162
13163         Tests for module 'posix_spawn_file_actions_addopen.
13164         * modules/posix_spawn_file_actions_addopen-tests: New file.
13165         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13166
13167         Tests for module 'posix_spawn_file_actions_adddup2'.
13168         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13169         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13170
13171         Tests for module 'posix_spawn_file_actions_addclose'.
13172         * modules/posix_spawn_file_actions_addclose-tests: New file.
13173         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13174
13175 2011-09-20  Bruno Haible  <bruno@clisp.org>
13176
13177         Tests for module 'unlockpt'.
13178         * modules/unlockpt-tests: New file.
13179         * tests/test-unlockpt.c: New file.
13180         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13181
13182         Tests for module 'grantpt'.
13183         * modules/grantpt-tests: New file.
13184         * tests/test-grantpt.c: New file.
13185         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13186
13187 2011-09-20  Bruno Haible  <bruno@clisp.org>
13188
13189         freopen tests: EBADF tests.
13190         * tests/test-freopen.c: Include errno.h, unistd.h.
13191         (main): Add tests for EBADF, commented out for the moment.
13192
13193         fclose tests: EBADF tests.
13194         * tests/test-fclose.c (main): Add tests for EBADF.
13195
13196         fflush tests: EBADF tests.
13197         * tests/test-fflush.c: Include errno.h, macros.h.
13198         (main): Add tests for EBADF.
13199
13200         ftello tests: EBADF tests.
13201         * tests/test-ftello4.sh: New file.
13202         * tests/test-ftello4.c: New file.
13203         * modules/ftello-tests (Files): Add them.
13204         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13205
13206         fseeko tests: EBADF tests.
13207         * tests/test-fseeko4.sh: New file.
13208         * tests/test-fseeko4.c: New file.
13209         * modules/fseeko-tests (Files): Add them.
13210         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13211
13212         Tests for function fputc().
13213         * modules/fputc-tests: New file.
13214         * tests/test-fputc.c: New file.
13215         * modules/stdio-tests (Depends-on): Add fputc-tests.
13216
13217         Tests for function fgetc().
13218         * modules/fgetc-tests: New file.
13219         * tests/test-fgetc.c: New file.
13220         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13221
13222         Tests for function fdopen().
13223         * modules/fdopen-tests: New file.
13224         * tests/test-fdopen.c: New file.
13225         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13226
13227         Tests for module 'vdprintf'.
13228         * modules/vdprintf-tests: New file.
13229         * tests/test-vdprintf.c: New file.
13230
13231         Tests for module 'dprintf'.
13232         * modules/dprintf-tests: New file.
13233         * tests/test-dprintf.c: New file.
13234
13235 2011-09-20  Bruno Haible  <bruno@clisp.org>
13236
13237         Tests for module 'ioctl'.
13238         * modules/ioctl-tests: New file.
13239         * tests/test-ioctl.c: New file.
13240
13241 2011-09-20  Bruno Haible  <bruno@clisp.org>
13242
13243         fcntl tests: EBADF tests.
13244         * tests/test-fcntl.c (main): Add more tests for EBADF.
13245
13246 2011-09-20  Bruno Haible  <bruno@clisp.org>
13247
13248         utimensat tests: EBADF tests.
13249         * tests/test-utimensat.c (main): Add tests for EBADF.
13250
13251         renameat tests: EBADF tests.
13252         * tests/test-renameat.c (main): Add tests for EBADF.
13253
13254         mkfifoat tests: EBADF tests.
13255         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13256
13257         readlinkat tests: EBADF tests.
13258         * tests/test-readlinkat.c (main): Add tests for EBADF.
13259
13260         symlinkat tests: EBADF tests.
13261         * tests/test-symlinkat.c (main): Add tests for EBADF.
13262
13263         linkat tests: EBADF tests.
13264         * tests/test-linkat.c (main): Add tests for EBADF.
13265
13266         Tests for module 'faccessat'.
13267         * modules/faccessat-tests: New file.
13268         * tests/test-faccessat.c: New file.
13269
13270         fdopendir tests: EBADF tests.
13271         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13272
13273         openat tests: EBADF tests.
13274         * tests/test-fchownat.c (main): Add tests for EBADF.
13275         * tests/test-fstatat.c (main): Likewise.
13276         * tests/test-mkdirat.c (main): Likewise.
13277         * tests/test-openat.c (main): Likewise.
13278         * tests/test-unlinkat.c (main): Likewise.
13279         * tests/test-fchmodat.c: New file.
13280         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13281         (Makefile.am): Also run 'test-fchmodat'.
13282
13283 2011-09-20  Bruno Haible  <bruno@clisp.org>
13284
13285         utimens, futimens, fdutimensat tests: EBADF tests.
13286         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13287
13288         Tests for function fstat().
13289         * modules/fstat-tests: New file.
13290         * tests/test-fstat.c: New file.
13291         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13292
13293 2011-09-20  Bruno Haible  <bruno@clisp.org>
13294
13295         test-ttyname_r tests: EBADF tests.
13296         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13297
13298         Tests for module 'isatty'.
13299         * modules/isatty-tests: New file.
13300         * tests/test-isatty.c: New file.
13301
13302         Tests for module 'write'.
13303         * modules/write-tests: New file.
13304         * tests/test-write.c: New file.
13305
13306         Tests for module 'read'.
13307         * modules/read-tests: New file.
13308         * tests/test-read.c: New file.
13309
13310         pwrite tests: EBADF tests.
13311         * tests/test-pwrite.c (main): Add tests for EBADF.
13312
13313         pread tests: EBADF tests.
13314         * tests/test-pread.c (main): Add tests for EBADF.
13315
13316         lseek tests: EBADF tests.
13317         * tests/test-lseek.c (main): Add more tests for EBADF.
13318
13319         Tests for module 'ftruncate'.
13320         * modules/ftruncate-tests: New file.
13321         * tests/test-ftruncate.sh: New file.
13322         * tests/test-ftruncate.c: New file.
13323
13324         fsync tests: EBADF tests.
13325         * tests/test-fsync.c (main): Add more tests for EBADF.
13326
13327         fdatasync tests: EBADF tests.
13328         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13329
13330         Tests for module 'fchown'.
13331         * modules/fchown-tests: New file.
13332         * tests/test-fchown.c: New file.
13333
13334         Tests for module 'fchmod'.
13335         * modules/fchmod-tests: New file.
13336         * tests/test-fchmod.c: New file.
13337
13338         fchdir tests: EBADF tests.
13339         * tests/test-fchdir.c (main): Add more tests for EBADF.
13340
13341         dup2 tests: EBADF tests.
13342         * tests/test-dup2.c (main): Add more tests for EBADF.
13343
13344         Tests for module 'dup'.
13345         * modules/dup-tests: New file.
13346         * tests/test-dup.c: New file.
13347
13348         Tests for module 'close'.
13349         * modules/close-tests: New file.
13350         * tests/test-close.c: New file.
13351
13352 2011-09-20  Bruno Haible  <bruno@clisp.org>
13353
13354         Tests for module 'shutdown'.
13355         * modules/shutdown-tests: New file.
13356         * tests/test-shutdown.c: New file.
13357
13358         Tests for module 'setsockopt'.
13359         * modules/setsockopt-tests: New file.
13360         * tests/test-setsockopt.c: New file.
13361
13362         Tests for module 'sendto'.
13363         * modules/sendto-tests: New file.
13364         * tests/test-sendto.c: New file.
13365
13366         Tests for module 'send'.
13367         * modules/send-tests: New file.
13368         * tests/test-send.c: New file.
13369
13370         Tests for module 'recvfrom'.
13371         * modules/recvfrom-tests: New file.
13372         * tests/test-recvfrom.c: New file.
13373
13374         Tests for module 'recv'.
13375         * modules/recv-tests: New file.
13376         * tests/test-recv.c: New file.
13377
13378         Tests for module 'listen'.
13379         * modules/listen-tests: New file.
13380         * tests/test-listen.c: New file.
13381
13382         Tests for module 'getsockopt'.
13383         * modules/getsockopt-tests: New file.
13384         * tests/test-getsockopt.c: New file.
13385
13386         Tests for module 'getsockname'.
13387         * modules/getsockname-tests: New file.
13388         * tests/test-getsockname.c: New file.
13389
13390         Tests for module 'getpeername'.
13391         * modules/getpeername-tests: New file.
13392         * tests/test-getpeername.c: New file.
13393
13394         Tests for module 'connect'.
13395         * modules/connect-tests: New file.
13396         * tests/test-connect.c: New file.
13397
13398         Tests for module 'bind'.
13399         * modules/bind-tests: New file.
13400         * tests/test-bind.c: New file.
13401
13402         accept4 tests: Fix for native Windows.
13403         * tests/test-accept4.c: Include sockets.h.
13404         (main): Invoke gl_sockets_startup.
13405         * modules/accept4-tests (Depends-on): Add sockets.
13406
13407         accept tests: Fix for native Windows.
13408         * tests/test-accept.c: Include sockets.h.
13409         (main): Invoke gl_sockets_startup.
13410         * modules/accept-tests (Depends-on): Add sockets.
13411
13412 2011-09-19  Bruno Haible  <bruno@clisp.org>
13413
13414         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13415         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13416         do...while(0).
13417         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13418         Suggested by Paul Eggert.
13419
13420 2011-09-19  Bruno Haible  <bruno@clisp.org>
13421
13422         sched: Ensure pid_t is defined.
13423         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13424         not define pid_t.
13425         * lib/sched.in.h: Include <sys/types.h>.
13426         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13428
13429 2011-09-19  Bruno Haible  <bruno@clisp.org>
13430
13431         msvc-inval: Ensure the entire expansion is a single statement.
13432         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13433         of braces.
13434
13435 2011-09-19  Jim Meyering  <meyering@redhat.com>
13436
13437         tests: use printf, not echo in init.sh's warn_ function
13438         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13439         misbehave when given strings containing a backslash or starting
13440         with e.g., -n.  James Youngman suggested setting IFS.
13441
13442 2011-09-19  Eric Blake  <eblake@redhat.com>
13443
13444         futimens: enhance test
13445         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13446         closed non-negative fd.
13447
13448         date: accept 'hence' as opposite of 'ago'
13449         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13450         * tests/test-parse-datetime.c (main): Enhance test.
13451         Suggested by Jesse Wilson.
13452
13453 2011-09-19  Jim Meyering  <meyering@redhat.com>
13454
13455         getcwd: don't fail in a deep directory on a system without openat
13456         Before this change, getcwd would fail when called from a directory
13457         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13458         the non-openat implementation used "..", "../..", "../../..", etc.
13459         to access ancestor directories.  With too many, that string would
13460         be longer than PATH_MAX.
13461         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13462         using gnulib's openat replacement.
13463         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13464         we're using the replacement function.
13465
13466 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13467
13468         maint.mk: avoid warnings from perl about missing files
13469         * top/maint.mk (def_sym_regex): Ignore files listed in
13470         $(gl_other_headers_) that do not exist, say because a project
13471         does not use a corresponding module.
13472
13473 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         stat: use pathmax.h only if needed
13476         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13477         This is better for Emacs, which does not have a mingw port and
13478         therefore can avoid the pathmax module.
13479
13480         utimens: remove dependency on dup2
13481         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13482         to work around the Linux kernel bug.
13483         * modules/utimens (Depends-on): Remove dup2.
13484
13485 2011-09-18  Bruno Haible  <bruno@clisp.org>
13486
13487         inet_ntop, inet_pton: Look for it also in libresolv.
13488         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13489         libnsl, search for it in libresolv.
13490         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13491         Needed on Solaris 7.
13492
13493 2011-09-18  Bruno Haible  <bruno@clisp.org>
13494
13495         accept, accept4 tests: Avoid link error on Solaris.
13496         * modules/accept-tests (Makefile.am): Link test-accept against
13497         $(LIBSOCKET).
13498         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13499         $(LIBSOCKET).
13500
13501         accept4: Avoid link error on Solaris.
13502         * modules/accept4 (Link): New section.
13503
13504         socket functions: Avoid link errors on Solaris.
13505         * modules/accept (Depends-on): Add socketlib.
13506         (Link): New section.
13507         * modules/bind (Depends-on): Add socketlib.
13508         (Link): New section.
13509         * modules/connect (Depends-on): Add socketlib.
13510         (Link): New section.
13511         * modules/getpeername (Depends-on): Add socketlib.
13512         (Link): New section.
13513         * modules/getsockname (Depends-on): Add socketlib.
13514         (Link): New section.
13515         * modules/getsockopt (Depends-on): Add socketlib.
13516         (Link): New section.
13517         * modules/listen (Depends-on): Add socketlib.
13518         (Link): New section.
13519         * modules/recv (Depends-on): Add socketlib.
13520         (Link): New section.
13521         * modules/recvfrom (Depends-on): Add socketlib.
13522         (Link): New section.
13523         * modules/send (Depends-on): Add socketlib.
13524         (Link): New section.
13525         * modules/sendto (Depends-on): Add socketlib.
13526         (Link): New section.
13527         * modules/setsockopt (Depends-on): Add socketlib.
13528         (Link): New section.
13529         * modules/shutdown (Depends-on): Add socketlib.
13530         (Link): New section.
13531         * modules/socket (Depends-on): Add socketlib.
13532         (Link): New section.
13533
13534 2011-09-18  Bruno Haible  <bruno@clisp.org>
13535
13536         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13537         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13538         than 5 seconds.
13539         * modules/ptsname-tests (configure.ac): Test for alarm.
13540
13541 2011-09-18  Bruno Haible  <bruno@clisp.org>
13542
13543         posix_spawn_file_actions_add*: Fix module dependencies.
13544         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13545         posix_spawn_file_actions_init.
13546         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13547         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13548
13549 2011-09-18  Bruno Haible  <bruno@clisp.org>
13550
13551         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13552         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13553         * tests/test-renameat.c (main): Likewise.
13554
13555 2011-09-18  Bruno Haible  <bruno@clisp.org>
13556
13557         Tests for module 'accept4'.
13558         * modules/accept4-tests: New file.
13559         * tests/test-accept4.c: New file.
13560
13561 2011-09-18  Bruno Haible  <bruno@clisp.org>
13562
13563         Tests for module 'accept'.
13564         * modules/accept-tests: New file.
13565         * tests/test-accept.c: New file.
13566
13567 2011-09-18  Bruno Haible  <bruno@clisp.org>
13568
13569         dup2: Support for MSVC.
13570         * lib/dup2.c: Include msvc-inval.h.
13571         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13572         _get_osfhandle calls.
13573         * modules/dup2 (Depends-on): Add msvc-inval.
13574         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13575
13576         New module 'msvc-inval'.
13577         * lib/msvc-inval.h: New file.
13578         * lib/msvc-inval.c: New file.
13579         * m4/msvc-inval.m4: New file.
13580         * modules/msvc-inval: New file.
13581
13582 2011-09-17  Bruno Haible  <bruno@clisp.org>
13583
13584         Tests for module 'pclose'.
13585         * modules/pclose-tests: New file.
13586
13587         New module 'pclose'.
13588         * lib/stdio.in.h (pclose): New declaration.
13589         * lib/pclose.c: New file.
13590         * m4/pclose.m4: New file.
13591         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13592         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13593         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13594         * modules/pclose: New file.
13595         * modules/popen-tests (Depends-on): Add pclose.
13596         * modules/popen-safer-tests (Depends-on): Likewise.
13597         * doc/posix-functions/pclose.texi: Mention the new module.
13598
13599 2011-09-17  Bruno Haible  <bruno@clisp.org>
13600
13601         popen: Support for MSVC.
13602         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13603         * lib/popen.c (popen): Provide alternate definition for native Windows.
13604         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13606         * modules/popen (Depends-on, configure.ac): Update condition.
13607         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13608         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13609         fixed.
13610
13611 2011-09-17  Bruno Haible  <bruno@clisp.org>
13612
13613         isnanl, isnand, isnanf: Work around MSVC bug.
13614         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13615
13616 2011-09-17  Bruno Haible  <bruno@clisp.org>
13617
13618         sys_socket tests: Fix recent mistake.
13619         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13620
13621 2011-09-17  Bruno Haible  <bruno@clisp.org>
13622
13623         putenv: Support for MSVC.
13624         * modules/putenv (Depends-on): Add environ.
13625         * lib/putenv.c (environ): Disable declaration.
13626         * lib/unistd.in.h: Update comment.
13627
13628 2011-09-17  Bruno Haible  <bruno@clisp.org>
13629
13630         math: Avoid macro redefinition warnings on MSVC.
13631         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13632         Undefine before redefining.
13633
13634 2011-09-17  Bruno Haible  <bruno@clisp.org>
13635
13636         doc: Mention functions which are declared as macros.
13637         * doc/posix-functions/*[fl].texi: Mention that some functions are
13638         defined as macros with arguments only.
13639
13640 2011-09-17  Bruno Haible  <bruno@clisp.org>
13641
13642         Add dependencies to new dirent related modules.
13643         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13644         * modules/fts (Depends-on): Likewise.
13645         * modules/glob (Depends-on): Likewise.
13646         * modules/savedir (Depends-on): Likewise.
13647         * modules/scandir (Depends-on): Likewise.
13648         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13649         * modules/fdopendir (Depends-on): Add opendir.
13650
13651 2011-09-17  Bruno Haible  <bruno@clisp.org>
13652
13653         inet_pton: Support for MSVC on Windows Vista or newer.
13654         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13655         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13656         HAVE_DECL_INET_PTON is defined.
13657         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13658         On platforms with <winsock2.h>, test whether inet_pton is declared in
13659         <ws2tcpip.h>. If so, arrange to replace it.
13660         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13661         REPLACE_INET_PTON.
13662         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13663         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13664         (Depends-on, configure.ac): Update condition.
13665         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13666
13667 2011-09-17  Bruno Haible  <bruno@clisp.org>
13668
13669         inet_ntop: Support for MSVC on Windows Vista or newer.
13670         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13671         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13672         HAVE_DECL_INET_NTOP is defined.
13673         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13674         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13675         <ws2tcpip.h>. If so, arrange to replace it.
13676         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13677         REPLACE_INET_NTOP.
13678         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13679         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13680         (Depends-on, configure.ac): Update condition.
13681         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13682
13683 2011-09-16  Eric Blake  <eblake@redhat.com>
13684
13685         test-fsync: yet another enhancement
13686         * tests/test-fsync.c (main): Also test behavior on read-only text
13687         file.
13688
13689 2011-09-16  Bruno Haible  <bruno@clisp.org>
13690
13691         Enhance fsync, fdatasync tests.
13692         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13693         * tests/test-fdatasync.c (main): Likewise.
13694
13695 2011-09-16  Bruno Haible  <bruno@clisp.org>
13696
13697         Support for MSVC compiler: Ensure mode_t gets defined.
13698         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13699         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13701         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13702         * tests/test-fcntl-h.c: Check that mode_t is defined.
13703         * tests/test-sys_stat.c: Likewise.
13704         * tests/test-sys_types.c: Likewise.
13705         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13706         * doc/posix-headers/sys_stat.texi: Likewise.
13707         * doc/posix-headers/sys_types.texi: Likewise.
13708
13709 2011-09-16  Bruno Haible  <bruno@clisp.org>
13710
13711         sys_stat: Support for MSVC.
13712         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13713         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13714         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13715         MSVC.
13716
13717 2011-09-16  Bruno Haible  <bruno@clisp.org>
13718
13719         Support for MSVC compiler: Ensure off_t gets defined.
13720         * lib/unistd.in.h: Include <sys/types.h>.
13721         * tests/test-fcntl-h.c: Check that off_t is defined.
13722         * tests/test-sys_stat.c: Likewise.
13723         * tests/test-sys_types.c: Likewise.
13724
13725 2011-09-16  Eric Blake  <eblake@redhat.com>
13726
13727         fdatasync: port to Solaris
13728         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13729         * modules/fdatasync (Link): Document it.
13730         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13731
13732         fdatasync: port to MacOS X 10.7
13733         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13734         declared.
13735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13736         * modules/unistd (Makefile.am): Substitute it.
13737         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13738         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13739
13740         fdatasync: minor improvements
13741         * modules/fdatasync (Depends-on): Add condition for fsync.
13742         * lib/fdatasync.c (fdatasync): Add comment.
13743         * tests/test-unistd-c++.cc: Test fdatasync.
13744
13745         unistd: update refs to newer POSIX
13746         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13747         Suggested by Bruno Haible.
13748
13749         fdatasync: new module
13750         * modules/fsync (Description): Document difference to fdatasync.
13751         * modules/fdatasync: New module.
13752         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13753         * lib/fdatasync.c (fdatasync): Likewise.
13754         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13755         defaults.
13756         * modules/unistd (Makefile.am): Set witnesses.
13757         * lib/unistd.in.h (fdatasync): Declare.
13758         * MODULES.html.sh: Document it.
13759         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13760         * modules/fdatasync-tests: New test.
13761         * tests/test-fdatasync.c: Likewise.
13762
13763 2011-09-16  Eric Blake  <eblake@redhat.com>
13764
13765         test-fsync: enhance tests
13766         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13767         * tests/test-fsync.c (main): Enhance test.
13768
13769 2011-09-15  Bruno Haible  <bruno@clisp.org>
13770
13771         Support for MSVC compiler: Ensure ssize_t gets defined.
13772         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13773         * doc/posix-headers/stdio.texi: Likewise.
13774         * modules/stdio (Depends-on): Add ssize_t.
13775         * modules/sys_socket (Depends-on): Likewise.
13776         * modules/sys_types (Depends-on): Likewise.
13777         * modules/sys_uio (Depends-on): Likewise.
13778         * modules/unistd (Depends-on): Likewise.
13779         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13780         * tests/test-sys_types.c: Check that ssize_t is defined.
13781
13782 2011-09-14  Bruno Haible  <bruno@clisp.org>
13783
13784         Avoid using #, the m4 comment starter character, near brackets.
13785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13786         delimiter character in sed expressions.
13787         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13788         Suggested by Eric Blake.
13789
13790         Properly quote AC_CHECK_DECLS' 4th argument.
13791         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13792         argument.
13793         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13794         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13795         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13796         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13797         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13798         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13800         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13801         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13802         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13803         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13804         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13805         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13806         * m4/isinf.m4 (gl_ISINF): Likewise.
13807         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13808         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13810         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13811         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13812         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13813         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13814         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13815         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13816         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13817         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13818         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13820         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13822         Reported by Eric Blake.
13823
13824         Properly quote AC_CHECK_DECL's 4th argument.
13825         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13826         argument.
13827         * m4/argp.m4 (gl_ARGP): Likewise.
13828         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13829         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13830         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13831         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13833         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13835         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13836         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13837         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13838         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13839         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13840         Reported by Eric Blake.
13841
13842 2011-09-14  Eric Blake  <eblake@redhat.com>
13843
13844         opendir: avoid compile warning
13845         * lib/opendir.c (includes): Always include errno.h.
13846         Reported by Tatsuro MATSUOKA.
13847
13848 2011-09-14  Jim Meyering  <meyering@redhat.com>
13849
13850         maint.mk: sc_tight_scope: propagate failure from sub-make
13851         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13852         Reported by Martin von Gagern.
13853
13854 2011-09-13  Bruno Haible  <bruno@clisp.org>
13855
13856         tempname: Support for MSVC.
13857         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13858         MSVC.
13859         * modules/tempname (Depends-on): Add fcntl-h.
13860
13861 2011-09-13  Bruno Haible  <bruno@clisp.org>
13862
13863         sys_time: Support for MSVC.
13864         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13865         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13866         include <winsock2.h>.
13867         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13868         function declarations that collide with POSIX.
13869         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13870         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13871
13872 2011-09-13  Bruno Haible  <bruno@clisp.org>
13873
13874         stat: Support for MSVC.
13875         * lib/stat.c: Include pathmax.h.
13876         * modules/stat (Depends-on): Add pathmax.
13877
13878         pathmax: Support for native Windows.
13879         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13880
13881 2011-09-12  Bruno Haible  <bruno@clisp.org>
13882
13883         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13884         * lib/dirent.in.h (struct dirent): New type.
13885         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13886         DT_WHT): New macros.
13887         (DIR): New type.
13888         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13889         (readdir, rewinddir): New declarations.
13890         * lib/dirent-private.h: New file.
13891         * lib/opendir.c: New file.
13892         * lib/readdir.c: New file.
13893         * lib/rewinddir.c: New file.
13894         * lib/closedir.c: New file.
13895         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13896         * m4/opendir.m4: New file.
13897         * m4/readdir.m4: New file.
13898         * m4/rewinddir.m4: New file.
13899         * m4/closedir.m4: New file.
13900         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13901         REPLACE_CLOSEDIR here.
13902         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13903         readdir, rewinddir are declared.
13904         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13905         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13906         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13907         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13908         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13909         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13910         * modules/opendir: New file.
13911         * modules/readdir: New file.
13912         * modules/rewinddir: New file.
13913         * modules/closedir: New file.
13914         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13915         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13916         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13917         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13918         * NEWS: Mention the 'fchdir' change.
13919
13920 2011-09-11  Bruno Haible  <bruno@clisp.org>
13921
13922         asm-underscore.m4: Support for MSVC.
13923         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13924         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13925
13926 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13927
13928         Doc about crypt functions.
13929         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13930         needing for _GNU_SOURCE to get crypt.
13931         * doc/posix-functions/encrypt.texi: Likewise.
13932         * doc/posix-functions/setkey.texi: Likewise.
13933
13934 2011-09-11  Bruno Haible  <bruno@clisp.org>
13935
13936         doc: Update regarding MSVC 9.
13937         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13938         tested".
13939         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13940         * doc/posix-headers/*.texi: Likewise.
13941         * doc/pastposix-functions/*.texi: Likewise.
13942         * doc/glibc-functions/*.texi: Likewise.
13943         * doc/glibc-headers/*.texi: Likewise.
13944
13945 2011-09-11  Bruno Haible  <bruno@clisp.org>
13946
13947         unistd et al.: Don't assume <unistd.h> exists.
13948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13949         does not exist.
13950         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13951         exist. But include <stdlib.h>.
13952         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13953         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13954         symlink() does not exist.
13955         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13956         include <io.h> instead.
13957         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13958         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13959         include <direct.h> instead.
13960         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13962         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13963         <io.h> instead.
13964         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13965         correctly if the system does not have hard links.
13966         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13967         <direct.h> instead.
13968         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13969         it when looking for function declarations.
13970         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13971         <direct.h> and <io.h> instead.
13972         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13973
13974 2011-09-11  Bruno Haible  <bruno@clisp.org>
13975
13976         strcase: Support for MSVC.
13977         * modules/strcase (Status, Notice): Remove obsoletion mark.
13978         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13979         * doc/posix-functions/strncasecmp.texi: Likewise.
13980
13981         strings: Don't assume <strings.h> exists.
13982         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13983         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13984         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13985         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13986
13987 2011-09-11  Bruno Haible  <bruno@clisp.org>
13988
13989         dirent: Don't assume <dirent.h> exists.
13990         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13991         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13992         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13993         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13994
13995 2011-09-11  Bruno Haible  <bruno@clisp.org>
13996
13997         Fix wint_t on MSVC.
13998         * lib/wchar.in.h (wint_t): On MSVC, override it.
13999         * lib/wctype.in.h (wint_t): Likewise.
14000         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14001         MSVC.
14002         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14003         * doc/posix-headers/wctype.texi: Likewise.
14004
14005 2011-09-11  Bruno Haible  <bruno@clisp.org>
14006
14007         sys_types: Fix typo.
14008         * lib/sys_types.in.h: Fix typo in comment.
14009         Reported by Paul Eggert.
14010
14011         Support for MSVC compiler: Ensure size_t gets defined.
14012         * modules/strings (Depends-on): Add 'sys_types'.
14013         * modules/sys_uio (Depends-on): Likewise.
14014         * lib/sys_uio.in.h: Update comment.
14015
14016         C++ tests for module 'sys_types'.
14017         * modules/sys_types-c++-tests: New file.
14018         * tests/test-sys_types-c++.cc: New file.
14019
14020         Tests for module 'sys_types'.
14021         * modules/sys_types-tests: New file.
14022         * tests/test-sys_types.c: New file.
14023
14024         New module 'sys_types'.
14025         * lib/sys_types.in.h: New file.
14026         * m4/sys_types_h.m4: New file.
14027         * modules/sys_types: New file.
14028         * doc/posix-headers/sys_types.texi: Mention the new module and the
14029         size_t problem on MSVC 9.
14030
14031 2011-09-11  Bruno Haible  <bruno@clisp.org>
14032
14033         Support for MSVC compiler: Avoid division by a literal 0.
14034         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14036         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14037         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14038         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14039         * tests/infinity.h: New file.
14040         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14041         on MSVC.
14042         * tests/test-ceilf1.c: Include infinity.h.
14043         (main): Use Infinityf.
14044         * tests/test-ceil1.c: Include infinity.h.
14045         (main): Use Infinityd.
14046         * tests/test-ceill.c: Include infinity.h.
14047         (main): Use Infinityl.
14048         * tests/test-dprintf-posix.c: Include infinity.h.
14049         (test_function): Use Infinityd.
14050         * tests/test-floorf1.c: Include infinity.h.
14051         (main): Use Infinityf.
14052         * tests/test-floor1.c: Include infinity.h.
14053         (main): Use Infinityd.
14054         * tests/test-floorl.c: Include infinity.h.
14055         (main): Use Infinityl.
14056         * tests/test-fprintf-posix.c: Include infinity.h.
14057         (test_function): Use Infinityd.
14058         * tests/test-frexp.c: Include infinity.h.
14059         (main): Use Infinityd.
14060         * tests/test-frexpl.c: Include infinity.h.
14061         (main): Use Infinityl.
14062         * tests/test-isfinite.c: Include infinity.h.
14063         (test_isfinitef): Use Infinityf.
14064         (test_isfinited): Use Infinityd.
14065         (test_isfinitel): Use Infinityl.
14066         * tests/test-isinf.c: Include infinity.h.
14067         (test_isinff): Use Infinityf.
14068         (test_isinfd): Use Infinityd.
14069         (test_isinfl): Use Infinityl.
14070         * tests/test-isnan.c: Include infinity.h.
14071         (test_float): Use Infinityf.
14072         (test_double): Use Infinityd.
14073         (test_long_double): Use Infinityl.
14074         * tests/test-isnanf.h: Include infinity.h.
14075         (main): Use Infinityf.
14076         * tests/test-isnand.h: Include infinity.h.
14077         (main): Use Infinityd.
14078         * tests/test-isnanl.h: Include infinity.h.
14079         (main): Use Infinityl.
14080         * tests/test-ldexpl.c: Include infinity.h.
14081         (main): Use Infinityl.
14082         * tests/test-printf-posix.h: Include infinity.h.
14083         (test_function): Use Infinityd.
14084         * tests/test-roundf1.c: Include infinity.h.
14085         (main): Use Infinityf.
14086         * tests/test-round1.c: Include infinity.h.
14087         (main): Use Infinityd.
14088         * tests/test-roundl.c: Include infinity.h.
14089         (main): Use Infinityl.
14090         * tests/test-signbit.c: Include infinity.h.
14091         (test_signbitf): Use Infinityf.
14092         (test_signbitd): Use Infinityd.
14093         (test_signbitl): Use Infinityl.
14094         * tests/test-snprintf-posix.h: Include infinity.h.
14095         (test_function): Use Infinityd, Infinityl.
14096         * tests/test-sprintf-posix.h: Include infinity.h.
14097         (test_function): Use Infinityd, Infinityl.
14098         * tests/test-truncf1.c: Include infinity.h.
14099         (main): Use Infinityf.
14100         * tests/test-trunc1.c: Include infinity.h.
14101         (main): Use Infinityd.
14102         * tests/test-truncl.c: Include infinity.h.
14103         (main): Use Infinityl.
14104         * tests/test-vasnprintf-posix.c: Include infinity.h.
14105         (test_function): Use Infinityd, Infinityl.
14106         * tests/test-vasprintf-posix.c: Include infinity.h.
14107         (test_function): Use Infinityd, Infinityl.
14108         * modules/ceilf-tests (Files): Add tests/infinity.h.
14109         * modules/ceil-tests (Files): Likewise.
14110         * modules/ceill-tests (Files): Likewise.
14111         * modules/dprintf-posix-tests (Files): Likewise.
14112         * modules/floorf-tests (Files): Likewise.
14113         * modules/floor-tests (Files): Likewise.
14114         * modules/floorl-tests (Files): Likewise.
14115         * modules/fprintf-posix-tests (Files): Likewise.
14116         * modules/frexp-tests (Files): Likewise.
14117         * modules/frexp-nolibm-tests (Files): Likewise.
14118         * modules/frexpl-tests (Files): Likewise.
14119         * modules/frexpl-nolibm-tests (Files): Likewise.
14120         * modules/isfinite-tests (Files): Likewise.
14121         * modules/isinf-tests (Files): Likewise.
14122         * modules/isnan-tests (Files): Likewise.
14123         * modules/isnanf-tests (Files): Likewise.
14124         * modules/isnanf-nolibm-tests (Files): Likewise.
14125         * modules/isnand-tests (Files): Likewise.
14126         * modules/isnand-nolibm-tests (Files): Likewise.
14127         * modules/isnanl-tests (Files): Likewise.
14128         * modules/isnanl-nolibm-tests (Files): Likewise.
14129         * modules/ldexpl-tests (Files): Likewise.
14130         * modules/printf-posix-tests (Files): Likewise.
14131         * modules/roundf-tests (Files): Likewise.
14132         * modules/round-tests (Files): Likewise.
14133         * modules/roundl-tests (Files): Likewise.
14134         * modules/signbit-tests (Files): Likewise.
14135         * modules/snprintf-posix-tests (Files): Likewise.
14136         * modules/sprintf-posix-tests (Files): Likewise.
14137         * modules/truncf-tests (Files): Likewise.
14138         * modules/trunc-tests (Files): Likewise.
14139         * modules/truncl-tests (Files): Likewise.
14140         * modules/vasnprintf-posix-tests (Files): Likewise.
14141         * modules/vasprintf-posix-tests (Files): Likewise.
14142         * modules/vdprintf-posix-tests (Files): Likewise.
14143         * modules/vfprintf-posix-tests (Files): Likewise.
14144         * modules/vprintf-posix-tests (Files): Likewise.
14145         * modules/vsnprintf-posix-tests (Files): Likewise.
14146         * modules/vsprintf-posix-tests (Files): Likewise.
14147         * modules/xprintf-posix-tests (Files): Likewise.
14148
14149 2011-09-11  Bruno Haible  <bruno@clisp.org>
14150
14151         Ensure pid_t gets defined.
14152         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14153         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14154         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14155         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14156         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14157         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14158         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14159         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14160         * tests/test-fcntl-h.c: Check that pid_t is defined.
14161         * tests/test-sched.c: Likewise.
14162         * tests/test-termios.c: Likewise.
14163         * tests/test-time.c: Likewise.
14164         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14165         * doc/posix-headers/signal.texi: Likewise.
14166         * doc/posix-headers/sys_types.texi: Likewise.
14167         * doc/posix-headers/time.texi: Likewise.
14168
14169 2011-09-11  Bruno Haible  <bruno@clisp.org>
14170
14171         acl: Fix compilation on Solaris 10 (older version).
14172         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14173         of ACE_EVERYONE.
14174         * lib/set-mode-acl.c (qset_acl): Likewise.
14175         Reported by Christian Jullien <eligis@orange.fr>.
14176
14177 2011-09-10  Bruno Haible  <bruno@clisp.org>
14178
14179         iconv, unsetenv: Add support for MSVC compiler.
14180         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14181         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14182
14183 2011-09-10  Bruno Haible  <bruno@clisp.org>
14184
14185         *printf: Add support for MSVC compiler.
14186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14187         handles the exception caused by the %n directive. When cross-compiling,
14188         guess no on native Windows.
14189         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14190         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14191         emulate it through vsnprintf.
14192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14193         * doc/posix-functions/dprintf.texi: Update documentation regarding
14194         MSVC 9.
14195         * doc/posix-functions/fprintf.texi: Likewise.
14196         * doc/posix-functions/printf.texi: Likewise.
14197         * doc/posix-functions/snprintf.texi: Likewise.
14198         * doc/posix-functions/sprintf.texi: Likewise.
14199         * doc/posix-functions/swprintf.texi: Likewise.
14200         * doc/posix-functions/vdprintf.texi: Likewise.
14201         * doc/posix-functions/vfprintf.texi: Likewise.
14202         * doc/posix-functions/vprintf.texi: Likewise.
14203         * doc/posix-functions/vsnprintf.texi: Likewise.
14204         * doc/posix-functions/vsprintf.texi: Likewise.
14205         * doc/glibc-functions/asprintf.texi: Likewise.
14206         * doc/glibc-functions/obstack_printf.texi: Likewise.
14207         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14208         * doc/glibc-functions/vasprintf.texi: Likewise.
14209
14210 2011-09-10  Bruno Haible  <bruno@clisp.org>
14211
14212         nocrash: Add support for native Windows.
14213         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14214
14215 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14216             Bruno Haible  <bruno@clisp.org>
14217
14218         absolute-header, include-next: Add support for MSVC compiler.
14219         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14220         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14221         directory separator in #line directives.
14222         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14223         recognize also backslash as directory separator in #line directives.
14224
14225 2011-09-08  Jim Meyering  <meyering@redhat.com>
14226
14227         maint.mk: mark the post-release commit log with "maint: " prefix
14228         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14229         one-line commit-log summary.
14230
14231 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14232             Bruno Haible  <bruno@clisp.org>
14233
14234         Doc about crypt functions.
14235         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14236         systems.
14237         * doc/posix-functions/encrypt.texi: Likewise.
14238         * doc/posix-functions/setkey.texi: Likewise.
14239
14240 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14241
14242         * lib/gc.h: Fix copyright header.
14243
14244 2011-09-07  Bruno Haible  <bruno@clisp.org>
14245
14246         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14247         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14248         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14249
14250 2011-09-07  Bruno Haible  <bruno@clisp.org>
14251
14252         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14253         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14254         * lib/freopen.c: Likewise.
14255         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14256         * lib/lstat.c: Likewise.
14257         * lib/stat.c: Likewise.
14258         * lib/open.c: Use different syntax for include of <fcntl.h>.
14259         * lib/openat.c: Include fcntl.h again, explicitly.
14260
14261 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14262
14263         parse-datetime: document the newly accepted format
14264         * doc/parse-datetime.texi (Combined date and time of day items):
14265         New section.
14266
14267 2011-09-06  Bruno Haible  <bruno@clisp.org>
14268
14269         acl: Fix a test failure on newer Solaris 10 with ZFS.
14270         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14271         ENOSYS as no ACL.
14272         Reported by Jim Meyering.
14273
14274 2011-09-06  Bruno Haible  <bruno@clisp.org>
14275
14276         acl: Update for AIX >= 5.3 with NFS.
14277         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14278         ENOSYS as no ACL.
14279
14280         acl: Fix a test failure on AIX >= 5.3 with NFS.
14281         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14282         as no ACL.
14283
14284 2011-09-06  Bruno Haible  <bruno@clisp.org>
14285
14286         acl: Fix a test failure on IRIX 6.5 with NFS.
14287         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14288         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14289         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14290         * lib/copy-acl.c (qcopy_acl): Likewise.
14291
14292 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14293
14294         openat: port to AIX 7.1 with large files
14295         AIX 7.1 does a "#define openat open64at" if large files are in use,
14296         so we can't simply #undef openat.  Use the orig_openat trick (similar
14297         to orig_open in lib/open.c) to work around the problem.  Problem
14298         reported by Kevin Brott for GNU tar, in the thread containing
14299         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14300         * lib/openat.c (__need_system_fcntl_h): Define first.
14301         Include <fcntl.h> and <sys/types.h> before undefining.
14302         (orig_openat) [HAVE_OPENAT]: New inline function.
14303         (openat) [HAVE_OPENAT]: Do not undef.
14304         (rpl_openat): Use orig_openat, not openat.
14305
14306 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14307             Bruno Haible  <bruno@clisp.org>
14308
14309         acl: Avoid errors on NonStop Kernel.
14310         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14311         ENOTSUP errors.
14312
14313 2011-09-05  Bruno Haible  <bruno@clisp.org>
14314
14315         acl: Clean up Solaris code.
14316         * lib/acl-internal.h: Remove no-op #if.
14317         * lib/file-has-acl.c: Likewise.
14318         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14319         * lib/copy-acl.c (qcopy_acl): Likewise.
14320
14321 2011-09-05  Bruno Haible  <bruno@clisp.org>
14322
14323         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14324         binaries built on the original Solaris 10.
14325         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14326         trivial.
14327
14328 2011-09-05  Bruno Haible  <bruno@clisp.org>
14329
14330         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14331         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14332         10.
14333         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14334         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14335         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14336         instead of acl_get, facl_get, acl_set, facl_set.
14337
14338 2011-09-05  Bruno Haible  <bruno@clisp.org>
14339
14340         copy-file: Try unit tests on more file systems.
14341         * tests/test-copy-file-1.sh: New file.
14342         * tests/test-copy-file-2.sh: New file.
14343         * modules/copy-file-tests (Files): Add them.
14344         (Makefile.am): Add them to TESTS.
14345
14346         acl: Try unit tests on more file systems.
14347         * tests/test-file-has-acl-1.sh: New file.
14348         * tests/test-file-has-acl-2.sh: New file.
14349         * tests/test-set-mode-acl-1.sh: New file.
14350         * tests/test-set-mode-acl-2.sh: New file.
14351         * tests/test-copy-acl-1.sh: New file.
14352         * tests/test-copy-acl-2.sh: New file.
14353         * modules/acl-tests (Files): Add them.
14354         (Makefile.am): Add them to TESTS.
14355
14356 2011-09-04  Bruno Haible  <bruno@clisp.org>
14357
14358         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14359         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14360         10.
14361         (OLD_ALLOW, OLD_DENY): New macros.
14362         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14363         ACE_ACCESS_ALLOWED_ACE_TYPE.
14364         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14365         ACE_ACCESS_DENIED_ACE_TYPE.
14366         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14367         (NEW_ACE_EXECUTE): Fix value.
14368         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14369         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14370         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14371         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14372         NEW_ACE_SYNCHRONIZE): New macros.
14373         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14374         instead of acl_fromtext, acl_set, facl_set.
14375         Fixes a coreutils/tests/cp/perm failure.
14376
14377 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14378
14379         openat: test for fstatat (..., 0) bug
14380         Further testing with tar suggests that fstatat (..., 0)
14381         does not work in general, on AIX 7.1; see
14382         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14383         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14384         replacement fstatat (which is what older AIX releases were using
14385         anyway).
14386         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14387         use is now changed to orig_fstatat.  This was probably the right
14388         thing to do anyway.
14389         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14390         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14391         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14392         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14393         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14394         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14395         if the bug is found.
14396
14397         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14398         This tests for another fstatat bug on AIX 7.1:
14399         fstatat (AT_FDCWD, ..., 0) does not work.  See
14400         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14401         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14402         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14403         (rpl_fstatat): Adjust so that it works around either (or both)
14404         bugs if present.
14405         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14406
14407 2011-09-03  Karl Berry  <karl@gnu.org>
14408
14409         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14410         in index entries.
14411
14412 2011-09-02  Bruno Haible  <bruno@clisp.org>
14413
14414         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14415         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14416         values of AR, ARFLAGS, RANLIB.
14417         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14418
14419 2011-09-02  Bruno Haible  <bruno@clisp.org>
14420
14421         Find 'ar' program that fits with --host argument.
14422         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14423
14424 2011-09-02  Bruno Haible  <bruno@clisp.org>
14425
14426         tests: init.sh: Support any non-GNU diff.
14427         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14428         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14429         Solaris 8.
14430
14431 2011-09-02  Bruno Haible  <bruno@clisp.org>
14432
14433         tests: init.sh: work also with any non-GNU diff that supports -u
14434         * tests/init.sh: Relax check for diff -u support.
14435         Rather than checking for GNU diff via --version, simply check
14436         for support for -u itself.  Useful at least on OpenBSD 4.9,
14437         AIX 7.1, IRIX 6.5, and Solaris 10.
14438
14439 2011-09-01  Bruno Haible  <bruno@clisp.org>
14440
14441         strtoimax, strtoumax: Document problem on HP-UX 11.
14442         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14443         * doc/posix-functions/strtoumax.texi: Likewise.
14444
14445 2011-09-01  Bruno Haible  <bruno@clisp.org>
14446
14447         strtoumax: Avoid link error on OSF/1 with DTK cc.
14448         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14449         defined as a function.
14450         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14451         strtoumax is defined, not whether it is declared.
14452
14453 2011-09-01  Bruno Haible  <bruno@clisp.org>
14454
14455         strtoimax: Avoid link error on OSF/1 with DTK cc.
14456         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14457         defined as a function.
14458         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14459         strtoimax is defined, not whether it is declared.
14460
14461 2011-09-01  Bruno Haible  <bruno@clisp.org>
14462
14463         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14464         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14465         as a function.
14466         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14467         whether it is declared.
14468
14469 2011-09-01  Bruno Haible  <bruno@clisp.org>
14470
14471         imaxabs: Avoid link error on OSF/1 with DTK cc.
14472         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14473         as a function.
14474         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14475         whether it is declared.
14476
14477 2011-09-01  Bruno Haible  <bruno@clisp.org>
14478
14479         Tests for module 'strtoumax'.
14480         * modules/strtoumax-tests: New file.
14481         * tests/test-strtoumax.c: New file.
14482
14483         Tests for module 'strtoimax'.
14484         * modules/strtoimax-tests: New file.
14485         * tests/test-strtoimax.c: New file.
14486
14487         Tests for module 'imaxdiv'.
14488         * modules/imaxdiv-tests: New file.
14489         * tests/test-imaxdiv.c: New file.
14490
14491         Tests for module 'imaxabs'.
14492         * modules/imaxabs-tests: New file.
14493         * tests/test-imaxabs.c: New file.
14494
14495 2011-09-01  Bruno Haible  <bruno@clisp.org>
14496
14497         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14498         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14499         pthread_create.
14500
14501 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14502
14503         openat: work around AIX 7.1 fstatat issue
14504         This should fix the problem that was not properly fixed
14505         in the previous change, dated 2011-08-30.
14506         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14507         __need_system_stat_h defined.
14508         (orig_fstatat) [HAVE_FSTATAT]: New function.
14509         (rpl_fstatat): Go back to the old way of doing things,
14510         except call orig_fstatat instead of fstatat.
14511         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14512         Remove unnecessary check whether fstatat fills in st_size etc.
14513
14514 2011-09-01  Bruno Haible  <bruno@clisp.org>
14515
14516         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14517         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14518         just include the system's header.
14519
14520 2011-08-31  Jim Meyering  <meyering@redhat.com>
14521
14522         tests: avoid spurious assertion failure in test-float.c on ppc64
14523         * tests/test-float.c (test_long_double): Comment out an assertion,
14524         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14525         with gcc-4.4.4.
14526
14527         maint: indent with spaces, not TABs
14528         I need to get in the habit of running gnulib's "make check".
14529         Both of these would have been caught.
14530         * m4/largefile.m4: Indent with spaces, not TABs.
14531         * lib/parse-datetime.y (iso_8601_time): Likewise.
14532         Spotted by Pádraig Brady.
14533
14534         test-parse-datetime.c: accommodate a relatively strict gcc warning
14535         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14536         to avoid a warning from gcc's -Werror=missing-declarations.
14537         Insert a few spaces-before-funcall-parenthesis.
14538
14539 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14540
14541         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14542         The parser now accepts ISO 8601 date-time strings with "T" as the
14543         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14544         with a space between the date and time strings.  Now it also parses
14545         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14546         variants like "2004-02-29T16:21:42.333-07:00"
14547         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14548         of day representation using the 'T' separator character.
14549         * doc/parse-datetime.texi (General date syntax): replace use of
14550         deprecated --iso-8601 option with --rfc-3339 in example of date
14551         command output formats that can be parsed.
14552         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14553         lib/parse-datetime.y.
14554         (gmt_offset): New function.
14555         (main): Add additional test cases to validate ISO8601 extended
14556         date and time of day parsing.
14557
14558 2011-08-31  Bruno Haible  <bruno@clisp.org>
14559
14560         freopen: Documentation.
14561         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14562         name.
14563         Reported by Claudio Bley <claudio.bley@gmail.com>.
14564
14565 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14566
14567         freopen: Don't crash if the filename argument is NULL.
14568         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14569         NULL.
14570
14571 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         openat: work around AIX 7.1 fstatat bug
14574         Problem reported by Kevin Brott for GNU tar, in the thread containing
14575         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14576         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14577         FSTATAT_ST_SIZE_ETC_BROKEN.
14578         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14579         rpl_fstatat.
14580         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14581         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14582         AC_CHECK_FUNCS_ONCE for fstatat.
14583         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14584         fchmodat, mkdirat, openat and unlinkat.
14585
14586 2011-08-30  Bruno Haible  <bruno@clisp.org>
14587
14588         Avoid endless recursions if config.h includes some header files.
14589         * lib/fopen.c (__need_FILE): Define already before including config.h.
14590         * lib/freopen.c (__need_FILE): Likewise.
14591         * lib/open.c (__need_system_fcntl_h): Likewise.
14592         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14593         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14594         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14595
14596 2011-08-25  Karl Berry  <karl@gnu.org>
14597
14598         * config/srclist.txt (ylwrap): new try.
14599         * build-aux/ylwrap: new file.
14600
14601 2011-08-23  Bruno Haible  <bruno@clisp.org>
14602
14603         tmpdir: Use a good default directory on native Windows.
14604         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14605         (P_tmpdir): Default to _P_tmpdir on native Windows.
14606         (path_search): On native Windows, try the value returned by GetTempPath
14607         before trying P_tmpdir.
14608         * modules/tmpdir (Depends-on): Add pathmax.
14609         Suggested by John Darrington <john@darrington.wattle.id.au>.
14610
14611 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14612
14613         doc: fix typo in README-release
14614         * top/README-release: Capitalize first word of a sentence.
14615
14616 2011-08-19  Jim Meyering  <meyering@redhat.com>
14617
14618         fts: do not exhaust memory when processing million-entry directories
14619         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14620         directory would require about 256*N bytes of memory.  Thus, it was
14621         easy to construct a directory too large to be processed by any of
14622         those tools.  With this change, fts' maximum memory utilization is
14623         now limited to around 30MB.
14624         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14625         (fts_read): When we've processed the final entry (i.e., when
14626         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14627         using the parent entry to read any remaining entries.  Dispatch
14628         depending on what fts_build returns:
14629         - NULL+stop, aka failure: stop
14630         - NULL otherwise: move up in the dir hierarchy
14631         - non-NULL: handle this new entry
14632         (fts_build): Declare and use new local, continue_readdir.
14633         Prepare to be called from fts_read, when the entries
14634         from a partially-read directory have just been exhausted.
14635         In that case, we'll skip the opendir and instead use the parent's
14636         fts_dirp and derive dir_fd from that.
14637         Finally, in the readdir loop, if we read max_entries entries,
14638         exit the loop ensuring *not* to call closedir.  This is required
14639         so that fts_dirp can be reused on a subsequent call.
14640         Prompted by Ben England's report of memory exhaustion in find
14641         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14642
14643         maint: fts: move decl of `dp' down into while loop; split a long line
14644         * lib/fts.c (fts_build): No semantic change.
14645
14646         fts: add/use new struct member, fts_dirp
14647         We are about to use this to manage any directory with
14648         too many entries to read all of them into memory at once.
14649         To do that, we'll need to save the DIR* pointer in each
14650         affected FTSENT struct.
14651         * lib/fts_.h: Include <dirent.h>.
14652         (struct FTSENT) [fts_dirp]: New member.
14653         * lib/fts.c (closedir_and_clear): Define.
14654         Use it in place of closedir so that we are sure to
14655         clear the new fts_dirp member when done with it.
14656         (fts_alloc): Initialize the new member.
14657         (fts_lfree): Free, if needed.
14658
14659         maint: fts: give __opendir2 a new parameter and rename
14660         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14661         than surreptitiously using sole caller's "dir_fd".
14662         (fts_opendir): Rename from __opendir2.
14663
14664         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14665         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14666
14667         maint: fts.c: correct off-by-one indentation
14668         * lib/fts.c (fts_build): Correct indentation, change style
14669         of a couple of block comments, and bracing style.
14670
14671         maint: fts.c: move __opendir2 #define "up" out of function body
14672         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14673
14674         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14675         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14676         out for a long time and besides was useful only on BSD systems.
14677
14678 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14679
14680         regex: port to Stratus OpenVOS
14681         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14682         define to empty, rather than attempting nonportable optimizations.
14683         Problem reported by Paul Green in:
14684         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14685         and fix suggested by Eric Blake in:
14686         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14687
14688 2011-08-17  Eric Blake  <eblake@redhat.com>
14689
14690         getcwd: fix test failures on mingw
14691         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14692         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14693         test if long directory cannot be created, and allow mingw errno.
14694
14695         getcwd-lgpl: fix m4 to match relaxed test for BSD
14696         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14697         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14698         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14699         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14700         signature problem.
14701
14702         getcwd: fix compilation on mingw64
14703         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14704         getcwd.
14705         Reported by Marc-André Lureau.
14706
14707         pipe2: silence compiler warning
14708         * lib/pipe2.c (pipe2): Hide label if it is not used.
14709
14710 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14711
14712         relocatable-prog: fix link error
14713         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14714         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14715         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14716         into modules/relocatable-lib without noticing that
14717         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14718         also needs to build relocatable.c.
14719
14720 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14721
14722         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14724         shell code: it contained a 'break' that was not in a loop.
14725         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14726         via a shell-language loop; this may have been true in old Autoconf
14727         versions, but it's not true in Autoconf 2.68.  I found this bug
14728         when testing coreutils git on Solaris 8, whose shell complains
14729         about the syntax error.
14730
14731 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14732
14733         * lib/base64.c: Fix comment to reference RFC 4648.
14734         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14735         <gvtulder@gmail.com>.
14736
14737 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14738
14739         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14740
14741         po/Makefile.in.in: fix make -q problem
14742         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14743         rule, since there's no file named 'check-macro-version' and its
14744         use as a file breaks make -q.
14745         (all): Don't depend on check-macro-version.
14746         (CHECK_MACRO_VERSION): New macro.
14747         (stamp-po): Use it.
14748
14749         configmake: fix make -q problem
14750         * modules/configmake (configmake.h): Update configmake.h's time stamp
14751         even if the file does not change.  Otherwise, 'make -q' fails.
14752         Problem reported by Simon Josefsson in
14753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14754
14755 2011-08-11  Jim Meyering  <meyering@redhat.com>
14756
14757         git-version-gen: correct the advice in a comment
14758         * build-aux/git-version-gen: Correct comment.
14759         Don't recommend to list .tarball-version in .gitignore.
14760
14761 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14762
14763         base64: fix off-by-one buffer size bug
14764         Problem and (trivial) fix reported by Gijs van Tulder in
14765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14766         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14767         * tests/test-base64.c (main): Catch the bug.
14768
14769 2011-08-10  Eric Blake  <eblake@redhat.com>
14770
14771         closein: correct comments
14772         * lib/closein.c (close_stdin): Improve comments.
14773
14774 2011-08-09  Bruno Haible  <bruno@clisp.org>
14775
14776         More tests for 'fseeko'.
14777         * tests/test-fseeko3.c: New file, from Eric Blake.
14778         * tests/test-fseeko3.sh: New file.
14779         * modules/fseeko-tests (Files): Add them.
14780         (TESTS): Add test-fseeko3.sh.
14781         (check_PROGRAMS): Add test-fseeko3.
14782
14783 2011-08-09  Eric Blake  <eblake@redhat.com>
14784
14785         fseeko: remove unneeded hack
14786         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14787
14788         fseeko: fix bug on glibc
14789         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14790         Reported by John W. Eaton.
14791
14792 2011-08-08  Bruno Haible  <bruno@clisp.org>
14793
14794         unictype/base: Fix interoperability with preinstalled libunistring.
14795         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14796         Reported by Simon Josefsson.
14797
14798 2011-08-08  Bruno Haible  <bruno@clisp.org>
14799
14800         iswblank: Detect declaration correctly.
14801         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14802         AC_CHECK_DECLS invocation.
14803
14804 2011-08-08  Bruno Haible  <bruno@clisp.org>
14805
14806         tcgetsid: Detect declaration correctly.
14807         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14808         AC_CHECK_DECLS invocation.
14809         Reported by Simon Josefsson.
14810
14811 2011-08-08  Eric Blake  <eblake@redhat.com>
14812
14813         largefile: fix typo that regressed large file support
14814         * modules/largefile (configure.ac-early): Fix section name.
14815
14816 2011-08-06  Karl Berry  <karl@gnu.org>
14817
14818         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14819         a separate module.
14820
14821 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14822
14823         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14824         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14825         get prototype for free.
14826
14827 2011-08-04  Bruno Haible  <bruno@clisp.org>
14828
14829         Tests for module 'pathmax'.
14830         * modules/pathmax-tests: New file.
14831         * tests/test-pathmax.c: New file.
14832
14833         canonicalize-lgpl: Support larger filenames on the Hurd.
14834         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14835         Reported by Paul Eggert.
14836
14837         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14838         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14839         * lib/chdir-long.h: Include pathmax.h.
14840         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14841         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14842         (PATH_MAX): Remove code that is done by pathmax.h.
14843         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14844         * lib/tmpfile.c: Add a comment.
14845         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14846         * modules/chdir-long (Depends-on): Add pathmax.
14847         * modules/getcwd (Depends-on): Add pathmax.
14848         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14849         is not defined.
14850         * doc/posix-headers/limits.texi: Mention the pathmax module.
14851         * NEWS: Mention the change.
14852
14853 2011-08-02  Bruno Haible  <bruno@clisp.org>
14854
14855         pthread_sigmask: Actually use results of gl_THREADLIB.
14856         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14857         gl_THREADLIB, not gl_[]THREADLIB.
14858         Reported by Eric Blake.
14859
14860 2011-08-02  Jim Meyering  <meyering@redhat.com>
14861
14862         maint.mk: relax the default _gl_TS_function_match regexp
14863         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14864         space between function name and "(" in an "extern" declaration.
14865         That would fail to match a decl with no space there: extern void foo();
14866
14867 2011-07-31  Iain Nicol  <iain@thenicols.net>
14868
14869         git-version-gen: document that EXTRA_DIST must include .version
14870         * build-aux/git-version-gen: In the how-to-use comment, document
14871         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14872         will fail when run from an unpacked distribution tarball.
14873
14874 2011-08-01  Bruno Haible  <bruno@clisp.org>
14875
14876         wctype-h: Fix last change.
14877         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14878         REPLACE_TOWLOWER to 0.
14879         Reported by Sam Steingold <sds@gnu.org>.
14880
14881 2011-07-31  Bruno Haible  <bruno@clisp.org>
14882
14883         frexpl: Update autoconf test.
14884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14885         according to changes of 2011-06-20.
14886
14887 2011-07-31  Bruno Haible  <bruno@clisp.org>
14888
14889         sys_utsname: Add support for Minix.
14890         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14891         <sys/utsname.h>.
14892         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14893         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14894
14895 2011-07-31  Bruno Haible  <bruno@clisp.org>
14896
14897         strings: Add support for Minix.
14898         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14899         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14900         * doc/posix-headers/strings.texi: Document the Minix problem.
14901
14902 2011-07-31  Bruno Haible  <bruno@clisp.org>
14903
14904         wctype-h: Add support for Minix.
14905         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14906         REPLACE_TOWLOWER.
14907         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14908         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14909         REPLACE_ISWCNTRL.
14910
14911 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14914         This is a performance improvement for 64-bit hosts: it causes the
14915         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14916
14917 2011-07-31  Bruno Haible  <bruno@clisp.org>
14918
14919         stdioext: Add support for Minix.
14920         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14921         * lib/fpurge.c (fpurge): Likewise.
14922         * lib/freadahead.c (freadahead): Likewise.
14923         * lib/freadable.c (freadable): Likewise.
14924         * lib/freading.c (freading): Likewise.
14925         * lib/freadptr.c (freadptr): Likewise.
14926         * lib/freadseek.c (freadptrinc): Likewise.
14927         * lib/fseeko.c (rpl_fseeko): Likewise.
14928         * lib/fseterr.c (fseterr): Likewise.
14929         * lib/fwritable.c (fwritable): Likewise.
14930         * lib/fwriting.c (fwriting): Likewise.
14931         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14932         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14933
14934 2011-07-31  Bruno Haible  <bruno@clisp.org>
14935
14936         errno: Port to Minix.
14937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14938         ECONNABORTED are defined.
14939         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14940         GNULIB_defined_ECONNABORTED): New macros.
14941         * lib/strerror-override.h (strerror_override): Test also
14942         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14943         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14944         ECONNABORTED.
14945         * doc/posix-headers/errno.texi: Mention the Minix problem.
14946
14947 2011-07-31  Bruno Haible  <bruno@clisp.org>
14948
14949         Work around declaration collisions on Minix.
14950         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14951         defined, set REPLACE_MBSINIT.
14952         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14953         defined, set REPLACE_MBRTOWC.
14954         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14955         set REPLACE_MBRLEN.
14956         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14957         defined, set REPLACE_MBSRTOWCS.
14958         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14959         defined, set REPLACE_WCRTOMB.
14960         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14961         defined, set REPLACE_WCSRTOMBS.
14962
14963 2011-07-31  Bruno Haible  <bruno@clisp.org>
14964
14965         Add support for Minix with ACK compiler.
14966         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14967         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14968         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14969
14970 2011-07-31  Bruno Haible  <bruno@clisp.org>
14971
14972         Documentation about Minix.
14973         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14974         * doc/glibc-headers/*.texi: Likewise.
14975         * doc/posix-functions/*.texi: Likewise.
14976         * doc/glibc-functions/*.texi: Likewise.
14977
14978 2011-07-31  Bruno Haible  <bruno@clisp.org>
14979
14980         snippet/warn-on-use: Fix indentation.
14981         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14982
14983 2011-07-25  Jim Meyering  <meyering@redhat.com>
14984
14985         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14986         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14987         commands.
14988
14989 2011-07-27  Jim Meyering  <meyering@redhat.com>
14990
14991         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14992         * top/maint.mk (gl_extract_significant_defines_): Now that
14993         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14994         gnulib/lib/signal.in.h, and now that we recommend to
14995         define-if-undefined those two symbols in application code,
14996         we must filter them out of the "significant" list.
14997         This avoids a "make syntax-check" failure in coreutils.
14998
14999 2011-07-26  Eric Blake  <eblake@redhat.com>
15000
15001         warnings: add comments about previous patch
15002         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15003         * m4/include_next.m4: Likewise.
15004         * m4/warn-on-use.m4: Likewise.
15005         * m4/warnings.m4: Likewise, and simplify use.
15006         Suggested by Stefano Lattarini.
15007
15008         include-next, warnings: support older autoconf
15009         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15010         AS_VAR_PUSHDEF in a way that works with older autoconf.
15011         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15012         Reported by Daniel P. Berrange.
15013
15014 2011-07-25  Bruno Haible  <bruno@clisp.org>
15015
15016         fseek, ftell: Fix doc.
15017         * doc/posix-functions/fseek.texi: Reword statement about
15018         AC_SYS_LARGEFILE.
15019         * doc/posix-functions/ftell.texi: Likewise.
15020
15021 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15022             Bruno Haible  <bruno@clisp.org>
15023
15024         Add dependencies to the 'largefile' module.
15025         * modules/fopen (Depends-on): Add 'largefile'.
15026         * modules/freopen (Depends-on): Likewise.
15027         * modules/fseeko (Depends-on): Likewise.
15028         * modules/ftello (Depends-on): Likewise.
15029         * modules/glob (Depends-on): Likewise.
15030         * modules/lseek (Depends-on): Likewise.
15031         * modules/lstat (Depends-on): Likewise.
15032         * modules/mkostemp (Depends-on): Likewise.
15033         * modules/mkostemps (Depends-on): Likewise.
15034         * modules/mkstemp (Depends-on): Likewise.
15035         * modules/mkstemps (Depends-on): Likewise.
15036         * modules/open (Depends-on): Likewise.
15037         * modules/openat (Depends-on): Likewise.
15038         * modules/pread (Depends-on): Likewise.
15039         * modules/pwrite (Depends-on): Likewise.
15040         * modules/scandir (Depends-on): Likewise.
15041         * modules/stat (Depends-on): Likewise.
15042         * modules/tmpfile (Depends-on): Likewise.
15043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15044         since the containing module now depends on the largefile module.
15045         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15046         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15047         off_t is fixed by gnulib.
15048         * doc/posix-functions/freopen.texi: Likewise.
15049         * doc/posix-functions/fseeko.texi: Likewise.
15050         * doc/posix-functions/fstatat.texi: Likewise.
15051         * doc/posix-functions/ftello.texi: Likewise.
15052         * doc/posix-functions/glob.texi: Likewise.
15053         * doc/posix-functions/lseek.texi: Likewise.
15054         * doc/posix-functions/lstat.texi: Likewise.
15055         * doc/posix-functions/mkstemp.texi: Likewise.
15056         * doc/posix-functions/open.texi: Likewise.
15057         * doc/posix-functions/openat.texi: Likewise.
15058         * doc/posix-functions/pread.texi: Likewise.
15059         * doc/posix-functions/pwrite.texi: Likewise.
15060         * doc/posix-functions/scandir.texi: Likewise.
15061         * doc/posix-functions/stat.texi: Likewise.
15062         * doc/posix-functions/tmpfile.texi: Likewise.
15063         * doc/glibc-functions/mkostemp.texi: Likewise.
15064         * doc/glibc-functions/mkostemps.texi: Likewise.
15065         * doc/glibc-functions/mkstemps.texi: Likewise.
15066
15067 2011-07-25  Bruno Haible  <bruno@clisp.org>
15068
15069         fcntl: Move AC_LIBOBJ invocation to module description.
15070         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15071         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15072
15073         fcntl: Remove call-in from fchdir.m4.
15074         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15076
15077         dup3: Remove potential call-in from fchdir.m4.
15078         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15080
15081         dup2: Move AC_LIBOBJ invocation to module description.
15082         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15083         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15084         Don't invoke AC_LIBOBJ.
15085         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15086
15087         dup2: Remove call-in from fchdir.m4.
15088         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15090
15091         fclose: Move AC_LIBOBJ invocation to module description.
15092         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15093         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15094         to 1.
15095         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15096
15097         fclose: Remove call-in from close.m4.
15098         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15099         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15100
15101         close: Move AC_LIBOBJ invocation to module description.
15102         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15103         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15104         1.
15105         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15106
15107         close: Remove call-in from fchdir.m4.
15108         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15110
15111         open: Move AC_LIBOBJ invocation to module description.
15112         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15113         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15114         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15115
15116         open: Remove call-in from fchdir.m4.
15117         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15119
15120         fchdir: Start to remove gl_REPLACE_* idiom.
15121         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15122         (gl_FUNC_FCHDIR): Invoke it.
15123
15124 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15125
15126         * lib/ftell.c (ftell): Comment out cast.
15127
15128         close: use gl_REPLACE_FCLOSE only if defined
15129         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15130         is defined.  The close module doesn't depend on the fclose module
15131         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15133         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15134
15135 2011-07-24  Jim Meyering  <meyering@redhat.com>
15136
15137         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15138         * tests/test-select.h (test_function): Declare as "static".
15139
15140 2011-07-24  Bruno Haible  <bruno@clisp.org>
15141
15142         doc: Mention the effects of AC_SYS_LARGEFILE.
15143         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15144         on this function.
15145         * doc/posix-functions/aio_error.texi: Likewise.
15146         * doc/posix-functions/aio_fsync.texi: Likewise.
15147         * doc/posix-functions/aio_read.texi: Likewise.
15148         * doc/posix-functions/aio_return.texi: Likewise.
15149         * doc/posix-functions/aio_suspend.texi: Likewise.
15150         * doc/posix-functions/aio_write.texi: Likewise.
15151         * doc/posix-functions/fgetpos.texi: Likewise.
15152         * doc/posix-functions/fopen.texi: Likewise.
15153         * doc/posix-functions/freopen.texi: Likewise.
15154         * doc/posix-functions/fsetpos.texi: Likewise.
15155         * doc/posix-functions/fstatvfs.texi: Likewise.
15156         * doc/posix-functions/ftruncate.texi: Likewise.
15157         * doc/posix-functions/ftw.texi: Likewise.
15158         * doc/posix-functions/getrlimit.texi: Likewise.
15159         * doc/posix-functions/glob.texi: Likewise.
15160         * doc/posix-functions/lio_listio.texi: Likewise.
15161         * doc/posix-functions/lockf.texi: Likewise.
15162         * doc/posix-functions/mkstemp.texi: Likewise.
15163         * doc/posix-functions/mmap.texi: Likewise.
15164         * doc/posix-functions/nftw.texi: Likewise.
15165         * doc/posix-functions/openat.texi: Likewise.
15166         * doc/posix-functions/opendir.texi: Likewise.
15167         * doc/posix-functions/posix_fadvise.texi: Likewise.
15168         * doc/posix-functions/posix_fallocate.texi: Likewise.
15169         * doc/posix-functions/pread.texi: Likewise.
15170         * doc/posix-functions/pwrite.texi: Likewise.
15171         * doc/posix-functions/readdir.texi: Likewise.
15172         * doc/posix-functions/readdir_r.texi: Likewise.
15173         * doc/posix-functions/rewinddir.texi: Likewise.
15174         * doc/posix-functions/scandir.texi: Likewise.
15175         * doc/posix-functions/seekdir.texi: Likewise.
15176         * doc/posix-functions/setrlimit.texi: Likewise.
15177         * doc/posix-functions/statvfs.texi: Likewise.
15178         * doc/posix-functions/telldir.texi: Likewise.
15179         * doc/posix-functions/tmpfile.texi: Likewise.
15180         * doc/posix-functions/truncate.texi: Likewise.
15181         * doc/glibc-functions/fallocate.texi: Likewise.
15182         * doc/glibc-functions/fstatfs.texi: Likewise.
15183         * doc/glibc-functions/fts_children.texi: Likewise.
15184         * doc/glibc-functions/fts_read.texi: Likewise.
15185         * doc/glibc-functions/getdirentries.texi: Likewise.
15186         * doc/glibc-functions/mkostemp.texi: Likewise.
15187         * doc/glibc-functions/mkostemps.texi: Likewise.
15188         * doc/glibc-functions/mkstemps.texi: Likewise.
15189         * doc/glibc-functions/preadv.texi: Likewise.
15190         * doc/glibc-functions/pwritev.texi: Likewise.
15191         * doc/glibc-functions/sendfile.texi: Likewise.
15192         * doc/glibc-functions/statfs.texi: Likewise.
15193
15194 2011-07-24  Bruno Haible  <bruno@clisp.org>
15195
15196         doc: Fix typo.
15197         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15198
15199 2011-07-24  Bruno Haible  <bruno@clisp.org>
15200
15201         doc: Mention fsusage.
15202         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15203
15204 2011-07-24  Bruno Haible  <bruno@clisp.org>
15205
15206         doc: Mention new glibc headers and functions.
15207         * doc/glibc-headers/gshadow.texi: New file.
15208         * doc/glibc-functions/endsgent.texi: New file.
15209         * doc/glibc-functions/fgetsgent.texi: New file.
15210         * doc/glibc-functions/fgetsgent_r.texi: New file.
15211         * doc/glibc-functions/getsgent.texi: New file.
15212         * doc/glibc-functions/getsgent_r.texi: New file.
15213         * doc/glibc-functions/getsgnam.texi: New file.
15214         * doc/glibc-functions/getsgnam_r.texi: New file.
15215         * doc/glibc-functions/putsgent.texi: New file.
15216         * doc/glibc-functions/setsgent.texi: New file.
15217         * doc/glibc-functions/sgetsgent.texi: New file.
15218         * doc/glibc-functions/sgetsgent_r.texi: New file.
15219         * doc/glibc-functions/malloc_info.texi: New file.
15220         * doc/glibc-functions/preadv.texi: New file.
15221         * doc/glibc-functions/pwritev.texi: New file.
15222         * doc/glibc-functions/register_printf_modifier.texi: New file.
15223         * doc/glibc-functions/register_printf_specifier.texi: New file.
15224         * doc/glibc-functions/register_printf_type.texi: New file.
15225         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15226         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15227         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15228         * doc/glibc-functions/pthread_getname_np.texi: New file.
15229         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15230         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15231         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15232         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15233         * doc/glibc-functions/pthread_setname_np.texi: New file.
15234         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15235         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15236         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15237         * doc/glibc-functions/qsort_r.texi: New file.
15238         * doc/glibc-functions/quick_exit.texi: New file.
15239         * doc/glibc-functions/syncfs.texi: New file.
15240         * doc/gnulib.texi: Include them.
15241         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15242         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15243         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15244         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15245         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15246         * doc/glibc-functions/execvpe.texi: Likewise.
15247
15248 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15249
15250         ftell: don't include <unistd.h>
15251         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15252         guaranteed to define off_t, and the ftell module depends on the
15253         stdio module.
15254
15255         ftell: do not assume wraparound signed arithmetic
15256         * lib/ftell.c: Include <limits.h>.
15257         (ftell): Don't assume wraparound signed arithmetic.
15258
15259 2011-07-24  Bruno Haible  <bruno@clisp.org>
15260
15261         close: No longer depend on module 'fclose'.
15262         * modules/close (Depends-on): Remove fclose.
15263         * NEWS: Mention the change.
15264         Suggested by Sam Steingold <sds@gnu.org>.
15265
15266 2011-07-24  Bruno Haible  <bruno@clisp.org>
15267
15268         fsusage: Enable large volume support on AIX >= 5.2.
15269         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15270         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15271         instead of STAT_STATVFS.
15272         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15273
15274         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15275         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15276         f_blocks field only on MacOS X.
15277
15278         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15280         * modules/fsusage (Depends-on): Add largefile.
15281
15282 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15283
15284         * README: Modernize discussion of signed integers.
15285         Assuming overflow wraparound is no longer safe.
15286         Mention ones' complement and signed magnitude.
15287
15288 2011-07-22  Bruno Haible  <bruno@clisp.org>
15289
15290         select tests, pselect tests: Refactor.
15291         * tests/test-select.h: New file, extracted from tests/test-select.c.
15292         (select_fn): New type.
15293         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15294         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15295         test_pipe): Add my_select argument.
15296         (test_function): Renamed from main. Add my_select argument.
15297         * tests/test-select.c: Move most code to tests/test-select.h. Include
15298         test-select.h.
15299         * modules/select-tests (Files): Add tests/test-select.h.
15300         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15301         (my_select, main): New functions.
15302         * modules/pselect-tests (Files): Add tests/test-select.h,
15303         tests/macros.h, tests/signature.h.
15304         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15305         (configure.ac): Check for <sys/wait.h>.
15306
15307 2011-07-22  Bruno Haible  <bruno@clisp.org>
15308
15309         sys_select tests: Check the signature of FD_*.
15310         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15311         signature tests from here...
15312         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15313         here.
15314         * modules/sys_select-tests (Files): Add tests/signature.h.
15315
15316 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15317
15318         largefile: new module, replacing large-inode
15319         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15320         * MODULES.html.sh: Add largefile, remove large-inode.
15321         * modules/largefile, m4/largefile.m4: New files.
15322         * modules/large-inode, m4/large-inode.m4: Remove.
15323
15324         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15326         implementations that use only 32 bits to count blocks.
15327         On typical hosts with 1024-byte blocks, this fails with file
15328         systems as small as 4 TiB.  Problem reported by Herb Wartens
15329         <http://debbugs.gnu.org/9140> and this should also fix a similar
15330         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15331
15332         large-inode: New module
15333         * MODULES.html.sh: Add it.
15334         * modules/large-inode, m4/large-inode.m4: New files.
15335
15336         extensions: Enable extensions on MacOS X 10.5 and later.
15337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15338
15339 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15340
15341         file-has-acl: use acl_extended_file_nofollow if available
15342         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15343         (acl_extended_file): New macro.
15344         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15345         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15346
15347 2011-07-21  Bruno Haible  <bruno@clisp.org>
15348
15349         Declare system functions in a way that works with C++.
15350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15351         declare fdopendir as extern "C".
15352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15353         declare frexpl as extern "C".
15354         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15355         declare gai_strerror as extern "C".
15356         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15357         programs, declare gai_strerror as extern "C".
15358         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15359         declare getlogin_r as extern "C".
15360         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15361         as extern "C".
15362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15363         declare ldexpl as extern "C".
15364         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15365         as extern "C".
15366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15367         program, declare getmntinfo as extern "C".
15368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15369         stpncpy as extern "C".
15370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15371         program, declare __xpg_strerror_r as extern "C".
15372         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15373         strndup as extern "C".
15374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15375         declare memset and bzero as extern "C".
15376         Reported by Sam Steingold <sds@gnu.org>.
15377
15378 2011-07-12  Jim Meyering  <meyering@redhat.com>
15379
15380         maint.mk: prohibit inclusion of "verify.h" without use
15381         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15382
15383 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15384
15385         timer-time: A new module to check for timer_settime()
15386         * m4/timer_time.m4: Check for the posix function.
15387         * modules/timer-time: Add the new module.
15388         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15389         Mention it.
15390
15391 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15392             Bruno Haible  <bruno@clisp.org>
15393
15394         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15395         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15396         not defined, assume POSIX threads and look for pthread_sigmask in
15397         $LIBS, without changing $CPPFLAGS.
15398
15399 2011-07-19  Bruno Haible  <bruno@clisp.org>
15400
15401         strstr: Update cross-compilation guess.
15402         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15403         CPUs, guess no, in view of glibc
15404         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15405         Suggested by Eric Blake. Reported by Reuben Thomas.
15406
15407 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15408
15409         getopt-gnu: suppress core dumps from detection code
15410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15411         to suppress core dumps that may well occur on glibc systems.
15412         * modules/getopt-gnu: Depend on nocrash.
15413
15414 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15415
15416         pthread_sigmask: ensure usleep is declared
15417         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15418         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15419
15420 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         doc: Document NonStop portability issues.
15423         * doc/posix-functions/sigaction.texi (sigaction):
15424         * doc/posix-headers/signal.texi (signal.h):
15425         Document NonStop.  See Joachim Schmitz in
15426         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15427
15428 2011-07-15  Bruno Haible  <bruno@clisp.org>
15429
15430         ffsl, ffsll: Avoid unportable behaviour.
15431         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15432
15433 2011-07-15  Bruno Haible  <bruno@clisp.org>
15434
15435         ffs: More tests.
15436         * tests/test-ffs.c (NBITS): New macro.
15437         (main): Add more tests.
15438         * tests/test-ffsl.c (NBITS): New macro.
15439         (main): Add more tests.
15440         * tests/test-ffsll.c (NBITS): New macro.
15441         (main): Add more tests.
15442
15443 2011-07-15  Eric Blake  <eblake@redhat.com>
15444
15445         ffsl, ffsll: new modules
15446         * modules/ffsl: New file.
15447         * modules/ffsll: Likewise.
15448         * m4/ffsl.m4: Likewise.
15449         * m4/ffsll.m4: Likewise.
15450         * lib/ffsl.c: Likewise.
15451         * lib/ffsl.h: Likewise.
15452         * lib/ffsll.c: Likewise.
15453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15454         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15455         * modules/string (Makefile.am): Substitute witnesses.
15456         * lib/strings.in.h (ffsl, ffsll): Declare.
15457         * modules/ffsl-tests: New test file.
15458         * modules/ffsll-tests: Likewise.
15459         * tests/test-ffsl.c: Likewise.
15460         * tests/test-ffsll.c: Likewise.
15461         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15462         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15463         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15464
15465         ffs: fix m4 prerequisite
15466         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15467
15468         ffs: avoid undefined behavior
15469         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15470         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15471         Reported by Bruno Haible.
15472
15473 2011-07-12  Bruno Haible  <bruno@clisp.org>
15474
15475         pthread_sigmask: Rely on module 'threadlib'.
15476         * modules/pthread_sigmask (Depends-on): Add threadlib.
15477         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15478         is defined.
15479
15480 2011-07-12  Bruno Haible  <bruno@clisp.org>
15481
15482         regex: Depend on module 'strcase'.
15483         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15484
15485 2011-07-12  Jim Meyering  <meyering@redhat.com>
15486
15487         warn-on-use: fix typo in file name
15488         * modules/snippet/warn-on-use (Files): Correct file name:
15489         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15490
15491 2011-07-12  Bruno Haible  <bruno@clisp.org>
15492
15493         strings: Document module.
15494         * doc/posix-headers/strings.texi: Mention module 'strings'.
15495
15496 2011-07-12  Bruno Haible  <bruno@clisp.org>
15497
15498         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15499         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15500         (Files, Makefile.am): Update.
15501         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15502         * modules/stdlib (Depends-on): Update.
15503
15504 2011-07-12  Bruno Haible  <bruno@clisp.org>
15505
15506         * NEWS: Mention the changes.
15507
15508         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15509         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15510         (Files, Makefile.am): Update.
15511         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15512         * modules/arpa_inet (Depends-on): Update.
15513         * modules/ctype (Depends-on): Update.
15514         * modules/dirent (Depends-on): Update.
15515         * modules/fcntl-h (Depends-on): Update.
15516         * modules/glob (Depends-on): Update.
15517         * modules/iconv-h (Depends-on): Update.
15518         * modules/inttypes-incomplete (Depends-on): Update.
15519         * modules/langinfo (Depends-on): Update.
15520         * modules/locale (Depends-on): Update.
15521         * modules/math (Depends-on): Update.
15522         * modules/netdb (Depends-on): Update.
15523         * modules/poll-h (Depends-on): Update.
15524         * modules/pty (Depends-on): Update.
15525         * modules/search (Depends-on): Update.
15526         * modules/signal (Depends-on): Update.
15527         * modules/spawn (Depends-on): Update.
15528         * modules/stdio (Depends-on): Update.
15529         * modules/stdlib (Depends-on): Update.
15530         * modules/string (Depends-on): Update.
15531         * modules/strings (Depends-on): Update.
15532         * modules/sys_file (Depends-on): Update.
15533         * modules/sys_ioctl (Depends-on): Update.
15534         * modules/sys_select (Depends-on): Update.
15535         * modules/sys_socket (Depends-on): Update.
15536         * modules/sys_stat (Depends-on): Update.
15537         * modules/sys_time (Depends-on): Update.
15538         * modules/sys_times (Depends-on): Update.
15539         * modules/sys_utsname (Depends-on): Update.
15540         * modules/sys_wait (Depends-on): Update.
15541         * modules/termios (Depends-on): Update.
15542         * modules/time (Depends-on): Update.
15543         * modules/unistd (Depends-on): Update.
15544         * modules/wchar (Depends-on): Update.
15545         * modules/wctype-h (Depends-on): Update.
15546         * MODULES.html.sh (Support for building libraries and executables):
15547         Update.
15548
15549         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15550         * modules/snippet/unused-parameter: Renamed from
15551         modules/unused-parameter.
15552         (Files, Makefile.am): Update.
15553         * build-aux/snippet/unused-parameter.h: Renamed from
15554         build-aux/unused-parameter.h.
15555         * modules/selinux-h (Depends-on): Update.
15556         * modules/unistr/base (Depends-on): Update.
15557         * MODULES.html.sh (Core language properties): Update.
15558
15559         Rename module 'link-warning' to 'snippet/link-warning'.
15560         * modules/snippet/link-warning: Renamed from modules/link-warning.
15561         (Files, Makefile.am): Update.
15562         * build-aux/snippet/link-warning.h: Renamed from
15563         build-aux/link-warning.h.
15564         * MODULES.html.sh (Support for building libraries and executables):
15565         Update.
15566
15567         Rename module 'c++defs' to 'snippet/c++defs'.
15568         * modules/snippet/c++defs: Renamed from modules/c++defs.
15569         (Files, Makefile.am): Update.
15570         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15571         * modules/arpa_inet (Depends-on): Update.
15572         * modules/ctype (Depends-on): Update.
15573         * modules/dirent (Depends-on): Update.
15574         * modules/fcntl-h (Depends-on): Update.
15575         * modules/glob (Depends-on): Update.
15576         * modules/iconv-h (Depends-on): Update.
15577         * modules/langinfo (Depends-on): Update.
15578         * modules/locale (Depends-on): Update.
15579         * modules/math (Depends-on): Update.
15580         * modules/netdb (Depends-on): Update.
15581         * modules/poll-h (Depends-on): Update.
15582         * modules/pty (Depends-on): Update.
15583         * modules/search (Depends-on): Update.
15584         * modules/signal (Depends-on): Update.
15585         * modules/spawn (Depends-on): Update.
15586         * modules/stdio (Depends-on): Update.
15587         * modules/stdlib (Depends-on): Update.
15588         * modules/string (Depends-on): Update.
15589         * modules/strings (Depends-on): Update.
15590         * modules/sys_ioctl (Depends-on): Update.
15591         * modules/sys_select (Depends-on): Update.
15592         * modules/sys_socket (Depends-on): Update.
15593         * modules/sys_stat (Depends-on): Update.
15594         * modules/sys_time (Depends-on): Update.
15595         * modules/sys_wait (Depends-on): Update.
15596         * modules/termios (Depends-on): Update.
15597         * modules/time (Depends-on): Update.
15598         * modules/unistd (Depends-on): Update.
15599         * modules/wchar (Depends-on): Update.
15600         * modules/wctype-h (Depends-on): Update.
15601
15602         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15603         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15604         (Files, Makefile.am): Update.
15605         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15606         * modules/argv-iter (Depends-on): Update.
15607         * modules/arpa_inet (Depends-on): Update.
15608         * modules/dirent (Depends-on): Update.
15609         * modules/fcntl-h (Depends-on): Update.
15610         * modules/fnmatch (Depends-on): Update.
15611         * modules/getopt-posix (Depends-on): Update.
15612         * modules/glob (Depends-on): Update.
15613         * modules/iconv-h (Depends-on): Update.
15614         * modules/inttypes-incomplete (Depends-on): Update.
15615         * modules/locale (Depends-on): Update.
15616         * modules/math (Depends-on): Update.
15617         * modules/netdb (Depends-on): Update.
15618         * modules/search (Depends-on): Update.
15619         * modules/signal (Depends-on): Update.
15620         * modules/spawn (Depends-on): Update.
15621         * modules/stdio (Depends-on): Update.
15622         * modules/stdlib (Depends-on): Update.
15623         * modules/string (Depends-on): Update.
15624         * modules/strings (Depends-on): Update.
15625         * modules/sys_socket (Depends-on): Update.
15626         * modules/sys_stat (Depends-on): Update.
15627         * modules/sys_time (Depends-on): Update.
15628         * modules/sys_times (Depends-on): Update.
15629         * modules/sys_utsname (Depends-on): Update.
15630         * modules/time (Depends-on): Update.
15631         * modules/unistd (Depends-on): Update.
15632         * modules/wchar (Depends-on): Update.
15633         * MODULES.html.sh (Support for building libraries and executables):
15634         Update.
15635
15636 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15637
15638         Improvements on _Noreturn and related modules.
15639
15640         modules/_Exit-tests: test _Noreturn too
15641         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15642         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15643         (main): Use them.
15644
15645         stdnoreturn, stdnoreturn-tests: remove modules
15646         They're not needed here and a bit premature for use elsewhere.  See
15647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15648         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15649         * tests/test-stdnoreturn.c: Remove files.
15650         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15651         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15652         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15653         and using noreturn.
15654         * modules/openat, modules/sigpipe-die, modules/xalloc:
15655         * modules/xmemdup0, modules/xstrtol:
15656         Remove dependency on stdnoreturn.
15657
15658         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15659         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15660         Reparenthesize to avoid GCC warning.
15661         Support Microsoft's syntax.
15662         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15663
15664         _Noreturn-tests: remove module
15665         * modules/_Noreturn-tests: Remove.
15666         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15667         * tests/test-_Noreturn.c: Remove.
15668         * tests/test-stdnoreturn.c: Merge from the old
15669         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15670
15671 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15672
15673         _Noreturn, stdnoreturn, and related modules.
15674
15675         * top/maint.mk: Adjust to new noreturn support.
15676         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15677         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15678
15679         xalloc: use stdnoreturn.h
15680         * lib/xalloc.h: Include <stdnoreturn.h>.
15681         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15682         * modules/xalloc (Depends-on): Add stdnoreturn.
15683
15684         xstrtol: use stdnoreturn.h
15685         * lib/xstrtol.h: Include <stdnoreturn.h>.
15686         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15687         * modules/xstrtol (Depends-on): Add stdnoreturn.
15688
15689         xmemdup0: use stdnoreturn.h
15690         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15691         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15692         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15693
15694         sigpipe-die: use stdnoreturn.h
15695         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15696         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15697         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15698
15699         openat: use stdnoreturn.h
15700         * lib/openat.h: Include <stdnoreturn.h>.
15701         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15702         * modules/openat (Depends-on): Add stdnoreturn.
15703
15704         * lib/openat-die.c (openat_save_fail): Modernize comment.
15705
15706         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15707
15708         * lib/glthread/thread.h: Modernize comment.
15709
15710         obstack: use _Noreturn
15711         * lib/obstack.c (__attribute__): Remove macro.
15712         (print_and_abort): Use _Noreturn.
15713
15714         c-stack: use _Noreturn
15715         * lib/c-stack.c (die, overflow_handler, segv_handler):
15716         Use _Noreturn rather than __attribute__((noreturn)).
15717
15718         argmatch-tests, exclude_tests: use _Noreturn
15719         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15720         Remove.
15721         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15722
15723         stdlib: use _Noreturn
15724         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15725         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15726         * modules/stdlib (Depends-on): Add _Noreturn.
15727         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15728
15729         stdnoreturn-tests: new module
15730         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15731
15732         stdnoreturn: new module
15733         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15734         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15735
15736         _Noreturn-tests: new module
15737         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15738
15739         _Noreturn: new module
15740         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15741         New section, mentioning it.
15742         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15743
15744         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15745
15746 2011-07-11  Eric Blake  <eblake@redhat.com>
15747
15748         ffs: new module
15749         * modules/ffs: New file.
15750         * m4/ffs.m4: Likewise.
15751         * lib/ffs.c: Likewise.
15752         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15753         * modules/strings (Makefile.am): Substitute witness.
15754         (Depends-on): Add c++defs.
15755         * lib/strings.in.h (ffs): Declare.
15756         * modules/ffs-tests: New test file.
15757         * tests/test-ffs.c: Test new module.
15758         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15759         * doc/posix-functions/ffs.texi (ffs): Likewise.
15760
15761         regex: avoid compiler warning
15762         * lib/regex.c (includes): Include <strings.h>, for use of
15763         strcasecmp in regcomp.c.
15764         Reported by Joachim Schmitz.
15765
15766 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15767
15768         stdint: respect system's intmax_t if INTMAX_MAX
15769         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15770         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15771         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15772         long but int64_t is long long, and where we will clash with the
15773         system intmax_t if we override it.  See
15774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15775         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15776         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15777         similarly for UINTMAX_C.
15778
15779 2011-07-08  Bruno Haible  <bruno@clisp.org>
15780
15781         pthread_sigmask tests: Avoid a compiler warning.
15782         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15783         non-zero.
15784
15785         sigprocmask tests: A better way to avoid a compiler warning.
15786         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15787         (main): Complain if system() returns non-zero.
15788         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15789
15790 2011-07-08  Bruno Haible  <bruno@clisp.org>
15791
15792         pthread_sigmask: Work around IRIX bug.
15793         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15794         bug.
15795         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15796         there may be unblocked pending signals.
15797         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15798
15799 2011-07-08  Bruno Haible  <bruno@clisp.org>
15800
15801         pthread_sigmask: Work around Cygwin bug.
15802         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15803         bug.
15804         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15805         the system's pthread_sigmask function.
15806         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15807
15808 2011-07-08  Bruno Haible  <bruno@clisp.org>
15809
15810         pthread_sigmask: Work around bug in single-threaded implementation.
15811         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15812         FreeBSD, HP-UX, Solaris bug.
15813         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15814         * lib/pthread_sigmask.c: Include <stddef.h>.
15815         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15816         the system's pthread_sigmask function.
15817         * modules/pthread_sigmask (configure.ac): Invoke
15818         gl_PREREQ_PTHREAD_SIGMASK.
15819         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15820         HP-UX, Solaris.
15821
15822 2011-07-08  Eric Blake  <eblake@redhat.com>
15823
15824         test-sigprocmask: avoid compiler warning
15825         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15826         * tests/test-sigprocmask.c (main): Use it to silence warning.
15827         Reported by Jim Meyering.
15828
15829         test-snprintf: avoid compiler warning
15830         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15831         * tests/test-vsnprintf.c (main): Likewise.
15832         Reported by Jim Meyering.
15833
15834 2011-07-08  Bruno Haible  <bruno@clisp.org>
15835
15836         Tests for module 'pthread_sigmask'.
15837         * modules/pthread_sigmask-tests: New file.
15838         * tests/test-pthread_sigmask1.c: New file, based on
15839         tests/test-sigprocmask.c.
15840         * tests/test-pthread_sigmask2.c: New file.
15841
15842 2011-07-08  Jim Meyering  <meyering@redhat.com>
15843
15844         test-getopt.h: avoid warning about an unused variable
15845         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15846
15847 2011-07-07  Jim Meyering  <meyering@redhat.com>
15848
15849         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15850         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15851         now that it no longer contains leading TABs.
15852         Remove unused "url=FIXME" statement.
15853
15854 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15857         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15858         When gl_THREADLIB is not in use, assume that the POSIX sematics
15859         are desired.  This is better for Emacs, which uses POSIX semantics
15860         on GNUish and/or POSIXish platforms, and does not use threads at
15861         all otherwise.
15862
15863         pthread_sigmask: fix typo when testing for libraries
15864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15865         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15866
15867 2011-07-08  Eric Blake  <eblake@redhat.com>
15868
15869         fts: introduce FTS_NOATIME
15870         * lib/fts_.h (FTS_NOATIME): New bit flag.
15871         (FTS_OPTIONMASK): Adjust.
15872         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15873         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15874
15875 2011-07-08  Bruno Haible  <bruno@clisp.org>
15876
15877         Tests for module 'thread'.
15878         * modules/thread-tests: New file.
15879         * tests/test-thread_self.c: New file.
15880         * tests/test-thread_create.cc: New file.
15881
15882 2011-07-08  Bruno Haible  <bruno@clisp.org>
15883
15884         thread: Avoid gcc warnings when using gl_thread_self().
15885         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15886         'void *'.
15887         (gl_thread_self_pointer): Update.
15888
15889 2011-07-07  Bruno Haible  <bruno@clisp.org>
15890
15891         signal-c++-tests: Check declaration of pthread_sigmask.
15892         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15893         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15894         $(LIB_PTHREAD_SIGMASK).
15895
15896 2011-07-07  Bruno Haible  <bruno@clisp.org>
15897
15898         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15899         * lib/signal.in.h (pthread_sigmask): Override if
15900         REPLACE_PTHREAD_SIGMASK is 1.
15901         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15902         REPLACE_PTHREAD_SIGMASK.
15903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15904         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15905         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15906         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15907         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15908
15909 2011-07-07  Bruno Haible  <bruno@clisp.org>
15910
15911         pthread_sigmask: Ensure declaration in <signal.h>.
15912         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15913         include <pthread.h>.
15914         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15915         problem.
15916
15917 2011-07-07  Bruno Haible  <bruno@clisp.org>
15918
15919         pthread_sigmask: Document the module.
15920         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15921
15922 2011-07-07  Bruno Haible  <bruno@clisp.org>
15923
15924         pthread_sigmask: Follow gnulib conventions.
15925         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15926         gl_PTHREAD_SIGMASK.
15927         * modules/pthread_sigmask (configure.ac): Update.
15928
15929 2011-07-07  Bruno Haible  <bruno@clisp.org>
15930
15931         pthread_sigmask: Make declaration C++ safe.
15932         * lib/signal.in.h: In two special conditions, just do an #include_next.
15933         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15934         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15935         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15936         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15937         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15938         not REPLACE_PTHREAD_MASK.
15939         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15940         not REPLACE_PTHREAD_MASK.
15941         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15942
15943 2011-07-07  Bruno Haible  <bruno@clisp.org>
15944
15945         pthread_sigmask: Fix return value.
15946         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15947         * lib/pthread_sigmask.c: New file.
15948         * modules/pthread_sigmask (Files): Add it.
15949         (configure.ac): Invoke AC_LIBOBJ.
15950
15951 2011-07-07  Eric Blake  <eblake@redhat.com>
15952
15953         getopt: more portable argv creation
15954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15955         const, use char arrays rather than strings.
15956         Suggested by Paul Eggert.
15957
15958 2011-07-07  Bruno Haible  <bruno@clisp.org>
15959
15960         Tests for module 'sigprocmask'.
15961         * modules/sigprocmask-tests: New file.
15962         * tests/test-sigprocmask.c: New file.
15963
15964 2011-07-07  Bruno Haible  <bruno@clisp.org>
15965
15966         float tests: Tweak.
15967         * tests/test-float.c (main): Tweak skip message.
15968
15969 2011-07-07  Eric Blake  <eblake@redhat.com>
15970
15971         getopt: avoid compiler warning during configure
15972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15973         assigning string literals to non-const pointer.
15974
15975         getopt-gnu: avoid crash in glibc getopt
15976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15977         * tests/test-getopt.h (test_getopt): Enhance test.
15978         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15979         * doc/posix-functions/getopt.texi (getopt): Document it.
15980         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15981         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15982         Likewise.
15983
15984 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15985
15986         getopt: handle W; without long options in getopt [BZ #12922]
15987         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15988         but no long options are defined, just return 'W'.
15989
15990 2011-07-07  Bruno Haible  <bruno@clisp.org>
15991
15992         Avoid literal tabs.
15993         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15994         variable containing a tab instead of a literal tab.
15995         Reported by Jim Meyering.
15996
15997 2011-07-07  Bruno Haible  <bruno@clisp.org>
15998
15999         Comments.
16000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16001
16002 2011-07-06  Bruno Haible  <bruno@clisp.org>
16003
16004         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16005         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16006         <winsock2.h>.
16007         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16008         lib/sys_socket.in.h.
16009         (close, gethostname): Hide declarations from <winsock2.h>.
16010         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16011         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16012         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16013         (select): Don't override if gnulib's <sys/select.h> was already
16014         included.
16015         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16016         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16017         setsockopt, shutdown, select): Tweak indentation.
16018
16019 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16020
16021         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16022         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16023         in an application that does not use the sys_select module.
16024
16025 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16026
16027         poll: do not return 0 on timeout=-1
16028         * lib/poll.c: Loop with yield if no events occurred.
16029
16030 2011-07-06  Eric Blake  <eblake@redhat.com>
16031
16032         pthread_sigmask: always replace when not using pthread
16033         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16034         replacement when using some threading other than pthread.  Fix
16035         logic bug.
16036
16037 2011-07-06  Bruno Haible  <bruno@clisp.org>
16038
16039         Comments.
16040         * m4/printf.m4: Update comments about mingw.
16041
16042 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16043
16044         sys_select: define sigset_t more portably
16045         * lib/sys_select.in.h: Always include <sys/types.h>, since
16046         we now need sigset_t and mingw defines it there.
16047         Include <signal.h> before split inclusion guard, to avoid
16048         mishaps on Solaris, whose <signal.h> eventually includes us.
16049         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16050         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16051         which come from ...
16052         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16053         gl_CHECK_TYPE_SIGSET_T.
16054         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16055         does the real work.
16056         * modules/sys_select (Depends-on): Add 'signal'.
16057
16058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16059         Suggested by Bruno Haible.
16060
16061         pselect: Use pthread_sigmask, not sigprocmask.
16062         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16063         multithreaded apps better than sigprocmask does.
16064         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16065         sigprocmask directly.
16066
16067 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16068
16069         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16070         Don't #undef,  since we don't need any underlying pselect.
16071         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16072         (Depends-on): Add select.
16073         (Link): Add $(LIBSOCKET).
16074         These changes suggested by Bruno Haible.
16075
16076         pselect: document better
16077         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16078         * doc/posix-functions/pselect.texi (pselect): Document new module.
16079
16080         pthread_sigmask: new module
16081         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16082         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16083         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16084         This is done only as a macro; I don't know how well that'll
16085         work for C++.  Move <sys/types.h> include before the include_next,
16086         to avoid mishap on Solaris.
16087         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16088         * modules/signal (Makefile.am): Substitute the check's results.
16089         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16090
16091         test-pselect: new module
16092         * modules/pselect-tests, tests/test-pselect.c: New files.
16093         * tests/test-select.c, tests/test-sys_select-c++.cc:
16094         If TEST_PSELECT is defined, test pselect instead of testing select.
16095
16096         * tests/test-sys_select.c (sigset_t): Test for it, too.
16097         Suggested by Bruno Haible.
16098
16099 2011-07-05  Eric Blake  <eblake@redhat.com>
16100
16101         snprintf: guarantee %1$d, for libintl
16102         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16103         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16104         * doc/posix-functions/snprintf.texi (snprintf): Update.
16105         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16106         * tests/test-snprintf.c (main): Enhance test.
16107         * tests/test-vsnprintf.c (main): Likewise.
16108
16109 2011-07-05  Jim Meyering  <meyering@redhat.com>
16110
16111         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16112         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16113         per Bruno's request, to accommodate this idiom (no space after "#")
16114         even when the function is inside an #if block:
16115         char *
16116         gets (char *s)
16117         #undef gets
16118         {
16119           ...
16120         }
16121
16122 2011-07-04  Jim Meyering  <meyering@redhat.com>
16123
16124         maint: indent with spaces, not TABs, and add a rule to check this
16125         * tests/test-userspec.c: Indent with spaces, not TABs.
16126         * tests/test-argp.c: Likewise.
16127         * tests/test-c-stack2.sh: Likewise.
16128         * tests/test-parse-duration.sh: Likewise
16129         * m4/strtod.m4: Likewise.
16130         * m4/alloca.m4: Likewise.
16131         * m4/pselect.m4: Likewise.
16132         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16133
16134 2011-07-03  Jim Meyering  <meyering@redhat.com>
16135
16136         maint.mk: correct omissions in prohibit_argmatch_without_use check
16137         This rule would mistakenly report that argmatch.h is included without
16138         use even when both the argmatch and invalid_arg macro were used.
16139         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16140         of argmatch and invalid_arg.
16141
16142 2011-07-03  Bruno Haible  <bruno@clisp.org>
16143
16144         Comments about EINTR.
16145         * lib/safe-read.h: Explain the purpose of this module.
16146         * lib/safe-write.h: Likewise.
16147         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16148         module.
16149         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16150         module.
16151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16152
16153 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16154
16155         xnanosleep: Rewrite to use new dtotimespec module.
16156         It has the conversion code that used to be in xnanosleep.
16157         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16158         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16159         (TIME_T_MAX): Remove.
16160         (xnanosleep): Rewrite in terms of dtotimespec.
16161         * modules/xnanosleep (Depends-on): Add dtotimespec.
16162         Remove intprops, stdbool.
16163
16164         timespec-add, timespec-sub: new modules
16165         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16166         * lib/timespec-add.c, lib/timespec-sub.c:
16167         * modules/timespec-add, modules/timespec-sub: New files.
16168
16169         dtotimespec: new module
16170         * lib/timespec.h (dtotimespec): New decl.
16171         * lib/dtotimespec.c, modules/dtotimespec: New files.
16172
16173         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16174
16175         pselect: new module
16176         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16177         (pselect): New decls.
16178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16179         since the standard pselect decl uses 'restrict'.
16180         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16181         HAVE_PSELECT, REPLACE_PSELECT.
16182         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16183         HAVE_PSELECT, REPLACE_PSELECT.
16184         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16185
16186         sys_select: don't depend on sys_socket
16187         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16189         This fix works on GNU and GNU-like platforms, but has not been tested
16190         on native Windows.
16191         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16193         gl_HEADER_SYS_SOCKET.
16194         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16195         gl_PREREQ_SYS_H_WINSOCK2.
16196
16197 2011-06-29  Eric Blake  <eblake@redhat.com>
16198
16199         pipe2: fix C89 compile problem
16200         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16201         Reported by Bruno Haible.
16202
16203         pipe, pipe2: don't corrupt fd on error
16204         * lib/pipe.c (pipe): Leave fd unchanged on error.
16205         * lib/pipe2.c (pipe2): Likewise.
16206         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16207         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16208
16209 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16210
16211         mmap-anon: do not use regular expressions inadvertently
16212         * m4/mmap-anon.m4: Remove trailing period from strings sought
16213         in the output.
16214
16215 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16216
16217         nanosleep: fix integer overflow problem
16218         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16219         arithmetic wraps around on overflow.
16220
16221         nanosleep: simplify carrying
16222         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16223         first call to the underyling nanosleep, not for the last one.
16224         This doesn't fix any bugs, but it simplifies the computation of
16225         the remaining delay.  Found while auditing integer overflow issues.
16226
16227         dup2: remove test for existence of fcntl
16228         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16229         "#if HAVE_FCNTL", in the configure-time test program.
16230         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16231         and therefore speeds up "configure" a bit.  Found while
16232         adding the dup2 module to Emacs.
16233
16234 2011-06-24  Eric Blake  <eblake@redhat.com>
16235
16236         maint.mk: enhance useless header checks
16237         * top/maint.mk (_sc_header_without_use): Check both include
16238         styles.
16239         (sc_prohibit_assert_without_use)
16240         (sc_prohibit_close_stream_without_use)
16241         (sc_prohibit_getopt_without_use)
16242         (sc_prohibit_quotearg_without_use)
16243         (sc_prohibit_quote_without_use)
16244         (sc_prohibit_long_options_without_use)
16245         (sc_prohibit_inttostr_without_use)
16246         (sc_prohibit_ignore_value_without_use)
16247         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16248         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16249         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16250         (sc_prohibit_hash_pjw_without_use)
16251         (sc_prohibit_safe_read_without_use)
16252         (sc_prohibit_argmatch_without_use)
16253         (sc_prohibit_canonicalize_without_use)
16254         (sc_prohibit_root_dev_ino_without_use)
16255         (sc_prohibit_openat_without_use)
16256         (sc_prohibit_c_ctype_without_use)
16257         (sc_prohibit_signal_without_use)
16258         (sc_prohibit_stdio--_without_use)
16259         (sc_prohibit_stdio-safer_without_use)
16260         (sc_prohibit_strings_without_use)
16261         (sc_prohibit_intprops_without_use)
16262         (sc_prohibit_stddef_without_use)
16263         (sc_prohibit_xfreopen_without_use): Update clients.
16264
16265 2011-06-24  Jim Meyering  <meyering@redhat.com>
16266
16267         syntax-check: keep one maint.mk rule in sync with its header
16268         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16269         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16270         I prefer to avoid temporary files here, so use <(...), but that
16271         is not supported by /bin/sh, so...
16272         (SHELL): Define to /bin/bash.
16273
16274 2011-06-24  Eric Blake  <eblake@redhat.com>
16275
16276         maint.mk: update sc_prohibit_intprops_without_use
16277         * top/maint.mk (_intprops_names): Match recent changes.
16278
16279 2011-06-24  Bruno Haible  <bruno@clisp.org>
16280
16281         strerror-override: No-op tweak.
16282         * lib/strerror-override.h (strerror_override): Reorder conditions,
16283         for consistency with lib/strerror-override.c.
16284
16285 2011-06-23  Eric Blake  <eblake@redhat.com>
16286
16287         maint.mk: test further PATH_MAX issues
16288         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16289         (sc_prohibit_path_max_allocation): ...and also test alloca.
16290         Suggested by Jim Meyering.
16291
16292 2011-06-22  Eric Blake  <eblake@redhat.com>
16293
16294         maint.mk: add syntax-check to avoid char[PATH_MAX]
16295         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16296
16297         stat: be robust to PATH_MAX definition
16298         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16299         * modules/stat (Depends-on): Add verify.
16300
16301         link: work around IRIX bug
16302         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16303         * lib/link.c (rpl_link): Work around it.
16304         * tests/test-link.h (test_link): Enhance test.
16305         * doc/posix-functions/link.texi (link): Document the bug.
16306
16307         getopt: silence clang warning
16308         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16309         dereference.
16310         Reported by Gustavo Martin Domato.
16311
16312 2011-06-22  Jim Meyering  <meyering@redhat.com>
16313
16314         bootstrap: do not insert a blank line into each .gitignore file
16315         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16316
16317 2011-06-21  Eric Blake  <eblake@redhat.com>
16318
16319         perror: test for output mismatch
16320         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16321         perror on IRIX.
16322
16323         strerror_r: fix OpenBSD behavior on out-of-range
16324         * lib/strerror_r.c (strerror_r): Always use maximal string.
16325         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16326
16327         strerror_r: fix OpenBSD behavior on 0
16328         * lib/strerror-override.c (strerror_override): Also override 0
16329         when needed.
16330         * lib/strerror-override.h (strerror_override): Likewise.
16331         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16332         earlier.
16333         * lib/strerror_r.c (strerror_r): Likewise.
16334         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16335         behavior...
16336         (gl_FUNC_STRERROR_0): ...into new macro.
16337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16338         is overridden.
16339         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16340         * modules/strerror-override (Files): Add strerror.m4.
16341         (configure.ac): Also provide override for 0 when needed.
16342         * doc/posix-functions/strerror.texi (strerror): Document this.
16343         * doc/posix-functions/perror.texi (perror): Likewise.
16344
16345         perror: adjust array size
16346         * modules/perror (Depends-on): Add strerror-override.
16347         * lib/perror.c (perror): Use it to avoid magic number.
16348
16349         strerror-override: reduce size
16350         * lib/strerror-override.c (strerror_override): Use fewer lines.
16351
16352 2011-06-20  Bruno Haible  <bruno@clisp.org>
16353
16354         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16355         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16356
16357 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         alloca: port to compilers that can optimize like GCC 4.6.0
16360         * lib/alloca.c (find_stack_direction): New signature, taken from
16361         Autoconf git.  This works with GCC 4.6.0.  This code should never
16362         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16363         be used with other compilers that optimize as well as GCC 4.6.0 does.
16364         (alloca): Adjust to new signature.
16365         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16366         New macro, which patches Autoconf in a similar way.
16367
16368         c-stack: stop worrying about stack direction
16369         * lib/c-stack.c (find_stack_direction): Remove.
16370         (segv_handler): Don't worry about stack direction growth, as it's
16371         too much of a pain to configure this correctly, given how compilers
16372         are optimizing-away our stack-growth detection code.  Instead, assume
16373         that any access to just before or just after the stack is OK.
16374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16375         Don't require AC_FUNC_ALLOCA; no longer needed.
16376
16377 2011-06-20  Eric Blake  <eblake@redhat.com>
16378
16379         test-stat: don't allocate PATH_MAX bytes
16380         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16381         PATH_MAX-sized buffer.
16382         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16383         * modules/stat-tests (Depends-on): Likewise.
16384         * tests/test-fstatat.c (includes): Drop pathmax.h.
16385         * tests/test-stat.c (includes): Likewise.
16386         Reported by Bruno Haible.
16387
16388 2011-06-20  Bruno Haible  <bruno@clisp.org>
16389
16390         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16391         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16392         * lib/float.c: New file.
16393         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16394         REPLACE_FLOAT_LDBL.
16395         * modules/float (Files): Add lib/float.c.
16396         (configure.ac): Invoke AC_LIBOBJ.
16397         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16398
16399 2011-06-20  Bruno Haible  <bruno@clisp.org>
16400
16401         Tests for module 'float'.
16402         * modules/float-tests: New file.
16403         * tests/test-float.c: New file.
16404
16405 2011-06-19  Bruno Haible  <bruno@clisp.org>
16406
16407         isinf: Coding style.
16408         * lib/isinf.c: Use GNU coding style.
16409
16410 2011-06-19  Bruno Haible  <bruno@clisp.org>
16411
16412         linkat test: Avoid test failure on AIX 7.1.
16413         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16414         * tests/test-link.h (test_link): Likewise.
16415
16416 2011-06-19  Bruno Haible  <bruno@clisp.org>
16417
16418         pread test: Avoid test failure on OpenBSD 4.9.
16419         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16420
16421 2011-06-19  Bruno Haible  <bruno@clisp.org>
16422
16423         sprintf-posix: Fix test failure on AIX 7.1.
16424         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16425         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16426         on AIX.
16427         * doc/posix-functions/fprintf.texi: Likewise.
16428         * doc/posix-functions/printf.texi: Likewise.
16429         * doc/posix-functions/snprintf.texi: Likewise.
16430         * doc/posix-functions/sprintf.texi: Likewise.
16431         * doc/posix-functions/vdprintf.texi: Likewise.
16432         * doc/posix-functions/vfprintf.texi: Likewise.
16433         * doc/posix-functions/vprintf.texi: Likewise.
16434         * doc/posix-functions/vsnprintf.texi: Likewise.
16435         * doc/posix-functions/vsprintf.texi: Likewise.
16436
16437 2011-06-19  Bruno Haible  <bruno@clisp.org>
16438
16439         roundl-ieee: Fix test failure on AIX 7.1.
16440         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16441         * doc/posix-functions/roundl.texi: Mention problem with negative
16442         arguments.
16443
16444 2011-06-19  Bruno Haible  <bruno@clisp.org>
16445
16446         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16447         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16448         * doc/posix-functions/round.texi: Mention problem with negative
16449         arguments.
16450         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16451
16452 2011-06-19  Bruno Haible  <bruno@clisp.org>
16453
16454         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16456         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16457         * doc/posix-functions/roundf.texi: Mention problem with negative
16458         arguments.
16459         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16460
16461 2011-06-19  Bruno Haible  <bruno@clisp.org>
16462
16463         ceilf-ieee: Work around bug on MacOS X 10.5.
16464         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16465
16466         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16467         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16468         IEEE compliant, avoid compiler optimizations.
16469         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16470         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16471         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16472         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16473         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16474         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16475         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16477         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16478         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16479
16480 2011-06-19  Bruno Haible  <bruno@clisp.org>
16481
16482         ceilf-ieee: Work around bug on AIX 7.1.
16483         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16484         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16485
16486 2011-06-19  Bruno Haible  <bruno@clisp.org>
16487
16488         ceil-ieee: Work around bug on AIX 7.1.
16489         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16490         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16491
16492 2011-06-18  Bruno Haible  <bruno@clisp.org>
16493
16494         fsync test: Avoid test failure on MacOS X and AIX.
16495         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16496         EINVAL.
16497
16498 2011-06-18  Bruno Haible  <bruno@clisp.org>
16499
16500         openat, fdopendir tests: Fix link errors.
16501         * modules/openat-tests (Depends-on): Add progname.
16502         * modules/fdopendir-tests (Depends-on): Likewise.
16503         * tests/test-fchownat.c: Include progname.h.
16504         (main): Call set_program_name.
16505         * tests/test-fstatat.c: Include progname.h.
16506         (main): Call set_program_name.
16507         * tests/test-mkdirat.c: Include progname.h.
16508         (main): Call set_program_name.
16509         * tests/test-openat.c: Include progname.h.
16510         (main): Call set_program_name.
16511         * tests/test-unlinkat.c: Include progname.h.
16512         (main): Call set_program_name.
16513         * tests/test-fdopendir.c: Include progname.h.
16514         (main): Call set_program_name.
16515
16516 2011-06-18  Bruno Haible  <bruno@clisp.org>
16517
16518         Doc update.
16519         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16520         HP-UX.
16521         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16522
16523 2011-06-18  Bruno Haible  <bruno@clisp.org>
16524
16525         getcwd tests: Avoid compilation error on HP-UX 11.31.
16526         * modules/getcwd-tests (Depends-on): Add pathmax.
16527         * tests/test-getcwd.c: Include pathmax.h.
16528
16529 2011-06-18  Bruno Haible  <bruno@clisp.org>
16530
16531         isfinite, isinf: Fix link error on AIX 6 and 7.
16532         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16533         needed, also test the macro with a 'float' argument.
16534         * m4/isinf.m4 (gl_ISINF): Likewise.
16535
16536 2011-06-18  Bruno Haible  <bruno@clisp.org>
16537
16538         getloadavg: Don't clobber LIBS. Regression from previous commit.
16539         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16540         AC_CHECK_LIB from here...
16541         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16542         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16543         gl_func_getloadavg_done.
16544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16545
16546 2011-06-18  Bruno Haible  <bruno@clisp.org>
16547
16548         clean-temp: Improve documentation.
16549         * lib/clean-temp.h: Explain better how to use this module.
16550         Reported by John Darrington <john@darrington.wattle.id.au>.
16551
16552 2011-06-17  Bruno Haible  <bruno@clisp.org>
16553
16554         pread, pwrite: Avoid cc warning on AIX.
16555         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16556         (pwrite): Likewise.
16557
16558 2011-06-17  Bruno Haible  <bruno@clisp.org>
16559
16560         spawn-pipe tests: Fix link error.
16561         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16563
16564 2011-06-17  Bruno Haible  <bruno@clisp.org>
16565
16566         Tests: Remove unnecessary dependency.
16567         * modules/canonicalize-tests (Depends-on): Remove progname.
16568         * modules/chown-tests (Depends-on): Likewise.
16569         * modules/dirname-tests (Depends-on): Likewise.
16570         * modules/fdopendir-tests (Depends-on): Likewise.
16571         * modules/fdutimensat-tests (Depends-on): Likewise.
16572         * modules/hash-tests (Depends-on): Likewise.
16573         * modules/lchown-tests (Depends-on): Likewise.
16574         * modules/linkat-tests (Depends-on): Likewise.
16575         * modules/renameat-tests (Depends-on): Likewise.
16576         * modules/spawn-pipe-tests (Depends-on): Likewise.
16577         * modules/utimensat-tests (Depends-on): Likewise.
16578
16579 2011-06-17  Bruno Haible  <bruno@clisp.org>
16580
16581         spawn-pipe tests: Fix link error.
16582         * tests/test-spawn-pipe-child.c: Undefine fflush.
16583
16584 2011-06-17  Bruno Haible  <bruno@clisp.org>
16585
16586         Fix tests link errors.
16587         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16588         * modules/chown-tests (Makefile.am): Don't link test-chown with
16589         LIBINTL.
16590         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16591         LIBINTL.
16592         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16593         LIBINTL.
16594         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16595         LIBINTL.
16596
16597 2011-06-16  Bruno Haible  <bruno@clisp.org>
16598
16599         crypto/gc-sha1: Fix recent regression.
16600         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16601         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16602
16603         crypto/gc-md5: Fix recent regression.
16604         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16605
16606         crypto/gc-md4: Fix recent regression.
16607         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16608         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16609
16610         crypto/gc-arctwo: Fix recent regression.
16611         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16612         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16613
16614         crypto/gc-rijndael: Fix recent regression.
16615         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16616         (configure.ac): Invoke AC_LIBOBJ here.
16617         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16619
16620         crypto/gc-hmac-sha1: Fix recent regression.
16621         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16622         (configure.ac): Invoke AC_LIBOBJ here.
16623         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16625
16626         crypto/gc-hmac-md5: Fix recent regression.
16627         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16628         (configure.ac): Invoke AC_LIBOBJ here.
16629         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16631
16632         crypto/gc-des: Fix recent regression.
16633         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16634         (configure.ac): Invoke AC_LIBOBJ here.
16635         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16637
16638         crypto/gc-arcfour: Fix recent regression.
16639         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16640         (configure.ac): Invoke AC_LIBOBJ here.
16641         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16643
16644 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16645
16646         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16647         After the 2011-05-21 change, this macro requires
16648         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16650
16651 2011-06-16  Bruno Haible  <bruno@clisp.org>
16652
16653         fprintftime: Move AC_LIBOBJ invocations to module description.
16654         * m4/fprintftime.m4: Remove file.
16655         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16656         (configure.ac): Remove gl_FPRINTFTIME call.
16657         (Makefile.am): Augment lib_SOURCES.
16658         Reported by Jim Meyering.
16659
16660 2011-06-16  Bruno Haible  <bruno@clisp.org>
16661
16662         tmpfile-safer: Finish 2011-05-23 commit.
16663         * m4/stdio-safer.m4: Really remove file.
16664         Reported by Jim Meyering.
16665
16666 2011-06-16  Bruno Haible  <bruno@clisp.org>
16667
16668         syntax-check: Fix typo.
16669         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16670         printf-posix.m4.
16671         Reported by Jim Meyering.
16672
16673 2011-06-13  Jim Meyering  <meyering@redhat.com>
16674
16675         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16676         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16677
16678 2011-05-23  Bruno Haible  <bruno@clisp.org>
16679
16680         yesno: Move AC_LIBOBJ invocations to module description.
16681         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16682         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16683
16684 2011-05-23  Bruno Haible  <bruno@clisp.org>
16685
16686         xstrtol: Move AC_LIBOBJ invocations to module description.
16687         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16688         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16689
16690 2011-05-23  Bruno Haible  <bruno@clisp.org>
16691
16692         xstrtold: Move AC_LIBOBJ invocations to module description.
16693         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16694         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16695
16696 2011-05-23  Bruno Haible  <bruno@clisp.org>
16697
16698         xstrtod: Move AC_LIBOBJ invocations to module description.
16699         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16700         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16701
16702 2011-05-23  Bruno Haible  <bruno@clisp.org>
16703
16704         xnanosleep: Move AC_LIBOBJ invocations to module description.
16705         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16706         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16707
16708 2011-05-23  Bruno Haible  <bruno@clisp.org>
16709
16710         xgetcwd: Move AC_LIBOBJ invocations to module description.
16711         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16712         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16713
16714 2011-05-23  Bruno Haible  <bruno@clisp.org>
16715
16716         xalloc: Move AC_LIBOBJ invocations to module description.
16717         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16718         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16719
16720 2011-05-23  Bruno Haible  <bruno@clisp.org>
16721
16722         write-any-file: Move AC_LIBOBJ invocations to module description.
16723         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16724         invocation.
16725         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16726
16727 2011-05-23  Bruno Haible  <bruno@clisp.org>
16728
16729         utimens: Move AC_LIBOBJ invocations to module description.
16730         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16731         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16732
16733 2011-05-23  Bruno Haible  <bruno@clisp.org>
16734
16735         utimecmp: Move AC_LIBOBJ invocations to module description.
16736         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16737         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16738
16739 2011-05-23  Bruno Haible  <bruno@clisp.org>
16740
16741         userspec: Move AC_LIBOBJ invocations to module description.
16742         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16743         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16744
16745 2011-05-23  Bruno Haible  <bruno@clisp.org>
16746
16747         unlinkdir: Move AC_LIBOBJ invocations to module description.
16748         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16749         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16750
16751 2011-05-23  Bruno Haible  <bruno@clisp.org>
16752
16753         unistd-safer: Move AC_LIBOBJ invocations to module description.
16754         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16755         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16756
16757 2011-05-23  Bruno Haible  <bruno@clisp.org>
16758
16759         tempname: Move AC_LIBOBJ invocations to module description.
16760         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16761         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16762
16763 2011-05-23  Bruno Haible  <bruno@clisp.org>
16764
16765         strftime: Move AC_LIBOBJ invocations to module description.
16766         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16767         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16768
16769 2011-05-23  Bruno Haible  <bruno@clisp.org>
16770
16771         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16772         * m4/stdlib-safer.m4: Remove file.
16773         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16774         (configure.ac): Remove gl_STDLIB_SAFER call.
16775         (Makefile.am): Augment lib_SOURCES.
16776
16777 2011-05-23  Bruno Haible  <bruno@clisp.org>
16778
16779         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16780         * m4/stdio-safer.m4: Remove file.
16781         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16782         (configure.ac): Remove gl_TMPFILE_SAFER call.
16783         (Makefile.am): Augment lib_SOURCES.
16784
16785 2011-05-23  Bruno Haible  <bruno@clisp.org>
16786
16787         popen-safer: Move AC_LIBOBJ invocations to module description.
16788         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16789         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16790         (configure.ac): Remove gl_POPEN_SAFER call.
16791         (Makefile.am): Augment lib_SOURCES.
16792
16793 2011-05-23  Bruno Haible  <bruno@clisp.org>
16794
16795         freopen-safer: Move AC_LIBOBJ invocations to module description.
16796         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16797         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16798         (configure.ac): Remove gl_FREOPEN_SAFER call.
16799         (Makefile.am): Augment lib_SOURCES.
16800
16801 2011-05-23  Bruno Haible  <bruno@clisp.org>
16802
16803         fopen-safer: Move AC_LIBOBJ invocations to module description.
16804         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16805         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16806         (configure.ac): Remove gl_FOPEN_SAFER call.
16807         (Makefile.am): Augment lib_SOURCES.
16808
16809 2011-05-23  Bruno Haible  <bruno@clisp.org>
16810
16811         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16812         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16813         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16814
16815 2011-05-23  Bruno Haible  <bruno@clisp.org>
16816
16817         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16818         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16819         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16820
16821 2011-05-23  Bruno Haible  <bruno@clisp.org>
16822
16823         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16824         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16825         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16826
16827 2011-05-23  Bruno Haible  <bruno@clisp.org>
16828
16829         settime: Move AC_LIBOBJ invocations to module description.
16830         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16831         * modules/settime (Makefile.am): Augment lib_SOURCES.
16832
16833 2011-05-23  Bruno Haible  <bruno@clisp.org>
16834
16835         savedir: Move AC_LIBOBJ invocations to module description.
16836         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16837         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16838
16839 2011-05-23  Bruno Haible  <bruno@clisp.org>
16840
16841         save-cwd: Move AC_LIBOBJ invocations to module description.
16842         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16843         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16844
16845 2011-05-23  Bruno Haible  <bruno@clisp.org>
16846
16847         same: Move AC_LIBOBJ invocations to module description.
16848         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16849         * modules/same (Makefile.am): Augment lib_SOURCES.
16850
16851 2011-05-23  Bruno Haible  <bruno@clisp.org>
16852
16853         safe-write: Move AC_LIBOBJ invocations to module description.
16854         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16855         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16856         instead of gl_SAFE_WRITE.
16857         (Makefile.am): Augment lib_SOURCES.
16858
16859 2011-05-23  Bruno Haible  <bruno@clisp.org>
16860
16861         safe-read: Move AC_LIBOBJ invocations to module description.
16862         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16863         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16864         of gl_SAFE_READ.
16865         (Makefile.am): Augment lib_SOURCES.
16866
16867 2011-05-23  Bruno Haible  <bruno@clisp.org>
16868
16869         safe-alloc: Move AC_LIBOBJ invocations to module description.
16870         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16871         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16872
16873 2011-05-23  Bruno Haible  <bruno@clisp.org>
16874
16875         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16876         * m4/rijndael.m4: Remove file.
16877         * modules/crypto/rijndael (Files): Remove it.
16878         (configure.ac): Remove gl_RIJNDAEL call.
16879         (Makefile.am): Augment lib_SOURCES.
16880
16881 2011-05-23  Bruno Haible  <bruno@clisp.org>
16882
16883         readtokens: Move AC_LIBOBJ invocations to module description.
16884         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16885         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16886
16887 2011-05-23  Bruno Haible  <bruno@clisp.org>
16888
16889         read-file: Move AC_LIBOBJ invocations to module description.
16890         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16891         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16892         of gl_FUNC_READ_FILE.
16893         (Makefile.am): Augment lib_SOURCES.
16894
16895 2011-05-23  Bruno Haible  <bruno@clisp.org>
16896
16897         quotearg: Move AC_LIBOBJ invocations to module description.
16898         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16899         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16900
16901 2011-05-23  Bruno Haible  <bruno@clisp.org>
16902
16903         quote: Move AC_LIBOBJ invocations to module description.
16904         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16905         * modules/quote (Makefile.am): Augment lib_SOURCES.
16906
16907 2011-05-23  Bruno Haible  <bruno@clisp.org>
16908
16909         posixver: Move AC_LIBOBJ invocations to module description.
16910         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16911         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16912
16913 2011-05-23  Bruno Haible  <bruno@clisp.org>
16914
16915         posixtm: Move AC_LIBOBJ invocations to module description.
16916         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16917         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16918
16919 2011-05-23  Bruno Haible  <bruno@clisp.org>
16920
16921         physmem: Move AC_LIBOBJ invocations to module description.
16922         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16923         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16924
16925 2011-05-23  Bruno Haible  <bruno@clisp.org>
16926
16927         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16928         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16929         invocation.
16930         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16931
16932 2011-05-23  Bruno Haible  <bruno@clisp.org>
16933
16934         mpsort: Move AC_LIBOBJ invocations to module description.
16935         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16936         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16937
16938 2011-05-23  Bruno Haible  <bruno@clisp.org>
16939
16940         modechange: Move AC_LIBOBJ invocations to module description.
16941         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16942         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16943
16944 2011-05-23  Bruno Haible  <bruno@clisp.org>
16945
16946         mkdir-p: Move AC_LIBOBJ invocations to module description.
16947         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16948         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16949
16950 2011-05-23  Bruno Haible  <bruno@clisp.org>
16951
16952         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16953         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16954         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16955
16956 2011-05-23  Bruno Haible  <bruno@clisp.org>
16957
16958         mgetgroups: Move AC_LIBOBJ invocations to module description.
16959         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16960         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16961
16962 2011-05-23  Bruno Haible  <bruno@clisp.org>
16963
16964         memxor: Move AC_LIBOBJ invocations to module description.
16965         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16966         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16967
16968 2011-05-23  Bruno Haible  <bruno@clisp.org>
16969
16970         memcoll: Move AC_LIBOBJ invocations to module description.
16971         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16972         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16973
16974 2011-05-23  Bruno Haible  <bruno@clisp.org>
16975
16976         memcasecmp: Move AC_LIBOBJ invocations to module description.
16977         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16978         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16979
16980 2011-05-23  Bruno Haible  <bruno@clisp.org>
16981
16982         crypto/md5: Move AC_LIBOBJ invocations to module description.
16983         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16984         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16985
16986 2011-05-23  Bruno Haible  <bruno@clisp.org>
16987
16988         crypto/md4: Move AC_LIBOBJ invocations to module description.
16989         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16990         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16991
16992 2011-05-23  Bruno Haible  <bruno@clisp.org>
16993
16994         crypto/md2: Move AC_LIBOBJ invocations to module description.
16995         * m4/md2.m4: Remove file.
16996         * modules/crypto/md2 (Files): Remove it.
16997         (configure.ac): Remove gl_MD2 call.
16998         (Makefile.am): Augment lib_SOURCES.
16999
17000 2011-05-23  Bruno Haible  <bruno@clisp.org>
17001
17002         long-options: Move AC_LIBOBJ invocations to module description.
17003         * m4/long-options.m4: Remove file.
17004         * modules/long-options (Files): Remove it.
17005         (configure.ac): Remove gl_LONG_OPTIONS call.
17006         (Makefile.am): Augment lib_SOURCES.
17007
17008 2011-05-23  Bruno Haible  <bruno@clisp.org>
17009
17010         i-ring: Move AC_LIBOBJ invocations to module description.
17011         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17012         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17013
17014 2011-05-23  Bruno Haible  <bruno@clisp.org>
17015
17016         idcache: Move AC_LIBOBJ invocations to module description.
17017         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17018         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17019
17020 2011-05-23  Bruno Haible  <bruno@clisp.org>
17021
17022         human: Move AC_LIBOBJ invocations to module description.
17023         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17024         * modules/human (Makefile.am): Augment lib_SOURCES.
17025
17026 2011-05-23  Bruno Haible  <bruno@clisp.org>
17027
17028         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17029         * m4/hmac-sha1.m4: Remove file.
17030         * modules/crypto/hmac-sha1 (Files): Remove it.
17031         (configure.ac): Remove gl_HMAC_SHA1 call.
17032         (Makefile.am): Augment lib_SOURCES.
17033
17034 2011-05-23  Bruno Haible  <bruno@clisp.org>
17035
17036         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17037         * m4/hmac-md5.m4: Remove file.
17038         * modules/crypto/hmac-md5 (Files): Remove it.
17039         (configure.ac): Remove gl_HMAC_MD5 call.
17040         (Makefile.am): Augment lib_SOURCES.
17041
17042 2011-05-23  Bruno Haible  <bruno@clisp.org>
17043
17044         hash: Move AC_LIBOBJ invocations to module description.
17045         * m4/hash.m4: Remove file.
17046         * modules/hash (Files): Remove it.
17047         (configure.ac): Remove gl_HASH call.
17048         (Makefile.am): Augment lib_SOURCES.
17049
17050 2011-05-23  Bruno Haible  <bruno@clisp.org>
17051
17052         hard-locale: Move AC_LIBOBJ invocations to module description.
17053         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17054         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17055
17056 2011-05-23  Bruno Haible  <bruno@clisp.org>
17057
17058         getugroups: Move AC_LIBOBJ invocations to module description.
17059         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17060         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17061
17062 2011-05-23  Bruno Haible  <bruno@clisp.org>
17063
17064         gettime: Move AC_LIBOBJ invocations to module description.
17065         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17066         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17067
17068 2011-05-23  Bruno Haible  <bruno@clisp.org>
17069
17070         getndelim2: Move AC_LIBOBJ invocations to module description.
17071         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17072         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17073
17074 2011-05-23  Bruno Haible  <bruno@clisp.org>
17075
17076         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17077         * m4/gc-pbkdf2-sha1.m4: Remove file.
17078         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17079         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17080         (Makefile.am): Augment lib_SOURCES.
17081
17082 2011-05-23  Bruno Haible  <bruno@clisp.org>
17083
17084         fts: Move AC_LIBOBJ invocations to module description.
17085         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17086         * modules/fts (configure.ac): ... to here.
17087
17088 2011-05-23  Bruno Haible  <bruno@clisp.org>
17089
17090         file-type: Move AC_LIBOBJ invocations to module description.
17091         * m4/file-type.m4: Remove file.
17092         * modules/file-type (Files): Remove it.
17093         (configure.ac): Remove gl_FILE_TYPE call.
17094         (Makefile.am): Augment lib_SOURCES.
17095
17096 2011-05-23  Bruno Haible  <bruno@clisp.org>
17097
17098         filenamecat*: Respect rules for use of AC_LIBOBJ.
17099         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17100         Remove AC_LIBOBJ invocation.
17101         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17102         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17103
17104 2011-05-23  Bruno Haible  <bruno@clisp.org>
17105
17106         filemode: Move AC_LIBOBJ invocations to module description.
17107         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17108         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17109
17110 2011-05-23  Bruno Haible  <bruno@clisp.org>
17111
17112         openat-safer: Move AC_LIBOBJ invocations to module description.
17113         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17114         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17115
17116 2011-05-23  Bruno Haible  <bruno@clisp.org>
17117
17118         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17119         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17120         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17121
17122 2011-05-23  Bruno Haible  <bruno@clisp.org>
17123
17124         exclude: Move AC_LIBOBJ invocations to module description.
17125         * m4/exclude.m4: Remove file.
17126         * modules/exclude (Files): Remove it.
17127         (configure.ac): Remove gl_EXCLUDE call.
17128         (Makefile.am): Augment lib_SOURCES.
17129
17130 2011-05-23  Bruno Haible  <bruno@clisp.org>
17131
17132         dirname*: Respect rules for use of AC_LIBOBJ.
17133         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17134         invocations.
17135         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17136         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17137
17138 2011-05-23  Bruno Haible  <bruno@clisp.org>
17139
17140         dirent-safer: Move AC_LIBOBJ invocations to module description.
17141         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17142         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17143
17144 2011-05-23  Bruno Haible  <bruno@clisp.org>
17145
17146         crypto/des: Move AC_LIBOBJ invocations to module description.
17147         * m4/des.m4: Remove file.
17148         * modules/crypto/des (Files): Remove it.
17149         (configure.ac): Remove gl_DES call.
17150         (Makefile.am): Augment lib_SOURCES.
17151
17152 2011-05-23  Bruno Haible  <bruno@clisp.org>
17153
17154         cycle-check: Move AC_LIBOBJ invocations to module description.
17155         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17156         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17157
17158 2011-05-23  Bruno Haible  <bruno@clisp.org>
17159
17160         c-strtold: Move AC_LIBOBJ invocations to module description.
17161         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17162         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17163
17164 2011-05-23  Bruno Haible  <bruno@clisp.org>
17165
17166         c-strtod: Move AC_LIBOBJ invocations to module description.
17167         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17168         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17169
17170 2011-05-23  Bruno Haible  <bruno@clisp.org>
17171
17172         crc: Move AC_LIBOBJ invocations to module description.
17173         * m4/crc.m4: Remove file.
17174         * modules/crc (Files): Remove it.
17175         (configure.ac): Remove gl_CRC call.
17176         (Makefile.am): Augment lib_SOURCES.
17177
17178 2011-05-23  Bruno Haible  <bruno@clisp.org>
17179
17180         close-stream: Move AC_LIBOBJ invocations to module description.
17181         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17182         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17183
17184 2011-05-23  Bruno Haible  <bruno@clisp.org>
17185
17186         closeout: Move AC_LIBOBJ invocations to module description.
17187         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17188         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17189
17190 2011-05-23  Bruno Haible  <bruno@clisp.org>
17191
17192         closein: Move AC_LIBOBJ invocations to module description.
17193         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17194         * modules/closein (Makefile.am): Augment lib_SOURCES.
17195
17196 2011-05-23  Bruno Haible  <bruno@clisp.org>
17197
17198         cloexec: Move AC_LIBOBJ invocations to module description.
17199         * m4/cloexec.m4: Remove file.
17200         * modules/cloexec (Files): Remove it.
17201         (configure.ac): Remove gl_CLOEXEC call.
17202         (Makefile.am): Augment lib_SOURCES.
17203
17204 2011-05-23  Bruno Haible  <bruno@clisp.org>
17205
17206         check-version: Move AC_LIBOBJ invocations to module description.
17207         * m4/check-version.m4: Remove file.
17208         * modules/check-version (Files): Remove it.
17209         (configure.ac): Remove gl_CHECK_VERSION call.
17210         (Makefile.am): Augment lib_SOURCES.
17211
17212 2011-05-23  Bruno Haible  <bruno@clisp.org>
17213
17214         chdir-safer: Move AC_LIBOBJ invocations to module description.
17215         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17216         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17217
17218 2011-05-23  Bruno Haible  <bruno@clisp.org>
17219
17220         canonicalize: Move AC_LIBOBJ invocations to module description.
17221         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17222         AC_LIBOBJ invocation.
17223         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17224
17225 2011-05-23  Bruno Haible  <bruno@clisp.org>
17226
17227         canon-host: Move AC_LIBOBJ invocations to module description.
17228         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17229         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17230         instead of gl_CANON_HOST.
17231         (Makefile.am): Augment lib_SOURCES.
17232
17233 2011-05-23  Bruno Haible  <bruno@clisp.org>
17234
17235         backupfile: Move AC_LIBOBJ invocations to module description.
17236         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17237         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17238
17239 2011-05-23  Bruno Haible  <bruno@clisp.org>
17240
17241         argmatch: Move AC_LIBOBJ invocations to module description.
17242         * m4/argmatch.m4: Remove file.
17243         * modules/argmatch (Files): Remove it.
17244         (configure.ac): Remove gl_ARGMATCH call.
17245         (Makefile.am): Augment lib_SOURCES.
17246
17247 2011-05-23  Bruno Haible  <bruno@clisp.org>
17248
17249         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17250         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17251         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17252
17253 2011-05-23  Bruno Haible  <bruno@clisp.org>
17254
17255         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17256         * m4/arcfour.m4: Remove file.
17257         * modules/crypto/arcfour (Files): Remove it.
17258         (configure.ac): Remove gl_ARCFOUR call.
17259         (Makefile.am): Augment lib_SOURCES.
17260
17261 2011-05-22  Bruno Haible  <bruno@clisp.org>
17262
17263         write: Move AC_LIBOBJ invocations to module description.
17264         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17265         * modules/write (configure.ac): ... to here.
17266
17267 2011-05-22  Bruno Haible  <bruno@clisp.org>
17268
17269         wmemset: Move AC_LIBOBJ invocations to module description.
17270         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17271         here...
17272         * modules/wmemset (configure.ac): ... to here.
17273
17274 2011-05-22  Bruno Haible  <bruno@clisp.org>
17275
17276         wmemmove: Move AC_LIBOBJ invocations to module description.
17277         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17278         here...
17279         * modules/wmemmove (configure.ac): ... to here.
17280
17281 2011-05-22  Bruno Haible  <bruno@clisp.org>
17282
17283         wmemcpy: Move AC_LIBOBJ invocations to module description.
17284         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17285         here...
17286         * modules/wmemcpy (configure.ac): ... to here.
17287
17288 2011-05-22  Bruno Haible  <bruno@clisp.org>
17289
17290         wmemcmp: Move AC_LIBOBJ invocations to module description.
17291         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17292         here...
17293         * modules/wmemcmp (configure.ac): ... to here.
17294
17295 2011-05-22  Bruno Haible  <bruno@clisp.org>
17296
17297         wmemchr: Move AC_LIBOBJ invocations to module description.
17298         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17299         here...
17300         * modules/wmemchr (configure.ac): ... to here.
17301
17302 2011-05-22  Bruno Haible  <bruno@clisp.org>
17303
17304         wcswidth: Move AC_LIBOBJ invocations to module description.
17305         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17306         here...
17307         * modules/wcswidth (configure.ac): ... to here.
17308
17309 2011-05-22  Bruno Haible  <bruno@clisp.org>
17310
17311         wcwidth: Respect rules for use of AC_LIBOBJ.
17312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17313         invocation from here...
17314         * modules/wcwidth (configure.ac): ... to here.
17315         (Depends-on): Update conditions.
17316
17317 2011-05-22  Bruno Haible  <bruno@clisp.org>
17318
17319         wctype: Move AC_LIBOBJ invocations to module description.
17320         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17321         invocation from here...
17322         * modules/wctype (configure.ac): ... to here.
17323         (Depends-on): Update conditions.
17324
17325 2011-05-22  Bruno Haible  <bruno@clisp.org>
17326
17327         wctrans: Move AC_LIBOBJ invocations to module description.
17328         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17329         invocation from here...
17330         * modules/wctrans (configure.ac): ... to here.
17331
17332 2011-05-22  Bruno Haible  <bruno@clisp.org>
17333
17334         wctomb: Move AC_LIBOBJ invocations to module description.
17335         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17336         invocations from here...
17337         * modules/wctomb (configure.ac): ... to here.
17338
17339 2011-05-22  Bruno Haible  <bruno@clisp.org>
17340
17341         wctob: Move AC_LIBOBJ invocations to module description.
17342         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17343         gl_PREREQ_WCTOB invocations from here...
17344         * modules/wctob (configure.ac): ... to here.
17345         (Depends-on): Update conditions.
17346
17347 2011-05-22  Bruno Haible  <bruno@clisp.org>
17348
17349         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17350         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17351         here...
17352         * modules/wcsxfrm (configure.ac): ... to here.
17353
17354 2011-05-22  Bruno Haible  <bruno@clisp.org>
17355
17356         wcstok: Move AC_LIBOBJ invocations to module description.
17357         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17358         * modules/wcstok (configure.ac): ... to here.
17359
17360 2011-05-22  Bruno Haible  <bruno@clisp.org>
17361
17362         wcsstr: Move AC_LIBOBJ invocations to module description.
17363         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17364         * modules/wcsstr (configure.ac): ... to here.
17365
17366 2011-05-22  Bruno Haible  <bruno@clisp.org>
17367
17368         wcsspn: Move AC_LIBOBJ invocations to module description.
17369         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17370         * modules/wcsspn (configure.ac): ... to here.
17371
17372 2011-05-22  Bruno Haible  <bruno@clisp.org>
17373
17374         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17375         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17376         gl_PREREQ_WCSRTOMBS invocations from here...
17377         * modules/wcsrtombs (configure.ac): ... to here.
17378
17379 2011-05-22  Bruno Haible  <bruno@clisp.org>
17380
17381         wcsrchr: Move AC_LIBOBJ invocations to module description.
17382         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17383         here...
17384         * modules/wcsrchr (configure.ac): ... to here.
17385
17386 2011-05-22  Bruno Haible  <bruno@clisp.org>
17387
17388         wcspbrk: Move AC_LIBOBJ invocations to module description.
17389         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17390         here...
17391         * modules/wcspbrk (configure.ac): ... to here.
17392
17393 2011-05-22  Bruno Haible  <bruno@clisp.org>
17394
17395         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17396         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17397         gl_PREREQ_WCSNRTOMBS invocations from here...
17398         * modules/wcsnrtombs (configure.ac): ... to here.
17399
17400 2011-05-22  Bruno Haible  <bruno@clisp.org>
17401
17402         wcsnlen: Move AC_LIBOBJ invocations to module description.
17403         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17404         here...
17405         * modules/wcsnlen (configure.ac): ... to here.
17406
17407 2011-05-22  Bruno Haible  <bruno@clisp.org>
17408
17409         wcsncpy: Move AC_LIBOBJ invocations to module description.
17410         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17411         here...
17412         * modules/wcsncpy (configure.ac): ... to here.
17413
17414 2011-05-22  Bruno Haible  <bruno@clisp.org>
17415
17416         wcsncmp: Move AC_LIBOBJ invocations to module description.
17417         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17418         here...
17419         * modules/wcsncmp (configure.ac): ... to here.
17420
17421 2011-05-22  Bruno Haible  <bruno@clisp.org>
17422
17423         wcsncat: Move AC_LIBOBJ invocations to module description.
17424         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17425         here...
17426         * modules/wcsncat (configure.ac): ... to here.
17427
17428 2011-05-22  Bruno Haible  <bruno@clisp.org>
17429
17430         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17431         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17432         from here...
17433         * modules/wcsncasecmp (configure.ac): ... to here.
17434
17435 2011-05-22  Bruno Haible  <bruno@clisp.org>
17436
17437         wcslen: Move AC_LIBOBJ invocations to module description.
17438         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17439         * modules/wcslen (configure.ac): ... to here.
17440
17441 2011-05-22  Bruno Haible  <bruno@clisp.org>
17442
17443         wcsdup: Move AC_LIBOBJ invocations to module description.
17444         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17445         * modules/wcsdup (configure.ac): ... to here.
17446
17447 2011-05-22  Bruno Haible  <bruno@clisp.org>
17448
17449         wcscspn: Move AC_LIBOBJ invocations to module description.
17450         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17451         here...
17452         * modules/wcscspn (configure.ac): ... to here.
17453
17454 2011-05-22  Bruno Haible  <bruno@clisp.org>
17455
17456         wcscpy: Move AC_LIBOBJ invocations to module description.
17457         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17458         * modules/wcscpy (configure.ac): ... to here.
17459
17460 2011-05-22  Bruno Haible  <bruno@clisp.org>
17461
17462         wcscoll: Move AC_LIBOBJ invocations to module description.
17463         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17464         here...
17465         * modules/wcscoll (configure.ac): ... to here.
17466
17467 2011-05-22  Bruno Haible  <bruno@clisp.org>
17468
17469         wcscmp: Move AC_LIBOBJ invocations to module description.
17470         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17471         * modules/wcscmp (configure.ac): ... to here.
17472
17473 2011-05-22  Bruno Haible  <bruno@clisp.org>
17474
17475         wcschr: Move AC_LIBOBJ invocations to module description.
17476         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17477         * modules/wcschr (configure.ac): ... to here.
17478
17479 2011-05-22  Bruno Haible  <bruno@clisp.org>
17480
17481         wcscat: Move AC_LIBOBJ invocations to module description.
17482         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17483         * modules/wcscat (configure.ac): ... to here.
17484
17485 2011-05-22  Bruno Haible  <bruno@clisp.org>
17486
17487         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17488         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17489         here...
17490         * modules/wcscasecmp (configure.ac): ... to here.
17491
17492 2011-05-22  Bruno Haible  <bruno@clisp.org>
17493
17494         wcrtomb: Move AC_LIBOBJ invocations to module description.
17495         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17496         invocations from here...
17497         * modules/wcrtomb (configure.ac): ... to here.
17498
17499 2011-05-22  Bruno Haible  <bruno@clisp.org>
17500
17501         wcpncpy: Move AC_LIBOBJ invocations to module description.
17502         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17503         here...
17504         * modules/wcpncpy (configure.ac): ... to here.
17505
17506 2011-05-22  Bruno Haible  <bruno@clisp.org>
17507
17508         wcpcpy: Move AC_LIBOBJ invocations to module description.
17509         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17510         * modules/wcpcpy (configure.ac): ... to here.
17511
17512 2011-05-22  Bruno Haible  <bruno@clisp.org>
17513
17514         waitpid: Move AC_LIBOBJ invocations to module description.
17515         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17516         invocation from here...
17517         * modules/waitpid (configure.ac): ... to here.
17518
17519 2011-05-22  Bruno Haible  <bruno@clisp.org>
17520
17521         utimensat: Move AC_LIBOBJ invocations to module description.
17522         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17523         here...
17524         * modules/utimensat (configure.ac): ... to here.
17525
17526 2011-05-22  Bruno Haible  <bruno@clisp.org>
17527
17528         usleep: Move AC_LIBOBJ invocations to module description.
17529         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17530         here...
17531         * modules/usleep (configure.ac): ... to here.
17532
17533 2011-05-22  Bruno Haible  <bruno@clisp.org>
17534
17535         unlockpt: Move AC_LIBOBJ invocations to module description.
17536         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17537         gl_PREREQ_UNLOCKPT invocations from here...
17538         * modules/unlockpt (configure.ac): ... to here.
17539
17540 2011-05-22  Bruno Haible  <bruno@clisp.org>
17541
17542         unlink: Respect rules for use of AC_LIBOBJ.
17543         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17544         * modules/unlink (configure.ac): ... to here.
17545
17546 2011-05-22  Bruno Haible  <bruno@clisp.org>
17547
17548         uname: Move AC_LIBOBJ invocations to module description.
17549         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17550         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17551         here...
17552         * modules/uname (configure.ac): ... to here.
17553
17554 2011-05-22  Bruno Haible  <bruno@clisp.org>
17555
17556         ttyname_r: Move AC_LIBOBJ invocations to module description.
17557         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17558         gl_PREREQ_TTYNAME_R invocations from here...
17559         * modules/ttyname_r (configure.ac): ... to here.
17560
17561 2011-05-22  Bruno Haible  <bruno@clisp.org>
17562
17563         tsearch: Move AC_LIBOBJ invocations to module description.
17564         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17565         invocations from here...
17566         * modules/tsearch (configure.ac): ... to here.
17567
17568 2011-05-22  Bruno Haible  <bruno@clisp.org>
17569
17570         towctrans: Move AC_LIBOBJ invocations to module description.
17571         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17572         AC_LIBOBJ invocation from here...
17573         * modules/towctrans (configure.ac): ... to here.
17574
17575 2011-05-22  Bruno Haible  <bruno@clisp.org>
17576
17577         tmpfile: Move AC_LIBOBJ invocations to module description.
17578         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17579         invocations from here...
17580         * modules/tmpfile (configure.ac): ... to here.
17581
17582 2011-05-22  Bruno Haible  <bruno@clisp.org>
17583
17584         times: Move AC_LIBOBJ invocations to module description.
17585         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17586         * modules/times (configure.ac): ... to here.
17587
17588 2011-05-22  Bruno Haible  <bruno@clisp.org>
17589
17590         time_r: Move AC_LIBOBJ invocations to module description.
17591         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17592         invocations from here...
17593         * modules/time_r (configure.ac): ... to here.
17594
17595 2011-05-22  Bruno Haible  <bruno@clisp.org>
17596
17597         timegm: Move AC_LIBOBJ invocations to module description.
17598         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17599         invocations from here...
17600         * modules/timegm (configure.ac): ... to here.
17601
17602 2011-05-22  Bruno Haible  <bruno@clisp.org>
17603
17604         tcgetsid: Move AC_LIBOBJ invocations to module description.
17605         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17606         and gl_PREREQ_TCGETSID invocations from here...
17607         * modules/tcgetsid (configure.ac): ... to here.
17608         (Depends-on): Update conditions.
17609
17610 2011-05-22  Bruno Haible  <bruno@clisp.org>
17611
17612         symlinkat: Move AC_LIBOBJ invocations to module description.
17613         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17614         here...
17615         * modules/symlinkat (configure.ac): ... to here.
17616
17617 2011-05-22  Bruno Haible  <bruno@clisp.org>
17618
17619         symlink: Move AC_LIBOBJ invocations to module description.
17620         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17621         here...
17622         * modules/symlink (configure.ac): ... to here.
17623
17624 2011-05-22  Bruno Haible  <bruno@clisp.org>
17625
17626         strverscmp: Move AC_LIBOBJ invocations to module description.
17627         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17629         from here...
17630         * modules/strverscmp (configure.ac): ... to here.
17631
17632 2011-05-22  Bruno Haible  <bruno@clisp.org>
17633
17634         strtok_r: Move AC_LIBOBJ invocations to module description.
17635         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17636         and gl_PREREQ_STRTOK_R invocations from here...
17637         * modules/strtok_r (configure.ac): ... to here.
17638         (Depends-on): Update conditions.
17639
17640 2011-05-22  Bruno Haible  <bruno@clisp.org>
17641
17642         strtoumax: Move AC_LIBOBJ invocations to module description.
17643         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17645         from here...
17646         * modules/strtoumax (configure.ac): ... to here.
17647
17648 2011-05-22  Bruno Haible  <bruno@clisp.org>
17649
17650         strtoimax: Move AC_LIBOBJ invocations to module description.
17651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17652         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17653         from here...
17654         * modules/strtoimax (configure.ac): ... to here.
17655
17656 2011-05-22  Bruno Haible  <bruno@clisp.org>
17657
17658         strtoull: Move AC_LIBOBJ invocations to module description.
17659         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17661         from here...
17662         * modules/strtoull (configure.ac): ... to here.
17663
17664 2011-05-22  Bruno Haible  <bruno@clisp.org>
17665
17666         strtoll: Move AC_LIBOBJ invocations to module description.
17667         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17669         here...
17670         * modules/strtoll (configure.ac): ... to here.
17671
17672 2011-05-22  Bruno Haible  <bruno@clisp.org>
17673
17674         strtoul: Move AC_LIBOBJ invocations to module description.
17675         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17676         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17677         * modules/strtoul (configure.ac): ... to here.
17678
17679 2011-05-22  Bruno Haible  <bruno@clisp.org>
17680
17681         strtol: Move AC_LIBOBJ invocations to module description.
17682         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17683         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17684         * modules/strtol (configure.ac): ... to here.
17685
17686 2011-05-22  Bruno Haible  <bruno@clisp.org>
17687
17688         strtod: Move AC_LIBOBJ invocations to module description.
17689         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17690         invocations from here...
17691         * modules/strtod (configure.ac): ... to here.
17692
17693 2011-05-22  Bruno Haible  <bruno@clisp.org>
17694
17695         strstr*: Move AC_LIBOBJ invocations to module description.
17696         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17697         invocations from here...
17698         * modules/strstr-simple (configure.ac): ... to here.
17699         * modules/strstr (configure.ac): ... and here.
17700
17701 2011-05-22  Bruno Haible  <bruno@clisp.org>
17702
17703         strsignal: Move AC_LIBOBJ invocations to module description.
17704         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17705         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17706         * modules/strsignal (configure.ac): ... to here.
17707         (Depends-on): Update conditions.
17708
17709 2011-05-22  Bruno Haible  <bruno@clisp.org>
17710
17711         strsep: Move AC_LIBOBJ invocations to module description.
17712         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17714         here...
17715         * modules/strsep (configure.ac): ... to here.
17716
17717 2011-05-22  Bruno Haible  <bruno@clisp.org>
17718
17719         strptime: Move AC_LIBOBJ invocations to module description.
17720         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17721         gl_PREREQ_STRPTIME invocations from here...
17722         * modules/strptime (configure.ac): ... to here.
17723
17724 2011-05-22  Bruno Haible  <bruno@clisp.org>
17725
17726         strpbrk: Move AC_LIBOBJ invocations to module description.
17727         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17728         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17729         here...
17730         * modules/strpbrk (configure.ac): ... to here.
17731
17732 2011-05-22  Bruno Haible  <bruno@clisp.org>
17733
17734         strnlen: Move AC_LIBOBJ invocations to module description.
17735         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17736         invocations from here...
17737         * modules/strnlen (configure.ac): ... to here.
17738
17739 2011-05-22  Bruno Haible  <bruno@clisp.org>
17740
17741         strndup: Move AC_LIBOBJ invocations to module description.
17742         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17743         invocations from here...
17744         * modules/strndup (configure.ac): ... to here.
17745         (Depends-on): Update conditions.
17746
17747 2011-05-22  Bruno Haible  <bruno@clisp.org>
17748
17749         strncat: Move AC_LIBOBJ invocations to module description.
17750         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17751         invocations from here...
17752         * modules/strncat (configure.ac): ... to here.
17753
17754 2011-05-22  Bruno Haible  <bruno@clisp.org>
17755
17756         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17757         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17758         invocations from here...
17759         * modules/strdup (configure.ac): ... to here.
17760         * modules/strdup-posix (configure.ac): ... and here.
17761
17762 2011-05-22  Bruno Haible  <bruno@clisp.org>
17763
17764         strcspn: Move AC_LIBOBJ invocations to module description.
17765         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17767         here...
17768         * modules/strcspn (configure.ac): ... to here.
17769
17770 2011-05-22  Bruno Haible  <bruno@clisp.org>
17771
17772         strchrnul: Move AC_LIBOBJ invocations to module description.
17773         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17774         gl_PREREQ_STRCHRNUL invocations from here...
17775         * modules/strchrnul (configure.ac): ... to here.
17776
17777 2011-05-22  Bruno Haible  <bruno@clisp.org>
17778
17779         strcasestr*: Move AC_LIBOBJ invocations to module description.
17780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17781         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17782         * modules/strcasestr-simple (configure.ac): ... to here.
17783         * modules/strcasestr (configure.ac): ... and here.
17784
17785 2011-05-22  Bruno Haible  <bruno@clisp.org>
17786
17787         strcase: Move AC_LIBOBJ invocations to module description.
17788         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17789         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17790         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17791         gl_PREREQ_STRNCASECMP invocations from here...
17792         * modules/strcase (configure.ac): ... to here.
17793
17794 2011-05-22  Bruno Haible  <bruno@clisp.org>
17795
17796         stpncpy: Move AC_LIBOBJ invocations to module description.
17797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17798         here...
17799         * modules/stpncpy (configure.ac): ... to here.
17800
17801 2011-05-22  Bruno Haible  <bruno@clisp.org>
17802
17803         stpcpy: Move AC_LIBOBJ invocations to module description.
17804         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17806         here...
17807         * modules/stpcpy (configure.ac): ... to here.
17808
17809 2011-05-21  Bruno Haible  <bruno@clisp.org>
17810
17811         stat: Move AC_LIBOBJ invocations to module description.
17812         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17813         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17814         here...
17815         * modules/stat (configure.ac): ... to here.
17816
17817 2011-05-21  Bruno Haible  <bruno@clisp.org>
17818
17819         sleep: Move AC_LIBOBJ invocations to module description.
17820         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17821         * modules/sleep (configure.ac): ... to here.
17822
17823 2011-05-21  Bruno Haible  <bruno@clisp.org>
17824
17825         signbit: Move AC_LIBOBJ invocations to module description.
17826         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17827         * modules/signbit (configure.ac): ... to here.
17828
17829 2011-05-21  Bruno Haible  <bruno@clisp.org>
17830
17831         sigprocmask: Move AC_LIBOBJ invocations to module description.
17832         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17833         gl_PREREQ_SIGPROMASK invocations from here...
17834         * modules/sigprocmask (configure.ac): ... to here.
17835
17836 2011-05-21  Bruno Haible  <bruno@clisp.org>
17837
17838         sigaction: Move AC_LIBOBJ invocations to module description.
17839         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17840         gl_PREREQ_SIGACTION invocations from here...
17841         * modules/sigaction (configure.ac): ... to here.
17842
17843 2011-05-21  Bruno Haible  <bruno@clisp.org>
17844
17845         sig2str: Move AC_LIBOBJ invocations to module description.
17846         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17847         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17848         here...
17849         * modules/sig2str (configure.ac): ... to here.
17850
17851 2011-05-21  Bruno Haible  <bruno@clisp.org>
17852
17853         setlocale: Move AC_LIBOBJ invocations to module description.
17854         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17855         gl_PREREQ_SETLOCALE invocations from here...
17856         * modules/setlocale (configure.ac): ... to here.
17857
17858 2011-05-21  Bruno Haible  <bruno@clisp.org>
17859
17860         unsetenv: Move AC_LIBOBJ invocations to module description.
17861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17862         and gl_PREREQ_UNSETENV invocations from here...
17863         * modules/unsetenv (configure.ac): ... to here.
17864         (Depends-on): Update.
17865
17866 2011-05-21  Bruno Haible  <bruno@clisp.org>
17867
17868         setenv: Move AC_LIBOBJ invocations to module description.
17869         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17870         here...
17871         * modules/setenv (configure.ac): ... to here.
17872
17873 2011-05-21  Bruno Haible  <bruno@clisp.org>
17874
17875         selinux-h: Move AC_LIBOBJ invocations to module description.
17876         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17877         AC_LIBOBJ invocation from here...
17878         * modules/selinux-h (configure.ac): ... to here.
17879
17880 2011-05-21  Bruno Haible  <bruno@clisp.org>
17881
17882         select: Respect rules for use of AC_LIBOBJ.
17883         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17884         here...
17885         * modules/select (configure.ac): ... to here.
17886
17887 2011-05-21  Bruno Haible  <bruno@clisp.org>
17888
17889         scandir: Move AC_LIBOBJ invocations to module description.
17890         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17891         invocations from here...
17892         * modules/scandir (configure.ac): ... to here.
17893
17894 2011-05-21  Bruno Haible  <bruno@clisp.org>
17895
17896         rpmatch: Move AC_LIBOBJ invocations to module description.
17897         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17899         here...
17900         * modules/rpmatch (configure.ac): ... to here.
17901
17902 2011-05-21  Bruno Haible  <bruno@clisp.org>
17903
17904         rmdir: Respect rules for use of AC_LIBOBJ.
17905         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17906         * modules/rmdir (configure.ac): ... to here.
17907
17908 2011-05-21  Bruno Haible  <bruno@clisp.org>
17909
17910         renameat: Move AC_LIBOBJ invocations to module description.
17911         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17912         here...
17913         * modules/renameat (configure.ac): ... to here.
17914
17915 2011-05-21  Bruno Haible  <bruno@clisp.org>
17916
17917         rename: Respect rules for use of AC_LIBOBJ.
17918         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17919         here...
17920         * modules/rename (configure.ac): ... to here.
17921
17922 2011-05-21  Bruno Haible  <bruno@clisp.org>
17923
17924         remove: Move AC_LIBOBJ invocations to module description.
17925         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17926         here...
17927         * modules/remove (configure.ac): ... to here.
17928
17929 2011-05-21  Bruno Haible  <bruno@clisp.org>
17930
17931         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17932         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17933         macro.
17934         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17935         * modules/relocatable-lib (configure.ac): ... to here.
17936         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17937         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17938
17939 2011-05-21  Bruno Haible  <bruno@clisp.org>
17940
17941         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17942         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17943         here...
17944         * modules/relocatable-prog (configure.ac): ... to here.
17945
17946 2011-05-21  Bruno Haible  <bruno@clisp.org>
17947
17948         regex: Move AC_LIBOBJ invocations to module description.
17949         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17950         invocations from here...
17951         * modules/regex (configure.ac): ... to here.
17952
17953 2011-05-21  Bruno Haible  <bruno@clisp.org>
17954
17955         realloc-*: Move AC_LIBOBJ invocations to module description.
17956         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17957         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17958         AC_LIBOBJ invocations from here...
17959         * modules/realloc-gnu (configure.ac): ... to here.
17960         * modules/realloc-posix (configure.ac): ... and here.
17961
17962 2011-05-21  Bruno Haible  <bruno@clisp.org>
17963
17964         readutmp: Move AC_LIBOBJ invocations to module description.
17965         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17966         * modules/readutmp (configure.ac): ... to here.
17967
17968 2011-05-21  Bruno Haible  <bruno@clisp.org>
17969
17970         readlinkat: Move AC_LIBOBJ invocations to module description.
17971         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17972         here...
17973         * modules/readlinkat (configure.ac): ... to here.
17974
17975 2011-05-21  Bruno Haible  <bruno@clisp.org>
17976
17977         readlink: Move AC_LIBOBJ invocations to module description.
17978         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17979         gl_PREREQ_READLINK invocations from here...
17980         * modules/readlink (configure.ac): ... to here.
17981
17982 2011-05-21  Bruno Haible  <bruno@clisp.org>
17983
17984         readline: Move AC_LIBOBJ invocations to module description.
17985         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17986         gl_PREREQ_READLINE invocations from here...
17987         * modules/readline (configure.ac): ... to here.
17988
17989 2011-05-21  Bruno Haible  <bruno@clisp.org>
17990
17991         read: Move AC_LIBOBJ invocations to module description.
17992         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17993         * modules/read (configure.ac): ... to here.
17994
17995 2011-05-21  Bruno Haible  <bruno@clisp.org>
17996
17997         rawmemchr: Move AC_LIBOBJ invocations to module description.
17998         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17999         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18000         from here...
18001         * modules/rawmemchr (configure.ac): ... to here.
18002
18003 2011-05-21  Bruno Haible  <bruno@clisp.org>
18004
18005         random_r: Move AC_LIBOBJ invocations to module description.
18006         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18007         gl_PREREQ_RANDOM_R invocations from here...
18008         * modules/random_r (configure.ac): ... to here.
18009
18010 2011-05-21  Bruno Haible  <bruno@clisp.org>
18011
18012         pwrite: Move AC_LIBOBJ invocations to module description.
18013         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18014         * modules/pwrite (configure.ac): ... to here.
18015
18016 2011-05-21  Bruno Haible  <bruno@clisp.org>
18017
18018         putenv: Move AC_LIBOBJ invocations to module description.
18019         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18020         * modules/putenv (configure.ac): ... to here.
18021
18022 2011-05-21  Bruno Haible  <bruno@clisp.org>
18023
18024         login_tty: Move AC_LIBOBJ invocations to module description.
18025         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18026         * modules/login_tty (configure.ac): ... to here.
18027
18028 2011-05-21  Bruno Haible  <bruno@clisp.org>
18029
18030         openpty: Move AC_LIBOBJ invocations to module description.
18031         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18032         * modules/openpty (configure.ac): ... to here.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         forkpty: Move AC_LIBOBJ invocations to module description.
18037         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18038         * modules/forkpty (configure.ac): ... to here.
18039
18040 2011-05-21  Bruno Haible  <bruno@clisp.org>
18041
18042         ptsname: Move AC_LIBOBJ invocations to module description.
18043         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18044         invocations from here...
18045         * modules/ptsname (configure.ac): ... to here.
18046
18047 2011-05-21  Bruno Haible  <bruno@clisp.org>
18048
18049         pread: Move AC_LIBOBJ invocations to module description.
18050         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18051         * modules/pread (configure.ac): ... to here.
18052
18053 2011-05-21  Bruno Haible  <bruno@clisp.org>
18054
18055         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18056         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18057         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18058         * modules/posix_spawn (configure.ac): ... to here.
18059         * modules/posix_spawnp (configure.ac): ... and here.
18060
18061 2011-05-21  Bruno Haible  <bruno@clisp.org>
18062
18063         popen: Move AC_LIBOBJ invocations to module description.
18064         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18065         invocations from here...
18066         * modules/popen (configure.ac): ... to here.
18067
18068 2011-05-21  Bruno Haible  <bruno@clisp.org>
18069
18070         poll: Move AC_LIBOBJ invocations to module description.
18071         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18072         invocations from here...
18073         * modules/poll (configure.ac): ... to here.
18074
18075 2011-05-21  Bruno Haible  <bruno@clisp.org>
18076
18077         pipe-posix: Move AC_LIBOBJ invocations to module description.
18078         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18079         * modules/pipe-posix (configure.ac): ... to here.
18080
18081 2011-05-21  Bruno Haible  <bruno@clisp.org>
18082
18083         openat: Respect rules for use of AC_LIBOBJ.
18084         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18085         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18086         * modules/openat (configure.ac): ... to here.
18087
18088 2011-05-21  Bruno Haible  <bruno@clisp.org>
18089
18090         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18091         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18092         invocation from here...
18093         * modules/obstack-printf (configure.ac): ... to here.
18094         * modules/obstack-printf-posix (configure.ac): ... and here.
18095
18096 2011-05-21  Bruno Haible  <bruno@clisp.org>
18097
18098         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18099         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18100         from here...
18101         * modules/nl_langinfo (configure.ac): ... to here.
18102
18103 2011-05-21  Bruno Haible  <bruno@clisp.org>
18104
18105         nanosleep: Move AC_LIBOBJ invocations to module description.
18106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18107         gl_PREREQ_NANOSLEEP invocations from here...
18108         * modules/nanosleep (configure.ac): ... to here.
18109
18110 2011-05-21  Bruno Haible  <bruno@clisp.org>
18111
18112         mountlist: Move AC_LIBOBJ invocations to module description.
18113         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18114         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18115         * modules/mountlist (configure.ac): ... to here.
18116
18117 2011-05-21  Bruno Haible  <bruno@clisp.org>
18118
18119         mktime: Respect rules for use of AC_LIBOBJ.
18120         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18121         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18122         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18123         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18124         * modules/mktime (configure.ac): ... to here.
18125         * modules/mktime-internal (configure.ac): ... and here.
18126         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18127
18128 2011-05-21  Bruno Haible  <bruno@clisp.org>
18129
18130         mkstemps: Move AC_LIBOBJ invocations to module description.
18131         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18132         here...
18133         * modules/mkstemps (configure.ac): ... to here.
18134
18135 2011-05-21  Bruno Haible  <bruno@clisp.org>
18136
18137         mkstemp: Move AC_LIBOBJ invocations to module description.
18138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18139         gl_PREREQ_MKSTEMP invocations from here...
18140         * modules/mkstemp (configure.ac): ... to here.
18141
18142 2011-05-21  Bruno Haible  <bruno@clisp.org>
18143
18144         mkostemps: Move AC_LIBOBJ invocations to module description.
18145         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18146         here...
18147         * modules/mkostemps (configure.ac): ... to here.
18148
18149 2011-05-21  Bruno Haible  <bruno@clisp.org>
18150
18151         mkostemp: Move AC_LIBOBJ invocations to module description.
18152         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18153         gl_PREREQ_MKOSTEMP invocations from here...
18154         * modules/mkostemp (configure.ac): ... to here.
18155
18156 2011-05-21  Bruno Haible  <bruno@clisp.org>
18157
18158         mknod: Move AC_LIBOBJ invocations to module description.
18159         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18160         * modules/mknod (configure.ac): ... to here.
18161
18162 2011-05-21  Bruno Haible  <bruno@clisp.org>
18163
18164         mkfifoat: Move AC_LIBOBJ invocations to module description.
18165         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18166         here...
18167         * modules/mkfifoat (configure.ac): ... to here.
18168
18169 2011-05-21  Bruno Haible  <bruno@clisp.org>
18170
18171         mkfifo: Respect rules for use of AC_LIBOBJ.
18172         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18173         here...
18174         * modules/mkfifo (configure.ac): ... to here.
18175
18176 2011-05-21  Bruno Haible  <bruno@clisp.org>
18177
18178         mkdtemp: Move AC_LIBOBJ invocations to module description.
18179         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18180         invocations from here...
18181         * modules/mkdtemp (configure.ac): ... to here.
18182
18183 2011-05-21  Bruno Haible  <bruno@clisp.org>
18184
18185         mkdir: Move AC_LIBOBJ invocations to module description.
18186         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18187         * modules/mkdir (configure.ac): ... to here.
18188
18189 2011-05-21  Bruno Haible  <bruno@clisp.org>
18190
18191         memset: Move AC_LIBOBJ invocations to module description.
18192         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18194         here...
18195         * modules/memset (configure.ac): ... to here.
18196
18197 2011-05-21  Bruno Haible  <bruno@clisp.org>
18198
18199         memrchr: Move AC_LIBOBJ invocations to module description.
18200         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18202         here...
18203         * modules/memrchr (configure.ac): ... to here.
18204
18205 2011-05-21  Bruno Haible  <bruno@clisp.org>
18206
18207         mempcpy: Move AC_LIBOBJ invocations to module description.
18208         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18210         here...
18211         * modules/mempcpy (configure.ac): ... to here.
18212
18213 2011-05-21  Bruno Haible  <bruno@clisp.org>
18214
18215         memmove: Move AC_LIBOBJ invocations to module description.
18216         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18218         here...
18219         * modules/memmove (configure.ac): ... to here.
18220
18221 2011-05-21  Bruno Haible  <bruno@clisp.org>
18222
18223         memmem*: Move AC_LIBOBJ invocations to module description.
18224         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18225         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18226         here...
18227         (gl_FUNC_MEMMEM): ... and here...
18228         * modules/memmem-simple (configure.ac): ... to here.
18229         * modules/memmem (configure.ac): ... and here.
18230
18231 2011-05-21  Bruno Haible  <bruno@clisp.org>
18232
18233         memcpy: Move AC_LIBOBJ invocations to module description.
18234         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18236         here...
18237         * modules/memcpy (configure.ac): ... to here.
18238
18239 2011-05-21  Bruno Haible  <bruno@clisp.org>
18240
18241         memcmp: Simplify autoconf macro.
18242         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18243         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18244         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18245
18246 2011-05-21  Bruno Haible  <bruno@clisp.org>
18247
18248         memcmp: Move AC_LIBOBJ invocations to module description.
18249         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18250         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18251         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18252         * modules/memcmp (configure.ac): ... to here.
18253         (Depends-on): Update conditions.
18254
18255 2011-05-21  Bruno Haible  <bruno@clisp.org>
18256
18257         memchr: Respect rules for use of AC_LIBOBJ.
18258         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18259         invocations from here...
18260         * modules/memchr (configure.ac): ... to here.
18261
18262 2011-05-21  Bruno Haible  <bruno@clisp.org>
18263
18264         mbtowc: Move AC_LIBOBJ invocations to module description.
18265         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18266         invocations from here...
18267         * modules/mbtowc (configure.ac): ... to here.
18268
18269 2011-05-21  Bruno Haible  <bruno@clisp.org>
18270
18271         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18272         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18273         gl_PREREQ_MBSRTOWCS invocations from here...
18274         * modules/mbsrtowcs (configure.ac): ... to here.
18275
18276 2011-05-21  Bruno Haible  <bruno@clisp.org>
18277
18278         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18279         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18280         gl_PREREQ_MBSNRTOWCS invocations from here...
18281         * modules/mbsnrtowcs (configure.ac): ... to here.
18282
18283 2011-05-21  Bruno Haible  <bruno@clisp.org>
18284
18285         mbsinit: Move AC_LIBOBJ invocations to module description.
18286         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18287         invocations from here...
18288         * modules/mbsinit (configure.ac): ... to here.
18289
18290 2011-05-21  Bruno Haible  <bruno@clisp.org>
18291
18292         mbrlen: Move AC_LIBOBJ invocations to module description.
18293         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18294         invocations from here...
18295         * modules/mbrlen (configure.ac): ... to here.
18296
18297 2011-05-21  Bruno Haible  <bruno@clisp.org>
18298
18299         mbrtowc: Respect rules for use of AC_LIBOBJ.
18300         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18301         invocations from here...
18302         * modules/mbrtowc (configure.ac): ... to here.
18303
18304 2011-05-21  Bruno Haible  <bruno@clisp.org>
18305
18306         malloc-*: Move AC_LIBOBJ invocations to module description.
18307         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18308         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18309         AC_LIBOBJ invocations from here...
18310         * modules/malloc-gnu (configure.ac): ... to here.
18311         * modules/malloc-posix (configure.ac): ... and here.
18312
18313 2011-05-21  Bruno Haible  <bruno@clisp.org>
18314
18315         lstat, openat: Respect rules for use of AC_LIBOBJ.
18316         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18317         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18318         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18319         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18320         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18321         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18322         here.
18323         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18324
18325 2011-05-21  Bruno Haible  <bruno@clisp.org>
18326
18327         lseek: Move AC_LIBOBJ invocations to module description.
18328         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18329         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18330         * modules/lseek (configure.ac): ... to here.
18331
18332 2011-05-21  Bruno Haible  <bruno@clisp.org>
18333
18334         linkat: Move AC_LIBOBJ invocations to module description.
18335         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18336         here...
18337         * modules/linkat (configure.ac): ... to here.
18338
18339 2011-05-21  Bruno Haible  <bruno@clisp.org>
18340
18341         link: Respect rules for use of AC_LIBOBJ.
18342         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18343         * modules/link (configure.ac): ... to here.
18344
18345 2011-05-21  Bruno Haible  <bruno@clisp.org>
18346
18347         lchown: Move AC_LIBOBJ invocations to module description.
18348         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18349         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18350         * modules/lchown (configure.ac): ... to here.
18351
18352 2011-05-21  Bruno Haible  <bruno@clisp.org>
18353
18354         iswctype: Move AC_LIBOBJ invocations to module description.
18355         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18356         here...
18357         * modules/iswctype (configure.ac): ... to here.
18358
18359 2011-05-21  Bruno Haible  <bruno@clisp.org>
18360
18361         iswblank: Move AC_LIBOBJ invocations to module description.
18362         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18363         here...
18364         * modules/iswblank (configure.ac): ... to here.
18365
18366 2011-05-21  Bruno Haible  <bruno@clisp.org>
18367
18368         atanl: Move AC_LIBOBJ invocations to module description.
18369         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18370         * modules/atanl (configure.ac): ... to here.
18371
18372 2011-05-21  Bruno Haible  <bruno@clisp.org>
18373
18374         acosl: Move AC_LIBOBJ invocations to module description.
18375         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18376         * modules/acosl (configure.ac): ... to here.
18377
18378 2011-05-21  Bruno Haible  <bruno@clisp.org>
18379
18380         asinl: Respect rules for use of AC_LIBOBJ.
18381         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18382         * modules/asinl (configure.ac): ... to here.
18383
18384 2011-05-21  Bruno Haible  <bruno@clisp.org>
18385
18386         tanl: Move AC_LIBOBJ invocations to module description.
18387         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18388         * modules/tanl (configure.ac): ... to here.
18389
18390 2011-05-21  Bruno Haible  <bruno@clisp.org>
18391
18392         cosl: Move AC_LIBOBJ invocations to module description.
18393         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18394         * modules/cosl (configure.ac): ... to here.
18395
18396 2011-05-21  Bruno Haible  <bruno@clisp.org>
18397
18398         sinl: Move AC_LIBOBJ invocations to module description.
18399         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18400         * modules/sinl (configure.ac): ... to here.
18401
18402 2011-05-21  Bruno Haible  <bruno@clisp.org>
18403
18404         logl: Move AC_LIBOBJ invocations to module description.
18405         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18406         * modules/logl (configure.ac): ... to here.
18407
18408 2011-05-21  Bruno Haible  <bruno@clisp.org>
18409
18410         expl: Move AC_LIBOBJ invocations to module description.
18411         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18412         * modules/expl (configure.ac): ... to here.
18413
18414 2011-05-21  Bruno Haible  <bruno@clisp.org>
18415
18416         roundl: Move AC_LIBOBJ invocations to module description.
18417         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18418         * modules/roundl (configure.ac): ... to here.
18419
18420 2011-05-21  Bruno Haible  <bruno@clisp.org>
18421
18422         round: Move AC_LIBOBJ invocations to module description.
18423         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18424         * modules/round (configure.ac): ... to here.
18425
18426 2011-05-21  Bruno Haible  <bruno@clisp.org>
18427
18428         roundf: Move AC_LIBOBJ invocations to module description.
18429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18430         * modules/roundf (configure.ac): ... to here.
18431
18432 2011-05-21  Bruno Haible  <bruno@clisp.org>
18433
18434         truncl: Move AC_LIBOBJ invocations to module description.
18435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18436         * modules/truncl (configure.ac): ... to here.
18437
18438 2011-05-21  Bruno Haible  <bruno@clisp.org>
18439
18440         trunc: Move AC_LIBOBJ invocations to module description.
18441         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18442         * modules/trunc (configure.ac): ... to here.
18443
18444 2011-05-21  Bruno Haible  <bruno@clisp.org>
18445
18446         truncf: Move AC_LIBOBJ invocations to module description.
18447         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18448         * modules/truncf (configure.ac): ... to here.
18449
18450 2011-05-21  Bruno Haible  <bruno@clisp.org>
18451
18452         ceill: Move AC_LIBOBJ invocations to module description.
18453         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18454         * modules/ceill (configure.ac): ... to here.
18455
18456 2011-05-21  Bruno Haible  <bruno@clisp.org>
18457
18458         ceil: Move AC_LIBOBJ invocations to module description.
18459         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18460         * modules/ceil (configure.ac): ... to here.
18461
18462 2011-05-21  Bruno Haible  <bruno@clisp.org>
18463
18464         ceilf: Move AC_LIBOBJ invocations to module description.
18465         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18466         * modules/ceilf (configure.ac): ... to here.
18467
18468 2011-05-21  Bruno Haible  <bruno@clisp.org>
18469
18470         floorl: Respect rules for use of AC_LIBOBJ.
18471         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18472         * modules/floorl (configure.ac): ... to here.
18473
18474 2011-05-21  Bruno Haible  <bruno@clisp.org>
18475
18476         floor: Respect rules for use of AC_LIBOBJ.
18477         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18478         * modules/floor (configure.ac): ... to here.
18479
18480 2011-05-21  Bruno Haible  <bruno@clisp.org>
18481
18482         floorf: Move AC_LIBOBJ invocations to module description.
18483         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18484         * modules/floorf (configure.ac): ... to here.
18485
18486 2011-05-20  Bruno Haible  <bruno@clisp.org>
18487
18488         sqrtl: Respect rules for use of AC_LIBOBJ.
18489         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18490         * modules/sqrtl (configure.ac): ... to here.
18491
18492 2011-05-20  Bruno Haible  <bruno@clisp.org>
18493
18494         ldexpl: Respect rules for use of AC_LIBOBJ.
18495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18496         * modules/ldexpl (configure.ac): ... to here.
18497
18498 2011-05-20  Bruno Haible  <bruno@clisp.org>
18499
18500         frexpl*: Respect rules for use of AC_LIBOBJ.
18501         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18502         invocation from here...
18503         * modules/frexpl (configure.ac): ... to here.
18504         * modules/frexpl-nolibm (configure.ac): ... and here.
18505
18506 2011-05-20  Bruno Haible  <bruno@clisp.org>
18507
18508         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18509         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18510         invocation from here...
18511         * modules/frexp (configure.ac): ... to here.
18512         * modules/frexp-nolibm (configure.ac): ... and here.
18513
18514 2011-05-20  Bruno Haible  <bruno@clisp.org>
18515
18516         isnan: Respect rules for use of AC_LIBOBJ.
18517         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18518         invocations here.
18519         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18520         REPLACE_ISNAN.
18521         * modules/isnand (configure.ac): Likewise.
18522         * modules/isnanl (configure.ac): Likewise.
18523
18524 2011-05-20  Bruno Haible  <bruno@clisp.org>
18525
18526         isnanl*: Respect rules for use of AC_LIBOBJ.
18527         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18528         invocation from here...
18529         * modules/isnanl (configure.ac): ... to here.
18530         * modules/isnanl-nolibm (configure.ac): ... and here.
18531
18532 2011-05-20  Bruno Haible  <bruno@clisp.org>
18533
18534         isnand*: Move AC_LIBOBJ invocations to module description.
18535         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18536         invocation from here...
18537         * modules/isnand (configure.ac): ... to here.
18538         * modules/isnand-nolibm (configure.ac): ... and here.
18539
18540 2011-05-20  Bruno Haible  <bruno@clisp.org>
18541
18542         isnanf*: Move AC_LIBOBJ invocations to module description.
18543         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18544         invocation from here...
18545         * modules/isnanf (configure.ac): ... to here.
18546         * modules/isnanf-nolibm (configure.ac): ... and here.
18547
18548 2011-05-20  Bruno Haible  <bruno@clisp.org>
18549
18550         isnan*: Separate the AC_LIBOBJ invocations.
18551         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18552         AC_LIBOBJ invocation.
18553         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18554         here.
18555         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18556         AC_LIBOBJ invocation.
18557         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18558         here.
18559         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18560         AC_LIBOBJ invocation.
18561         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18562         here.
18563         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18564
18565 2011-05-08  Bruno Haible  <bruno@clisp.org>
18566
18567         isinf: Move AC_LIBOBJ invocations to module description.
18568         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18569         * modules/isinf (configure.ac): ... to here.
18570
18571 2011-05-08  Bruno Haible  <bruno@clisp.org>
18572
18573         isfinite: Move AC_LIBOBJ invocations to module description.
18574         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18575         * modules/isfinite (configure.ac): ... to here.
18576
18577 2011-05-08  Bruno Haible  <bruno@clisp.org>
18578
18579         isblank: Move AC_LIBOBJ invocations to module description.
18580         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18581         here...
18582         * modules/isblank (configure.ac): ... to here.
18583
18584 2011-05-08  Bruno Haible  <bruno@clisp.org>
18585
18586         isapipe: Move AC_LIBOBJ invocations to module description.
18587         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18588         gl_PREREQ_ISAPIPE invocations from here...
18589         * modules/isapipe (configure.ac): ... to here.
18590         (Depends-on): Update condition.
18591
18592 2011-05-08  Bruno Haible  <bruno@clisp.org>
18593
18594         ioctl: Move AC_LIBOBJ invocations to module description.
18595         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18596         invocations from here...
18597         * modules/ioctl (configure.ac): ... to here.
18598         (Depends-on): Update condition.
18599
18600 2011-05-08  Bruno Haible  <bruno@clisp.org>
18601
18602         imaxdiv: Move AC_LIBOBJ invocations to module description.
18603         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18604         invocations from here...
18605         * modules/imaxdiv (configure.ac): ... to here.
18606
18607 2011-05-08  Bruno Haible  <bruno@clisp.org>
18608
18609         imaxabs: Move AC_LIBOBJ invocations to module description.
18610         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18611         invocations from here...
18612         * modules/imaxabs (configure.ac): ... to here.
18613
18614 2011-05-08  Bruno Haible  <bruno@clisp.org>
18615
18616         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18618         AC_LIBOBJ invocations from here...
18619         * modules/getaddrinfo (configure.ac): ... to here.
18620         (Depends-on): Add conditions.
18621
18622 2011-05-08  Bruno Haible  <bruno@clisp.org>
18623
18624         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18625         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18626         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18627         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18628         (gl_PREREQ_INET_PTON): ... from here.
18629         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18630         gl_PREREQ_INET_PTON here.
18631         (Depends-on): Update condition.
18632
18633 2011-05-08  Bruno Haible  <bruno@clisp.org>
18634
18635         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18636         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18637         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18638         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18639         (gl_PREREQ_INET_NTOP): ... from here.
18640         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18641         gl_PREREQ_INET_NTOP here.
18642         (Depends-on): Update condition.
18643
18644 2011-05-08  Bruno Haible  <bruno@clisp.org>
18645
18646         iconv_open: Move AC_LIBOBJ invocations to module description.
18647         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18648         AC_LIBOBJ invocations from here...
18649         * modules/iconv_open (configure.ac): ... to here.
18650
18651 2011-05-08  Bruno Haible  <bruno@clisp.org>
18652
18653         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18654         If module 'iconv_open' is among the main modules and module
18655         'iconv_open-utf' is among the tests dependencies, then
18656         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18657         return the special iconv_t values. Therefore iconv() and iconv_close()
18658         must support these special iconv_t values, already in lib, not only in
18659         tests.
18660         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18661         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18662         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18663         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18664         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18665         (Depends-on): Add the dependencies of iconv_open-utf.
18666         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18667         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18668         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18669
18670 2011-05-08  Bruno Haible  <bruno@clisp.org>
18671
18672         group-member: Move AC_LIBOBJ invocations to module description.
18673         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18674         gl_PREREQ_GROUP_MEMBER invocations from here...
18675         * modules/group-member (configure.ac): ... to here.
18676
18677 2011-05-08  Bruno Haible  <bruno@clisp.org>
18678
18679         grantpt: Move AC_LIBOBJ invocations to module description.
18680         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18681         invocations from here...
18682         * modules/grantpt (configure.ac): ... to here.
18683
18684 2011-05-08  Bruno Haible  <bruno@clisp.org>
18685
18686         glob: Move AC_LIBOBJ invocations to module description.
18687         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18688         from here...
18689         * modules/glob (configure.ac): ... to here.
18690
18691 2011-05-08  Bruno Haible  <bruno@clisp.org>
18692
18693         getusershell: Move AC_LIBOBJ invocations to module description.
18694         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18695         Move AC_LIBOBJ invocation from here...
18696         * modules/getusershell (configure.ac): ... to here.
18697         (Depends-on): Update condition.
18698
18699 2011-05-08  Bruno Haible  <bruno@clisp.org>
18700
18701         gettimeofday: Move AC_LIBOBJ invocations to module description.
18702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18703         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18704         gl_PREREQ_GETTIMEOFDAY invocations from here...
18705         * modules/gettimeofday (configure.ac): ... to here.
18706
18707 2011-05-08  Bruno Haible  <bruno@clisp.org>
18708
18709         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18710         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18711         just gl_FUNC_TZSET.
18712         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18713         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18714         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18715         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18716
18717 2011-05-08  Bruno Haible  <bruno@clisp.org>
18718
18719         getsubopt: Move AC_LIBOBJ invocations to module description.
18720         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18721         gl_PREREQ_GETSUBOPT invocations from here...
18722         * modules/getsubopt (configure.ac): ... to here.
18723
18724 2011-05-08  Bruno Haible  <bruno@clisp.org>
18725
18726         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18727         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18728         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18729         * modules/getpass-gnu (configure.ac): ... to here.
18730
18731 2011-05-08  Bruno Haible  <bruno@clisp.org>
18732
18733         getpass: Move AC_LIBOBJ invocations to module description.
18734         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18735         gl_PREREQ_GETPASS invocations from here...
18736         * modules/getpass (configure.ac): ... to here.
18737
18738 2011-05-08  Bruno Haible  <bruno@clisp.org>
18739
18740         getpagesize: Move AC_LIBOBJ invocations to module description.
18741         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18742         from here...
18743         * modules/getpagesize (configure.ac): ... to here.
18744
18745 2011-05-08  Bruno Haible  <bruno@clisp.org>
18746
18747         getopt: Move AC_LIBOBJ invocations to module description.
18748         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18749         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18750         invocations from here...
18751         * modules/getopt-gnu (configure.ac): ... to here.
18752         * modules/getopt-posix (configure.ac): ... and here.
18753         (Depends-on): Update condition.
18754
18755 2011-05-08  Bruno Haible  <bruno@clisp.org>
18756
18757         getopt, argp: Respect rules for use of AC_LIBOBJ.
18758         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18759         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18760         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18761         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18762
18763 2011-05-08  Bruno Haible  <bruno@clisp.org>
18764
18765         getlogin_r: Move AC_LIBOBJ invocations to module description.
18766         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18767         gl_PREREQ_GETLOGIN_R invocations from here...
18768         * modules/getlogin_r (configure.ac): ... to here.
18769
18770 2011-05-08  Bruno Haible  <bruno@clisp.org>
18771
18772         getlogin: Move AC_LIBOBJ invocations to module description.
18773         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18774         here...
18775         * modules/getlogin (configure.ac): ... to here.
18776
18777 2011-05-08  Bruno Haible  <bruno@clisp.org>
18778
18779         getloadavg: Move AC_LIBOBJ invocations to module description.
18780         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18781         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18782         * modules/getloadavg (configure.ac): ... to here.
18783
18784 2011-05-08  Bruno Haible  <bruno@clisp.org>
18785
18786         gethrxtime: Move AC_LIBOBJ invocations to module description.
18787         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18788         LIB_GETHRXTIME from here...
18789         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18790         invocations from here...
18791         * modules/gethrxtime (configure.ac): ... to here.
18792
18793 2011-05-08  Bruno Haible  <bruno@clisp.org>
18794
18795         gethostname: Move AC_LIBOBJ invocations to module description.
18796         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18797         gl_PREREQ_GETHOSTNAME invocations from here...
18798         * modules/gethostname (configure.ac): ... to here.
18799
18800 2011-05-08  Bruno Haible  <bruno@clisp.org>
18801
18802         getgroups: Move AC_LIBOBJ invocations to module description.
18803         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18804         here...
18805         * modules/getgroups (configure.ac): ... to here.
18806
18807 2011-05-08  Bruno Haible  <bruno@clisp.org>
18808
18809         getdtablesize: Move AC_LIBOBJ invocations to module description.
18810         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18811         invocation from here...
18812         * modules/getdtablesize (configure.ac): ... to here.
18813
18814 2011-05-08  Bruno Haible  <bruno@clisp.org>
18815
18816         getdomainname: Move AC_LIBOBJ invocations to module description.
18817         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18818         gl_PREREQ_GETDOMAINNAME invocations from here...
18819         * modules/getdomainname (configure.ac): ... to here.
18820
18821 2011-05-08  Bruno Haible  <bruno@clisp.org>
18822
18823         getline: Move AC_LIBOBJ invocations to module description.
18824         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18825         invocations from here...
18826         * modules/getline (configure.ac): ... to here.
18827
18828 2011-05-08  Bruno Haible  <bruno@clisp.org>
18829
18830         getline: Simplify.
18831         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18832         It's already handled through the module dependency.
18833
18834 2011-05-08  Bruno Haible  <bruno@clisp.org>
18835
18836         getdelim: Move AC_LIBOBJ invocations to module description.
18837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18838         and gl_PREREQ_GETDELIM invocations from here...
18839         * modules/getdelim (configure.ac): ... to here.
18840         (Depends-on): Fix condition.
18841
18842 2011-05-08  Bruno Haible  <bruno@clisp.org>
18843
18844         getcwd: Move AC_LIBOBJ invocations to module description.
18845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18846         invocations from here...
18847         * modules/getcwd (configure.ac): ... to here.
18848
18849 2011-05-08  Bruno Haible  <bruno@clisp.org>
18850
18851         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18852         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18853         here...
18854         * modules/getcwd-lgpl (configure.ac): ... to here.
18855
18856 2011-05-07  Bruno Haible  <bruno@clisp.org>
18857
18858         crypto/gc: Move AC_LIBOBJ invocations to module description.
18859         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18860         * modules/crypto/gc (configure.ac): ... to here.
18861
18862 2011-05-07  Bruno Haible  <bruno@clisp.org>
18863
18864         fwriting: Move AC_LIBOBJ invocations to module description.
18865         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18866         here...
18867         * modules/fwriting (configure.ac): ... to here.
18868
18869 2011-05-07  Bruno Haible  <bruno@clisp.org>
18870
18871         fwritable: Move AC_LIBOBJ invocations to module description.
18872         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18873         here...
18874         * modules/fwritable (configure.ac): ... to here.
18875
18876 2011-05-07  Bruno Haible  <bruno@clisp.org>
18877
18878         futimens: Move AC_LIBOBJ invocations to module description.
18879         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18880         here...
18881         * modules/futimens (configure.ac): ... to here.
18882
18883 2011-05-07  Bruno Haible  <bruno@clisp.org>
18884
18885         ftruncate: Move AC_LIBOBJ invocations to module description.
18886         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18887         gl_PREREQ_FTRUNCATE invocations from here...
18888         * modules/ftruncate (configure.ac): ... to here.
18889
18890 2011-05-07  Bruno Haible  <bruno@clisp.org>
18891
18892         fsync: Move AC_LIBOBJ invocations to module description.
18893         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18894         invocations from here...
18895         * modules/fsync (configure.ac): ... to here.
18896
18897 2011-05-07  Bruno Haible  <bruno@clisp.org>
18898
18899         fsusage: Move AC_LIBOBJ invocations to module description.
18900         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18901         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18902         * modules/fsusage (configure.ac): ... to here.
18903
18904 2011-05-07  Bruno Haible  <bruno@clisp.org>
18905
18906         freopen: Move AC_LIBOBJ invocations to module description.
18907         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18908         invocations from here...
18909         * modules/freopen (configure.ac): ... to here.
18910
18911 2011-05-07  Bruno Haible  <bruno@clisp.org>
18912
18913         free: Move AC_LIBOBJ invocations to module description.
18914         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18915         invocations from here...
18916         * modules/free (configure.ac): ... to here.
18917
18918 2011-05-07  Bruno Haible  <bruno@clisp.org>
18919
18920         freadable: Move AC_LIBOBJ invocations to module description.
18921         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18922         here...
18923         * modules/freadable (configure.ac): ... to here.
18924
18925 2011-05-07  Bruno Haible  <bruno@clisp.org>
18926
18927         fpurge: Move AC_LIBOBJ invocations to module description.
18928         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18929         invocations from here...
18930         * modules/fpurge (configure.ac): ... to here.
18931
18932 2011-05-07  Bruno Haible  <bruno@clisp.org>
18933
18934         fpending: Move AC_LIBOBJ invocations to module description.
18935         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18936         gl_FUNC_FPENDING.
18937         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18938         invocations from here...
18939         * modules/fpending (configure.ac): ... to here.
18940
18941 2011-05-07  Bruno Haible  <bruno@clisp.org>
18942
18943         fopen: Move AC_LIBOBJ invocations to module description.
18944         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18945         invocations from here...
18946         * modules/fopen (configure.ac): ... to here.
18947
18948 2011-05-07  Bruno Haible  <bruno@clisp.org>
18949
18950         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18951         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18952         gl_FUNC_FNMATCH_POSIX.
18953         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18954         invocations from here...
18955         * modules/fnmatch (configure.ac): ... to here.
18956         * modules/fnmatch-gnu (configure.ac): ... and here.
18957
18958 2011-05-07  Bruno Haible  <bruno@clisp.org>
18959
18960         flock: Move AC_LIBOBJ invocations to module description.
18961         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18962         invocations from here...
18963         * modules/flock (configure.ac): ... to here.
18964
18965 2011-05-07  Bruno Haible  <bruno@clisp.org>
18966
18967         fileblocks: Move AC_LIBOBJ invocations to module description.
18968         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18969         gl_PREREQ_FILEBLOCKS invocations from here...
18970         * modules/fileblocks (configure.ac): ... to here.
18971
18972 2011-05-06  Bruno Haible  <bruno@clisp.org>
18973
18974         fflush: Move AC_LIBOBJ invocations to module description.
18975         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18976         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18977         invocations from here...
18978         * modules/fflush (configure.ac): ... to here.
18979
18980 2011-05-06  Bruno Haible  <bruno@clisp.org>
18981
18982         fdopendir: Move AC_LIBOBJ invocations to module description.
18983         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18984         here...
18985         * modules/fdopendir (configure.ac): ... to here.
18986         (Depends-on): Improve conditions.
18987
18988 2011-05-06  Bruno Haible  <bruno@clisp.org>
18989
18990         _Exit: Move AC_LIBOBJ invocations to module description.
18991         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18992         invocations from here...
18993         * modules/_Exit (configure.ac): ... to here.
18994
18995 2011-05-21  Bruno Haible  <bruno@clisp.org>
18996
18997         euidaccess: Respect rules for use of AC_LIBOBJ.
18998         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18999         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19000         from here...
19001         * modules/euidaccess (configure.ac): ... to here.
19002
19003 2011-05-06  Bruno Haible  <bruno@clisp.org>
19004
19005         error: Move AC_LIBOBJ invocations to module description.
19006         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19007         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19008         invocations from here...
19009         * modules/error (configure.ac): ... to here.
19010
19011 2011-05-06  Bruno Haible  <bruno@clisp.org>
19012
19013         duplocale: Move AC_LIBOBJ invocations to module description.
19014         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19015         gl_PREREQ_DUPLOCALE invocations from here...
19016         * modules/duplocale (configure.ac): ... to here.
19017
19018 2011-05-05  Bruno Haible  <bruno@clisp.org>
19019
19020         dirfd: Move AC_LIBOBJ invocations to module description.
19021         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19022         gl_FUNC_DIRFD.
19023         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19024         here...
19025         * modules/dirfd (configure.ac): ... to here.
19026         (Depends-on): Fix condition.
19027
19028 2011-05-05  Bruno Haible  <bruno@clisp.org>
19029
19030         chown: Respect rules for use of AC_LIBOBJ.
19031         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19032         * modules/chown (configure.ac): ... to here.
19033
19034 2011-05-05  Bruno Haible  <bruno@clisp.org>
19035
19036         chdir-long: Move AC_LIBOBJ invocations to module description.
19037         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19038         gl_PREREQ_CHDIR_LONG invocations from here...
19039         * modules/chdir-long (configure.ac): ... to here.
19040
19041 2011-05-05  Bruno Haible  <bruno@clisp.org>
19042
19043         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19044         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19045         from here...
19046         * modules/canonicalize-lgpl (configure.ac): ... to here.
19047
19048 2011-05-05  Bruno Haible  <bruno@clisp.org>
19049
19050         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19051         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19052         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19053         REPLACE_CALLOC.
19054         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19055         * modules/calloc-gnu (configure.ac): Likewise.
19056
19057 2011-05-05  Bruno Haible  <bruno@clisp.org>
19058
19059         btowc: Move AC_LIBOBJ invocations to module description.
19060         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19061         invocations from here...
19062         * modules/btowc (configure.ac): ... to here.
19063
19064 2011-05-21  Bruno Haible  <bruno@clisp.org>
19065
19066         atexit: Move AC_LIBOBJ invocations to module description.
19067         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19069         here...
19070         * modules/atexit (configure.ac): ... to here.
19071
19072 2011-05-05  Bruno Haible  <bruno@clisp.org>
19073
19074         atoll: Move AC_LIBOBJ invocations to module description.
19075         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19076         invocations from here...
19077         * modules/atoll (configure.ac): ... to here.
19078
19079 2011-05-05  Bruno Haible  <bruno@clisp.org>
19080
19081         argz: Move AC_LIBOBJ invocations to module description.
19082         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19083         * modules/argz (configure.ac): ... to here.
19084
19085 2011-05-05  Bruno Haible  <bruno@clisp.org>
19086
19087         alphasort: Move AC_LIBOBJ invocations to module description.
19088         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19089         gl_PREREQ_ALPHASORT invocations from here...
19090         * modules/alphasort (configure.ac): ... to here.
19091
19092 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19093
19094         verify: new macro verify_expr; verify_true deprecated
19095         * NEWS: Mention this.
19096         * doc/verify.texi (Compile-time Assertions): Document this.
19097         * lib/verify.h (verify_true): Deprecate.
19098         (verify_expr): New macro.
19099         * tests/test-verify.c (function): Test verify_expr.
19100
19101 2011-06-14  Jim Meyering  <meyering@redhat.com>
19102
19103         init.sh: give more portable redirection-related advice in a comment
19104         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19105         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19106         for lots of discussion.  Stefano Lattarini suggested the solution
19107         of putting "9>&2" after the command.  Reported by Bruno Haible.
19108
19109 2011-06-13  Bruno Haible  <bruno@clisp.org>
19110
19111         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19112         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19113         'none'.
19114
19115 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         ftoastr: use strtof only if HAVE_STRTOF
19118         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19120         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19121         * modules/ftoastr (configure.ac): Check for strtof.
19122
19123 2011-06-13  Bruno Haible  <bruno@clisp.org>
19124
19125         gnulib-tool: Addendum to 2011-06-08 commit.
19126         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19127         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19128
19129 2011-06-13  Bruno Haible  <bruno@clisp.org>
19130
19131         fseeko: Provide a non-inline replacement of fseek().
19132         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19133         * modules/fseeko (Depends-on): Add fseek.
19134         * modules/fseek (License): Change to LGPLv2+.
19135
19136 2011-06-13  Bruno Haible  <bruno@clisp.org>
19137
19138         ftello: Provide a non-inline replacement of ftell().
19139         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19140         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19141         not have ftello() (such as on mingw).
19142         * modules/ftello (Depends-on): Add ftell.
19143         * modules/ftell (License): Change to LGPLv2+.
19144
19145 2011-05-07  Bruno Haible  <bruno@clisp.org>
19146
19147         ftell: Move AC_LIBOBJ invocations to module description.
19148         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19149         * modules/ftell (configure.ac): ... to here.
19150
19151 2011-05-07  Bruno Haible  <bruno@clisp.org>
19152
19153         ftello: Respect rules for use of AC_LIBOBJ.
19154         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19155         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19156         here...
19157         * modules/ftello (configure.ac): ... to here.
19158
19159 2011-05-07  Bruno Haible  <bruno@clisp.org>
19160
19161         fseeko: Simplify.
19162         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19163         (gl_FUNC_FSEEKO): Inline it here.
19164
19165 2011-05-07  Bruno Haible  <bruno@clisp.org>
19166
19167         fseek: Move AC_LIBOBJ invocations to module description.
19168         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19169         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19170         * modules/fseek (configure.ac): ... to here.
19171
19172 2011-05-07  Bruno Haible  <bruno@clisp.org>
19173
19174         fseek: Respect rules for use of AC_LIBOBJ.
19175         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19176         here...
19177         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19178
19179 2011-05-07  Bruno Haible  <bruno@clisp.org>
19180
19181         fseeko: Respect rules for use of AC_LIBOBJ.
19182         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19183         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19184         here...
19185         * modules/fseeko (configure.ac): ... to here.
19186
19187 2011-06-13  Bruno Haible  <bruno@clisp.org>
19188
19189         gnulib-tool: Allow comments in the 'Depends-on' section.
19190         * doc/gnulib.texi (Module description): Mention comment syntax in the
19191         Depends-on section.
19192         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19193
19194 2011-06-13  Bruno Haible  <bruno@clisp.org>
19195
19196         file-set.h: guard __attibute__ use, now that it's not always defined
19197         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19198         versions that support it.  This fixes a coreutils build failure with
19199         the vendor cc on HP-UX 11.31.
19200
19201 2011-06-12  Bruno Haible  <bruno@clisp.org>
19202
19203         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19204         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19205         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19206         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19207         (acl, aclsort): New declarations.
19208         (aclv_nontrivial): New declaration.
19209         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19210         (file_has_acl): Read also the second kind of HP-UX ACLs.
19211         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19212         kind of HP-UX ACLs if the first kind fails.
19213         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19214         second kind of HP-UX ACLs.
19215         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19216         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19217         agree.
19218         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19219         hpuxjfs.
19220         Handle hpuxjfs.
19221         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19222         hpuxjfs.
19223         Handle hpuxjfs.
19224         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19225         (func_test_same_acls): Use both lsacl and getacl.
19226         Handle hpuxjfs.
19227         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19228         (func_test_same_acls): Use both lsacl and getacl.
19229         Handle hpuxjfs.
19230
19231 2011-06-12  Bruno Haible  <bruno@clisp.org>
19232
19233         acl: Complete the 2010-08-10 fix.
19234         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19235         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19236         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19237         explicitly.
19238         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19239         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19240
19241 2011-06-12  Bruno Haible  <bruno@clisp.org>
19242
19243         spawn-pipe tests: Comments.
19244         * tests/test-spawn-pipe-child.c (main): Update comment.
19245         Reported by James Youngman <jay@gnu.org>.
19246
19247 2011-06-11  James Youngman  <jay@gnu.org>
19248
19249         New module 'stat-size'.
19250         * modules/stat-size: New module.  Provides macros for accessing
19251         file size information in instances of struct stat.  Depends on the
19252         fileblocks module because it calls st_blocks.
19253         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19254         * doc/gnulib.texi: Include stat-size.texi.
19255         * doc/stat-size.texi: Documentation for this module.
19256         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19257         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19258         AC_STRUCT_ST_BLOCKS.
19259
19260 2011-06-09  Bruno Haible  <bruno@clisp.org>
19261
19262         thread: Support pthreads-win32.
19263         * lib/glthread/thread.h (gl_thread_self): Define differently on
19264         pthreads-win32.
19265         (gl_null_thread): New declaration.
19266         (gl_thread_self_pointer): New macro.
19267         * lib/glthread/thread.c (gl_null_thread): New constant.
19268         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19269         gl_thread_self.
19270         * tests/test-tls.c: Likewise.
19271         Suggested by Paul Eggert. Reported by Eric Blake.
19272
19273 2011-06-09  Bruno Haible  <bruno@clisp.org>
19274
19275         thread: Fix confusion between NULL and 0.
19276         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19277         Reported by Paul Eggert.
19278
19279 2011-06-09  Bruno Haible  <bruno@clisp.org>
19280
19281         spawn-pipe tests: Avoid test failure on HP-UX 11.
19282         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19283         is closed.
19284
19285 2011-06-09  Bruno Haible  <bruno@clisp.org>
19286
19287         acl tests: Fix compilation error on HP-UX 11.
19288         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19289
19290 2011-06-09  Bruno Haible  <bruno@clisp.org>
19291
19292         rmdir: Avoid test failure on HP-UX 10.20.
19293         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19294         EEXIST.
19295
19296 2011-06-08  Eric Blake  <eblake@redhat.com>
19297
19298         perror: fix test on mingw
19299         * modules/perror-tests (Depends-on): Add dup2.
19300
19301         strerror_r-posix: fix on MacOS
19302         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19303         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19304         logic bug.
19305         * lib/strerror_r.c (strerror_r): Fix the bug.
19306         * lib/strerror.c (strerror): Likewise.
19307         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19308         problem.
19309         * doc/posix-functions/strerror.texi (strerror): Likewise.
19310         * doc/posix-functions/perror.texi (perror): Likewise.
19311         * tests/test-strerror.c (main): Enhance test.
19312         * tests/test-strerror_r.c (main): Likewise.
19313
19314 2011-06-08  Bruno Haible  <bruno@clisp.org>
19315
19316         gnulib-tool: Better isolation between different gnulib-tool invocations.
19317         * gnulib-tool: New option --witness-c-macro.
19318         (witness_c_macro): New variable.
19319         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19320         AM_CPPFLAGS define it as a C macro.
19321         (func_emit_tests_Makefile_am): Likewise.
19322         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19323         read it from there.
19324         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19325         m4_define, not AC_DEFUN.
19326         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19327         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19328         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19329         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19330         s|...|...|, to substitute the values of the GNULIB_* module indicator
19331         variables.
19332         * modules/dirent (Makefile.am): Likewise.
19333         * modules/fcntl-h (Makefile.am): Likewise.
19334         * modules/iconv-h (Makefile.am): Likewise.
19335         * modules/langinfo (Makefile.am): Likewise.
19336         * modules/locale (Makefile.am): Likewise.
19337         * modules/math (Makefile.am): Likewise.
19338         * modules/netdb (Makefile.am): Likewise.
19339         * modules/poll-h (Makefile.am): Likewise.
19340         * modules/pty (Makefile.am): Likewise.
19341         * modules/search (Makefile.am): Likewise.
19342         * modules/signal (Makefile.am): Likewise.
19343         * modules/spawn (Makefile.am): Likewise.
19344         * modules/stdio (Makefile.am): Likewise.
19345         * modules/stdlib (Makefile.am): Likewise.
19346         * modules/string (Makefile.am): Likewise.
19347         * modules/sys_ioctl (Makefile.am): Likewise.
19348         * modules/sys_select (Makefile.am): Likewise.
19349         * modules/sys_socket (Makefile.am): Likewise.
19350         * modules/sys_stat (Makefile.am): Likewise.
19351         * modules/sys_times (Makefile.am): Likewise.
19352         * modules/sys_utsname (Makefile.am): Likewise.
19353         * modules/sys_wait (Makefile.am): Likewise.
19354         * modules/termios (Makefile.am): Likewise.
19355         * modules/time (Makefile.am): Likewise.
19356         * modules/unistd (Makefile.am): Likewise.
19357         * modules/wchar (Makefile.am): Likewise.
19358
19359 2011-06-08  Eric Blake  <eblake@redhat.com>
19360
19361         strerror: simplify replacement
19362         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19363         * modules/strerror (configure.ac): No prereqs needed here...
19364         * modules/strerror-override (configure.ac): ...but this needs it.
19365         (Files): Add file for needed prereq macro.
19366
19367 2011-06-08  Bruno Haible  <bruno@clisp.org>
19368
19369         strerror_r-posix: Tweaks.
19370         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19371         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19373         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19374         (gl_FUNC_STRERROR_R): ... to here.
19375         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19376
19377 2011-06-07  Eric Blake  <eblake@redhat.com>
19378
19379         perror: document fixed bugs
19380         * doc/posix-functions/perror.texi (perror): Document recent
19381         patches.
19382
19383 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         stat-time: get_stat_birthtime failure is better-defined
19386         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19387         return a timestamp whose tv_sec and tv_nsec values are both -1.
19388         Previously, the spec said only that the tv_nsec value was negative.
19389         This upward-compatible change simplifies GNU tar a bit.
19390
19391 2011-06-07  Eric Blake  <eblake@redhat.com>
19392
19393         strerror_r-posix: work around cygwin 1.7.9
19394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19395         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19396         bug without replacing strerror_r.
19397         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19398         strerror_r is buggy, but without requiring strerror_r compilation.
19399         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19400
19401         test-perror: relax test to ignore cygwin bug
19402         * tests/test-perror2.c (main): Relax test on requiring detection
19403         of stream errors, and use unbuffered stream.
19404         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19405         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19406         * doc/posix-functions/fputc.texi (fputc): Likewise.
19407         * doc/posix-functions/fputs.texi (fputs): Likewise.
19408         * doc/posix-functions/fputws.texi (fputws): Likewise.
19409         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19410         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19411         * doc/posix-functions/getopt.texi (getopt): Likewise.
19412         * doc/posix-functions/perror.texi (perror): Likewise.
19413         * doc/posix-functions/printf.texi (printf): Likewise.
19414         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19415         * doc/posix-functions/psignal.texi (psignal): Likewise.
19416         * doc/posix-functions/putc.texi (putc): Likewise.
19417         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19418         Likewise.
19419         * doc/posix-functions/putchar.texi (putchar): Likewise.
19420         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19421         Likewise.
19422         * doc/posix-functions/puts.texi (puts): Likewise.
19423         * doc/posix-functions/putwc.texi (putwc): Likewise.
19424         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19425         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19426         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19427         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19428         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19429         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19430         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19431         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19432
19433 2011-05-22  Bruno Haible  <bruno@clisp.org>
19434
19435         strerror: Move AC_LIBOBJ invocations to module description.
19436         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19437         gl_PREREQ_STRERROR invocations from here...
19438         * modules/strerror (configure.ac): ... to here.
19439
19440 2011-05-21  Bruno Haible  <bruno@clisp.org>
19441
19442         perror: Use common idiom.
19443         * modules/perror (configure.ac): Reorder statements.
19444
19445 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19446
19447         tests: fix usage message in 'mktempd_'
19448         * tests/init.sh (mktempd_): In the usage message, use literal
19449         'mktempd_', not '$ME' (which is even undefined), as the name of
19450         the subroutine.
19451
19452 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19453
19454         tests init: new function 'fatal_', for hard errors
19455         Before this patch, the only way offered by tests/init.sh to
19456         properly signal a hard error was the `framework_failure_'
19457         function.  But the error message issued by that function,
19458         as its name would suggest, refers to a set-up failure in the
19459         testsuite, while hard errors can obviously also be due to
19460         other reasons.  The best way to fix this inconsistency is to
19461         introduce a new function with a more general error message.
19462         * tests/init.sh (fatal_): New function.
19463
19464 2011-06-06  Eric Blake  <eblake@redhat.com>
19465
19466         canonicalize-lgpl: use common idiom
19467         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19468         over newer POSIX -Rf.
19469         Reported by Bruno Haible.
19470
19471         canonicalize-lgpl: work around AIX realpath bug
19472         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19473         * doc/posix-functions/realpath.texi (realpath): Document it.
19474         Reported by Bruno Haible.
19475
19476         strerror: work around FreeBSD bug
19477         * lib/strerror.c (strerror): Special case 0.
19478         Reported by Bruno Haible.
19479
19480         strerror-override: avoid bloating errno module
19481         * modules/errno (Files, configure.ac): Move replacement strings...
19482         * modules/strerror-override: ...to new module.
19483         * modules/strerror (Depends-on): Add strerror-override.
19484         * modules/strerror_r-posix (Depends-on): Likewise.
19485         * MODULES.html.sh: Document new module.
19486         Reported by Bruno Haible.
19487
19488 2011-06-06  Bruno Haible  <bruno@clisp.org>
19489
19490         spawn-pipe tests: Rename program.
19491         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19492         * tests/test-spawn-pipe-child.c: Update comment.
19493         * tests/test-spawn-pipe.sh: Update.
19494         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19495
19496         spawn-pipe tests: Link the child program only against libc.
19497         * tests/test-spawn-pipe-child.c: New file, extracted from
19498         tests/test-spawn-pipe.c.
19499         (main): Expect only one argument.
19500         (is_open): New function, copied from tests/test-pipe.c.
19501         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19502         (child_main): Remove function.
19503         (test_pipe): Pass only one argument to the child program.
19504         (main): Remove child process code. Expect the child program's name as
19505         first argument.
19506         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19507         argument.
19508         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19509         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19510         test-spawn-pipe-child against no libraries.
19511
19512 2011-06-06  Bruno Haible  <bruno@clisp.org>
19513
19514         careadlinkat: Avoid mismatch between ssize_t and int.
19515         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19516         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19517
19518 2011-06-06  Jim Meyering  <meyering@redhat.com>
19519
19520         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19521         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19522         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19523
19524 2011-06-05  Bruno Haible  <bruno@clisp.org>
19525
19526         ansi-c++-opt: Interoperability with libtool.
19527         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19528         set the variable to "no", not to ":".
19529         * NEWS: Mention the change.
19530
19531 2011-06-05  Bruno Haible  <bruno@clisp.org>
19532
19533         acl: Fix test failure on AIX 7.
19534         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19535         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19536
19537 2011-06-05  Bruno Haible  <bruno@clisp.org>
19538
19539         pipe-filter-ii: Fix test failure on AIX and IRIX.
19540         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19541         with EAGAIN, retry with a smaller buffer size.
19542
19543 2011-06-05  Bruno Haible  <bruno@clisp.org>
19544
19545         localename: Fix link dependencies.
19546         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19547         * modules/localename-tests (Makefile.am): Link test-localename with
19548         $(LIBTHREAD).
19549
19550 2011-06-05  Bruno Haible  <bruno@clisp.org>
19551
19552         error: Avoid gcc warning.
19553         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19554
19555 2011-06-05  Bruno Haible  <bruno@clisp.org>
19556
19557         unsetenv: Avoid gcc warning.
19558         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19559
19560 2011-06-05  Bruno Haible  <bruno@clisp.org>
19561
19562         setenv: Avoid gcc warning.
19563         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19564
19565 2011-06-05  Bruno Haible  <bruno@clisp.org>
19566
19567         sys_select: Ensure memset is declared also on AIX 7.
19568         * lib/sys_select.in.h: Include <string.h> also on AIX.
19569         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19570         self-contained also on AIX 7.1.
19571
19572 2011-06-04  Jim Meyering  <meyering@redhat.com>
19573
19574         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19575         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19576         function name, "error".
19577         (_gl_translatable_diag_func_re): New configurable variable.
19578
19579 2011-06-04  Bruno Haible  <bruno@clisp.org>
19580
19581         getopt: Avoid gcc warning.
19582         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19583
19584 2011-06-04  Bruno Haible  <bruno@clisp.org>
19585
19586         strerror_r: Fix comments.
19587         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19588         commit.
19589
19590 2011-06-04  Bruno Haible  <bruno@clisp.org>
19591
19592         perror: Fix compilation error.
19593         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19594         Undefine fprintf, not sprintf.
19595         * modules/perror (Depends-on): Remove intprops, verify.
19596
19597 2011-06-04  Bruno Haible  <bruno@clisp.org>
19598
19599         setlocale: Enable replacement on Cygwin 1.5.
19600         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19601         Cygwin 1.5.x.
19602         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19603         LC_CTYPE category also exists on Cygwin 1.5.x.
19604
19605 2011-06-04  Bruno Haible  <bruno@clisp.org>
19606
19607         strerror-override: Don't disable symbol renamings.
19608         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19609         * lib/strerror-override.c: Include config.h.
19610         (strerror_override): Don't undefine.
19611
19612 2011-06-03  Bruno Haible  <bruno@clisp.org>
19613
19614         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19615         * lib/localename.h: Update copyright header.
19616         * lib/localename.c: Likewise.
19617         * lib/relocatable.h: Likewise.
19618         * lib/relocatable.c: Likewise.
19619
19620 2011-06-02  Bruno Haible  <bruno@clisp.org>
19621
19622         doc: Fix a module name.
19623         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19624
19625 2011-06-02  Bruno Haible  <bruno@clisp.org>
19626
19627         pipe2: Remove dependency on 'nonblocking' module.
19628         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19629         O_NONBLOCK is defined by gnulib.
19630         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19631         is zero.
19632         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19633         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19634         defined by gnulib.
19635         (get_nonblocking_flag): New function.
19636         (main): Test O_NONBLOCK flag only if it is nonzero.
19637         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19638
19639 2011-06-03  Jim Meyering  <meyering@redhat.com>
19640
19641         maint: three new prohibit-header-without-use rules
19642         Prohibit use of cloexec.h, posixver.h, same.h without use.
19643         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19644         (sc_prohibit_posixver_without_use): Likewise.
19645         (sc_prohibit_same_without_use): Likewise.
19646
19647 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19648
19649         allocator: 'die' routine is now given requested size
19650         * lib/allocator.h (struct allocator.die): New size arg.
19651         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19652         If the actual problem is an ssize_t limitation, not a size_t or
19653         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19654
19655 2011-06-01  Eric Blake  <eblake@redhat.com>
19656
19657         strerror: drop strerror_r dependency
19658         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19659         * lib/strerror-override.c (strerror_override): ...to new file.
19660         * lib/strerror-override.h: Add prototype.
19661         * lib/strerror-impl.h: Delete.
19662         * lib/strerror.c (strerror): New implementation.
19663         * modules/errno (Files): Add new files.
19664         (configure.ac): Compile new file as appropriate.
19665         * modules/strerror (Files): Drop unused file.
19666         (Depends-on): Drop strerror_r-posix.
19667         * MODULES.html.sh: Document strerror_r-posix.
19668         Requested by Sam Steingold.
19669
19670         perror: call strerror_r directly
19671         * modules/perror (Files): Drop strerror-impl.h.
19672         * lib/perror.c (perror): Use our own stack buffer, rather than
19673         calling a wrapper that uses static storage.
19674         * doc/posix-functions/perror.texi (perror): Document a limitation
19675         of our replacement.
19676
19677         strerror_r: fix includes for FreeBSD
19678         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19679         since we use abort on some platforms.
19680         Reported by Matthias Bolte.
19681
19682 2011-05-31  Bruno Haible  <bruno@clisp.org>
19683
19684         Fix link errors in tests: openat-die uses gettext-h.
19685         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19686         against $(LIBINTL).
19687         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19688         against $(LIBINTL).
19689         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19690         $(LIBINTL).
19691         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19692         against $(LIBINTL).
19693         * modules/linkat-tests (Makefile.am): Link test-linkat against
19694         $(LIBINTL).
19695         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19696         $(LIBINTL).
19697         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19698         against $(LIBINTL).
19699         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19700         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19701         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19702         $(LIBINTL).
19703         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19704         $(LIBINTL).
19705         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19706         $(LIBINTL).
19707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19708
19709 2011-05-31  Bruno Haible  <bruno@clisp.org>
19710
19711         Fix link errors in tests: wait-process uses gettext-h.
19712         * modules/nonblocking-pipe-tests (Makefile.am): Set
19713         test_nonblocking_pipe_main_LDADD.
19714         * modules/nonblocking-socket-tests (Makefile.am): Link
19715         test-nonblocking-socket-main against $(LIBINTL).
19716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19717
19718 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19719
19720         assert-h: work around 'verify' incompatibility
19721         * lib/verify.h: Use @...@ directives, not ifdef.
19722         * modules/assert-h (assert.h): Implement the directives.
19723         (assert.h): Substitute the symbol-prefix more consistently.
19724
19725 2011-05-29  Jim Meyering  <meyering@redhat.com>
19726
19727         trim: remove three superfluous assignments
19728         * lib/trim.c (trim2): Remove three superfluous assignments
19729         and correct brace positioning.
19730
19731 2011-05-29  Bruno Haible  <bruno@clisp.org>
19732
19733         wctype-h: Avoid namespace pollution on Solaris 2.6.
19734         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19735         identifiers.
19736         * doc/posix-headers/wctype.texi: Mention the problem.
19737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19738
19739 2011-05-28  Jim Meyering  <meyering@redhat.com>
19740
19741         parse-datetime.y: accommodate -Wstrict-overflow
19742         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19743         placate -Wstrict-overflow.
19744
19745         trim: avoid a warning from -O2 -Wstrict-overflow
19746         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19747
19748 2011-05-29  Bruno Haible  <bruno@clisp.org>
19749
19750         gnulib-tool: Fix bug in yesterday's commit.
19751         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19752         twice.
19753
19754 2011-05-29  Bruno Haible  <bruno@clisp.org>
19755
19756         Allow multiple gnulib generated include files to be combined.
19757         * gnulib-tool (func_compute_include_guard_prefix): New function.
19758         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19759         ${gl_include_guard_prefix} references.
19760         (func_import, func_create_testdir): Invoke
19761         func_compute_include_guard_prefix.
19762         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19763         * lib/ctype.in.h: Likewise.
19764         * lib/dirent.in.h: Likewise.
19765         * lib/errno.in.h: Likewise.
19766         * lib/fcntl.in.h: Likewise.
19767         * lib/float.in.h: Likewise.
19768         * lib/getopt.in.h: Likewise.
19769         * lib/iconv.in.h: Likewise.
19770         * lib/langinfo.in.h: Likewise.
19771         * lib/locale.in.h: Likewise.
19772         * lib/math.in.h: Likewise.
19773         * lib/netdb.in.h: Likewise.
19774         * lib/netinet_in.in.h: Likewise.
19775         * lib/poll.in.h: Likewise.
19776         * lib/pthread.in.h: Likewise.
19777         * lib/pty.in.h: Likewise.
19778         * lib/sched.in.h: Likewise.
19779         * lib/se-selinux.in.h: Likewise.
19780         * lib/search.in.h: Likewise.
19781         * lib/signal.in.h: Likewise.
19782         * lib/spawn.in.h: Likewise.
19783         * lib/stdarg.in.h: Likewise.
19784         * lib/stddef.in.h: Likewise.
19785         * lib/stdint.in.h: Likewise.
19786         * lib/stdio.in.h: Likewise.
19787         * lib/stdlib.in.h: Likewise.
19788         * lib/string.in.h: Likewise.
19789         * lib/strings.in.h: Likewise.
19790         * lib/sys_file.in.h: Likewise.
19791         * lib/sys_ioctl.in.h: Likewise.
19792         * lib/sys_select.in.h: Likewise.
19793         * lib/sys_socket.in.h: Likewise.
19794         * lib/sys_stat.in.h: Likewise.
19795         * lib/sys_time.in.h: Likewise.
19796         * lib/sys_times.in.h: Likewise.
19797         * lib/sys_uio.in.h: Likewise.
19798         * lib/sys_utsname.in.h: Likewise.
19799         * lib/sys_wait.in.h: Likewise.
19800         * lib/sysexits.in.h: Likewise.
19801         * lib/termios.in.h: Likewise.
19802         * lib/time.in.h: Likewise.
19803         * lib/unistd.in.h: Likewise.
19804         * lib/wchar.in.h: Likewise.
19805         * lib/wctype.in.h: Likewise.
19806         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19807         * modules/ctype (Makefile.am): Likewise.
19808         * modules/dirent (Makefile.am): Likewise.
19809         * modules/errno (Makefile.am): Likewise.
19810         * modules/fcntl-h (Makefile.am): Likewise.
19811         * modules/float (Makefile.am): Likewise.
19812         * modules/getopt-posix (Makefile.am): Likewise.
19813         * modules/iconv-h (Makefile.am): Likewise.
19814         * modules/langinfo (Makefile.am): Likewise.
19815         * modules/locale (Makefile.am): Likewise.
19816         * modules/math (Makefile.am): Likewise.
19817         * modules/netdb (Makefile.am): Likewise.
19818         * modules/netinet_in (Makefile.am): Likewise.
19819         * modules/poll-h (Makefile.am): Likewise.
19820         * modules/pthread (Makefile.am): Likewise.
19821         * modules/pty (Makefile.am): Likewise.
19822         * modules/sched (Makefile.am): Likewise.
19823         * modules/search (Makefile.am): Likewise.
19824         * modules/selinux-h (Makefile.am): Likewise.
19825         * modules/signal (Makefile.am): Likewise.
19826         * modules/spawn (Makefile.am): Likewise.
19827         * modules/stdarg (Makefile.am): Likewise.
19828         * modules/stddef (Makefile.am): Likewise.
19829         * modules/stdint (Makefile.am): Likewise.
19830         * modules/stdio (Makefile.am): Likewise.
19831         * modules/stdlib (Makefile.am): Likewise.
19832         * modules/string (Makefile.am): Likewise.
19833         * modules/strings (Makefile.am): Likewise.
19834         * modules/sys_file (Makefile.am): Likewise.
19835         * modules/sys_ioctl (Makefile.am): Likewise.
19836         * modules/sys_select (Makefile.am): Likewise.
19837         * modules/sys_socket (Makefile.am): Likewise.
19838         * modules/sys_stat (Makefile.am): Likewise.
19839         * modules/sys_time (Makefile.am): Likewise.
19840         * modules/sys_times (Makefile.am): Likewise.
19841         * modules/sys_uio (Makefile.am): Likewise.
19842         * modules/sys_utsname (Makefile.am): Likewise.
19843         * modules/sys_wait (Makefile.am): Likewise.
19844         * modules/sysexits (Makefile.am): Likewise.
19845         * modules/termios (Makefile.am): Likewise.
19846         * modules/time (Makefile.am): Likewise.
19847         * modules/unistd (Makefile.am): Likewise.
19848         * modules/wchar (Makefile.am): Likewise.
19849         * modules/wctype-h (Makefile.am): Likewise.
19850         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19851
19852 2011-05-29  Bruno Haible  <bruno@clisp.org>
19853
19854         assert-h: Allow multiple gnulib generated replacements to coexist.
19855         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19856
19857 2011-05-29  Bruno Haible  <bruno@clisp.org>
19858
19859         argp: Allow coexistence with strerror_r-posix module.
19860         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19861         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19862         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19863         not the glibc signature.
19864
19865 2011-05-28  Bruno Haible  <bruno@clisp.org>
19866
19867         gnulib-tool: Alternative structure of testdirs, similar to --import.
19868         * gnulib-tool: New option --single-configure.
19869         (func_usage): Document it.
19870         (single_configure): New variable.
19871         (func_modules_transitive_closure_separately,
19872         func_modules_transitive_closure_separately,
19873         func_determine_use_libtests, func_modules_add_dummy_separately,
19874         func_modules_to_filelist_separately): New functions, extracted from
19875         func_import.
19876         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19877         (func_import): Use the new functions.
19878         (func_create_testdir): Set final_modules. Handle $single_configure =
19879         true case.
19880
19881 2011-05-28  Bruno Haible  <bruno@clisp.org>
19882
19883         getloadavg: Remove an unreliable safety check.
19884         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19885         getloadavg.c is in place.
19886         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19887         Reported by Sam Steingold <sds@gnu.org>.
19888
19889 2011-05-28  Bruno Haible  <bruno@clisp.org>
19890
19891         doc: Cleanup yet another file produced by texinfo.tex.
19892         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19893
19894 2011-05-28  Bruno Haible  <bruno@clisp.org>
19895
19896         Finish the conditional dependencies mechanism.
19897         * gnulib-tool: New option --no-conditional-dependencies.
19898         (func_usage): Document it. Don't mark --conditional-dependencies as
19899         experimental.
19900         (cond_dependencies): The possible values can now be true, false, empty.
19901         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19902         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19903         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19904
19905 2011-05-28  Bruno Haible  <bruno@clisp.org>
19906
19907         doc: Use a recent texinfo.tex.
19908         * doc/Makefile (tex_opts): New variable.
19909         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19910
19911 2011-05-28  Jim Meyering  <meyering@redhat.com>
19912
19913         intprops.h: adjust comment to match code change
19914         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19915         only once, it *may* have side effects.  Also fix an unrelated typo.
19916         (_GL_INT_SIGNED): Likewise.
19917
19918 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19919
19920         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19921
19922 2011-05-26  Bruno Haible  <bruno@clisp.org>
19923
19924         mbsrchr: Avoid collision with system function on Interix.
19925         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19926         Reported by Markus Duft <mduft@gentoo.org>.
19927
19928 2011-05-15  James Youngman  <jay@gnu.org>
19929
19930         getopt: for ambiguous options, enumerate the possibilities.
19931         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19932         the ambiguous options when an ambiguous prefix is given. This was
19933         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19934         glibc change was
19935         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19936
19937 2011-05-25  Eric Blake  <eblake@redhat.com>
19938
19939         getcwd: work around mingw bug
19940         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19941         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19942         Reported by Matthias Bolte.
19943
19944 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19945
19946         test-intprops: disable -Wtype-limits diagnostics
19947         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19948         diagnostics.  Otherwise, the integer overflow macros generate many
19949         diagnostics.  Reported by Jim Meyering in
19950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19951
19952         intprops: shorten, to pacify gcc -Woverlength-strings
19953         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19954         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19955         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19956         likely to run afoul of C compiler limits for string constant lengths.
19957         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19958
19959 2011-05-24  Eric Blake  <eblake@redhat.com>
19960
19961         docs: document recently fixed glibc printf bug
19962         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19963         * doc/posix-functions/printf.texi (printf): Likewise.
19964         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19965         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19966
19967         closein-tests: convert to init.sh
19968         * modules/closein-tests (Files): Add init.sh
19969         * tests/test-closein.sh Use it.
19970
19971         yesno-tests: convert to init.sh
19972         * modules/yesno-tests (Files): Add init.sh.
19973         * tests/test-yesno.sh: Use it.
19974
19975         atexit-tests: ensure reliable exit status
19976         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19977         Reported by Bruno Haible.
19978
19979 2011-05-24  Bruno Haible  <bruno@clisp.org>
19980
19981         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19982         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19983         gl_PREREQ_STRERROR_R invocations from here...
19984         * modules/strerror_r-posix (configure.ac): ... to here.
19985
19986 2011-05-24  Eric Blake  <eblake@redhat.com>
19987
19988         strerror_r: fix missing header
19989         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19990
19991         strerror_r: fix AIX test failures
19992         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19993         ERANGE failure.
19994
19995         strerror_r: fix Solaris test failures
19996         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19997         failures.
19998         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19999
20000         strerror_r: enforce POSIX recommendations
20001         * lib/strerror_r.c (safe_copy): New helper method.
20002         (strerror_r): Guarantee a non-empty string.
20003         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20004         recent POSIX rulings and to match our strerror guarantees.
20005         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20006
20007 2011-05-24  Jim Meyering  <meyering@redhat.com>
20008
20009         test-perror2.c: avoid warning about unused variable
20010         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20011
20012 2011-05-24  Eric Blake  <eblake@redhat.com>
20013
20014         perror: avoid spurious test failure on HP-UX
20015         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20016
20017         tests: fix logic bug in init.sh
20018         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20019         shell.
20020
20021 2011-05-24  Jim Meyering  <meyering@redhat.com>
20022
20023         utimensat: do not reference an out-of-scope buffer
20024         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20025         declared in an inner scope, yet "times" would be dereferenced outside
20026         the scope in which "ts" was valid.
20027         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20028         of ts[2] "out/up", so that the use of aliased "times" (via
20029         "times = ts;") does not end up referencing an out-of-scope "ts"
20030
20031         opendir-safer.c: don't clobber errno; don't close negative FD
20032         * lib/opendir-safer.c (opendir_safer):
20033         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20034         file descriptor, and more importantly, don't clobber the
20035         offending errno value with EINVAL.  Before, upon failure
20036         of dup_safer, we would pass the negative file descriptor to
20037         fdopendir, which would clobber errno.
20038
20039 2011-05-23  Bruno Haible  <bruno@clisp.org>
20040
20041         idcache: Fix module description.
20042         * modules/idcache (Include): Set to "idcache.h".
20043
20044 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20045
20046         gnulib-tool: fix portability problem with MacOS sed
20047         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20048         before the "}".  Problem reported by Leo in
20049         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20050         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20051         sed_extract_condition1, sed_extract_condition2.
20052
20053 2011-05-23  Bruno Haible  <bruno@clisp.org>
20054
20055         hash: Simplify autoconf macro.
20056         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20057
20058 2011-05-23  Bruno Haible  <bruno@clisp.org>
20059
20060         getugroups: Fix module description.
20061         * modules/getugroups (Include): Set to "getugroups.h".
20062
20063 2011-05-23  Bruno Haible  <bruno@clisp.org>
20064
20065         linkat: Simplify autoconf macro.
20066         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20067
20068 2011-05-23  Bruno Haible  <bruno@clisp.org>
20069             Eric Blake  <eblake@redhat.com>
20070
20071         linkat, renameat: Update dependencies.
20072         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20073         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20074         symlinkat.
20075
20076 2011-05-23  Jim Meyering  <meyering@redhat.com>
20077
20078         maint.mk: more tight_scope improvements
20079         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20080         (_gl_TS_headers): Define only in if-0'd block.
20081         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20082         sometimes we must *not* use it.  Adjust uses accordingly.
20083         (sc_tight_scope): Use much simpler grep-based test to determine
20084         whether we skip this rule.
20085
20086         maint.mk: generalize/improve the tight-scope rule
20087         * top/maint.mk: Emit a warning when the test is skipped.
20088         (_gl_TS_dir): Add $(srcdir)/ prefix.
20089         (_gl_TS_function_match): Simplify, rather than trying
20090         to enumerate common types.  Otherwise, it would fail to match an
20091         "extern unsigned char const *" declaration in idutils.
20092         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20093         a way to support use of that type of macro.
20094         (_gl_TS_var_match): Simplify regexp.
20095         (_gl_TS_obj_files): New configurable variable.
20096         (_gl_TS_headers): Likewise.
20097
20098 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20099
20100         verify: fix bug when gnulib <assert.h> is also included
20101         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20102         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20103         Perhaps there's a better way, but this fixes the immediate problem.
20104         Problem reported by Bruno Haible in
20105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20106
20107 2011-05-22  Bruno Haible  <bruno@clisp.org>
20108
20109         xgetcwd: Simplify autoconf macro.
20110         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20111
20112 2011-05-22  Bruno Haible  <bruno@clisp.org>
20113
20114         New module 'mktime-internal'.
20115         * modules/mktime-internal: New file.
20116         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20117         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20118         mktime_internal as a C macro if libc has __mktime_internal.
20119         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20120         conditions.
20121         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20122
20123 2011-05-22  Bruno Haible  <bruno@clisp.org>
20124
20125         timegm: Correct mktime replacement statements.
20126         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20127         defining mktime as a C macro. This completes a 2009-07-28 commit.
20128
20129 2011-05-22  Bruno Haible  <bruno@clisp.org>
20130
20131         timegm: Simplify autoconf macro.
20132         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20133
20134 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20135
20136         clock-time: change to LGPLv2+.
20137         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20138         BSD-like but we have no mark for that; this is good enough for now.
20139
20140 2011-05-21  Bruno Haible  <bruno@clisp.org>
20141
20142         strerror_r: Fix comments.
20143         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20144
20145 2011-05-21  Bruno Haible  <bruno@clisp.org>
20146
20147         relocatable-prog-wrapper: Fix possible link error.
20148         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20149         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20150         (gl_FUNC_SETENV): ... to here.
20151         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20152         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20153
20154 2011-05-21  Bruno Haible  <bruno@clisp.org>
20155
20156         relocatable-prog-wrapper: Assume strerror() exists.
20157         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20158         m4/strerror.m4.
20159         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20160         * lib/relocwrapper.c: Remove mention of strerror module.
20161         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20162         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20163         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20164         C macro.
20165
20166 2011-05-21  Bruno Haible  <bruno@clisp.org>
20167
20168         select: Simplify replacement idiom.
20169         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20170         Win32 platforms.
20171         * lib/sys_select.in.h (select): Simplify accordingly.
20172         * modules/select (Depends-on): Likewise.
20173
20174 2011-05-21  Bruno Haible  <bruno@clisp.org>
20175
20176         mkdir-p: Simplify autoconf macro.
20177         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20178         gl_FUNC_LCHOWN.
20179
20180 2011-05-21  Eric Blake  <eblake@redhat.com>
20181
20182         strerror_r: avoid clobbering strerror on cygwin
20183         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20184         fall back instead to sys_errlist.
20185         * modules/strerror (configure.ac): Add witness.
20186         * tests/test-strerror_r.c (main): Enhance test.
20187         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20188         * tests/test-perror2.c (main): Free memory before exit.
20189
20190 2011-05-21  Bruno Haible  <bruno@clisp.org>
20191
20192         mkdtemp: Use gnulib naming conventions.
20193         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20194         * modules/mkdtemp (configure.ac): Update.
20195
20196 2011-05-20  Eric Blake  <eblake@redhat.com>
20197
20198         strerror_r: avoid corrupting errno on Solaris
20199         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20200         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20201
20202         strerror_r: avoid compiler warning
20203         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20204
20205         strerror_r: simplify AIX code
20206         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20207
20208         test-perror: avoid spurious failure on FreeBSD
20209         * modules/perror-tests (Depends-on): Add strerror, now that
20210         strerror_r no longer pulls it in.
20211
20212 2011-05-20  Bruno Haible  <bruno@clisp.org>
20213
20214         strerror_r-posix: Remove unused dependencies.
20215         * modules/strerror_r-posix (Depends-on): Remove strerror.
20216         Reported by Eric Blake.
20217
20218 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20219
20220         intprops: remove assumption about A|B representation
20221         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20222         is a valid integer if both A and B are.  Although this is true for
20223         all known practical hosts, the C standard doesn't guarantee it,
20224         and the code need not assume it.  Also, this change may work around
20225         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20227
20228 2011-05-20  Eric Blake  <eblake@redhat.com>
20229
20230         perror: work around FreeBSD bug
20231         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20232         is broken.  Move AC_LIBOBJ...
20233         * modules/perror (configure.ac): Here.
20234         * doc/posix-functions/perror.texi (perror): Document this.
20235         * tests/test-perror2.c (main): Enhance test.
20236
20237         test-perror: check for strerror interactions
20238         * tests/macros.h (STREQ): Add macro.
20239         * modules/perror-tests (Files): Add second test.
20240         * tests/test-perror2.c (main): New file.
20241         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20242
20243         test-perror: rewrite to use init script
20244         * modules/perror-tests (Files): Add init.sh.
20245         * tests/test-perror.sh: Use temporary directory.
20246
20247 2011-05-20  Jim Meyering  <meyering@redhat.com>
20248
20249         maint: replace misused "a" with "an"
20250         * doc/intprops.texi: "a integer"
20251         * doc/regex.texi: "a explanation"
20252         * lib/alignof.h: "a object"
20253         * lib/argmatch.h: "a explanation"
20254         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20255         * lib/stdint.in.h: "a integer"
20256         * lib/userspec.c: "a owner"
20257         * doc/gnulib.texi: Fix "a idea", and reword.
20258
20259 2011-05-19  Jim Meyering  <meyering@redhat.com>
20260
20261         maint: correct misuse of "a" and "an"
20262         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20263         * lib/argp-help.c: "an docum...": s/an/a/
20264         * lib/argp-parse.c: "An vector": s/An/A/
20265         * lib/execute.c: "an native": s/an/a/
20266         * lib/spawn-pipe.c: Likewise.
20267         * lib/gc.h: "an Gc_rc": s/an/a/
20268         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20269         * lib/fts.c: "an stat.st_dev": s/an/a/
20270
20271 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20272
20273         intprops-tests: work around HP-UX 11.23 cc bug with constants
20274         * tests/test-intprops.c (VERIFY): New macro.
20275         (main): Use it, instead of verify, to work around the compiler bug; see
20276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20277
20278         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20279         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20280         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20281         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20282         (_GL_REMAINDER_OVERFLOW): Use it.
20283
20284         intprops-tests: revert unsigned part of previous change
20285         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20286         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20287         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20289
20290 2011-05-19  Bruno Haible  <bruno@clisp.org>
20291
20292         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20293         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20294         strerror_r() returned without filling the buffer.
20295         Reported by Eric Blake.
20296
20297 2011-05-19  Eric Blake  <eblake@redhat.com>
20298
20299         strerror_r: guarantee unchanged errno
20300         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20301         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20302         failure.
20303         * tests/test-strerror_r.c (main): Enhance test.
20304
20305 2011-05-19  Bruno Haible  <bruno@clisp.org>
20306
20307         strerror_r: Reorder #if blocks.
20308         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20309         for consistency with the previous commit.
20310
20311 2011-05-19  Bruno Haible  <bruno@clisp.org>
20312
20313         perror: Avoid clobbering the strerror buffer when possible.
20314         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20315         * lib/strerror.c: Include it.
20316         * modules/strerror (Files): Add lib/strerror-impl.h.
20317         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20318         (my_strerror): New function, defined through lib/strerror-impl.h.
20319         (perror): Use it instead of strerror.
20320         * modules/perror (Files): Add lib/strerror-impl.h.
20321         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20322
20323 2011-05-19  Eric Blake  <eblake@redhat.com>
20324
20325         strerror_r: fix on newer cygwin
20326         * lib/strerror_r.c (strerror_r): Cygwin now has
20327         __xpg_strerror_r, use it.
20328
20329 2011-05-19  Bruno Haible  <bruno@clisp.org>
20330
20331         strerror_r: Avoid clobbering the strerror buffer when possible.
20332         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20333         (sys_nerr, sys_errlist): New declarations.
20334         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20335         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20336         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20337
20338 2011-05-19  Bruno Haible  <bruno@clisp.org>
20339
20340         strerror_r: Fix test failure on mingw.
20341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20342         EXTEND_STRERROR_R.
20343         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20344         macros from errno.in.h instead.
20345
20346 2011-05-19  Eric Blake  <eblake@redhat.com>
20347
20348         strerror: relax test for Solaris
20349         * tests/test-strerror.c (main): Permit Solaris behavior.
20350         * tests/test-strerror_r.c (main): Likewise.
20351
20352         strerror: enforce POSIX ruling on strerror(0)
20353         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20354         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20355         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20356         * doc/posix-functions/strerror.texi (strerror): Document it.
20357         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20358         * tests/test-strerror.c (main): Strengthen test.
20359         * tests/test-strerror_r.c (main): Likewise.
20360
20361 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         intprop-tests: port to older and more-pedantic compilers
20364         * modules/intprops-tests (Files): Add tests/macros.h.
20365         * tests/test-intprops.c: Include macros.h.
20366         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20367         it's no longer documented to expand to an integer constant expression.
20368         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20369         argument is floating point, as it's no longer documented to expand
20370         to an integer constant expression in that case.
20371         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20372         compiler bugs reported by Bruno Haible.  See
20373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20374         (U0, U1): New constants, to work around the same bugs.  Also,
20375         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20376
20377         intprops: work around C compiler bugs
20378         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20379         bug in Sun C 5.11 2010/08/13 and other compilers; see
20380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20381
20382         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20383         * doc/intprops.texi (Integer Type Determination): Fix
20384         documentation for TYPE_IS_INTEGER: it returns an constant
20385         expression, not an integer constant expression.  Fix doc for
20386         TYPE_SIGNED: it returns an integer constant expression only if its
20387         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20388         hardly worth documented that way....)
20389
20390 2011-05-18  Bruno Haible  <bruno@clisp.org>
20391
20392         strerror_r: Avoid clobbering the strerror buffer when possible.
20393         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20394         Handle gnulib defined errno values here. When strerror() returns NULL
20395         or an empty string, return EINVAL.
20396         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20397         gnulib defined errno values here.
20398         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20399
20400 2011-05-18  Eric Blake  <eblake@redhat.com>
20401
20402         fnmatch: avoid compiler warning
20403         * lib/fnmatch_loop.c (FCT): Use correct type.
20404         Reported by Matthias Bolte.
20405
20406 2011-05-13  Jim Meyering  <meyering@redhat.com>
20407
20408         maint.mk: three new prohibit_<HDR>_without_use rules
20409         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20410         (sc_prohibit_stdio-safer_without_use): Likewise.
20411         (sc_prohibit_xfreopen_without_use): Likewise.
20412
20413 2011-05-17  Jim Meyering  <meyering@redhat.com>
20414
20415         announce-gen: fail if the NEWS delta is empty
20416         If there's nothing noteworthy in NEWS, then either you forgot
20417         or you shouldn't be releasing.
20418         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20419
20420 2011-05-17  Pádraig Brady <P@draigBrady.com>
20421
20422         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20423         reserved symbols starting with double underscore from the check.
20424
20425 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20426
20427         intprops: add doc
20428         * doc/intprops.texi: New file, documenting intprops.
20429         * doc/gnulib.texi (Particular Modules): Include it.
20430
20431         verify: add doc to gnulib manual and fix example
20432         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20433         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20434         (Compile-time Assertions): Fix example so it can't overflow.
20435
20436 2011-05-17  Jim Meyering  <meyering@redhat.com>
20437
20438         warnings.m4: don't usurp save_CPPFLAGS variable name
20439         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20440
20441         doc: fix typo
20442         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20443
20444 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20445             Bruno Haible  <bruno@clisp.org>
20446
20447         doc: Tweak recent change.
20448         * README (Portability guidelines): Tweak new text.
20449         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20450         Interix 6.1.
20451
20452 2011-05-16  Eric Blake  <eblake@redhat.com>
20453
20454         inttypes: avoid autoconf warning
20455         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20456         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20457
20458 2011-05-16  Sam Steingold <sds@gnu.org>
20459         and Eric Blake  <eblake@redhat.com>
20460
20461         vc-list-files: accept multiple directory operands
20462         * build-aux/vc-list-files: Iterate over all remaining operands.
20463
20464 2011-05-16  Bruno Haible  <bruno@clisp.org>
20465
20466         Fix confusion regarding deprecated modules.
20467         * modules/calloc (Status, Notice): Mark module as deprecated, not
20468         obsolete.
20469         * modules/fnmatch-posix (Status, Notice): Likewise.
20470         * modules/getdate (Status, Notice): Likewise.
20471         * modules/getopt (Status, Notice): Likewise.
20472         * modules/malloc (Status, Notice): Likewise.
20473         * modules/pipe (Status, Notice): Likewise.
20474         * modules/realloc (Status, Notice): Likewise.
20475         * modules/rename-dest-slash (Status, Notice): Likewise.
20476         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20477         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20478         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20479         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20480         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20481
20482 2011-05-16  Bruno Haible  <bruno@clisp.org>
20483
20484         doc: List the target platforms.
20485         * doc/gnulib-intro.texi (Target Platforms): New section.
20486         * doc/gnulib.texi (Introduction): Update menu.
20487         * README (Portability guidelines): Refer to the new section. Update
20488         statement about oldest supported environment. Remove rationale why
20489         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20490         unportable C89 function.
20491         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20492         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20493
20494 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20495
20496         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20497
20498 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20499
20500         intprops-tests: new module
20501         * modules/intprops-tests, tests/test-intprops.c: New files.
20502
20503         intprops: add safe, portable integer overflow checking
20504         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20505         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20506         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20507         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20508         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20509         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20510         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20511         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20512         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20513         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20514         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20515
20516 2011-05-12  James Youngman  <jay@gnu.org>
20517
20518         Add a test for glibc's Bugzilla bug #12378.
20519         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20520         doesn't allow the literal matching of a lone "[" (which is
20521         required by POSIX).
20522         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20523
20524 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20525
20526         Sync glibc change fixing Bugzilla bug #12378.
20527         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20528         beginning and fall back to matching as normal character if the
20529         string ends before the matching ']' is found.  This is what POSIX
20530         requires.
20531
20532 2011-05-13  Eric Blake  <eblake@redhat.com>
20533
20534         getcwd-lgpl: relax test for FreeBSD
20535         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20536         issue.
20537         * tests/test-getcwd-lgpl.c (main): Relax test.
20538         Reported by Matthias Bolte.
20539
20540 2011-05-11  Eric Blake  <eblake@redhat.com>
20541
20542         test-fflush: silence compiler warning
20543         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20544
20545 2011-05-11  Bruno Haible  <bruno@clisp.org>
20546
20547         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20548         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20549         * modules/canonicalize (Depends-on): Add 'nocrash'.
20550         * modules/canonicalize-lgpl (Depends-on): Likewise.
20551         * doc/posix-functions/realpath.texi: Update platforms list.
20552         Reported by Ryan Schmidt <ryandesign@macports.org>.
20553
20554 2011-05-11  Bruno Haible  <bruno@clisp.org>
20555
20556         group-member: Declare function in <unistd.h>.
20557         * lib/unistd.in.h (group_member): New declaration.
20558         * lib/group-member.h: Remove file.
20559         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20560         * tests/test-unistd-c++.cc: Check signature of group_member.
20561         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20562         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20563         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20564         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20565         HAVE_GROUP_MEMBER.
20566         * modules/group-member (Files): Remove lib/group-member.h.
20567         (Depends-on): Add unistd. Specify conditions.
20568         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20569         (Include): Change to <unistd.h>.
20570         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20571         HAVE_GROUP_MEMBER.
20572         * NEWS: Mention the change.
20573         * lib/euidaccess.c: Don't include group-member.h.
20574
20575 2011-05-11  Bruno Haible  <bruno@clisp.org>
20576
20577         group-member: Document module.
20578         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20579         module.
20580
20581 2011-05-11  Bruno Haible  <bruno@clisp.org>
20582
20583         fclose: Fix mistake earlier today.
20584         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20585
20586 2011-05-11  Eric Blake  <eblake@redhat.com>
20587
20588         fclose: preserve fflush errors
20589         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20590         Reported by Jim Meyering.
20591
20592         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20593         * build-aux/bootstrap (check_versions): When no specific version
20594         is required, merely check that the app produces an exit status
20595         that indicates its existence.
20596
20597         maint.mk: drop redundant check
20598         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20599         the same but better.
20600
20601 2011-05-11  Bruno Haible  <bruno@clisp.org>
20602
20603         fclose: Fix possible link error.
20604         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20605         unregister_shadow_fd. Improve comments.
20606         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20607         Eric Blake.
20608
20609 2011-05-11  Jim Meyering  <meyering@redhat.com>
20610
20611         maint.mk: improve "can not" detection and generalize rule name
20612         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20613         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20614         Use the same technique as in sc_prohibit_doubled_word, so that
20615         we recognize "can not" also when the words are separated by a newline.
20616         Suggested by Eric Blake.
20617         (perl_filename_lineno_text_): Define.  Factored out of...
20618         (prohibit_doubled_word_): ...here.  Use the new definition.
20619         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20620         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20621         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20622
20623 2011-05-10  Eric Blake  <eblake@redhat.com>
20624
20625         fclose: avoid double close race when possible
20626         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20627         all but WINDOWS_SOCKETS.
20628
20629 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20630
20631         openat: correct new comment
20632         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20633
20634 2011-05-10  Jim Meyering  <meyering@redhat.com>
20635
20636         openat: add comments
20637         * lib/openat-proc.c (openat_proc_name): Add comments,
20638         mostly from Eric Blake.
20639
20640 2011-05-09  Eric Blake  <eblake@redhat.com>
20641
20642         openat: reduce syscalls in first probe of /proc
20643         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20644         be a directory.  Simplify the probe for .. bugs.
20645         * modules/openat (Depends-on): Drop same-inode.
20646         Reported by Bastien ROUCARIES.
20647
20648 2011-05-09  Jim Meyering  <meyering@redhat.com>
20649
20650         maint.mk: change semantics/name of tight_scope variables
20651         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20652         Rename variables to align with semantics that make them more useful.
20653
20654         maint.mk: tweak new rule's name not to impinge
20655         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20656         (sc_tight_scope): Use new rule name rather than $@-0.
20657
20658         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20659         * top/maint.mk (sc_tight_scope): New rule.
20660         (sc_tight_scope-0): New rule, ifdef'd out.
20661         (_gl_TS_dir): Default.
20662         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20663         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20664
20665 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20666
20667         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20668         Haible <bruno@clisp.org>.
20669
20670 2011-05-08  Bruno Haible  <bruno@clisp.org>
20671
20672         Comments.
20673         * m4/isnanf.m4: Add comment.
20674         * m4/isnanl.m4: Likewise.
20675
20676 2011-05-08  Bruno Haible  <bruno@clisp.org>
20677
20678         glob: Remove obsolete macro.
20679         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20680
20681 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20682
20683         intprops: Sun C 5.11 supports __typeof__
20684         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20685         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20686         which is new.
20687         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20688
20689         intprops: switch to usual gnulib indenting and naming
20690         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20691         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20692
20693         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20694
20695 2011-05-08  Jim Meyering  <meyering@redhat.com>
20696
20697         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20698         * top/maint.mk (release-prep): Use make's --no-print-directory
20699         option when generating the announcement.  This eliminates the
20700         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20701         generated announcement template.
20702
20703 2011-05-08  Bruno Haible  <bruno@clisp.org>
20704
20705         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20706         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20707         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20708
20709 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         ignore-value, verify: Omit include files from lib_SOURCES.
20712         * modules/ignore-value, modules/verify (Makefile.am):
20713         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20714         that leads Automake to duplicate use of am__objects_... variables
20715         in Makefile.in.  See
20716         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20717
20718 2011-05-07  Bruno Haible  <bruno@clisp.org>
20719
20720         fclose: Simplify autoconf macro.
20721         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20722         defined.
20723
20724 2011-05-07  Bruno Haible  <bruno@clisp.org>
20725
20726         canonicalize-lgpl: Fix autoconf macro ordering bug.
20727         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20728         gl_STDLIB_H_DEFAULTS.
20729
20730 2011-05-06  Eric Blake  <eblake@redhat.com>
20731
20732         maintainer-makefile: make sc_po_check easier to tune
20733         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20734         to probe for strings, such as an alternate location for gnulib.
20735
20736         fclose: guarantee behavior on seekable stdin
20737         * modules/fclose (Depends-on): Add fflush.
20738         * doc/posix-functions/fclose.texi (fclose): Document this.
20739         * tests/test-fclose.c (main): Make test for this unconditional.
20740
20741 2011-05-06  Bruno Haible  <bruno@clisp.org>
20742
20743         fflush, fpurge: Relicense under LGPLv2+.
20744         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20745         * modules/fpurge (License): Likewise.
20746         With permission from Eric Blake and Jim Meyering.
20747         Suggested by Eric Blake.
20748
20749 2011-05-06  Karl Berry  <karl@gnu.org>
20750
20751         * MODULES.html.sh (func_all_modules): remove exit.
20752
20753 2011-05-06  Jim Meyering  <meyering@redhat.com>
20754
20755         maint.mk: use info-gnu@ as the default only for a stable release
20756         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20757         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20758         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20759         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20760
20761 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20762
20763         assert-h: new module, which supports C1X-style static_assert
20764         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20765         * lib/verify.h: Revamp so that this can be copied into assert.h,
20766         while retaining the ability to use it standalone as before.
20767         Rename private identifiers so as not to encroach on the
20768         standard C namespace, since this is now used by assert.h.
20769         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20770         the old verify_true.
20771         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20772         the old verify_true.  Use _GL_VERIFY_TYPE.
20773         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20774         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20775         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20776         defined when this file is copied into the replacement assert.h.
20777         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20778         and _Static_assert is not built in.
20779         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20780         defined, and use the new macros mentioned above.
20781         * doc/posix-headers/assert.texi: Document this.
20782
20783 2011-05-05  Bruno Haible  <bruno@clisp.org>
20784
20785         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20786         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20787         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20788         gl_REPLACE_FCLOSE here.
20789         * modules/fflush (Depends-on): Remove fclose.
20790         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20791         combination with module 'fclose'.
20792
20793 2011-05-05  Bruno Haible  <bruno@clisp.org>
20794
20795         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20796         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20797         gl_FUNC_FFLUSH.
20798         (gl_FUNC_FFLUSH): Use it.
20799         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20801         gl_REPLACE_FSEEKO here.
20802
20803 2011-05-05  Bruno Haible  <bruno@clisp.org>
20804
20805         tzset: Relicense under LGPL.
20806         * modules/tzset (License): Change to LGPL.
20807         No agreement needed; it's a no-op.
20808
20809         strtoimax, strtoumax: Relicense under LGPL.
20810         * modules/strtoimax (License): Change to LGPL.
20811         * modules/strtoumax (License): Likewise.
20812         With permission from Jim Meyering, Paul Eggert:
20813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20815
20816         getgroups: Relicense under LGPL.
20817         * modules/getgroups (License): Change to LGPL.
20818         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20822
20823         nanosleep: Relicense under LGPL.
20824         * modules/nanosleep (License): Change to LGPL.
20825         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20826         Haible:
20827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20831
20832         futimens: Relicense under LGPL.
20833         * modules/futimens (License): Change to LGPL.
20834         With permission from Eric Blake:
20835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20836
20837         fflush: Relicense under LGPL.
20838         * modules/fflush (License): Change to LGPL.
20839         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20843
20844         tmpfile: Relicense under LGPL.
20845         * modules/tmpfile (License): Change to LGPL.
20846         With permission from Ben Pfaff:
20847         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20848
20849         isfinite: Relicense under LGPL.
20850         * modules/isfinite (License): Change to LGPL.
20851         With permission from Ben Pfaff, Bruno Haible:
20852         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20854
20855         acosl..tanl: Relicense under LGPL.
20856         * modules/acosl (License): Change to LGPL.
20857         * modules/asinl (License): Likewise.
20858         * modules/atanl (License): Likewise.
20859         * modules/cosl (License): Likewise.
20860         * modules/expl (License): Likewise.
20861         * modules/logl (License): Likewise.
20862         * modules/sinl (License): Likewise.
20863         * modules/sqrtl (License): Likewise.
20864         * modules/tanl (License): Likewise.
20865         Source code originally from glibc and Paolo Bonzini. Agreements:
20866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20868
20869 2011-05-05  Bruno Haible  <bruno@clisp.org>
20870
20871         signal: Define sighandler_t.
20872         * lib/signal.in.h (sighandler_t): New type.
20873         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20874         whether sighandler_t is defined.
20875         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20876         * modules/signal (Depends-on): Add extensions.
20877         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20878         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20879         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20880
20881 2011-05-05  Eric Blake  <eblake@redhat.com>
20882
20883         maint: remove useless REPLACE_*_H macros
20884         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20885         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20886         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20887         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20888         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20889         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20890         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20891         * m4/btowc.m4: Update callers.
20892         * m4/dirfd.m4: Likewise.
20893         * m4/duplocale.m4: Likewise.
20894         * m4/fchdir.m4: Likewise.
20895         * m4/fdopendir.m4: Likewise.
20896         * m4/inet_ntop.m4: Likewise.
20897         * m4/inet_pton.m4: Likewise.
20898         * m4/ioctl.m4: Likewise.
20899         * m4/mbrlen.m4: Likewise.
20900         * m4/mbrtowc.m4: Likewise.
20901         * m4/mbsinit.m4: Likewise.
20902         * m4/mbsnrtowcs.m4: Likewise.
20903         * m4/mbsrtowcs.m4: Likewise.
20904         * m4/poll.m4: Likewise.
20905         * m4/setlocale.m4: Likewise.
20906         * m4/wcrtomb.m4: Likewise.
20907         * m4/wcsnrtombs.m4: Likewise.
20908         * m4/wcsrtombs.m4: Likewise.
20909         * m4/wctob.m4: Likewise.
20910         * m4/wcwidth.m4: Likewise.
20911         * modules/posix_spawn: Likewise.
20912         * modules/posix_spawn_file_actions_addclose: Likewise.
20913         * modules/posix_spawn_file_actions_adddup2: Likewise.
20914         * modules/posix_spawn_file_actions_addopen: Likewise.
20915         * modules/posix_spawn_file_actions_destroy: Likewise.
20916         * modules/posix_spawn_file_actions_init: Likewise.
20917         * modules/posix_spawnattr_destroy: Likewise.
20918         * modules/posix_spawnattr_getflags: Likewise.
20919         * modules/posix_spawnattr_getpgroup: Likewise.
20920         * modules/posix_spawnattr_getschedparam: Likewise.
20921         * modules/posix_spawnattr_getschedpolicy: Likewise.
20922         * modules/posix_spawnattr_getsigdefault: Likewise.
20923         * modules/posix_spawnattr_getsigmask: Likewise.
20924         * modules/posix_spawnattr_init: Likewise.
20925         * modules/posix_spawnattr_setflags: Likewise.
20926         * modules/posix_spawnattr_setpgroup: Likewise.
20927         * modules/posix_spawnattr_setschedparam: Likewise.
20928         * modules/posix_spawnattr_setschedpolicy: Likewise.
20929         * modules/posix_spawnattr_setsigdefault: Likewise.
20930         * modules/posix_spawnattr_setsigmask: Likewise.
20931         * modules/posix_spawnp: Likewise.
20932
20933 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20934
20935         Add option to do-release-commit-and-tag to specify branch.
20936         * build-aux/do-release-commit-and-tag: Add --branch.
20937
20938 2011-05-03  Bruno Haible  <bruno@clisp.org>
20939
20940         Avoid unnecessary compilation units, through conditional dependencies.
20941         * modules/accept (Depends-on): Add conditions to the dependencies.
20942         * modules/acosl (Depends-on): Likewise.
20943         * modules/argz (Depends-on): Likewise.
20944         * modules/asinl (Depends-on): Likewise.
20945         * modules/atanl (Depends-on): Likewise.
20946         * modules/atoll (Depends-on): Likewise.
20947         * modules/bind (Depends-on): Likewise.
20948         * modules/btowc (Depends-on): Likewise.
20949         * modules/canonicalize-lgpl (Depends-on): Likewise.
20950         * modules/ceil (Depends-on): Likewise.
20951         * modules/ceilf (Depends-on): Likewise.
20952         * modules/ceill (Depends-on): Likewise.
20953         * modules/chdir-long (Depends-on): Likewise.
20954         * modules/chown (Depends-on): Likewise.
20955         * modules/close (Depends-on): Likewise.
20956         * modules/connect (Depends-on): Likewise.
20957         * modules/cosl (Depends-on): Likewise.
20958         * modules/dirfd (Depends-on): Likewise.
20959         * modules/dprintf (Depends-on): Likewise.
20960         * modules/dprintf-posix (Depends-on): Likewise.
20961         * modules/error (Depends-on): Likewise.
20962         * modules/euidaccess (Depends-on): Likewise.
20963         * modules/expl (Depends-on): Likewise.
20964         * modules/faccessat (Depends-on): Likewise.
20965         * modules/fchdir (Depends-on): Likewise.
20966         * modules/fclose (Depends-on): Likewise.
20967         * modules/fcntl (Depends-on): Likewise.
20968         * modules/fdopendir (Depends-on): Likewise.
20969         * modules/fflush (Depends-on): Likewise.
20970         * modules/floor (Depends-on): Likewise.
20971         * modules/floorf (Depends-on): Likewise.
20972         * modules/floorl (Depends-on): Likewise.
20973         * modules/fnmatch (Depends-on): Likewise.
20974         * modules/fopen (Depends-on): Likewise.
20975         * modules/fprintf-posix (Depends-on): Likewise.
20976         * modules/frexp (Depends-on): Likewise.
20977         * modules/frexp-nolibm (Depends-on): Likewise.
20978         * modules/frexpl (Depends-on): Likewise.
20979         * modules/frexpl-nolibm (Depends-on): Likewise.
20980         * modules/fseek (Depends-on): Likewise.
20981         * modules/fsusage (Depends-on): Likewise.
20982         * modules/ftell (Depends-on): Likewise.
20983         * modules/ftello (Depends-on): Likewise.
20984         * modules/futimens (Depends-on): Likewise.
20985         * modules/getcwd (Depends-on): Likewise.
20986         * modules/getcwd-lgpl (Depends-on): Likewise.
20987         * modules/getdelim (Depends-on): Likewise.
20988         * modules/getdomainname (Depends-on): Likewise.
20989         * modules/getgroups (Depends-on): Likewise.
20990         * modules/gethostname (Depends-on): Likewise.
20991         * modules/getline (Depends-on): Likewise.
20992         * modules/getlogin_r (Depends-on): Likewise.
20993         * modules/getopt-posix (Depends-on): Likewise.
20994         * modules/getpeername (Depends-on): Likewise.
20995         * modules/getsockname (Depends-on): Likewise.
20996         * modules/getsockopt (Depends-on): Likewise.
20997         * modules/getsubopt (Depends-on): Likewise.
20998         * modules/getusershell (Depends-on): Likewise.
20999         * modules/glob (Depends-on): Likewise.
21000         * modules/grantpt (Depends-on): Likewise.
21001         * modules/iconv_open (Depends-on): Likewise.
21002         * modules/iconv_open-utf (Depends-on): Likewise.
21003         * modules/inet_ntop (Depends-on): Likewise.
21004         * modules/inet_pton (Depends-on): Likewise.
21005         * modules/ioctl (Depends-on): Likewise.
21006         * modules/isapipe (Depends-on): Likewise.
21007         * modules/isfinite (Depends-on): Likewise.
21008         * modules/isinf (Depends-on): Likewise.
21009         * modules/lchown (Depends-on): Likewise.
21010         * modules/ldexpl (Depends-on): Likewise.
21011         * modules/link (Depends-on): Likewise.
21012         * modules/linkat (Depends-on): Likewise.
21013         * modules/listen (Depends-on): Likewise.
21014         * modules/logl (Depends-on): Likewise.
21015         * modules/lstat (Depends-on): Likewise.
21016         * modules/mbrlen (Depends-on): Likewise.
21017         * modules/mbrtowc (Depends-on): Likewise.
21018         * modules/mbsinit (Depends-on): Likewise.
21019         * modules/mbsnrtowcs (Depends-on): Likewise.
21020         * modules/mbsrtowcs (Depends-on): Likewise.
21021         * modules/mbtowc (Depends-on): Likewise.
21022         * modules/memcmp (Depends-on): Likewise.
21023         * modules/mkdir (Depends-on): Likewise.
21024         * modules/mkdtemp (Depends-on): Likewise.
21025         * modules/mkfifo (Depends-on): Likewise.
21026         * modules/mkfifoat (Depends-on): Likewise.
21027         * modules/mknod (Depends-on): Likewise.
21028         * modules/mkostemp (Depends-on): Likewise.
21029         * modules/mkostemps (Depends-on): Likewise.
21030         * modules/mkstemp (Depends-on): Likewise.
21031         * modules/mkstemps (Depends-on): Likewise.
21032         * modules/mktime (Depends-on): Likewise.
21033         * modules/nanosleep (Depends-on): Likewise.
21034         * modules/open (Depends-on): Likewise.
21035         * modules/openat (Depends-on): Likewise.
21036         * modules/perror (Depends-on): Likewise.
21037         * modules/poll (Depends-on): Likewise.
21038         * modules/popen (Depends-on): Likewise.
21039         * modules/posix_spawn (Depends-on): Likewise.
21040         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21041         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21042         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21043         * modules/posix_spawnp (Depends-on): Likewise.
21044         * modules/pread (Depends-on): Likewise.
21045         * modules/printf-posix (Depends-on): Likewise.
21046         * modules/ptsname (Depends-on): Likewise.
21047         * modules/putenv (Depends-on): Likewise.
21048         * modules/pwrite (Depends-on): Likewise.
21049         * modules/readline (Depends-on): Likewise.
21050         * modules/readlink (Depends-on): Likewise.
21051         * modules/readlinkat (Depends-on): Likewise.
21052         * modules/recv (Depends-on): Likewise.
21053         * modules/recvfrom (Depends-on): Likewise.
21054         * modules/regex (Depends-on): Likewise.
21055         * modules/remove (Depends-on): Likewise.
21056         * modules/rename (Depends-on): Likewise.
21057         * modules/renameat (Depends-on): Likewise.
21058         * modules/rmdir (Depends-on): Likewise.
21059         * modules/round (Depends-on): Likewise.
21060         * modules/roundf (Depends-on): Likewise.
21061         * modules/roundl (Depends-on): Likewise.
21062         * modules/rpmatch (Depends-on): Likewise.
21063         * modules/select (Depends-on): Likewise.
21064         * modules/send (Depends-on): Likewise.
21065         * modules/sendto (Depends-on): Likewise.
21066         * modules/setenv (Depends-on): Likewise.
21067         * modules/setlocale (Depends-on): Likewise.
21068         * modules/setsockopt (Depends-on): Likewise.
21069         * modules/shutdown (Depends-on): Likewise.
21070         * modules/sigaction (Depends-on): Likewise.
21071         * modules/signbit (Depends-on): Likewise.
21072         * modules/sigprocmask (Depends-on): Likewise.
21073         * modules/sinl (Depends-on): Likewise.
21074         * modules/sleep (Depends-on): Likewise.
21075         * modules/snprintf (Depends-on): Likewise.
21076         * modules/snprintf-posix (Depends-on): Likewise.
21077         * modules/socket (Depends-on): Likewise.
21078         * modules/sprintf-posix (Depends-on): Likewise.
21079         * modules/sqrtl (Depends-on): Likewise.
21080         * modules/stat (Depends-on): Likewise.
21081         * modules/strchrnul (Depends-on): Likewise.
21082         * modules/strdup-posix (Depends-on): Likewise.
21083         * modules/strerror (Depends-on): Likewise.
21084         * modules/strerror_r-posix (Depends-on): Likewise.
21085         * modules/strndup (Depends-on): Likewise.
21086         * modules/strnlen (Depends-on): Likewise.
21087         * modules/strptime (Depends-on): Likewise.
21088         * modules/strsep (Depends-on): Likewise.
21089         * modules/strsignal (Depends-on): Likewise.
21090         * modules/strstr-simple (Depends-on): Likewise.
21091         * modules/strtod (Depends-on): Likewise.
21092         * modules/strtoimax (Depends-on): Likewise.
21093         * modules/strtok_r (Depends-on): Likewise.
21094         * modules/strtoumax (Depends-on): Likewise.
21095         * modules/symlink (Depends-on): Likewise.
21096         * modules/symlinkat (Depends-on): Likewise.
21097         * modules/tanl (Depends-on): Likewise.
21098         * modules/tcgetsid (Depends-on): Likewise.
21099         * modules/tmpfile (Depends-on): Likewise.
21100         * modules/trunc (Depends-on): Likewise.
21101         * modules/truncf (Depends-on): Likewise.
21102         * modules/truncl (Depends-on): Likewise.
21103         * modules/uname (Depends-on): Likewise.
21104         * modules/unlink (Depends-on): Likewise.
21105         * modules/unlockpt (Depends-on): Likewise.
21106         * modules/unsetenv (Depends-on): Likewise.
21107         * modules/usleep (Depends-on): Likewise.
21108         * modules/utimensat (Depends-on): Likewise.
21109         * modules/vasprintf (Depends-on): Likewise.
21110         * modules/vdprintf (Depends-on): Likewise.
21111         * modules/vdprintf-posix (Depends-on): Likewise.
21112         * modules/vfprintf-posix (Depends-on): Likewise.
21113         * modules/vprintf-posix (Depends-on): Likewise.
21114         * modules/vsnprintf (Depends-on): Likewise.
21115         * modules/vsnprintf-posix (Depends-on): Likewise.
21116         * modules/vsprintf-posix (Depends-on): Likewise.
21117         * modules/wcrtomb (Depends-on): Likewise.
21118         * modules/wcscasecmp (Depends-on): Likewise.
21119         * modules/wcscspn (Depends-on): Likewise.
21120         * modules/wcsdup (Depends-on): Likewise.
21121         * modules/wcsncasecmp (Depends-on): Likewise.
21122         * modules/wcsnrtombs (Depends-on): Likewise.
21123         * modules/wcspbrk (Depends-on): Likewise.
21124         * modules/wcsrtombs (Depends-on): Likewise.
21125         * modules/wcsspn (Depends-on): Likewise.
21126         * modules/wcsstr (Depends-on): Likewise.
21127         * modules/wcstok (Depends-on): Likewise.
21128         * modules/wcswidth (Depends-on): Likewise.
21129         * modules/wctob (Depends-on): Likewise.
21130         * modules/wctomb (Depends-on): Likewise.
21131         * modules/wctype (Depends-on): Likewise.
21132         * modules/wcwidth (Depends-on): Likewise.
21133         * modules/write (Depends-on): Likewise.
21134
21135 2011-05-03  Bruno Haible  <bruno@clisp.org>
21136
21137         Support for conditional dependencies.
21138         * doc/gnulib.texi (Module description): Document the syntax of
21139         conditional dependencies.
21140         * gnulib-tool: New option --conditional-dependencies.
21141         (func_usage): Document it.
21142         (cond_dependencies): New variable.
21143         (func_get_automake_snippet_conditional,
21144         func_get_automake_snippet_unconditional): New functions, extracted from
21145         func_get_automake_snippet.
21146         (func_get_automake_snippet): Use them.
21147         (sed_first_32_chars): New variable.
21148         (func_module_shellfunc_name): New function.
21149         (func_module_shellvar_name): New function.
21150         (func_module_conditional_name): New function.
21151         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21152         func_cond_module_condition): New functions.
21153         (func_modules_transitive_closure): Add support for conditional
21154         dependencies.
21155         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21156         conditional automake snippet in an automake conditional.
21157         (func_emit_autoconf_snippets): Emit shell functions that contain the
21158         code for conditional modules.
21159         (func_import, func_create_testdir): Update specification.
21160
21161 2011-05-03  Eric Blake  <eblake@redhat.com>
21162
21163         test-getaddrinfo: report error information
21164         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21165
21166 2011-05-03  Jim Meyering  <meyering@redhat.com>
21167
21168         bootstrap: avoid build failure when $GZIP is set
21169         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21170         program name.  If defined at all, it is supposed to list gzip options.
21171         Reported by Alan Curry in http://debbugs.gnu.org/8609
21172
21173 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21174
21175         readme-release: new module with release instructions
21176         * modules/readme-release: New module.
21177         * top/README-release: New file, from coreutils, grep, diffutils.
21178         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21179
21180 2011-05-02  Eric Blake  <eblake@redhat.com>
21181
21182         fflush: also replace fclose when fixing fflush
21183         * modules/fflush (Depends-on): Add fclose.
21184         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21185         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21186         memstreams with no backing fd.
21187         * doc/posix-functions/fclose.texi (fclose): Document the use of
21188         fflush module to fix the bug.
21189         * tests/test-fclose.c (main): Relax test when fclose is used in
21190         isolation.
21191
21192         fclose: add some tests
21193         * modules/fclose-tests: New test module.
21194         * tests/test-fclose.c: New file.
21195         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21196
21197         fclose: reduced dependencies
21198         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21199         simpler lseek.
21200         * lib/fclose.c (rpl_fclose): Likewise.
21201         Reported by Simon Josefsson.
21202
21203         exit: drop remaining clients
21204         * modules/argmatch (Depends-on): Replace exit with stdlib.
21205         * modules/copy-file (Depends-on): Likewise.
21206         * modules/execute (Depends-on): Likewise.
21207         * modules/exitfail (Depends-on): Likewise.
21208         * modules/obstack (Depends-on): Likewise.
21209         * modules/pagealign_alloc (Depends-on): Likewise.
21210         * modules/pipe-filter-gi (Depends-on): Likewise.
21211         * modules/pipe-filter-ii (Depends-on): Likewise.
21212         * modules/savewd (Depends-on): Likewise.
21213         * modules/spawn-pipe (Depends-on): Likewise.
21214         * modules/wait-process (Depends-on): Likewise.
21215         * modules/xsetenv (Depends-on): Likewise.
21216         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21217         * modules/git-merge-changelog (Depends-on): Likewise.
21218         * modules/long-options (Depends-on): Likewise.
21219         * modules/pt_chown (Depends-on): Likewise.
21220         * modules/sysexits (Depends-on): Likewise.
21221
21222         freading: relax license from LGPLv3+ to LGPLv2+
21223         * modules/freading (License): Relax LGPL version.
21224
21225 2011-05-02  Bruno Haible  <bruno@clisp.org>
21226
21227         fchdir: Remove unused dependencies.
21228         * modules/fchdir (Depends-on): Remove include_next.
21229
21230 2011-05-02  Bruno Haible  <bruno@clisp.org>
21231
21232         gnulib-tool: Refactor.
21233         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21234         from func_emit_autoconf_snippets.
21235         (func_emit_autoconf_snippets): Use it.
21236
21237 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21238
21239         * NEWS: Document removal of 'exit'.
21240         * modules/exit: Remove file.
21241
21242 2011-05-01  Bruno Haible  <bruno@clisp.org>
21243
21244         Update DEPENDENCIES.
21245         * DEPENDENCIES (gettext): Recommend the newest release.
21246         Reported by Simon Josefsson.
21247
21248 2011-05-01  Bruno Haible  <bruno@clisp.org>
21249
21250         gnulib-tool: Reduce code duplication.
21251         * gnulib-tool (func_emit_autoconf_snippets): New function.
21252         (func_import, func_create_testdir): Use it.
21253
21254 2011-04-30  Eric Blake  <eblake@redhat.com>
21255
21256         fclose: don't fail on non-seekable input stream
21257         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21258         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21259         since fflush is allowed to fail in that case.
21260
21261 2011-04-30  Bruno Haible  <bruno@clisp.org>
21262
21263         dup3: cleanup
21264         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21265
21266 2011-04-30  Bruno Haible  <bruno@clisp.org>
21267
21268         netdb: Make it work in C++ mode.
21269         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21270         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21271         module.
21272         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21273         gl_MODULE_INDICATOR_FOR_TESTS.
21274         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21275         * modules/netdb-c++-tests: New file.
21276         * tests/test-netdb-c++.cc: New file.
21277
21278 2011-04-30  Bruno Haible  <bruno@clisp.org>
21279
21280         New modules 'vfscanf', 'vscanf'.
21281         * modules/vfscanf: New file.
21282         * modules/vscanf: New file.
21283         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21284         here.
21285         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21286         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21287
21288 2011-04-30  Bruno Haible  <bruno@clisp.org>
21289
21290         passfd: Add comments.
21291         * lib/passfd.c: Add comments about platforms.
21292
21293 2011-04-30  Bruno Haible  <bruno@clisp.org>
21294
21295         sys_uio: Make <sys/uio.h> self-contained.
21296         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21297         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21298
21299 2011-04-30  Bruno Haible  <bruno@clisp.org>
21300
21301         sys_socket: Ensure 'struct iovec' definition.
21302         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21303         <sys/socket.h>.
21304         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21305
21306 2011-04-30  Bruno Haible  <bruno@clisp.org>
21307
21308         sys_uio: Protect definition of 'struct iovec'.
21309         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21310         it as a C struct.
21311
21312 2011-04-30  Bruno Haible  <bruno@clisp.org>
21313
21314         manywarnings: fix indentation
21315         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21316
21317 2011-04-30  Pádraig Brady <P@draigBrady.com>
21318
21319         manywarnings: add -Wno-missing-field-initializers if needed.
21320         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21321         option if it's needed to allow initialization with { 0, }
21322
21323 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21324
21325         announce-gen: cosmetic improvement
21326         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21327
21328 2011-04-29  Jim Meyering  <meyering@redhat.com>
21329
21330         vc-list-files: indent with spaces, not TABs
21331         * build-aux/vc-list-files: Convert leading TABs to spaces,
21332         to match the style of most other files in gnulib.
21333
21334         announce-gen: indent with spaces, not TABs
21335         * build-aux/announce-gen: Convert all TABs to spaces, to match
21336         the style of most other files in gnulib.
21337
21338 2011-04-29  Eric Blake  <eblake@redhat.com>
21339
21340         quotearg: avoid uninitialized variable use
21341         * lib/quotearg.c (quoting_options_from_style): Initialize
21342         remaining fields, and ensure that custom styles are only used via
21343         quoting_options rather than quoting_style.
21344
21345 2011-04-29  Jim Meyering  <meyering@redhat.com>
21346
21347         maint.mk: remove unused VC-tag variable
21348         * top/maint.mk (VC-tag): Remove unused variable.
21349
21350 2011-04-29  Bruno Haible  <bruno@clisp.org>
21351
21352         netdb: fix gai_strerror replacements
21353         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21354         * modules/netdb: Substitute it.
21355
21356 2011-04-29  Jim Meyering  <meyering@redhat.com>
21357
21358         test-getcwd.c: avoid new set-but-not-used warning
21359         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21360         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21361         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21362         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21363
21364         test-hash.c: avoid a new shadowing warning
21365         * tests/test-hash.c (main): Don't shadow "dup".
21366
21367 2011-04-28  Eric Blake  <eblake@redhat.com>
21368
21369         getaddrinfo: fix gai_strerror signature
21370         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21371         and work around mingw with UNICODE defined.
21372         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21373         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21374         * modules/netdb (Makefile.am): Substitute it.
21375         * lib/netdb.in.h (gai_strerror): Declare replacement.
21376         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21377         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21378         the fix.
21379
21380         getsockopt: avoid compiler warning
21381         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21382         Reported by Matthias Bolte.
21383
21384         tests: drop unused link dependency
21385         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21386         * modules/dirent-safer-tests (Makefile.am): Likewise.
21387         * modules/fdopendir-tests (Makefile.am): Likewise.
21388         * modules/mkfifoat-tests (Makefile.am): Likewise.
21389         * modules/openat-safer-tests (Makefile.am): Likewise.
21390         * modules/openat-tests (Makefile.am): Likewise.
21391         * modules/readlinkat-tests (Makefile.am): Likewise.
21392         * modules/symlinkat-tests (Makefile.am): Likewise.
21393         * modules/linkat-tests (Makefile.am): Likewise.
21394         (Depends-on): Switch to filenamecat-lgpl.
21395         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21396         LIBINTL.
21397         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21398         * tests/test-linkat.c (main): Don't require xalloc.
21399
21400         hash, mgetgroups: drop xalloc dependency
21401         * lib/hash.c (includes): Adjust includes.
21402         * lib/mgetgroups.c (includes): Likewise.
21403         (xgetgroups): Move...
21404         * lib/xgetgroups.c: ...to new file.
21405         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21406         * modules/xgetgroups: New file, split from...
21407         * modules/mgetgroups: ...here.
21408         (Depends-on): Add xalloc-oversized.
21409         * modules/hash (Depends-on): Likewise.
21410         * modules/hash-tests (Depends-on): Drop xalloc.
21411         (test_hash_LDADD): Drop unused library.
21412         * tests/test-hash.c (main): Break xalloc dependency.
21413         (includes): Drop unused include.
21414
21415         xalloc-oversized: new module
21416         * modules/xalloc-oversized: New module.
21417         * modules/xalloc (Depends-on): Add it.
21418         * lib/xalloc.h (xalloc_oversized): Move...
21419         * lib/xalloc-oversized.h: ...into new file.
21420
21421         utimecmp: drop dependency on xmalloc
21422         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21423         due to memory pressure.
21424         * modules/utimecmp (Depends-on): Drop xalloc.
21425
21426 2011-04-27  Eric Blake  <eblake@redhat.com>
21427
21428         getcwd: fix mingw bugs
21429         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21430         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21431         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21432
21433 2011-04-27  Bruno Haible  <bruno@clisp.org>
21434
21435         mkstemps: Ensure declaration on MacOS X 10.5.
21436         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21437         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21438         MacOS X.
21439
21440 2011-04-27  Bruno Haible  <bruno@clisp.org>
21441
21442         mkstemp: More documentation.
21443         * doc/posix-functions/mkstemp.texi: Document header file problem on
21444         MacOS X.
21445
21446 2011-04-27  Bruno Haible  <bruno@clisp.org>
21447
21448         mkstemp: Tweak configure message when cross-compiling.
21449         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21450         result as a guess.
21451
21452 2011-04-27  Bruno Haible  <bruno@clisp.org>
21453
21454         clean-temp: Clarify what it does.
21455         * lib/clean-temp.h: Add more comments.
21456         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21457         module.
21458         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21459         * doc/glibc-functions/mkstemps.texi: Likewise.
21460         * doc/glibc-functions/mkostemps.texi: Likewise.
21461
21462 2011-04-27  Eric Blake  <eblake@redhat.com>
21463
21464         fchdir: avoid extra chdir and fix test
21465         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21466         getcwd-lgpl.
21467         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21468         have to be canonical.
21469         (canonicalize_file_name): Drop unused macro.
21470         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21471
21472         filenamecat-lgpl: fix licence
21473         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21474         when it was first created.
21475
21476         linkat, renameat: add missing dependency
21477         * modules/linkat (Depends-on): Require getcwd-lgpl.
21478         * modules/renameat (Depends-on): Likewise.
21479
21480         tests: reduce dependencies
21481         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21482         * tests/test-renameat.c (main): Likewise.
21483         * modules/linkat-tests (Depends-on): Relax dependency.
21484         * modules/renameat-tests (Depends-on): Likewise.
21485         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21486         dependency explicit.
21487
21488         save-cwd: reduce default dependency
21489         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21490         * lib/save-cwd.c: Update comments.
21491         * NEWS: Document the semantic change.
21492
21493         getcwd: enhance tests
21494         * tests/test-getcwd-lgpl.c: New file, taken from...
21495         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21496         repeat long path stress tests from m4 probe.
21497         * modules/getcwd-lgpl-tests: New module.
21498         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21499         * m4/getcwd-abort-bug.m4: Update comment.
21500         * m4/getcwd-path-max.m4: Likewise.
21501
21502         getcwd-lgpl: new module
21503         * modules/getcwd-lgpl: New module.
21504         * lib/getcwd-lgpl.c: New file.
21505         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21506         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21507         * modules/getcwd (configure.ac): Set C witness.
21508         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21509
21510         getcwd: tweak comments
21511         * m4/getcwd-abort-bug.m4: Fix comments.
21512         * m4/getcwd-path-max.m4: Likewise.
21513         * m4/getcwd.m4: Likewise.
21514
21515 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21516         and Eric Blake  <eblake@redhat.com>
21517
21518         mkstemp: replace if system version uses wrong permissions
21519         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21520         read/write mode bits set in file created by mkstemp.
21521         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21522
21523 2011-04-27  Eric Blake  <eblake@redhat.com>
21524
21525         passfd: avoid compiler warning
21526         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21527         Reported by Laine Stump.
21528
21529 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21530
21531         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21532         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21533
21534 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21535         and Eric Blake  <eblake@redhat.com>
21536
21537         mkstemp: mention clean-temp module
21538         * lib/mkstemp.c: Add comment.
21539         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21540
21541 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         inttypes: also provide default values for 32-bit tests
21544         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21545         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21546
21547 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21548
21549         strtoumax: remove dependency on strtoimax
21550         This is like the strtoull change of yesterday.
21551         * modules/strtoumax (Files): Add lib/strtoimax.c.
21552         (Depends-on): Remove strtoimax and add verify.
21553
21554         inttypes-incomplete: new module
21555         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21556         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21557         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21558         of gl_INTTYPES_H.
21559         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21560         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21561         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21562         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21563         * modules/strtoumax, modules/xstrtol (Depends-on):
21564         Depend on inttypes-incomplete, not inttypes.
21565         * modules/inttypes-incomplete: New module, containing the contents
21566         of the old modules/inttypes module, except that the Files: section
21567         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21568         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21569         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21570         (Depends-on): Depend only on inttypes-incomplete.
21571         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21572
21573         inttypes: omit now-redundant strtoimax and strtoumax work
21574         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21575         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21576
21577         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21578         This supports apps that need pointers to strtoimax and strtoumax,
21579         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21580         nonexistent functions.  See
21581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21582         et seq.
21583         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21584         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21585         a macro.
21586         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21587
21588 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21589
21590         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21591
21592 2011-04-25  Bruno Haible  <bruno@clisp.org>
21593
21594         strtol, strtoul: Mark modules as obsolete.
21595         * modules/strtol (Status, Notice): New sections.
21596         * modules/strtoul (Status, Notice): New sections.
21597
21598 2011-04-25  Bruno Haible  <bruno@clisp.org>
21599
21600         strtod: Remove check for strtod, unless supporting old platforms.
21601         * modules/strtod-obsolete: New file.
21602         * m4/strtod-obsolete.m4: New file.
21603         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21604         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21605         * modules/strtod (Depends-on): Add strtod-obsolete.
21606         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21607
21608 2011-04-25  Bruno Haible  <bruno@clisp.org>
21609
21610         strcase: Make module obsolete.
21611         * modules/strcase (Status, Notice): New sections.
21612
21613 2011-04-25  Bruno Haible  <bruno@clisp.org>
21614
21615         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21616         * modules/dup2-obsolete: New file.
21617         * m4/dup2-obsolete.m4: New file.
21618         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21619         gl_FUNC_DUP2_OBSOLETE is not also defined.
21620         * modules/dup2 (Depends-on): Add dup2-obsolete.
21621         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21622
21623 2011-04-25  Bruno Haible  <bruno@clisp.org>
21624
21625         strnlen: Avoid memchr related link error on old obsolete platforms.
21626         * modules/memchr-obsolete: New file.
21627         * m4/memchr-obsolete.m4: New file.
21628         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21629         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21630         * modules/memchr (Depends-on): Add memchr-obsolete.
21631         * modules/strnlen (Depends-on): Likewise.
21632         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21633
21634 2011-04-25  Jim Meyering  <meyering@redhat.com>
21635
21636         maint.mk: makefile_at_at_check extend and clean up
21637         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21638         in addition to */Makefile.am.
21639         Exempt legitimate uses of @VAR@ notation, e.g.,
21640         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21641         Remove obsolete coreutils-specific comment.
21642         Prompted by discussion here:
21643         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21644
21645 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21646
21647         strtoul: remove dependency on strtol
21648         This is so that 'configure' need not check for strtol merely because
21649         the application needs strtoul.
21650         * modules/strtoul (Files): Add lib/strtol.c.
21651         (Depends-on): Remove strtol.
21652
21653         strtoull: remove dependency on strtoul
21654         This is like the strtoll change.
21655         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21656         (Depends-on): Remove strtoul.
21657
21658         strtoll: remove dependency on strtol
21659         This is so that 'configure' need not check for strtol merely because
21660         the application needs strtoll.
21661         * modules/strtoll (Files): Add lib/strtol.c.
21662         (Depends-on): Remove strtol.
21663
21664 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21665
21666         inttypes: Move some configure check to module 'imaxdiv'.
21667         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21668         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21669         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21670
21671 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21672
21673         inttypes: Move some configure check to module 'imaxabs'.
21674         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21675         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21676         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21677
21678 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21679
21680         inttypes: Remove configure tests that are not needed since 2009-12-31.
21681         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21682         gl_cv_header_working_inttypes_h.
21683
21684 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21685
21686         * modules/strnlen (Depends-on): Remove memchr.
21687         The strnlen implementation doesn't need the memchr module's fixes; see
21688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21689
21690         strtol: remove dependency on wchar
21691         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21692         * modules/strtol (Depends-on): Remove wchar.
21693
21694 2011-04-21  Eric Blake  <eblake@redhat.com>
21695
21696         passfd: fix test regression on Linux
21697         * modules/passfd-tests (configure.ac): Correct socketpair check.
21698
21699         passfd: speed up configure and drop unused code
21700         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21701         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21702         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21703         Instead of probing at configure for unix_scm_rights_bsd44_way,
21704         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21705         check to a struct member probe.
21706         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21707         (sendfd, recvfd): Update preprocessor checks.
21708         * modules/passfd (Files): Reflect rename, and drop unused file.
21709         (Depends-on): Drop unused dependency.
21710
21711         passfd: allow compilation on mingw
21712         * modules/sys_socket (Depends-on): Add sys_uio.
21713         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21714         iovec and a minimal struct msghdr.
21715         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21716         * tests/test-sys_socket.c (main): Enhance test.
21717         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21718         guaranteed to provide what we need.
21719         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21720         * modules/passfd-tests (Depends-on): Add sys_wait.
21721         * tests/test-passfd.c (main): Skip test on mingw, for now.
21722         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21723         partial 'struct msghdr' implementation.
21724
21725         sys_uio: new module
21726         * modules/sys_uio: New module.
21727         * modules/sys_uio-tests: Likewise.
21728         * lib/sys_uio.in.h: New file.
21729         * m4/sys_uio_h.m4: Likewise.
21730         * tests/test-sys_uio.c: Likewise.
21731         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21732         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21733
21734 2011-04-20  Jim Meyering  <meyering@redhat.com>
21735
21736         useless-if-before-free: avoid false-positive
21737         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21738         disjunct so that it too requires a terminating ";".  Without that,
21739         this script would identify as useless one statement from gcc that
21740         was not:
21741           if (aligned_ptr)
21742             free (((void **) aligned_ptr) [-1]);
21743
21744 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21745
21746         doc: update users.txt.
21747         * users.txt: Add barcode.
21748
21749 2011-04-19  Bruno Haible  <bruno@clisp.org>
21750
21751         ioctl: Remove link dependency on native Windows.
21752         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21753         (gl_close_fn, gl_ioctl_fn): New types.
21754         (struct fd_hook): Renamed from struct close_hook. Change type of
21755         private_close_fn field. Add private_ioctl_fn field.
21756         (close_hook_fn): Add parameter for primary close method.
21757         (execute_close_hooks, execute_all_close_hooks): Likewise.
21758         (ioctl_hook_fn): New type.
21759         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21760         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21761         argument.
21762         (unregister_fd_hook): Renamed from unregister_close_hook.
21763         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21764         Don't include <unistd.h>.
21765         (close): Remove undef.
21766         (anchor): Update.
21767         (execute_close_hooks): Add argument for primary close method.
21768         (execute_all_close_hooks): Likewise.
21769         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21770         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21771         argument. Allow each argument to be NULL.
21772         (unregister_fd_hook): Renamed from unregister_close_hook.
21773         * lib/close.c (rpl_close): Pass 'close' function pointer to
21774         execute_all_close_hooks.
21775         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21776         (primary_ioctl): New function.
21777         (ioctl): Don't call ioctlsocket here. Instead, call
21778         execute_all_ioctl_hooks.
21779         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21780         close method.
21781         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21782         (fd_sockets_hook): Renamed from close_sockets_hook.
21783         (gl_sockets_startup, gl_sockets_cleanup): Update.
21784         * modules/fd-hook: Renamed from modules/close-hook. Update.
21785         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21786         * modules/sockets (Depends-on): Likewise.
21787         * modules/ioctl (Depends-on): Add fd-hook.
21788         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21789         GNULIB_SOCKET.
21790
21791 2011-04-19  Bruno Haible  <bruno@clisp.org>
21792
21793         Move the support of O_NONBLOCK in open() to the 'open' module.
21794         * modules/nonblocking (Depends-on): Remove 'open'.
21795         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21796         gl_cv_have_open_O_NONBLOCK.
21797         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21798         O_NONBLOCK support.
21799         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21800
21801 2011-04-17  Bruno Haible  <bruno@clisp.org>
21802
21803         pipe2: Simplify code.
21804         * lib/pipe2.c (pipe2): Reduce code duplication.
21805
21806 2011-04-17  Bruno Haible  <bruno@clisp.org>
21807
21808         nonblocking: Add comment.
21809         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21810
21811 2011-04-17  Bruno Haible  <bruno@clisp.org>
21812
21813         nonblocking: Add tests for sockets.
21814         * tests/test-nonblocking-socket.sh: New file.
21815         * tests/test-nonblocking-socket-main.c: New file.
21816         * tests/test-nonblocking-socket-child.c: New file.
21817         * tests/test-nonblocking-socket.h: New file.
21818         * tests/socket-server.h: New file.
21819         * tests/socket-client.h: New file.
21820         * modules/nonblocking-socket-tests: New file.
21821         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21822
21823 2011-04-17  Bruno Haible  <bruno@clisp.org>
21824
21825         nonblocking: Add tests for pipes.
21826         * tests/test-nonblocking-pipe.sh: New file.
21827         * tests/test-nonblocking-pipe-main.c: New file.
21828         * tests/test-nonblocking-pipe-child.c: New file.
21829         * tests/test-nonblocking-pipe.h: New file.
21830         * tests/test-nonblocking-writer.h: New file.
21831         * tests/test-nonblocking-reader.h: New file.
21832         * tests/test-nonblocking-misc.h: New file.
21833         * modules/nonblocking-pipe-tests: New file.
21834         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21835
21836 2011-04-16  Bruno Haible  <bruno@clisp.org>
21837
21838         gettext: Clarify the needed programmer actions.
21839         * modules/gettext (Notice): New field.
21840         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21841
21842 2011-04-16  Bruno Haible  <bruno@clisp.org>
21843
21844         strchrnul: Tweak last commit.
21845         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21846         bug.
21847         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21848         as in _GL_FUNCDECL_SYS.
21849         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21850         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21851
21852 2011-04-15  Eric Blake  <eblake@redhat.com>
21853
21854         strchrnul: work around cygwin bug
21855         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21856         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21858         * modules/string (Makefile.am): Substitute it.
21859         * lib/string.in.h (strchrnul): Use it.
21860
21861 2011-04-15  Bruno Haible  <bruno@clisp.org>
21862
21863         Don't require lib/stdio-write.c when only module 'stdio' is used.
21864         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21865         invocation.
21866         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21867
21868 2011-04-14  Bruno Haible  <bruno@clisp.org>
21869
21870         Support non-blocking pipe I/O in read() on native Windows.
21871         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21872         (read): New declaration.
21873         * lib/read.c: New file.
21874         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21875         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21876         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21877         vscanf): New declarations.
21878         * lib/stdio-read.c: New file.
21879         * m4/read.m4: New file.
21880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21881         REPLACE_READ.
21882         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21883         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21884         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21885         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21887         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21888         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21889         * modules/read: New file.
21890         * modules/nonblocking (Files): Add lib/stdio-read.c.
21891         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21892         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21893         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21894         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21895         * modules/pread (Depends-on): Add read.
21896         * modules/safe-read (Depends-on): Likewise.
21897         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21898         gets, scanf, vfscanf, vscanf): Verify signatures.
21899         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21900         problem with non-blocking pipes.
21901         * doc/posix-functions/fgetc.texi: Likewise.
21902         * doc/posix-functions/fgets.texi: Likewise.
21903         * doc/posix-functions/fread.texi: Likewise.
21904         * doc/posix-functions/fscanf.texi: Likewise.
21905         * doc/posix-functions/getc.texi: Likewise.
21906         * doc/posix-functions/getchar.texi: Likewise.
21907         * doc/posix-functions/gets.texi: Likewise.
21908         * doc/posix-functions/scanf.texi: Likewise.
21909         * doc/posix-functions/vfscanf.texi: Likewise.
21910         * doc/posix-functions/vscanf.texi: Likewise.
21911
21912 2011-04-14  Bruno Haible  <bruno@clisp.org>
21913
21914         Support non-blocking pipe I/O in write() on native Windows.
21915         * lib/write.c (rpl_write): Split a write request that failed merely
21916         because the byte count was larger than the pipe buffer's size.
21917         * doc/posix-functions/write.texi: Mention the problem with large byte
21918         counts.
21919
21920 2011-04-14  Bruno Haible  <bruno@clisp.org>
21921
21922         wchar: Ensure that wchar_t gets defined on uClibc.
21923         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21924         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21925
21926 2011-04-13  Bruno Haible  <bruno@clisp.org>
21927
21928         safe-write, full-read: Avoid unnecessary compilation units.
21929         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21930         (Depends-on): Remove safe-read. Add ssize_t.
21931         * modules/full-read (Files): Add lib/full-write.c.
21932         (Depends-on): Add full-write.
21933
21934 2011-04-13  Bruno Haible  <bruno@clisp.org>
21935
21936         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21937         * modules/pwrite (Depends-on): Add 'write'.
21938
21939 2011-04-13  Bruno Haible  <bruno@clisp.org>
21940
21941         Support non-blocking pipe I/O in write() on native Windows.
21942         * lib/unistd.in.h (write): Enable replacement also if
21943         GNULIB_UNISTD_H_NONBLOCKING is 1.
21944         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21945         (rpl_write): When failing to write on a non-blocking pipe, change
21946         errno from ENOSPC to EAGAIN.
21947         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21948         putchar, puts, vfprintf, vprintf): Enable replacement also if
21949         GNULIB_STDIO_H_NONBLOCKING is 1.
21950         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21951         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21952         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21953         CALL_WITH_SIGPIPE_EMULATION.
21954         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21955         * m4/nonblocking.m4: New file.
21956         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21957         for non-blocking I/O support.
21958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21959         GNULIB_UNISTD_H_NONBLOCKING.
21960         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21961         required for non-blocking I/O support.
21962         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21963         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21964         lib/stdio-write.c, m4/asm-underscore.m4.
21965         (Depends-on): Add stdio, unistd.
21966         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21967         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21968         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21969         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21970         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21971         problem with non-blocking pipes.
21972         * doc/posix-functions/fputc.texi: Likewise.
21973         * doc/posix-functions/fputs.texi: Likewise.
21974         * doc/posix-functions/fwrite.texi: Likewise.
21975         * doc/posix-functions/printf.texi: Likewise.
21976         * doc/posix-functions/putc.texi: Likewise.
21977         * doc/posix-functions/putchar.texi: Likewise.
21978         * doc/posix-functions/puts.texi: Likewise.
21979         * doc/posix-functions/vfprintf.texi: Likewise.
21980         * doc/posix-functions/vprintf.texi: Likewise.
21981         * doc/posix-functions/write.texi: Likewise.
21982
21983 2011-04-10  Jim Meyering  <meyering@redhat.com>
21984
21985         maint.mk: prohibit doubled words
21986         Detect them also when they're separated by a newline.
21987         There are 3 ways to customize it:
21988           - disable the test on a per file basis, as usual with rules using
21989             $(VC_LIST_EXCEPT)
21990           - replace the default doubled-word-selecting regexp (affects all files)
21991           - ignore a particular file-vs-doubled-word match
21992         I nearly used that last one to ignore the "is is" match in
21993         coreutils' NEWS file, since the text was "ls -is is ..."
21994         To do that, I would have added this line to cfg.mk:
21995           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21996         but it would have ignored any "is is" match in NEWS.
21997         Low probability, but still...
21998         Instead, I changed the text, slightly:
21999           -  ls -is is now consistent with ls -lis in ignoring values returned
22000           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22001         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22002         (prohibit_doubled_word_): Define.
22003         (sc_prohibit_doubled_word): New rule.
22004         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22005
22006 2011-04-10  Jim Meyering  <meyering@redhat.com>
22007
22008         maint: fix doubled-word typo in comment
22009         * m4/gethostname.m4: s/is is/it is/
22010         * m4/getdomainname.m4: Likewise.
22011
22012 2011-04-10  Jim Meyering  <meyering@redhat.com>
22013
22014         maint: remove doubled word: s/it it/it/
22015         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22016
22017 2011-04-10  Jim Meyering  <meyering@redhat.com>
22018
22019         maint.mk: remove useless semicolon and backslash
22020         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22021         semicolon and backslash.
22022
22023 2011-04-10  Bruno Haible  <bruno@clisp.org>
22024
22025         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22026         * modules/stdint-tests (Depends-on): Add wchar.
22027
22028 2011-04-10  Jim Meyering  <meyering@redhat.com>
22029
22030         maint: remove doubled words in comments, e.g., s/a a/a/
22031         * lib/strptime.c (day_of_the_week): s/the the/the/
22032         * tests/test-chown.h (test_chown): s/a a/a/
22033
22034         test-chown.h: correct a cast
22035         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22036         when the destination is a stat.st_gid.
22037
22038 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22039
22040         getaddrinfo: Fix test for sa_len member.
22041         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22042         include <sys/types.h> before <sys/socket.h>.
22043
22044 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22045
22046         maint: change "can not" to "cannot"
22047         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22048         boundaries.
22049
22050 2011-04-09  Jim Meyering  <meyering@redhat.com>
22051
22052         maint: change "a a" to "a"
22053         * tests/test-lchown.h (test_lchown): s/a a/a/
22054
22055         maint.mk: prohibit \<the the\>
22056         * top/maint.mk (sc_prohibit_the_the): New rule.
22057
22058         maint: fix "the the" in comment
22059         * lib/count-one-bits.h: s/the the/the/
22060
22061         maint: change "can not" to "cannot"
22062         But do not change the occurrences in maintain.texi or in
22063         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22064         * doc/gnulib-tool.texi: s/can not/cannot/
22065         * doc/posix-functions/accept.texi (accept): Likewise.
22066         * doc/posix-functions/socket.texi (socket): Likewise.
22067         * lib/mbrtowc.c: Likewise.
22068
22069         maint.mk: prohibit use of "can not"
22070         * top/maint.mk (sc_prohibit_can_not): New rule.
22071         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22072
22073 2011-04-09  Bruno Haible  <bruno@clisp.org>
22074
22075         careadlinkat: Guard against misuse of careadlinkatcwd.
22076         * lib/careadlinkat.c: Include <stdlib.h>.
22077         (careadlinkatcwd): Check that the fd argument is as expected.
22078
22079 2011-04-09  Bruno Haible  <bruno@clisp.org>
22080
22081         careadlinkat: Use common coding style.
22082         * lib/careadlinkat.c: Move gnulib includes after system includes.
22083
22084 2011-04-09  Bruno Haible  <bruno@clisp.org>
22085
22086         careadlinkat: Clarify specification.
22087         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22088         (careadlinkatcwd): Add comment.
22089         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22090
22091 2011-04-09  Bruno Haible  <bruno@clisp.org>
22092
22093         areadlinkat: Avoid link error on many platforms.
22094         * modules/areadlinkat (Depends-on): Add areadlink.
22095
22096 2011-04-09  Bruno Haible  <bruno@clisp.org>
22097
22098         allocator, careadlinkat: Fix double-inclusion guard.
22099         * lib/allocator.h: Fix double-inclusion guard.
22100         * lib/careadlinkat.h: Likewise.
22101
22102 2011-04-09  Bruno Haible  <bruno@clisp.org>
22103
22104         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22105         * lib/relocwrapper.c: Update dependencies hierarchy.
22106         * build-aux/install-reloc: Update list of files to be compiled.
22107         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22108         lib/allocator.[hc].
22109
22110 2011-04-08  Eric Blake  <eblake@redhat.com>
22111
22112         strftime: silence gnulib-tool warning
22113         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22114
22115 2011-04-08  Bruno Haible  <bruno@clisp.org>
22116
22117         verify: Fix syntax error with GCC 4.6 in C++ mode.
22118         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22119         (HAVE_STATIC_ASSERT): New macro.
22120         (verify_true, verify): Use 'static_assert' if it is supported and
22121         '_Static_assert' is not supported.
22122
22123 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22124
22125         allocator: New module.
22126         * modules/allocator, lib/allocator.c: New files.
22127         * lib/allocator.h (stdlib_allocator): New decl.
22128         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22129         Remove.  Do not include <stdlib.h>.
22130         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22131         * modules/careadlinkat (Files): Remove lib/allocator.h.
22132         (Depends-on): Add allocator.
22133
22134         stdlib: let modules use system malloc, realloc
22135         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22136         if !_GL_USE_STDLIB_ALLOC.
22137         (malloc, realloc): Limit this change to a smaller scope.
22138
22139         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22140         (malloc, realloc): Don't #undef; no longer needed.
22141         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22142         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22143         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22144         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22145         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22146         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22147         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22148         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22149
22150         careadlinkat: rename members to avoid problem
22151         * lib/allocator.h (struct allocator): Rename members from
22152         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22153         and realloc are #define'd.  Reported by Eric Blake in
22154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22155         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22156
22157 2011-04-08  Eric Blake  <eblake@redhat.com>
22158
22159         nonblocking: reduce dependency
22160         * tests/test-nonblocking.c: Only test sockets when in use.
22161         * modules/nonblocking-tests (Depends-on): Drop socket.
22162         (Makefile.am): Link even if sockets are not present.
22163         * modules/pipe2-tests (Makefile.am): Likewise.
22164         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22165
22166         pipe2: fix O_NONBLOCK support on mingw
22167         * modules/pipe2 (Depends-on): Add nonblocking.
22168         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22169         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22170         * tests/test-nonblocking.c (main): Likewise.
22171         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22172
22173         fcntl-h: fix O_ACCMODE on cygwin
22174         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22175         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22176
22177         pipe-filter: drop O_NONBLOCK workarounds
22178         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22179         * modules/pipe-filter-ii (Depends-on): Likewise.
22180         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22181
22182         nonblocking: provide O_NONBLOCK for mingw
22183         * modules/nonblocking (Depends-on): Add open.
22184         (configure.ac): Set new witness macro.
22185         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22186         * modules/fcntl-h (Makefile.am): Substitute it.
22187         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22188         nonblocking module is in use.
22189         * lib/nonblocking.c: Adjust portability test.
22190         * lib/open.c (open): Don't let native open see gnulib flag.
22191         * tests/test-fcntl-h.c (main): Enhance test.
22192         * tests/test-open.h (test_open): Likewise.
22193         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22194
22195         careadlinkat: fix compilation error on mingw
22196         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22197         within struct allocator.
22198
22199 2011-04-06  Eric Blake  <eblake@redhat.com>
22200
22201         binary-io: relicense under LGPLv2+
22202         * modules/binary-io (License): Relax to LGPLv2+.
22203         Requested for libvirt, and required by pipe2.
22204
22205 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22206
22207         verify: use _Static_assert if available
22208         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22209         (verify_true, verify): Use it if available.  This generates better
22210         diagnostics with GCC 4.6.0 and later.
22211
22212 2011-04-05  Bruno Haible  <bruno@clisp.org>
22213
22214         Remove leftover generated .h files after config.status changed.
22215
22216         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22217         GL_GENERATE_ALLOCA_H.
22218         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22219         GL_GENERATE_ALLOCA_H evaluates to false.
22220
22221         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22222         GL_GENERATE_ARGZ_H.
22223         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22224         evaluates to false.
22225
22226         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22227         GL_GENERATE_BYTESWAP_H.
22228         * modules/byteswap (Makefile.am): Remove byteswap.h if
22229         GL_GENERATE_BYTESWAP_H evaluates to false.
22230
22231         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22232         GL_GENERATE_ERRNO_H.
22233         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22234         evaluates to false.
22235
22236         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22237         GL_GENERATE_FLOAT_H.
22238         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22239         evaluates to false.
22240
22241         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22242         GL_GENERATE_FNMATCH_H.
22243         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22244         GL_GENERATE_FNMATCH_H evaluates to false.
22245
22246         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22247         GL_GENERATE_GLOB_H.
22248         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22249         evaluates to false.
22250
22251         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22252         automake conditional GL_GENERATE_ICONV_H.
22253         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22254         evaluates to false.
22255
22256         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22257         GL_GENERATE_NETINET_IN_H.
22258         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22259         GL_GENERATE_NETINET_IN_H evaluates to false.
22260
22261         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22262         conditional GL_GENERATE_PTHREAD_H.
22263         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22264         * modules/pthread (Makefile.am): Remove pthread.h if
22265         GL_GENERATE_PTHREAD_H evaluates to false.
22266
22267         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22268         GL_GENERATE_SCHED_H.
22269         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22270         evaluates to false.
22271
22272         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22273         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22274         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22275         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22276
22277         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22278         GL_GENERATE_STDARG_H.
22279         * modules/stdarg (Makefile.am): Remove stdarg.h if
22280         GL_GENERATE_STDARG_H evaluates to false.
22281
22282         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22283         GL_GENERATE_STDBOOL_H.
22284         * modules/stdbool (Makefile.am): Remove stdbool.h if
22285         GL_GENERATE_STDBOOL_H evaluates to false.
22286
22287         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22288         conditional GL_GENERATE_STDDEF_H.
22289         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22290         * modules/stddef (Makefile.am): Remove stddef.h if
22291         GL_GENERATE_STDDEF_H evaluates to false.
22292
22293         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22294         GL_GENERATE_STDINT_H.
22295         * modules/stdint (Makefile.am): Remove stdint.h if
22296         GL_GENERATE_STDINT_H evaluates to false.
22297
22298         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22299         GL_GENERATE_SYSEXITS_H.
22300         * modules/sysexits (Makefile.am): Remove sysexits.h if
22301         GL_GENERATE_SYSEXITS_H evaluates to false.
22302
22303         Reported by Karl Berry and Ralf Wildenhues.
22304
22305 2011-04-05  Bruno Haible  <bruno@clisp.org>
22306
22307         Ensure to rebuild generated .h files when config.status has changed.
22308         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22309         config.status.
22310         * modules/ctype (Makefile.am): Likewise.
22311         * modules/dirent (Makefile.am): Likewise.
22312         * modules/errno (Makefile.am): Likewise.
22313         * modules/fcntl-h (Makefile.am): Likewise.
22314         * modules/float (Makefile.am): Likewise.
22315         * modules/getopt-posix (Makefile.am): Likewise.
22316         * modules/glob (Makefile.am): Likewise.
22317         * modules/iconv-h (Makefile.am): Likewise.
22318         * modules/inttypes (Makefile.am): Likewise.
22319         * modules/langinfo (Makefile.am): Likewise.
22320         * modules/locale (Makefile.am): Likewise.
22321         * modules/math (Makefile.am): Likewise.
22322         * modules/netdb (Makefile.am): Likewise.
22323         * modules/netinet_in (Makefile.am): Likewise.
22324         * modules/poll-h (Makefile.am): Likewise.
22325         * modules/pthread (Makefile.am): Likewise.
22326         * modules/pty (Makefile.am): Likewise.
22327         * modules/sched (Makefile.am): Likewise.
22328         * modules/search (Makefile.am): Likewise.
22329         * modules/selinux-h (Makefile.am): Likewise.
22330         * modules/signal (Makefile.am): Likewise.
22331         * modules/spawn (Makefile.am): Likewise.
22332         * modules/stdarg (Makefile.am): Likewise.
22333         * modules/stdbool (Makefile.am): Likewise.
22334         * modules/stddef (Makefile.am): Likewise.
22335         * modules/stdint (Makefile.am): Likewise.
22336         * modules/stdio (Makefile.am): Likewise.
22337         * modules/stdlib (Makefile.am): Likewise.
22338         * modules/string (Makefile.am): Likewise.
22339         * modules/strings (Makefile.am): Likewise.
22340         * modules/sys_file (Makefile.am): Likewise.
22341         * modules/sys_ioctl (Makefile.am): Likewise.
22342         * modules/sys_select (Makefile.am): Likewise.
22343         * modules/sys_socket (Makefile.am): Likewise.
22344         * modules/sys_stat (Makefile.am): Likewise.
22345         * modules/sys_time (Makefile.am): Likewise.
22346         * modules/sys_times (Makefile.am): Likewise.
22347         * modules/sys_utsname (Makefile.am): Likewise.
22348         * modules/sys_wait (Makefile.am): Likewise.
22349         * modules/sysexits (Makefile.am): Likewise.
22350         * modules/termios (Makefile.am): Likewise.
22351         * modules/time (Makefile.am): Likewise.
22352         * modules/unistd (Makefile.am): Likewise.
22353         * modules/wchar (Makefile.am): Likewise.
22354         * modules/wctype-h (Makefile.am): Likewise.
22355         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22356
22357 2011-04-05  Bruno Haible  <bruno@clisp.org>
22358
22359         pipe2: Relicense under LGPLv2+.
22360         * modules/pipe2 (License): Change to LGPLv2+.
22361         Requested by Eric Blake, for libvirt.
22362
22363 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22364
22365         bootstrap: compute gnulib_extra_files after updating build_aux
22366         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22367         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22368
22369 2011-04-05  Eric Blake  <eblake@redhat.com>
22370
22371         bootstrap: preserve git whitelist item sorting
22372         * build-aux/bootstrap (sort_patterns): New function.
22373         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22374
22375 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22376
22377         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22378         sc_space_tab check.
22379
22380 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22381
22382         areadlink, areadlinkat: rewrite in terms of careadlinkat
22383         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22384         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22385         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22386         (malloc, realloc): Remove #undefs.
22387         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22388         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22389         readlink, ssize_t, stdint, unistd.
22390         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22391         areadlink, stdint.
22392
22393         careadlinkat: new module
22394         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22395         * modules/careadlinkat: New files, written by me with
22396         a review and feedback from Ben Pfaff in
22397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22398
22399 2011-04-01  Bruno Haible  <bruno@clisp.org>
22400
22401         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22402         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22403         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22404         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22405         Reported by Bruce Korb <bruce.korb@gmail.com>.
22406
22407 2011-04-01  Bruno Haible  <bruno@clisp.org>
22408
22409         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22410         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22411         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22412         * modules/wcpcpy (Depends-on): Add extensions.
22413         * modules/wcpncpy (Depends-on): Likewise.
22414         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22415         systems.
22416         * doc/posix-functions/wcpncpy.texi: Likewise.
22417         * doc/posix-functions/wcwidth.texi: Likewise.
22418
22419 2011-03-31  Eric Blake  <eblake@redhat.com>
22420
22421         nonblocking: fix mingw test failures
22422         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22423         non-blocking flag on regular file.
22424         (get_nonblocking_flag): Set errno on invalid fd.
22425         * tests/test-nonblocking.c (main): Avoid test failure on
22426         directories if fchdir is not active.
22427         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22428
22429 2011-03-31  Bruno Haible  <bruno@clisp.org>
22430
22431         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22432         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22433         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22434         Reported by Simon Josefsson <simon@josefsson.org>.
22435
22436 2011-03-31  Bruno Haible  <bruno@clisp.org>
22437         and Eric Blake  <eblake@redhat.com>
22438
22439         nonblocking: new module
22440         * modules/nonblocking: New module.
22441         * modules/nonblocking-tests: Likewise.
22442         * lib/nonblocking.h: New file.
22443         * lib/nonblocking.c: Likewise.
22444         * tests/test-nonblocking.c: New test.
22445         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22446
22447 2011-03-30  Bruno Haible  <bruno@clisp.org>
22448
22449         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22450         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22451         instead of 'printf' format for GCC >= 4.4.
22452         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22453         (fprintf, printf, vfprintf, vprintf): Declare with
22454         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22455         the system's vfprintf() function.
22456         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22457
22458 2011-03-30  Eric Blake  <eblake@redhat.com>
22459
22460         passfd: fix scoping bug
22461         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22462         before sendmsg/recvmsg.
22463
22464         passfd: standardize coding conventions
22465         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22466         can be learned at compile time.
22467         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22468         ifdefs.
22469         (sendfd, recvfd): Follow gnulib code conventions.
22470
22471         passfd: fix incorrect sendmsg arguments
22472         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22473         incorrect msg_controllen value.
22474         * modules/passfd-tests (Depends-on): Check for alarm.
22475         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22476         Reported by Bastien ROUCARIES.
22477
22478 2011-03-30  Bruno Haible  <bruno@clisp.org>
22479
22480         c-strcasestr: Relicense under LGPLv2+.
22481         * modules/c-strcasestr (License): Change to LGPLv2+.
22482         Requested by Eric Blake, for libvirt.
22483
22484 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22485
22486         * users.txt: Add libidn2.  Fix libtasn1 link.
22487
22488 2011-03-30  Jim Meyering  <meyering@redhat.com>
22489
22490         tests: readlink* ("",... fails with EINVAL on newer kernels
22491         readlink and readlinkat have typically failed with ENOENT for
22492         the invalid, empty file name,  "".  However, with the advent
22493         of linux-2.6.39, they fail with EINVAL.
22494         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22495         when operating on the empty file name.
22496         * tests/test-readlink.h (test_readlink): Likewise.
22497
22498 2011-03-29  Bruno Haible  <bruno@clisp.org>
22499
22500         Relicense some modules under LGPLv2+, for libidn2.
22501         * modules/array-mergesort (License): Change to LGPLv2+.
22502         * modules/c-strcaseeq (License): Likewise.
22503         * modules/striconveh (License): Likewise.
22504         * modules/striconveha (License): Likewise.
22505         * modules/uniconv/base (License): Likewise.
22506         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22507         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22508         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22509         * modules/unictype/base (License): Likewise.
22510         * modules/unictype/bidiclass-of (License): Likewise.
22511         * modules/unictype/category-M (License): Likewise.
22512         * modules/unictype/category-none (License): Likewise.
22513         * modules/unictype/category-of (License): Likewise.
22514         * modules/unictype/category-test (License): Likewise.
22515         * modules/unictype/category-test-withtable (License): Likewise.
22516         * modules/unictype/combining-class (License): Likewise.
22517         * modules/unictype/joiningtype-of (License): Likewise.
22518         * modules/unictype/scripts (License): Likewise.
22519         * modules/uninorm/base (License): Likewise.
22520         * modules/uninorm/canonical-decomposition (License): Likewise.
22521         * modules/uninorm/composition (License): Likewise.
22522         * modules/uninorm/decompose-internal (License): Likewise.
22523         * modules/uninorm/decomposition-table (License): Likewise.
22524         * modules/uninorm/nfc (License): Likewise.
22525         * modules/uninorm/nfd (License): Likewise.
22526         * modules/uninorm/u32-normalize (License): Likewise.
22527         * modules/unistr/base (License): Likewise.
22528         * modules/unistr/u32-cpy (License): Likewise.
22529         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22530         * modules/unistr/u32-to-u8 (License): Likewise.
22531         * modules/unistr/u32-uctomb (License): Likewise.
22532         * modules/unistr/u8-check (License): Likewise.
22533         * modules/unistr/u8-mblen (License): Likewise.
22534         * modules/unistr/u8-mbtouc (License): Likewise.
22535         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22536         * modules/unistr/u8-mbtoucr (License): Likewise.
22537         * modules/unistr/u8-prev (License): Likewise.
22538         * modules/unistr/u8-strlen (License): Likewise.
22539         * modules/unistr/u8-to-u32 (License): Likewise.
22540         * modules/unistr/u8-uctomb (License): Likewise.
22541         * modules/unitypes (License): Likewise.
22542         Requested by Simon Josefsson.
22543
22544 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22545
22546         lib-symbol-visibility: Add a notice.
22547         * modules/lib-symbol-visibility (Notice): New field.
22548
22549 2011-03-29  Bruno Haible  <bruno@clisp.org>
22550
22551         getaddrinfo: Doc fix.
22552         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22553         section "fixed in Gnulib".
22554
22555 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22556
22557         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22558         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22559
22560 2011-03-26  Bruno Haible  <bruno@clisp.org>
22561
22562         unictype/property-byname: Reduce the number of load-time relocations.
22563         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22564         (UC_PROPERTY_INDEX_*): New enumeration values.
22565         (uc_property_byname): Convert an index from the lookup table to an
22566         uc_property_t.
22567         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22568         values.
22569
22570 2011-03-26  Bruno Haible  <bruno@clisp.org>
22571
22572         unictype/property-byname: Allow omitted word separators and aliases.
22573         * lib/unictype/pr_byname.gperf: Add property names without word
22574         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22575         for 'space'.
22576
22577 2011-03-26  Bruno Haible  <bruno@clisp.org>
22578
22579         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22580         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22581         also hyphens to space.
22582         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22583         without spaces.
22584         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22585
22586 2011-03-26  Bruno Haible  <bruno@clisp.org>
22587
22588         unictype/joiningtype-byname: Recognize long names as well.
22589         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22590         a long name.
22591         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22592         unictype/joiningtype_byname.h.
22593         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22594         * lib/unictype/joiningtype_byname.gperf: New file.
22595         * modules/unictype/joiningtype-byname (Files): Add
22596         lib/unictype/joiningtype_byname.gperf.
22597         (Depends-on): Add gperf.
22598         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22599         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22600         long names.
22601
22602         Tests for module 'unictype/joiningtype-longname'.
22603         * modules/unictype/joiningtype-longname-tests: New file.
22604         * tests/unictype/test-joiningtype_longname.c: New file.
22605
22606         New module 'unictype/joiningtype-longname'.
22607         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22608         * lib/unictype/joiningtype_longname.c: New file.
22609         * modules/unictype/joiningtype-longname: New file.
22610         * modules/unictype/joiningtype-all (Depends-on): Add
22611         unictype/joiningtype-longname.
22612
22613 2011-03-26  Bruno Haible  <bruno@clisp.org>
22614
22615         unictype/bidiclass-byname: Recognize long names as well.
22616         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22617         name.
22618         * lib/unictype/bidi_byname.c: Include <string.h>,
22619         unictype/bidi_byname.h.
22620         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22621         * lib/unictype/bidi_byname.gperf: New file.
22622         * modules/unictype/bidiclass-byname (Files): Add
22623         lib/unictype/bidi_byname.gperf.
22624         (Depends-on): Add gperf.
22625         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22626         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22627         long names.
22628
22629         Tests for module 'unictype/bidiclass-longname'.
22630         * modules/unictype/bidiclass-longname-tests: New file.
22631         * tests/unictype/test-bidi_longname.c: New file.
22632
22633         New module 'unictype/bidiclass-longname'.
22634         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22635         * lib/unictype/bidi_longname.c: New file.
22636         * modules/unictype/bidiclass-longname: New file.
22637         * modules/unictype/bidiclass-all (Depends-on): Add
22638         unictype/bidiclass-longname.
22639
22640 2011-03-26  Bruno Haible  <bruno@clisp.org>
22641
22642         unictype/bidi*: Rename modules.
22643         * modules/unictype/bidiclass-all: Renamed from
22644         modules/unictype/bidicategory-all.
22645         * modules/unictype/bidiclass-name: Renamed from
22646         modules/unictype/bidiclass-name.
22647         (Description): Update.
22648         * modules/unictype/bidiclass-name-tests: Renamed from
22649         modules/unictype/bidicategory-name-tests.
22650         * modules/unictype/bidiclass-byname: Renamed from
22651         modules/unictype/bidicategory-byname.
22652         (Description): Update.
22653         * modules/unictype/bidiclass-byname-tests: Renamed from
22654         modules/unictype/bidicategory-byname-tests.
22655         * modules/unictype/bidiclass-of: Renamed from
22656         modules/unictype/bidicategory-of.
22657         (Description): Update.
22658         * modules/unictype/bidiclass-of-tests: Renamed from
22659         modules/unictype/bidicategory-of-tests.
22660         * modules/unictype/bidiclass-test: Renamed from
22661         modules/unictype/bidicategory-test.
22662         (Description): Update.
22663         * modules/unictype/bidiclass-test-tests: Renamed from
22664         modules/unictype/bidicategory-test-tests.
22665         * modules/unictype/bidicategory-all: New file, a simple redirection.
22666         * modules/unictype/bidicategory-name: Likewise.
22667         * modules/unictype/bidicategory-byname: Likewise.
22668         * modules/unictype/bidicategory-of: Likewise.
22669         * modules/unictype/bidicategory-test: Likewise.
22670         * modules/unictype/property-bidi-* (Dependencies): Update.
22671         * lib/unictype/bidi_*.c: Update comment.
22672
22673 2011-03-26  Bruno Haible  <bruno@clisp.org>
22674
22675         unictype/bidi*: Rename functions, part 2.
22676         * modules/unictype/bidicategory-name (configure.ac): Update required
22677         libunistring version.
22678         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22679
22680 2011-03-25  Bruno Haible  <bruno@clisp.org>
22681
22682         New module 'unictype/combining-class-all'.
22683         * modules/unictype/combining-class-all: New file.
22684
22685         Tests for module 'unictype/combining-class-byname'.
22686         * modules/unictype/combining-class-byname-tests: New file.
22687         * tests/unictype/test-combiningclass_byname.c: New file.
22688
22689         New module 'unictype/combining-class-byname'.
22690         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22691         * lib/unictype/combiningclass_byname.c: New file.
22692         * lib/unictype/combiningclass_byname.gperf: New file.
22693         * modules/unictype/combining-class-byname: New file.
22694
22695         Tests for module 'unictype/combining-class-longname'.
22696         * modules/unictype/combining-class-longname-tests: New file.
22697         * tests/unictype/test-combiningclass_longname.c: New file.
22698
22699         New module 'unictype/combining-class-longname'.
22700         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22701         * lib/unictype/combiningclass_longname.c: New file.
22702         * modules/unictype/combining-class-longname: New file.
22703
22704         Tests for module 'unictype/combining-class-name'.
22705         * modules/unictype/combining-class-name-tests: New file.
22706         * tests/unictype/test-combiningclass_name.c: New file.
22707
22708         New module 'unictype/combining-class-name'.
22709         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22710         * lib/unictype/combiningclass_name.c: New file.
22711         * modules/unictype/combining-class-name: New file.
22712
22713 2011-03-25  Bruno Haible  <bruno@clisp.org>
22714
22715         unictype/combining-class: Rename source files.
22716         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22717         of unictype/combining.h.
22718         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22719         Update.
22720         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22721         * modules/unictype/combining-class (Description): Fix.
22722         (Files, Makefile.am): Update.
22723         * tests/unictype/test-combiningclass.c: Renamed from
22724         tests/unictype/test-combining.c.
22725         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22726
22727 2011-03-25  Bruno Haible  <bruno@clisp.org>
22728
22729         unictype: Update list of canonical combining classes.
22730         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22731
22732 2011-03-25  Bruno Haible  <bruno@clisp.org>
22733
22734         unictype/category-byname: Recognize long names as well.
22735         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22736         a long name.
22737         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22738         unictype/categ_byname.h.
22739         (UC_CATEGORY_INDEX_*): New enumeration values.
22740         (uc_general_category_byname): Use uc_general_category_lookup and
22741         convert from index to value.
22742         * lib/unictype/categ_byname.gperf: New file.
22743         * modules/unictype/category-byname (Files): Add
22744         lib/unictype/categ_byname.gperf.
22745         (Depends-on): Add gperf.
22746         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22747         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22748         long names.
22749
22750         Tests for module 'unictype/category-longname'.
22751         * modules/unictype/category-longname-tests: New file.
22752         * tests/unictype/test-categ_longname.c: New file.
22753
22754         New module 'unictype/category-longname'.
22755         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22756         * lib/unictype/categ_longname.c: New file.
22757         * modules/unictype/category-longname: New file.
22758         * modules/unictype/category-all (Depends-on): Add it.
22759
22760 2011-03-25  Bruno Haible  <bruno@clisp.org>
22761
22762         Tests for module 'unictype/category-LC'.
22763         * modules/unictype/category-LC-tests: New file.
22764         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22765
22766         New module 'unictype/category-LC'.
22767         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22768         (UC_CATEGORY_LC): New declaration.
22769         (UC_CASED_LETTER): New macro.
22770         * lib/gen-uni-tables.c (is_category_LC): New function.
22771         (output_categories): Also handle category LC.
22772         (UC_CATEGORY_MASK_LC): New enumeration value.
22773         (general_category_byname): Also handle category LC.
22774         * lib/unictype/categ_LC.c: New file.
22775         * lib/unictype/categ_LC.h: New file, automatically generated.
22776         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22777         category LC.
22778         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22779         * modules/unictype/category-LC: New file.
22780         * modules/unictype/category-byname (Depends-on): Add
22781         unictype/category-LC.
22782         * modules/unictype/category-all (Depends-on): Likewise.
22783
22784 2011-03-25  Eric Blake  <eblake@redhat.com>
22785
22786         xmalloc: revert yesterday's regression
22787         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22788         realloc's underlying behavior (allowing allocation of zero-size
22789         objects, especially if malloc-gnu is also in use).
22790
22791 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22792
22793         maint.mk: add missing version to VC-tag
22794         * top/maint.mk: git tag was missing actual tag name; add it.
22795
22796         valgrind: do leak checking, and exit with code 1 on error (not 0)
22797         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22798         to VALGRIND.
22799
22800 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22801
22802         posix-modules: say what it does.
22803         * posix-modules: Add a line to the --help output saying what it does.
22804
22805 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22806
22807         xmalloc: Do not leak if underlying realloc is C99 compatible.
22808         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22809         This avoids a leak on C99-based systems.  See
22810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22811
22812 2011-03-24  Eric Blake  <eblake@redhat.com>
22813
22814         realloc: document portability problem
22815         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22816         passing 0 size to realloc.
22817
22818 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22819
22820         doc: update users.txt
22821         * users.txt: Add cvsps, tmpwatch
22822
22823 2011-03-23  Matt Rice  <ratmice@gmail.com>
22824
22825         doc: update users.txt
22826         * users.txt: Add gdb.
22827
22828 2011-03-23  Jim Meyering  <meyering@redhat.com>
22829
22830         doc: update users.txt
22831         Looking through matches up to the following URL (there are still
22832         several more pages), I found several projects that use gnulib:
22833         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22834         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22835         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22836
22837 2011-03-22  Bruno Haible  <bruno@clisp.org>
22838
22839         unictype/bidi*: Rename functions.
22840         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22841         uc_bidi_class, uc_is_bidi_class): New declarations.
22842         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22843         uc_bidi_category_byname.
22844         (uc_bidi_category_byname): New function.
22845         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22846         u_bidi_category_name.
22847         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22848         (uc_bidi_category_name): New function.
22849         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22850         uc_bidi_category.
22851         (uc_bidi_category): New function.
22852         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22853         uc_is_bidi_category. Invoke uc_bidi_class.
22854         (uc_is_bidi_category): New function.
22855         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22856         instead of uc_bidi_category_byname.
22857         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22858         instead of uc_bidi_category_name.
22859         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22860         uc_bidi_category.
22861         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22862         instead of uc_is_bidi_category.
22863
22864 2011-03-21  Bruno Haible  <bruno@clisp.org>
22865
22866         New module 'unictype/joininggroup-all'.
22867         * modules/unictype/joininggroup-all: New file.
22868
22869         Tests for module 'unictype/joininggroup-of'.
22870         * modules/unictype/joininggroup-of-tests: New file.
22871         * tests/unictype/test-joininggroup_of.c: New file.
22872         * tests/unictype/test-joininggroup_of.h: New file, automatically
22873         generated by gen-uni-tables.
22874
22875         New module 'unictype/joininggroup-of'.
22876         * modules/unictype/joininggroup-of: New file.
22877         * lib/unictype/joininggroup_of.c: New file.
22878         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22879         gen-uni-tables.
22880
22881         Tests for module 'unictype/joininggroup-byname'.
22882         * modules/unictype/joininggroup-byname-tests: New file.
22883         * tests/unictype/test-joininggroup_byname.c: New file.
22884
22885         New module 'unictype/joininggroup-byname'.
22886         * modules/unictype/joininggroup-byname: New file.
22887         * lib/unictype/joininggroup_byname.c: New file.
22888         * lib/unictype/joininggroup_byname.gperf: New file.
22889
22890         Tests for module 'unictype/joininggroup-name'.
22891         * modules/unictype/joininggroup-name-tests: New file.
22892         * tests/unictype/test-joininggroup_name.c: New file.
22893
22894         New module 'unictype/joininggroup-name'.
22895         * modules/unictype/joininggroup-name: New file.
22896         * lib/unictype/joininggroup_name.c: New file.
22897         * lib/unictype/joininggroup_name.h: New file.
22898
22899         New module 'unictype/joiningtype-all'.
22900         * modules/unictype/joiningtype-all: New file.
22901
22902         Tests for module 'unictype/joiningtype-of'.
22903         * modules/unictype/joiningtype-of-tests: New file.
22904         * tests/unictype/test-joiningtype_of.c: New file.
22905         * tests/unictype/test-joiningtype_of.h: New file, automatically
22906         generated by gen-uni-tables.
22907
22908         New module 'unictype/joiningtype-of'.
22909         * modules/unictype/joiningtype-of: New file.
22910         * lib/unictype/joiningtype_of.c: New file.
22911         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22912         gen-uni-tables.
22913
22914         Tests for module 'unictype/joiningtype-byname'.
22915         * modules/unictype/joiningtype-byname-tests: New file.
22916         * tests/unictype/test-joiningtype_byname.c: New file.
22917
22918         New module 'unictype/joiningtype-byname'.
22919         * modules/unictype/joiningtype-byname: New file.
22920         * lib/unictype/joiningtype_byname.c: New file.
22921
22922         Tests for module 'unictype/joiningtype-name'.
22923         * modules/unictype/joiningtype-name-tests: New file.
22924         * tests/unictype/test-joiningtype_name.c: New file.
22925
22926         New module 'unictype/joiningtype-name'.
22927         * modules/unictype/joiningtype-name: New file.
22928         * lib/unictype/joiningtype_name.c: New file.
22929
22930         unictype: Add support for Arabic shaping properties.
22931         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22932         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22933         declarations.
22934         (UC_JOINING_GROUP_*): New enumeration values.
22935         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22936         declarations.
22937         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22938         (unicode_joining_type): New variable.
22939         (UC_JOINING_GROUP_*): New enumeration values.
22940         (unicode_joining_group): New variable.
22941         (fill_arabicshaping, joining_type_as_c_identifier,
22942         output_joining_type_test, output_joining_type,
22943         joining_group_as_c_identifier, output_joining_group_test,
22944         output_joining_group): New functions.
22945         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22946         fill_arabicshaping and output_joining_type_test, output_joining_type,
22947         output_joining_group_test, output_joining_group.
22948         Reported by Simon Josefsson.
22949
22950 2011-03-21  Jim Meyering  <meyering@redhat.com>
22951
22952         strftime: fix a bug in yesterday's change
22953         * lib/strftime.c (add): Accommodate width's initial value of -1.
22954         Otherwise, nstrftime would copy uninitialized data into
22955         the result buffer.
22956
22957 2011-03-21  Jim Meyering  <meyering@redhat.com>
22958
22959         tests: add strftime-tests module
22960         * tests/test-strftime.c: New file.
22961         * modules/strftime-tests: New module.
22962
22963 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22964
22965         strftime: don't assume a byte count fits in 'int'
22966         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22967         found this problem by static analysis, using gcc -Wstrict-overflow
22968         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22969         on an integer overflow having undefined behavior, but it turns out
22970         that the argument is a size, which might not fit in 'int' anyway,
22971
22972 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22973
22974         stdio: don't require ignore_value around fwrite
22975
22976         This patch works around libc bug 11959
22977         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22978         Without this patch, applications must often write
22979         ignore_value (fwrite (...)) even though the ignore_value is
22980         not helpful here.  It's common to write many objects, using
22981         fwrite/printf/etc., and then use ferror to detect output error.
22982
22983         I considered making this patch optional, but decided against it,
22984         because libc is obviously being inconsistent here: there is no
22985         reason libc should insist that user code must inspect fwrite
22986         return's value without also insisting that it inspect printf's,
22987         putchar's, etc.  If user code wants to have a strict style where
22988         all these functions' values are checked (so that ferror need not
22989         be checked), we could add support for that style in a new gnulib
22990         module, but in the meantime it's better to be consistent and to
22991         support common usage.
22992
22993         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22994         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22995         that we are compiling in checking mode, and if not C++, and
22996         if not already wrapping fwrite for some other reason.
22997         (fwrite): #define to rpl_fwrite if the latter is defined.
22998
22999 2011-03-20  Bruno Haible  <bruno@clisp.org>
23000
23001         verror: Fix compilation error introduced on 2011-02-13.
23002         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23003         instead of __attribute__.
23004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23005
23006 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23007             Bruno Haible  <bruno@clisp.org>
23008
23009         socklen: do not depend on sys_socket
23010         While trying to modify Emacs to use gnulib's socklen module,
23011         I discovered a circular dependency: socklen depends on sys_socket
23012         and vice versa.  Emacs can use socklen, but it does not need
23013         sys_socket because it has its own substitute for sys/socket.h.
23014         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23015         gl_TYPE_SOCKLEN_T.
23016         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23017         gl_PREREQ_SYS_H_SOCKET.
23018         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23019         gl_PREREQ_SYS_H_SOCKET.
23020         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23021         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23022         * modules/socklen (Depends-on): Do not depend on sys_socket.
23023         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23024
23025 2011-03-20  Jim Meyering  <meyering@redhat.com>
23026
23027         maint.mk: sort file names *after* new transformation
23028         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23029         prefix would have led to an unwarranted failure in GNU parted.
23030         Sort after that transformation.
23031
23032 2011-03-19  Jim Meyering  <meyering@redhat.com>
23033
23034         maint.mk: fix po-file syntax-check rule
23035         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23036         Patch by Bruno Haible.
23037
23038 2011-03-19  Bruno Haible  <bruno@clisp.org>
23039
23040         socklen: Update comment.
23041         * m4/socklen.m4: Update comment about platforms.
23042
23043 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23044             Bruno Haible  <bruno@clisp.org>
23045
23046         inet_ntop, inet_pton: Simplify.
23047         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23048         documented to provide socklen_t and we already depend on sys_socket.
23049         * modules/inet_pton (Depends-on): Likewise.
23050         * lib/arpa_inet.in.h: Adjust comment.
23051
23052 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23053             Bruno Haible  <bruno@clisp.org>
23054
23055         netdb: Simplify.
23056         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23057         documented to provide socklen_t and we already depend on sys_socket.
23058         * lib/netdb.in.h: Adjust comment.
23059
23060 2011-03-19  Bruno Haible  <bruno@clisp.org>
23061
23062         sys_socket, netdb: Document problem with socklen_t.
23063         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23064         platforms.
23065         * doc/posix-headers/netdb.texi: Likewise.
23066
23067 2011-03-18  Eric Blake  <eblake@redhat.com>
23068
23069         maint.mk: let po check work in VPATH build
23070         * top/maint.mk (po_file): Allow cfg.mk override.
23071         (sc_po_check): Allow VPATH use.
23072         Reported by Jiri Denemark.
23073
23074 2011-03-16  Jim Meyering  <meyering@redhat.com>
23075
23076         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23077         Before, you would have had to create one .x-sc_ file per rule in order
23078         to exempt offending files.  Now, you may instead use a Make variable --
23079         usually defined in cfg.mk -- whose name identifies the affected rule.
23080         * top/maint.mk (_sc_excl): Define.
23081         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23082         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23083
23084 2011-03-13  Bruno Haible  <bruno@clisp.org>
23085
23086         ignore-value tests: Avoid warnings.
23087         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23088         empty for gcc < 3.4.
23089
23090 2011-03-13  Bruno Haible  <bruno@clisp.org>
23091
23092         passfd: Fix link error on Solaris.
23093         * modules/passfd (Description): Correct.
23094         (Depends-on): Add socketlib.
23095         (Link): New section.
23096         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23097
23098 2011-03-13  Bruno Haible  <bruno@clisp.org>
23099
23100         passfd: Fix link error on AIX 5.2.
23101         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23102
23103 2011-03-13  Bruno Haible  <bruno@clisp.org>
23104
23105         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23106         * lib/sys_socket.in.h: Include <stddef.h>.
23107         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23108         CMSG_FIRSTHDR. Remove unused variable.
23109
23110 2011-03-13  Bruno Haible  <bruno@clisp.org>
23111
23112         passfd: Fix compilation error on OpenBSD.
23113         * lib/passfd.c: Include <sys/uio.h>.
23114
23115 2011-03-13  Bruno Haible  <bruno@clisp.org>
23116
23117         passfd test: Fix warnings.
23118         * tests/test-passfd.c: Include <sys/wait.h>.
23119         (main): Fix typo.
23120
23121 2011-03-13  Bruno Haible  <bruno@clisp.org>
23122
23123         passfd module, part 4, tweaks.
23124         * tests/test-passfd.c: Reorder includes.
23125         (main): Fix perror and printf calls.
23126
23127 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23128
23129         passfd module, part 4.
23130         * modules/passfd-tests: New file.
23131         * tests/test-passfd.c: New file.
23132
23133 2011-03-13  Jim Meyering  <meyering@redhat.com>
23134
23135         Makefile: rely on GNU make; derive syntax-check rule names
23136         Rather than requiring that each sc_ rule be listed as a dependent
23137         of "check", use features of GNU make to derive the list.
23138         * Makefile (syntax-check-rules): Define.
23139         (check): Depend on the new variable, not the hard-coded list.
23140
23141 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23142             Bruno Haible  <bruno@clisp.org>
23143
23144         passfd module, part 3.
23145         * lib/passfd.h (recvfd): Add a flags argument.
23146         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23147         (recvfd): Add a flags argument.
23148         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23149         exists.
23150         * modules/passfd (Depends-on): Add cloexec.
23151         Suggested by Eric Blake.
23152
23153 2011-03-13  Bruno Haible  <bruno@clisp.org>
23154
23155         passfd module, part 2, tweaks.
23156         * modules/passfd (Files): Reorder.
23157         (Depends-on): Remove errno.
23158         (Include): Remove <sys/socket.h>, <sys/un.h>.
23159         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23160         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23161         specification header. Include <sys/socket.h> always. Don't include
23162         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23163         (sendfd): Clarify that it sets errno when it fails.
23164         (recvfd): Fix specification.
23165
23166 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23167
23168         passfd module, part 2.
23169         * modules/passfd: New file.
23170         * lib/passfd.h: New file.
23171         * lib/passfd.c: New file.
23172
23173 2011-03-12  Bruno Haible  <bruno@clisp.org>
23174
23175         wcswidth, mbswidth: Avoid integer overflow.
23176         * lib/wcswidth.c: Include <limits.h>.
23177         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23178         * lib/mbswidth.c: Include <limits.h>.
23179         (mbsnwidth): Avoid 'int' overflow.
23180         Reported by Jim Meyering.
23181
23182 2011-03-12  Bruno Haible  <bruno@clisp.org>
23183
23184         futimens, utimensat: Avoid endless recursion on Solaris 10.
23185         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23186         Solaris.
23187         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23188         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23189
23190 2011-03-11  Jim Meyering  <meyering@redhat.com>
23191
23192         maint.mk: relax a regexp to accommodate other formatting styles
23193         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23194         between "ngettext" and the following "(".
23195
23196 2011-03-11  Pádraig Brady <P@draigBrady.com>
23197
23198         maint.mk: suppress a false positive warning
23199         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23200         diagnostics are marked with ngettext.
23201
23202 2011-03-10  Eric Blake  <eblake@redhat.com>
23203
23204         wchar: add explicit dependencies, for Tru64
23205         * modules/mbmemcasecoll (Depends-on): Add wchar.
23206         * modules/mbtowc (Depends-on): Likewise.
23207         * modules/vasnprintf (Depends-on): Likewise.
23208         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23209         * modules/wctomb (Depends-on): Likewise.
23210         Reported by Peter O'Gorman.
23211
23212 2011-03-08  Bruno Haible  <bruno@clisp.org>
23213
23214         passfd module, part 1, tweaks.
23215         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23216         Improve indentation. Improve AC_MSG_CHECKING messages.
23217         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23218         gl_SOCKET_FAMILIES.
23219
23220 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23221
23222         passfd module, part 1.
23223         * m4/afunix.m4: New file.
23224         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23225         sockets.
23226
23227 2011-03-08  Bruno Haible  <bruno@clisp.org>
23228
23229         regex-quote: New API.
23230         * lib/regex-quote.h: Include <stdbool.h>.
23231         (struct regex_quote_spec): New type.
23232         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23233         New declarations.
23234         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23235         'const struct regex_quote_spec *' argument.
23236         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23237         (pcre_special): New constant.
23238         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23239         New functions.
23240         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23241         'const struct regex_quote_spec *' argument.
23242         * modules/regex-quote (Depends-on): Add stdbool.
23243         * tests/test-regex-quote.c (check): Update for new API. Add test for
23244         anchored results.
23245         * NEWS: Mention the API change.
23246         Reported by Reuben Thomas and Eric Blake.
23247
23248 2011-03-06  Bruno Haible  <bruno@clisp.org>
23249
23250         regex-quote: Fix creation of POSIX extended regular expressions.
23251         * lib/regex-quote.c (ere_special): Add grouping and alternation
23252         operators.
23253
23254 2011-03-05  Bruno Haible  <bruno@clisp.org>
23255
23256         doc: Improve doc regarding autopoint vs. gnulib.
23257         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23258         disable autopoint while running autoreconf.
23259         Suggested by Ralf Wildenhues.
23260
23261 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23262
23263         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23264         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23265
23266 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23267
23268         parse-duration: remove xalloc.h dependency
23269         * lib/parse-duration.c (parse_period): handle NULL return from
23270         strdup instead of calling xstrdup().
23271         * modules/parse-duration: remove "xalloc" dependency
23272
23273 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23274
23275         bootstrap: honor m4_base when running aclocal
23276         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23277
23278 2011-03-02  Jim Meyering  <meyering@redhat.com>
23279
23280         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23281         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23282         on request from Matt Booth.
23283
23284 2011-03-01  Eric Blake  <eblake@redhat.com>
23285
23286         test-link: work on Hurd
23287         * tests/test-link.h (test_link): Hurd rejects linking directories
23288         with EISDIR instead of the POSIX-mandated EPERM.
23289
23290 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23291
23292         stdio: simplify by moving files to printf-posix, sigpipe
23293         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23294         since this symbol is needed only if printf is replaced.
23295         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23296         Require gl_ASM_SYMBOL_PREFIX.
23297         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23298         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23299         (Depends-on): Add 'raise'.
23300         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23301         * modules/stdio (Files): Remove lib/stdio-write.c,
23302         m4/asm-underscore.m4.
23303         (Depends-on): Remove 'raise'.
23304
23305         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23306         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23307         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23308         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23309
23310 2011-02-28  Bruno Haible  <bruno@clisp.org>
23311
23312         localcharset: Assume ANSI C behaviour of free().
23313         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23314         calling free().
23315         Suggested by Simon Josefsson <simon@josefsson.org>.
23316
23317 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23318             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23319             Bruno Haible  <bruno@clisp.org>  (tiny change)
23320
23321         On Cygwin, use /proc file system instead of win32 API.
23322         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23323         Win32 file names.
23324         (DllMain): Simplify by removing Cygwin specific code.
23325         (find_shared_library_fullname): Use Linux specific implementation also
23326         for Cygwin.
23327         (get_shared_library_fullname): Update accordingly.
23328         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23329         Win32 file names.
23330         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23331         Cygwin specific code.
23332
23333 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23334             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23335
23336         Fix OpenMP flag detection for various Fortran compilers.
23337         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23338         OpenMP-conditional compilation construct, to force compile
23339         failure with missing OpenMP flag.
23340         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23341
23342 2011-02-25  Eric Blake  <eblake@redhat.com>
23343
23344         strstr: expand test coverage
23345         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23346         compilation.
23347         * tests/test-memmem.c (main): Duplicate tests.
23348         * tests/test-strcasestr.c (main): Likewise.
23349         * tests/test-c-strcasestr.c (main): Likewise.
23350
23351 2011-02-25  Jim Meyering  <meyering@redhat.com>
23352
23353         maint.mk: detect missing-NL-at-EOF, too
23354         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23355         it also detects when a file lacks a newline at EOF.
23356         (require_exactly_one_NL_at_EOF_): Renamed from
23357         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23358         since people may well have .x-sc_... file names tied to the
23359         existing name.  Suggested by Eric Blake.
23360
23361 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23362
23363         dirname: move m4/dos.m4 functionality into lib/dosname.h
23364
23365         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23366         extracts symbols from it, puts them into config.h; but it's much
23367         easier to use the symbols directly.  filename.h already does this,
23368         but it disagrees with dos.m4 in some respects.  This patch
23369         introduces a different include file dosname.h that packages up
23370         dos.m4, and then later we can work on merging filename.h and
23371         dosname.h.  Applications that need only the easy-to-configure
23372         symbols should consider including dosname.h rather than dirname.h.
23373         * NEWS: Mention incompatible changes.
23374         * m4/dos.m4: Remove.
23375         * lib/dosname.h, modules/dosname: New files.
23376         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23377         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23378         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23379         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23380         Include dosname.h, not dirname.h.
23381         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23382         Include dosname.h, for definitions of symbols like ISSLASH
23383         that used to be in config.h.
23384         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23385         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23386         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23387         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23388         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23389         * modules/rmdir (Files): Likewise.
23390         * modules/stat (Files): Likewise.
23391         * modules/unlink (Files): Likewise.
23392         * modules/dirname-lgpl (Depends-on): Add dosname.
23393         * modules/lstat (Depends-on): Likewise.
23394         * modules/openat (Depends-on): Likewise.
23395         * modules/rmdir (Depends-on): Likewise.
23396         * modules/savewd (Depends-on): Likewise.
23397         * modules/stat (Depends-on): Likewise.
23398         * modules/unlink (Depends-on): Likewise.
23399         * modules/openat (Depends-on): Remove dirname-lgpl.
23400         * modules/savewd (Depends-on): Likewise.
23401         * tests/test-dirname.c: Do not use removed symbols like
23402         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23403         the remaining symbols, e.g., ISSLASH ('\\').
23404
23405 2011-02-25  Eric Blake  <eblake@redhat.com>
23406
23407         strstr: revert patches that introduced bug and pessimization
23408         * lib/str-two-way.h: Add another reference.
23409         (two_way_short_needle, two_way_long_needle): Revert changes from
23410         2011-02-24; they pessimize search speed.
23411         (critical_factorization): Partially revert changes from
23412         2010-06-22; they violate the requirement that the left half of the
23413         needle be smaller than the period of the needle.
23414
23415 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23416
23417         filenamecat: remove unnecessary dependency on dirname-lgpl
23418         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23419         is no direct dependency, just an indirect one via filenamecat-lgpl.
23420
23421         remove: remove unnecessary use of m4/dos.m4
23422         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23423         * modules/remove (FILES): Remove m4/dos.m4.
23424
23425         * lib/openat-proc.c: Don't include dirname.h; not needed.
23426
23427         backupfile: remove unnecessary use of m4/dos.m4
23428         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23429         of its symbols are used by the backupfile code.  backupfile.c does
23430         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23431         for the rare case of programs that want all their backup file
23432         names to live within 8+3 limits, and dos.m4 doesn't address that.
23433         * modules/backupfile (Files): Remove m4/dos.m4.
23434
23435 2011-02-24  Jim Meyering  <meyering@redhat.com>
23436
23437         strstr: fix a bug whereby strstr would mistakenly return NULL
23438         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23439         in period calculation.
23440         (two_way_long_needle): Likewise.
23441         The original problem was reported by Mike Stump in
23442         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23443         Ralf Wildenhues provided the short needle and haystack.
23444         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23445         Add a more involved test to trigger the bug in two_way_long_needle.
23446
23447 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23448
23449         gnulib-tool: remove use of bold display in help screen
23450         * gnulib-tool (func_usage): Do not use bold display anymore in the
23451         help screen.  That was just meant to be a temporary emphasis for a
23452         backward-incompatible change.
23453
23454 2011-02-23  Bruno Haible  <bruno@clisp.org>
23455
23456         Fix misindentation of preprocessor directives.
23457         * lib/argp-namefrob.h: Reindent preprocessor directives.
23458         * lib/getopt_int.h (struct _getopt_data): Likewise.
23459         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23460         * lib/vasnprintf.c (decode_long_double): Likewise.
23461         * tests/test-argmatch.c: Insert blank lines, for clarity.
23462         * tests/test-exclude.c: Likewise.
23463
23464 2011-02-22  Bruno Haible  <bruno@clisp.org>
23465
23466         ioctl: Fix for MacOS X in 64-bit mode.
23467         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23468         value.
23469         Suggested by Eric Blake.
23470         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23471
23472 2011-02-22  Jim Meyering  <meyering@redhat.com>
23473
23474         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23475         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23476         in lib/.
23477
23478 2011-02-22  Eric Blake  <eblake@redhat.com>
23479
23480         maint: avoid any CDPATH issue
23481         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23482
23483         maint: adjust cpp indentation for my modules, as well
23484         * Makefile (sc_cpp_indent_check): Add my name.
23485         * lib/fbufmode.c: Filter through cppi.
23486         * lib/fpurge.c: Likewise.
23487         * lib/freadable.c: Likewise.
23488         * lib/freading.c: Likewise.
23489         * lib/fwritable.c: Likewise.
23490         * lib/fwriting.c: Likewise.
23491         * lib/sigaction.c: Likewise.
23492
23493 2011-02-22  Jim Meyering  <meyering@redhat.com>
23494
23495         maint: adjust cpp indentation to reflect nesting depth
23496         I.e., in a block of code that begins with an unnested "#if",
23497         put one space between the "#" in column 1 and following token.
23498         For example,
23499         -#include <sys/vfs.h>
23500         +# include <sys/vfs.h>
23501         Do this only in .c files that are part of a module I maintain.
23502         * lib/linkat.c: Filter through cppi.
23503         * lib/nanosleep.c: Likewise.
23504         * lib/openat.c: Likewise.
23505         * lib/openat-die.c: Likewise.
23506         * lib/dup3.c: Likewise.
23507         * lib/fchownat.c: Likewise.
23508         * lib/flock.c: Likewise.
23509         * lib/fsync.c: Likewise.
23510         * lib/fts.c: Likewise.
23511         * lib/getpass.c: Likewise.
23512         * lib/gettimeofday.c: Likewise.
23513         * lib/userspec.c: Likewise.
23514         * Makefile (sc_cpp_indent_check): New rule, to check this.
23515
23516 2011-02-22  Bruno Haible  <bruno@clisp.org>
23517
23518         New module 'wctomb'.
23519         * lib/stdlib.in.h (wctomb): New declaration.
23520         * lib/wctomb.c: New file.
23521         * lib/wctomb-impl.h: New file.
23522         * m4/wctomb.m4: New file.
23523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23524         REPLACE_WCTOMB.
23525         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23526         REPLACE_WCTOMB.
23527         * modules/wctomb: New file.
23528         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23529         * doc/posix-functions/wctomb.texi: Mention the new module.
23530         * modules/wctob (Depends-on): Add wctomb.
23531
23532 2011-02-22  Bruno Haible  <bruno@clisp.org>
23533
23534         New module 'mbtowc'.
23535         * lib/stdlib.in.h (mbtowc): New declaration.
23536         * lib/mbtowc.c: New file.
23537         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23538         * m4/mbtowc.m4: New file.
23539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23540         REPLACE_MBTOWC.
23541         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23542         REPLACE_MBTOWC.
23543         * modules/mbtowc: New file.
23544         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23545         * doc/posix-functions/mbtowc.texi: Mention the new module.
23546         * modules/btowc (Depends-on): Add mbtowc.
23547
23548 2011-02-22  Bruno Haible  <bruno@clisp.org>
23549
23550         wcrtomb: Add more tests for native Windows platforms.
23551         * tests/test-wcrtomb-w32-1.sh: New file.
23552         * tests/test-wcrtomb-w32-2.sh: New file.
23553         * tests/test-wcrtomb-w32-3.sh: New file.
23554         * tests/test-wcrtomb-w32-4.sh: New file.
23555         * tests/test-wcrtomb-w32-5.sh: New file.
23556         * tests/test-wcrtomb-w32.c: New file.
23557         * modules/wcrtomb-tests (Files): Add them.
23558         (Makefile.am): Arrange to run these tests.
23559         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23560         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23561
23562 2011-02-20  Bruno Haible  <bruno@clisp.org>
23563
23564         wcrtomb: Enhance test.
23565         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23566
23567 2011-02-20  Bruno Haible  <bruno@clisp.org>
23568
23569         mbrtowc: Tiny optimization.
23570         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23571
23572 2011-02-20  Jim Meyering  <meyering@redhat.com>
23573
23574         test-exclude.c: remove unmatched #endif
23575         * tests/test-exclude.c: Remove stray #endif, left over from
23576         the change of a week ago.
23577
23578 2011-02-19  Jim Meyering  <meyering@redhat.com>
23579
23580         git-version-gen: skip "-dirty" check when appropriate
23581         * build-aux/git-version-gen: Don't run any git commands when the
23582         version string comes from .tarball-version.  Prior to this, we
23583         would run git update-index --refresh even from a just-unpacked
23584         tarball directory, and that could affect a .git/ directory in a
23585         parent of the build directory.  Reported by Mike Frysinger.
23586
23587 2011-02-19  Bruno Haible  <bruno@clisp.org>
23588
23589         unictype/property-byname: Reduce the size of the 'data' segment.
23590         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23591
23592 2011-02-19  Bruno Haible  <bruno@clisp.org>
23593
23594         unictype/scripts: Reduce the size of the 'data' segment.
23595         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23596         '%pic'.
23597         * lib/unictype/scripts_byname.gperf: Regenerated.
23598
23599 2011-02-19  Bruno Haible  <bruno@clisp.org>
23600
23601         stdint: Update documentation.
23602         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23603
23604 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23605
23606         stdint: omit redundant check for wchar.h
23607         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23608         always tests whether wchar.h exists, so remove the now-redundant test.
23609
23610 2011-02-18  Bruno Haible  <bruno@clisp.org>
23611
23612         stdint: Cut dependency to module 'wchar'.
23613         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23614         include the necessary prerequisites.
23615         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23616         * modules/stdint (Depends-on): Remove wchar.
23617         (Makefile.am): Substitute HAVE_WCHAR_H.
23618         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23619
23620 2011-02-18  Eric Blake  <eblake@redhat.com>
23621
23622         longlong: skip, rather than fail, on cross-compilation
23623         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23624         when cross-compiling; regression from 2011-02-16.
23625
23626 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23627
23628         * NEWS: Mention 2011-02-08 change to stdlib.
23629
23630 2011-02-17  Bruno Haible  <bruno@clisp.org>
23631
23632         getloadavg: Add comments about platforms.
23633         * m4/getloadavg.m4: Add comment.
23634         * lib/getloadavg.c: Likewise.
23635
23636 2011-02-17  Bruno Haible  <bruno@clisp.org>
23637
23638         getloadavg: Fix link error on Solaris 2.6.
23639         * modules/getloadavg (Link): New section.
23640         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23641         linking test-getloadavg.
23642         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23643         getloadavg.
23644
23645 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23646
23647         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23648         It was 'int', but this doesn't match the IRIX 6.5 manual.
23649         Suggested by Bruno Haible in
23650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23651
23652 2011-02-17  Bruno Haible  <bruno@clisp.org>
23653
23654         havelib: Fix comments.
23655         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23656         change.
23657
23658 2011-02-17  Bruno Haible  <bruno@clisp.org>
23659
23660         havelib: Update config.rpath.
23661         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23662
23663 2011-02-17  Bruno Haible  <bruno@clisp.org>
23664
23665         getloadavg test: Add some plausibility checks.
23666         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23667         is improbable.
23668
23669 2011-02-16  Eric Blake  <eblake@redhat.com>
23670
23671         maintainer-makefile: make syntax-check a no-op from tarballs
23672         * top/maint.mk (no-vc-detected): New rule.
23673         (local-checks-available): Use it to avoid hanging if someone tries
23674         'make syntax-check' from a tarball.  Also append to any non-syntax
23675         checks already defined in cfg.mk.
23676
23677 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23678
23679         longlong: tune, particularly for common case of c99
23680
23681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23682         or running anything if c99, or if unsigned long long int does not
23683         work.  In either case, we know the answer without further tests.
23684         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23685         it at most once, and use its results for both long long int and
23686         unsigned long long int.  This is more likely to be efficient in
23687         the common case where the program wants to check for both long
23688         long int and unsigned long long int.
23689         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23690         since the answer is already known.
23691
23692 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23693
23694         getloadavg: set errno
23695         * lib/getloadavg.c: Set errno when returning -1.  If no other
23696         error number looks appropriate, set it to ENOSYS if the getloadavg
23697         looks like it can't possibly ever work, ENOTSUP otherwise.
23698         Suggested by Bruno Haible in
23699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23700
23701         getloadavg: trim unused parts and speed up 'configure'
23702         * NEWS: Document this.
23703         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23704         always compiled if getloadavg is absent.
23705         Move test code to ...
23706         * tests/test-getloadavg.c: New file, containing previous
23707         contents of test from lib/getloadavg.c.  It also contains
23708         suggestions by Bruno Haible in
23709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23710         * modules/getloadavg-tests: New file.
23711         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23712         Do tests in the same order as they're needed for getloadavg.c.
23713         Omit setgid-related tests that generate symbols KMEM_GROUP,
23714         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23715         Do only the tests that are needed to see whether the system has
23716         getloadavg, moving the other tests into ...
23717         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23718         NLIST_NAME_UNION; nobody should be using it.  Do not define
23719         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23720         relevant, as the user of this module shouldn't care how getloadavg
23721         is implemented.
23722
23723         getloadavg: omit unused var
23724         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23725
23726 2011-02-15  Jim Meyering  <meyering@redhat.com>
23727
23728         doc: update users.txt
23729         * users.txt: Update iwhd's URL.
23730
23731 2011-02-13  Bruno Haible  <bruno@clisp.org>
23732
23733         Consistent macro naming for macros that use GCC __attribute__.
23734         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23735         _ATTRIBUTE_NONNULL_.
23736         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23737         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23738         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23739         ATTRIBUTE_DEPRECATED.
23740         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23741         ATTRIBUTE_NORETURN.
23742         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23743         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23744         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23745         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23746         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23747         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23748         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23749         ATTRIBUTE_SENTINEL.
23750         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23751         ATTRIBUTE_RETURN_CHECK.
23752         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23753         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23754         ATTRIBUTE_NORETURN.
23755         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23756         Reported by Paul Eggert.
23757
23758 2011-02-13  Bruno Haible  <bruno@clisp.org>
23759
23760         Don't interfere with a program's definition of __attribute__.
23761         * lib/argp.h (__attribute__): Remove definition.
23762         (_GL_ATTRIBUTE_FORMAT): New macro.
23763         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23764         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23765         (_GL_ATTRIBUTE_FORMAT): New macro.
23766         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23767         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23768         GCC 3 or newer.
23769         * lib/error.h (__attribute__): Remove definition.
23770         (_GL_ATTRIBUTE_FORMAT): New macro.
23771         (error, error_at_line): Use it.
23772         * lib/hash.h (__attribute__): Remove definition.
23773         (ATTRIBUTE_WUR): Update definition. Define always.
23774         * lib/openat.h (__attribute__): Remove definition.
23775         (ATTRIBUTE_NORETURN): Update definition. Define always.
23776         * lib/sigpipe-die.h (__attribute__): Remove definition.
23777         (ATTRIBUTE_NORETURN): Update definition. Define always.
23778         * lib/vasnprintf.h (__attribute__): Remove definition.
23779         (_GL_ATTRIBUTE_FORMAT): New macro.
23780         (asnprintf, vasnprintf): Use it.
23781         * lib/xalloc.h (__attribute__): Remove definition.
23782         (ATTRIBUTE_NORETURN): Update definition. Define always.
23783         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23784         * lib/xmemdup0.h (__attribute__): Remove definition.
23785         (ATTRIBUTE_NORETURN): Update definition. Define always.
23786         * lib/xprintf.h (__attribute__): Remove definition.
23787         (_GL_ATTRIBUTE_FORMAT): New macro.
23788         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23789         * lib/xstrtol.h (__attribute__): Remove definition.
23790         (ATTRIBUTE_NORETURN): Update definition. Define always.
23791         * lib/xvasprintf.h (__attribute__): Remove definition.
23792         (_GL_ATTRIBUTE_FORMAT): New macro.
23793         (xasprintf, xvasprintf): Use it.
23794         * tests/test-argmatch.c (__attribute__): Remove definition.
23795         (ATTRIBUTE_NORETURN): Update definition. Define always.
23796         * tests/test-exclude.c (__attribute__): Remove definition.
23797         (ATTRIBUTE_NORETURN): Update definition. Define always.
23798         Reported by Paul Eggert.
23799
23800 2011-02-13  Bruno Haible  <bruno@clisp.org>
23801
23802         mbrtowc: Add more tests for native Windows platforms.
23803         * tests/test-mbrtowc-w32-1.sh: New file.
23804         * tests/test-mbrtowc-w32-2.sh: New file.
23805         * tests/test-mbrtowc-w32-3.sh: New file.
23806         * tests/test-mbrtowc-w32-4.sh: New file.
23807         * tests/test-mbrtowc-w32-5.sh: New file.
23808         * tests/test-mbrtowc-w32.c: New file.
23809         * modules/mbrtowc-tests (Files): Add them.
23810         (Makefile.am): Arrange to run these tests.
23811         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23812         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23813
23814 2011-02-13  Bruno Haible  <bruno@clisp.org>
23815
23816         mbrtowc: Work around native Windows bug.
23817         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23818         guess when no suitable locale for testing was found.
23819         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23820
23821 2011-02-13  Bruno Haible  <bruno@clisp.org>
23822
23823         mbsinit: Work around mingw bug.
23824         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23825         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23826         Windows.
23827         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23828
23829 2011-02-13  Bruno Haible  <bruno@clisp.org>
23830
23831         mbsinit: Don't crash for a NULL argument.
23832         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23833         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23834
23835 2011-02-13  Bruno Haible  <bruno@clisp.org>
23836
23837         Don't interfere with a program's definition of __attribute__.
23838         * lib/stdio.in.h (__attribute__): Remove definition.
23839         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23840         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23841         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23842         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23843         * lib/string.in.h (__attribute__): Remove definition.
23844         Reported by Paul Eggert.
23845
23846 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23847
23848         stdlib: don't get in the way of non-GCC __attribute__
23849         See thread starting at
23850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23851         Revert previous stdlib change, installing the following instead:
23852         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23853         to get in the way of a non-GCC compiler that supports __attribute__.
23854         (_GL_ATTRIBUTE_RETURN): New macro.
23855         (_Exit): Use it instead of __attribute__.
23856
23857 2011-02-12  Bruno Haible  <bruno@clisp.org>
23858
23859         quotearg test: Avoid test failure on mingw.
23860         * tests/test-quotearg.sh: Convert the locale identifier from native
23861         Windows syntax to Unix syntax.
23862
23863 2011-02-12  Bruno Haible  <bruno@clisp.org>
23864
23865         setlocale: Prefer gnulib's override over libintl's override.
23866         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23867         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23868         GNULIB_defined_setlocale is set.
23869
23870 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23871
23872         stdlib: support non-GCC __attribute__
23873
23874         Fix a serious and tricky problem encountered when attempting to
23875         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23876         5.5, but it crashed due to memory corruption on Solaris 10 with
23877         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23878         bits that are otherwise zero.  This tagging is optional inside
23879         Emacs but is preferred and is used when __attribute__ ((__aligned
23880         (8))) works, as it does with both recent-enough GCC and with Sun C
23881         5.11.  However, Sun C 5.11 is not GCC and does not #define
23882         __GNUC__ and __GNUC_MINOR__.
23883
23884         When I added the getloadavg module to Emacs, it brought in
23885         stdlib.in.h, which contained this fragment:
23886
23887            #ifndef __attribute__
23888            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23889            #  define __attribute__(Spec)   /* empty */
23890            # endif
23891            #endif
23892
23893         When files that include <stdlib.h> were compiled with Sun C 5.11,
23894         the above code disabled __attribute__ ((__aligned (8))), which
23895         caused variables to not be properly aligned, which eventually led
23896         to the pointer corruption mentioned above.  (This was a bit hard
23897         to diagnose, unfortunately.)
23898
23899         Several "#define __attribute__(X) /* empty */" code snippets need
23900         to be eradicated from Gnulib to work with non-GCC compilers that
23901         support __attribute__.  The Autoconf way to do this is to test for
23902         each kind of attribute that we want support for, and selectively
23903         enable that in source code.
23904
23905         Fix this problem just for stdlib.h, by adding a test for the
23906         __noreturn__ attribute, and change stdlib.in.h to use that test
23907         when needed.  This technique can be easily generalized to the
23908         other *.in.h files and attributes, and a similar technique can be
23909         used for *.h and *.c files.  This patch is enough to solve the
23910         problem for Emacs + getloadavg, and I thought I'd publish it for
23911         feedback before undertaking further, similar fixes in other
23912         modules.
23913
23914         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23915         because it's not needed for stdlib.h.  It merely substitutes the
23916         value directly into stdlib.h.  We may well need to #define it, or
23917         similar symbols, for other modules, but it's nice to also have an
23918         option to not #define it for applications like Emacs that do not
23919         need it.
23920
23921         * lib/stdlib.in.h (__attribute__): Do not #define.
23922         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23923         be defined only if the _Exit module is also used.
23924         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23926         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23927         platforms.
23928         * modules/_Exit (Files): Add m4/attribute.m4.
23929         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23930         * m4/attribute.m4: New file.
23931
23932 2011-02-12  Bruno Haible  <bruno@clisp.org>
23933
23934         wcsrtombs: Work around bug on native Windows.
23935         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23936         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23937         instead of len.
23938         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23939
23940 2011-02-12  Bruno Haible  <bruno@clisp.org>
23941
23942         mbsrtowcs: Work around bug on native Windows.
23943         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23944         against mingw bug.
23945         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23946
23947 2011-02-12  Bruno Haible  <bruno@clisp.org>
23948
23949         Avoid setlocale bugs in tests.
23950         * modules/btowc (Dependencies): Add setlocale.
23951         * modules/c-strcase (Dependencies): Likewise.
23952         * modules/mbmemcasecmp (Dependencies): Likewise.
23953         * modules/mbmemcasecoll (Dependencies): Likewise.
23954         * modules/mbrtowc (Dependencies): Likewise.
23955         * modules/mbscasecmp (Dependencies): Likewise.
23956         * modules/mbscasestr (Dependencies): Likewise.
23957         * modules/mbschr (Dependencies): Likewise.
23958         * modules/mbscspn (Dependencies): Likewise.
23959         * modules/mbsinit (Dependencies): Likewise.
23960         * modules/mbsncasecmp (Dependencies): Likewise.
23961         * modules/mbsnrtowcs (Dependencies): Likewise.
23962         * modules/mbspbrk (Dependencies): Likewise.
23963         * modules/mbspcasecmp (Dependencies): Likewise.
23964         * modules/mbsrchr (Dependencies): Likewise.
23965         * modules/mbsrtowcs (Dependencies): Likewise.
23966         * modules/mbsspn (Dependencies): Likewise.
23967         * modules/mbsstr (Dependencies): Likewise.
23968         * modules/nl_langinfo (Dependencies): Likewise.
23969         * modules/quotearg (Dependencies): Likewise.
23970         * modules/unicase/locale-language (Dependencies): Likewise.
23971         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23972         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23973         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23974         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23975         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23976         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23977         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23978         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23979         * modules/vasnprintf-posix (Dependencies): Likewise.
23980         * modules/wcrtomb (Dependencies): Likewise.
23981         * modules/wcsnrtombs (Dependencies): Likewise.
23982         * modules/wcsrtombs (Dependencies): Likewise.
23983
23984 2011-02-12  Bruno Haible  <bruno@clisp.org>
23985
23986         setlocale: Workaround native Windows bug.
23987         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23988         succeeds but sets LC_CTYPE to "C", report a failure.
23989         * tests/test-setlocale2.sh: New file.
23990         * tests/test-setlocale2.c: New file.
23991         * modules/setlocale-tests (Files): Add the new files.
23992         (Makefile.am): Enable test-setlocale2.sh test.
23993         * doc/posix-functions/setlocale.texi: Mention workaround.
23994
23995 2011-02-11  Bruno Haible  <bruno@clisp.org>
23996
23997         Tests for module 'setlocale'.
23998         * modules/setlocale-tests: New file.
23999         * tests/test-setlocale1.sh: New file.
24000         * tests/test-setlocale1.c: New file.
24001
24002         New module 'setlocale'.
24003         * lib/locale.in.h (setlocale): New declaration.
24004         * lib/setlocale.c: New file, based on
24005         gettext/gettext-runtime/intl/setlocale.c.
24006         * m4/setlocale.m4: New file.
24007         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24008         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24009         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24010         REPLACE_SETLOCALE.
24011         * modules/setlocale: New file.
24012         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24013         * doc/posix-functions/setlocale.texi: Mention the new module.
24014
24015 2011-02-11  Bruno Haible  <bruno@clisp.org>
24016
24017         Prepare for locale dependent tests on mingw.
24018         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24019         because it has the wrong locale encoding.
24020         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24021         French_France.1252 instead of "fr".
24022         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24023         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24024         because it has the wrong locale encoding.
24025         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24026         native Windows, try Turkish_Turkey.65001.
24027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24028         Chinese_China.54936.
24029
24030         Prepare for locale dependent tests on mingw.
24031         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24032         differently.
24033         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24034         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24035         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24036         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24037
24038 2011-02-11  Eric Blake  <eblake@redhat.com>
24039
24040         strptime: avoid compiler warnings
24041         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24042         compiler warnings about dead code.
24043         Reported by Daniel P. Berrange.
24044
24045 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24046
24047         doc: update users.txt
24048         * users.txt: Add rcs.
24049
24050 2011-02-10  John W. Eaton  <jwe@gnu.org>
24051
24052         doc: update users.txt
24053         * users.txt: Add octave.
24054
24055 2011-02-10  Jim Meyering  <meyering@redhat.com>
24056
24057         doc: update users.txt
24058         * users.txt: Add iwhd.
24059
24060 2011-02-09  Bruno Haible  <bruno@clisp.org>
24061
24062         gnulib-tool: Make copyright notice adjustment more robust.
24063         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24064         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24065         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24066         License".
24067         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24068
24069 2011-02-06  Bruno Haible  <bruno@clisp.org>
24070
24071         New module 'towctrans'.
24072         * modules/towctrans: New file.
24073         * lib/wctype.in.h (towctrans): New declaration.
24074         * lib/towctrans.c: New file.
24075         * lib/towctrans-impl.h: New file.
24076         * m4/towctrans.m4: New file.
24077         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24078         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24079         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24080         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24081         * doc/posix-functions/towctrans.texi: Mention the new module.
24082
24083 2011-02-06  Bruno Haible  <bruno@clisp.org>
24084
24085         New module 'wctrans'.
24086         * modules/wctrans: New file.
24087         * lib/wctype.in.h (wctrans): New declaration.
24088         * lib/wctrans.c: New file.
24089         * lib/wctrans-impl.h: New file.
24090         * m4/wctrans.m4: New file.
24091         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24092         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24093         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24094         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24095         * doc/posix-functions/wctrans.texi: Mention the new module.
24096
24097 2011-02-06  Bruno Haible  <bruno@clisp.org>
24098
24099         New module 'iswctype'.
24100         * modules/iswctype: New file.
24101         * lib/wctype.in.h (iswctype): New declaration.
24102         * lib/iswctype.c: New file.
24103         * lib/iswctype-impl.h: New file.
24104         * m4/iswctype.m4: New file.
24105         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24106         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24107         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24108         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24109         * doc/posix-functions/iswctype.texi: Mention the new module and the
24110         HP-UX 11.00 problem.
24111
24112 2011-02-06  Bruno Haible  <bruno@clisp.org>
24113
24114         New module 'wctype'.
24115         * modules/wctype: Change to represent the wctype() substitute.
24116         * lib/wctype.in.h (wctype): New declaration.
24117         * lib/wctype.c: New file.
24118         * lib/wctype-impl.h: New file.
24119         * m4/wctype.m4: New file.
24120         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24121         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24122         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24123         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24124         * doc/posix-functions/wctype.texi: Mention the new module and the
24125         HP-UX 11.00 problem.
24126
24127 2011-02-06  Bruno Haible  <bruno@clisp.org>
24128
24129         wctype-h: Ensure wctype_t and wctrans_t are defined.
24130         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24131         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24132         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24133         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24134         HAVE_WCTRANS_T.
24135         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24136
24137 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24138
24139         flock: fix license typo
24140
24141         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24142         omitted.
24143
24144 2011-02-08  Bruno Haible  <bruno@clisp.org>
24145
24146         Split large sed scripts, for HP-UX sed.
24147         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24148         to avoid HP-UX limit of 99 commands, in the near future.
24149         * modules/stdlib (Makefile.am): Likewise.
24150         * modules/unistd (Makefile.am): Likewise.
24151         * modules/wchar (Makefile.am): Likewise.
24152         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24153         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24154         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24155
24156 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24157             Bruno Haible  <bruno@clisp.org>
24158
24159         stdlib: improve random_r modularization
24160         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24161         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24162         you also need the random_r module to get this material right.
24163         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24164         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24165         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24166
24167 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         stdlib: don't depend on stdint
24170         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24171         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24172         be independent of whether stdint.h is needed.
24173         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24174         here, instead of ...
24175         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24176         struct random_data should be using the random_r module, not just
24177         the stdlib module (which wouldn't make sense: what package needs
24178         just struct random_data without also needing random_r?).
24179         * modules/stdlib (Depends-on): Remove stdint.
24180
24181         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24182         See the thread rooted at
24183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24184         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24185         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24186         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24187         __VMS)); previously it was always included (via fcntl--.h).
24188         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24189         hand; this is good enough for load averages.  Also, do not use
24190         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24191         flags directly if available and don't bother otherwise.  (Packages
24192         that need the extra reliability should use the modules that define
24193         these flags on older platforms that lack them.)
24194         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24195         fcntl-safer.
24196
24197 2011-02-08  Jim Meyering  <meyering@redhat.com>
24198
24199         di-set.h, ino-map.h: add multiple-inclusion guard
24200         Technically, the guard is required only for ino-map.h, due to its
24201         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24202         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24203         * lib/ino-map.h: Likewise.
24204
24205 2011-02-06  Bruno Haible  <bruno@clisp.org>
24206
24207         iswblank: Ensure declaration on glibc systems.
24208         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24209         * modules/iswblank (Dependencies): Add 'extensions'.
24210         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24211
24212 2011-02-06  Bruno Haible  <bruno@clisp.org>
24213
24214         New module 'iswblank'.
24215         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24216         * modules/iswblank: New file.
24217         * modules/wctype-h (Files): Remove lib/iswblank.c.
24218         (Makefile.am): Substitute GNULIB_ISWBLANK.
24219         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24220         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24221         (gl_WCTYPE_H_DEFAULTS): New macro.
24222         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24223         * modules/iswblank-tests: New file.
24224         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24225         * tests/test-wctype-h.c (main): Remove iswblank tests.
24226         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24227         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24228         of 'wctype-h'.
24229         * NEWS: Mention the change.
24230         * modules/mbchar (Depends-on): Add iswblank.
24231
24232 2011-02-08  Bruno Haible  <bruno@clisp.org>
24233
24234         di-set tests: Refactor.
24235         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24236         unnecessary includes.
24237         (ASSERT): Remove macro.
24238         (main): Make C90 compliant by avoiding variable declaration after
24239         statement.
24240         * modules/di-set-tests (Files): Add tests/macros.h.
24241
24242 2011-02-08  Bruno Haible  <bruno@clisp.org>
24243
24244         ino-map tests: Refactor.
24245         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24246         unnecessary includes.
24247         (ASSERT): Remove macro.
24248         (main): Make C90 compliant by avoiding variable declaration after
24249         statement.
24250         * modules/ino-map-tests (Files): Add tests/macros.h.
24251
24252 2011-02-08  Jim Meyering  <meyering@redhat.com>
24253
24254         di-set: add "const" to a cast
24255         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24256         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24257
24258 2011-02-06  Bruno Haible  <bruno@clisp.org>
24259
24260         Rename module 'wctype' to 'wctype-h'.
24261         * modules/wctype-h: Renamed from modules/wctype.
24262         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24263         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24264         (Files, Depends-on, Makefile.am): Update.
24265         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24266         (Files, Makefile.am): Update.
24267         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24268         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24269         * doc/posix-headers/wctype.texi: Update.
24270         * doc/posix-functions/iswalnum.texi: Update.
24271         * doc/posix-functions/iswalpha.texi: Update.
24272         * doc/posix-functions/iswblank.texi: Update.
24273         * doc/posix-functions/iswcntrl.texi: Update.
24274         * doc/posix-functions/iswdigit.texi: Update.
24275         * doc/posix-functions/iswgraph.texi: Update.
24276         * doc/posix-functions/iswlower.texi: Update.
24277         * doc/posix-functions/iswprint.texi: Update.
24278         * doc/posix-functions/iswpunct.texi: Update.
24279         * doc/posix-functions/iswspace.texi: Update.
24280         * doc/posix-functions/iswupper.texi: Update.
24281         * doc/posix-functions/iswxdigit.texi: Update.
24282         * doc/posix-functions/towlower.texi: Update.
24283         * doc/posix-functions/towupper.texi: Update.
24284         * NEWS: Mention the change.
24285         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24286         * modules/mbchar (Dependencies): Likewise.
24287         * modules/mbswidth (Dependencies): Likewise.
24288         * modules/quotearg (Dependencies): Likewise.
24289         * modules/regex (Dependencies): Likewise.
24290         * modules/wcscasecmp (Dependencies): Likewise.
24291         * modules/wcsncasecmp (Dependencies): Likewise.
24292         * modules/wcwidth (Dependencies): Likewise.
24293
24294 2011-02-06  Bruno Haible  <bruno@clisp.org>
24295
24296         New module 'wcswidth'.
24297         * modules/wcswidth: New file.
24298         * lib/wchar.in.h (wcswidth): New declaration.
24299         * lib/wcswidth.c: New file.
24300         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24301         * m4/wcswidth.m4: New file.
24302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24304         REPLACE_WCSWIDTH.
24305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24306         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24307         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24308         * doc/posix-functions/wcswidth.texi: Mention the new module.
24309
24310 2011-02-06  Bruno Haible  <bruno@clisp.org>
24311
24312         New module 'wcstok'.
24313         * modules/wcstok: New file.
24314         * lib/wchar.in.h (wcstok): New declaration.
24315         * lib/wcstok.c: New file.
24316         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24317         * m4/wcstok.m4: New file.
24318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24321         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24322         * doc/posix-functions/wcstok.texi: Mention the new module.
24323
24324 2011-02-06  Bruno Haible  <bruno@clisp.org>
24325
24326         New module 'wcsstr'.
24327         * modules/wcsstr: New file.
24328         * lib/wchar.in.h (wcsstr): New declaration.
24329         * lib/wcsstr.c: New file.
24330         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24331         * m4/wcsstr.m4: New file.
24332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24335         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24336         * doc/posix-functions/wcsstr.texi: Mention the new module.
24337
24338 2011-02-06  Bruno Haible  <bruno@clisp.org>
24339
24340         New module 'wcspbrk'.
24341         * modules/wcspbrk: New file.
24342         * lib/wchar.in.h (wcspbrk): New declaration.
24343         * lib/wcspbrk.c: New file.
24344         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24345         * m4/wcspbrk.m4: New file.
24346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24349         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24350         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24351
24352 2011-02-06  Bruno Haible  <bruno@clisp.org>
24353
24354         New module 'wcsspn'.
24355         * modules/wcsspn: New file.
24356         * lib/wchar.in.h (wcsspn): New declaration.
24357         * lib/wcsspn.c: New file.
24358         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24359         * m4/wcsspn.m4: New file.
24360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24363         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24364         * doc/posix-functions/wcsspn.texi: Mention the new module.
24365
24366 2011-02-06  Bruno Haible  <bruno@clisp.org>
24367
24368         New module 'wcscspn'.
24369         * modules/wcscspn: New file.
24370         * lib/wchar.in.h (wcscspn): New declaration.
24371         * lib/wcscspn.c: New file.
24372         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24373         * m4/wcscspn.m4: New file.
24374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24377         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24378         * doc/posix-functions/wcscspn.texi: Mention the new module.
24379
24380 2011-02-06  Bruno Haible  <bruno@clisp.org>
24381
24382         New module 'wcsrchr'.
24383         * modules/wcsrchr: New file.
24384         * lib/wchar.in.h (wcsrchr): New declaration.
24385         * lib/wcsrchr.c: New file.
24386         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24387         * m4/wcsrchr.m4: New file.
24388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24391         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24392         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24393
24394 2011-02-06  Bruno Haible  <bruno@clisp.org>
24395
24396         New module 'wcschr'.
24397         * modules/wcschr: New file.
24398         * lib/wchar.in.h (wcschr): New declaration.
24399         * lib/wcschr.c: New file.
24400         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24401         * m4/wcschr.m4: New file.
24402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24405         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24406         * doc/posix-functions/wcschr.texi: Mention the new module.
24407
24408 2011-02-06  Bruno Haible  <bruno@clisp.org>
24409
24410         New module 'wcsdup'.
24411         * modules/wcsdup: New file.
24412         * lib/wchar.in.h (wcsdup): New declaration.
24413         * lib/wcsdup.c: New file.
24414         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24415         * m4/wcsdup.m4: New file.
24416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24418         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24419         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24420         * doc/posix-functions/wcsdup.texi: Mention the new module.
24421
24422 2011-02-06  Bruno Haible  <bruno@clisp.org>
24423
24424         New module 'wcsxfrm'.
24425         * modules/wcsxfrm: New file.
24426         * lib/wchar.in.h (wcsxfrm): New declaration.
24427         * lib/wcsxfrm.c: New file.
24428         * lib/wcsxfrm-impl.h: New file.
24429         * m4/wcsxfrm.m4: New file.
24430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24433         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24434         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24435
24436 2011-02-06  Bruno Haible  <bruno@clisp.org>
24437
24438         New module 'wcscoll'.
24439         * modules/wcscoll: New file.
24440         * lib/wchar.in.h (wcscoll): New declaration.
24441         * lib/wcscoll.c: New file.
24442         * lib/wcscoll-impl.h: New file.
24443         * m4/wcscoll.m4: New file.
24444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24447         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24448         * doc/posix-functions/wcscoll.texi: Mention the new module.
24449
24450 2011-02-06  Bruno Haible  <bruno@clisp.org>
24451
24452         New module 'wcsncasecmp'.
24453         * modules/wcsncasecmp: New file.
24454         * lib/wchar.in.h (wcsncasecmp): New declaration.
24455         * lib/wcsncasecmp.c: New file.
24456         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24457         * m4/wcsncasecmp.m4: New file.
24458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24461         HAVE_WCSNCASECMP.
24462         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24463         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24464
24465 2011-02-06  Bruno Haible  <bruno@clisp.org>
24466
24467         New module 'wcscasecmp'.
24468         * modules/wcscasecmp: New file.
24469         * lib/wchar.in.h (wcscasecmp): New declaration.
24470         * lib/wcscasecmp.c: New file.
24471         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24472         * m4/wcscasecmp.m4: New file.
24473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24476         HAVE_WCSCASECMP.
24477         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24478         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24479
24480 2011-02-05  Bruno Haible  <bruno@clisp.org>
24481
24482         New module 'wcsncmp'.
24483         * modules/wcsncmp: New file.
24484         * lib/wchar.in.h (wcsncmp): New declaration.
24485         * lib/wcsncmp.c: New file.
24486         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24487         * m4/wcsncmp.m4: New file.
24488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24491         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24492         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24493
24494 2011-02-05  Bruno Haible  <bruno@clisp.org>
24495
24496         New module 'wcscmp'.
24497         * modules/wcscmp: New file.
24498         * lib/wchar.in.h (wcscmp): New declaration.
24499         * lib/wcscmp.c: New file.
24500         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24501         * m4/wcscmp.m4: New file.
24502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24505         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24506         * doc/posix-functions/wcscmp.texi: Mention the new module.
24507
24508 2011-02-05  Bruno Haible  <bruno@clisp.org>
24509
24510         New module 'wcsncat'.
24511         * modules/wcsncat: New file.
24512         * lib/wchar.in.h (wcsncat): New declaration.
24513         * lib/wcsncat.c: New file.
24514         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24515         * m4/wcsncat.m4: New file.
24516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24519         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24520         * doc/posix-functions/wcsncat.texi: Mention the new module.
24521
24522 2011-02-05  Bruno Haible  <bruno@clisp.org>
24523
24524         New module 'wcscat'.
24525         * modules/wcscat: New file.
24526         * lib/wchar.in.h (wcscat): New declaration.
24527         * lib/wcscat.c: New file.
24528         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24529         * m4/wcscat.m4: New file.
24530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24533         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24534         * doc/posix-functions/wcscat.texi: Mention the new module.
24535
24536 2011-02-05  Bruno Haible  <bruno@clisp.org>
24537
24538         New module 'wcpncpy'.
24539         * modules/wcpncpy: New file.
24540         * lib/wchar.in.h (wcpncpy): New declaration.
24541         * lib/wcpncpy.c: New file.
24542         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24543         * m4/wcpncpy.m4: New file.
24544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24546         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24547         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24548         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24549
24550 2011-02-05  Bruno Haible  <bruno@clisp.org>
24551
24552         New module 'wcsncpy'.
24553         * modules/wcsncpy: New file.
24554         * lib/wchar.in.h (wcsncpy): New declaration.
24555         * lib/wcsncpy.c: New file.
24556         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24557         * m4/wcsncpy.m4: New file.
24558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24561         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24562         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24563
24564 2011-02-05  Bruno Haible  <bruno@clisp.org>
24565
24566         New module 'wcpcpy'.
24567         * modules/wcpcpy: New file.
24568         * lib/wchar.in.h (wcpcpy): New declaration.
24569         * lib/wcpcpy.c: New file.
24570         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24571         * m4/wcpcpy.m4: New file.
24572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24574         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24575         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24576         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24577
24578 2011-02-05  Bruno Haible  <bruno@clisp.org>
24579
24580         New module 'wcscpy'.
24581         * modules/wcscpy: New file.
24582         * lib/wchar.in.h (wcscpy): New declaration.
24583         * lib/wcscpy.c: New file.
24584         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24585         * m4/wcscpy.m4: New file.
24586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24589         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24590         * doc/posix-functions/wcscpy.texi: Mention the new module.
24591
24592 2011-02-05  Bruno Haible  <bruno@clisp.org>
24593
24594         New module 'wcsnlen'.
24595         * modules/wcsnlen: New file.
24596         * lib/wchar.in.h (wcsnlen): New declaration.
24597         * lib/wcsnlen.c: New file.
24598         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24599         * m4/wcsnlen.m4: New file.
24600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24603         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24604         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24605
24606 2011-02-05  Bruno Haible  <bruno@clisp.org>
24607
24608         New module 'wcslen'.
24609         * modules/wcslen: New file.
24610         * lib/wchar.in.h (wcslen): New declaration.
24611         * lib/wcslen.c: New file.
24612         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24613         * m4/wcslen.m4: New file.
24614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24617         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24618         * doc/posix-functions/wcslen.texi: Mention the new module.
24619
24620 2011-02-05  Bruno Haible  <bruno@clisp.org>
24621
24622         New module 'wmemset'.
24623         * modules/wmemset: New file.
24624         * lib/wchar.in.h (wmemset): New declaration.
24625         * lib/wmemset.c: New file.
24626         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24627         * m4/wmemset.m4: New file.
24628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24630         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24631         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24632         * doc/posix-functions/wmemset.texi: Mention the new module.
24633
24634 2011-02-05  Bruno Haible  <bruno@clisp.org>
24635
24636         New module 'wmemmove'.
24637         * modules/wmemmove: New file.
24638         * lib/wchar.in.h (wmemmove): New declaration.
24639         * lib/wmemmove.c: New file.
24640         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24641         * m4/wmemmove.m4: New file.
24642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24644         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24645         HAVE_WMEMMOVE.
24646         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24647         * doc/posix-functions/wmemmove.texi: Mention the new module.
24648
24649 2011-02-05  Bruno Haible  <bruno@clisp.org>
24650
24651         New module 'wmemcpy'.
24652         * modules/wmemcpy: New file.
24653         * lib/wchar.in.h (wmemcpy): New declaration.
24654         * lib/wmemcpy.c: New file.
24655         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24656         * m4/wmemcpy.m4: New file.
24657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24659         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24660         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24661         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24662
24663 2011-02-05  Bruno Haible  <bruno@clisp.org>
24664
24665         New module 'wmemcmp'.
24666         * modules/wmemcmp: New file.
24667         * lib/wchar.in.h (wmemcmp): New declaration.
24668         * lib/wmemcmp.c: New file.
24669         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24670         * m4/wmemcmp.m4: New file.
24671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24673         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24674         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24675         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24676
24677 2011-02-07  Jim Meyering  <meyering@redhat.com>
24678
24679         di-set, ino-map: new modules, from coreutils
24680         * lib/di-set.c: New file.
24681         * lib/di-set.h: Likewise.
24682         * lib/ino-map.c: Likewise.
24683         * lib/ino-map.h: Likewise.
24684         * modules/di-set: Likewise.
24685         * modules/di-set-tests: Likewise.
24686         * modules/ino-map: Likewise.
24687         * modules/ino-map-tests: Likewise.
24688         * tests/test-di-set.c: Likewise.
24689         * tests/test-ino-map.c: Likewise.
24690
24691 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24692
24693         getloadavg: merge minor changes from Emacs
24694
24695         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24696         (getloadavg): Use memset, not bzero.
24697
24698         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24699         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24700         clash (bug#86).
24701
24702 2010-11-14  Bruno Haible  <bruno@clisp.org>
24703
24704         Allow multiple gnulib generated replacements to coexist.
24705         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24706         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24707         * lib/langinfo.in.h (nl_item): Likewise.
24708         * lib/math.in.h (_NaN, NAN): Likewise.
24709         * lib/netdb.in.h (struct addrinfo): Likewise.
24710         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24711         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24712         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24713         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24714         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24715         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24716         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24717         pthread_mutexattr_init, pthread_mutexattr_settype,
24718         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24719         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24720         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24721         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24722         * lib/sched.in.h (struct sched_param): Likewise.
24723         * lib/se-selinux.in.h (security_class_t, security_context_t,
24724         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24725         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24726         lsetfilecon, fsetfilecon, security_check_context,
24727         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24728         Likewise.
24729         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24730         Likewise.
24731         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24732         _gl_function_taking_int_returning_void_t, union sigval,
24733         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24734         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24735         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24736         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24737         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24738         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24739         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24740         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24741         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24742         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24743         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24744         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24745         socklen_t, rpl_fd_isset): Likewise.
24746         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24747         * lib/sys_time.in.h (struct timeval): Likewise.
24748         * lib/sys_times.in.h (struct tms): Likewise.
24749         * lib/sys_utsname.in.h (struct utsname):
24750         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24751         * lib/unistd.in.h (getpagesize): Likewise.
24752         * lib/wchar.in.h (mbstate_t): Likewise.
24753         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24754         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24755         towlower, towupper): Likewise.
24756         Reported by Sam Steingold <sds@gnu.org>.
24757
24758 2011-02-05  Eric Blake  <eblake@redhat.com>
24759
24760         unsetenv: work around Haiku issues
24761         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24762         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24763
24764 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24765
24766         libposix: avoid calling error() within libposix
24767         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24768         is defined.
24769
24770 2011-02-05  Eric Blake  <eblake@redhat.com>
24771
24772         strerror_r-posix: port to cygwin
24773         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24774         implementation.
24775         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24776         * tests/test-strerror_r.c (main): Fix test.
24777         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24778         issue.
24779
24780 2011-02-05  Bruno Haible  <bruno@clisp.org>
24781
24782         New module 'wmemchr'.
24783         * modules/wmemchr: New file.
24784         * lib/wchar.in.h (wmemchr): New declaration.
24785         * lib/wmemchr.c: New file.
24786         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24787         * m4/wmemchr.m4: New file.
24788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24790         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24791         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24792         * doc/posix-functions/wmemchr.texi: Mention the new module.
24793
24794 2011-02-04  Eric Blake  <eblake@redhat.com>
24795
24796         fdopendir: detect FreeBSD bug
24797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24798         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24799
24800 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24801
24802         stdbool: do not define HAVE_STDBOOL_H
24803         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24804         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24805         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24806         imported from the latest Autoconf git.  It was motivated by Emacs,
24807         which uses gnulib but does not need HAVE_STDBOOL_H.
24808
24809 2011-02-04  Bruno Haible  <bruno@clisp.org>
24810
24811         wcsnrtombs: Prepare for new module wwcsnrtombs.
24812         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24813         * lib/wcsnrtombs.c: Include it.
24814         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24815
24816         wcsrtombs: Prepare for new module wwcsrtombs.
24817         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24818         * lib/wcsrtombs.c: Include it.
24819         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24820
24821         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24822         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24823         * lib/mbsnrtowcs.c: Include it.
24824         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24825
24826         mbsrtowcs: Prepare for new module mbsrtowwcs.
24827         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24828         * lib/mbsrtowcs.c: Include it.
24829         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24830
24831 2011-02-04  Bruno Haible  <bruno@clisp.org>
24832
24833         vasnprintf: Reduce use of malloc for small format strings.
24834         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24835         (arguments): Add room for the first 7 arguments.
24836         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24837         (char_directives, u8_directives, u16_directives, u32_directives): Add
24838         room for the first 7 directives.
24839         * lib/printf-parse.c: Include <string.h>.
24840         (PRINTF_PARSE): Change memory handling code so that it uses the first
24841         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24842         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24843         Reported by Pádraig Brady <P@draigbrady.com>.
24844
24845 2011-01-31  Eric Blake  <eblake@redhat.com>
24846
24847         dup2: work around Haiku bug
24848         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24849         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24850         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24851         * tests/test-dup2.c (main): Enhance test.
24852
24853 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24854
24855         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24856         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24857         declared by eglibc 2.11.2.
24858         * lib/stdio.in.h: Likewise.
24859
24860 2011-01-31  Eric Blake  <eblake@redhat.com>
24861
24862         ignore-value: add missing test dependency
24863         * tests/test-ignore-value.c: Revert previous change; stdio.h
24864         provides off_t.
24865         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24866
24867 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24868
24869         mktime: clarify long_int width checking
24870         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24871         the top level, to make it clearer that the assumption about
24872         long_int width is being checked.  See
24873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24874
24875 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24876
24877         ignore-value: Fix self-test.
24878         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24879
24880 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24881
24882         TYPE_MAXIMUM: avoid theoretically undefined behavior
24883         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24884         negative number, which the C Standard says has undefined behavior.
24885         In practice this is not a problem, but might as well do it by the book.
24886         Reported by Rich Felker and Eric Blake; see
24887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24888         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24889         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24891         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24892         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24893         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24894
24895         mktime: #undef mktime before #defining it
24896         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24897
24898         mktime: systematically normalize tm_isdst comparisons
24899         * lib/mktime.c (isdst_differ): New function.
24900         (__mktime_internal): Use it systematically for all isdst comparisons.
24901         This completes the fix for libc BZ #6723, and removes the need for
24902         normalizing tm_isdst.  See
24903         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24904         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24905
24906         mktime: fix some integer overflow issues and sidestep the rest
24907
24908         This was prompted by a bug report by Benjamin Lindner for MinGW
24909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24910         His bug is due to signed integer overflow (0 - INT_MIN), and I
24911         I scanned through mktime.c looking for other integer overflow
24912         problems, fixing all the bugs I found.
24913
24914         Although the C Standard says the resulting code is still not safe
24915         in the presence of integer overflow, in practice it should be good
24916         enough for all real-world two's-complement implementations, except
24917         for debugging environments that deliberately trap on integer
24918         overflow (e.g., gcc -ftrapv).
24919
24920         * lib/mktime.c (WRAPV): New macro.
24921         (SHR): Also check that long_int and time_t shift right in the
24922         usual way, before using the fast-but-unportable method.
24923         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24924         used.  The code already assumed two's complement, so there's
24925         no need to test for alternatives.  All uses removed.
24926         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24927         the C standard.  Problem reported by Rich Felker in
24928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24929         (twos_complement_arithmetic): Also check long_int and time_t.
24930         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24931         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24932         (__mktime_internal): Avoid integer overflow with unary subtraction
24933         in two instances where -1 - X is an adequate replacement for -X,
24934         since the calculations are approximate.
24935
24936 2011-01-29  Eric Blake  <eblake@redhat.com>
24937
24938         mktime: avoid infinite loop
24939         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24940         type; behavior is still undefined but portable to all known targets.
24941         Reported by Rich Felker.
24942
24943 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24944
24945         rename, unlink, same-inode: Relicense.
24946         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24947         * modules/unlink (License): Likewise.
24948         * modules/same-inode (License): Likewise.
24949
24950 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24951
24952         mktime: avoid problems on NetBSD 5 / i386
24953         * lib/mktime.c (long_int): New type.  This works around a problem
24954         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24955         but time_t is 64 bits, and where I expect the existing code is
24956         wrong in some cases.
24957         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24958         (ydhms_diff): Bring back the compile-time check for wide-enough
24959         year and yday.
24960
24961         mktime: fix misspelling in comment
24962         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24963         This merges all recent glibc changes of importance.
24964
24965 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24966
24967         move-if-change: cope with concurrent mv of identical file.
24968         * build-aux/move-if-change (CMPPROG): Accept environment
24969         variable as an override for `cmp'.
24970         (usage): Document CMPPROG.
24971         Adjust comparison to drop stdout.  Cope with failure of mv if
24972         the target file exists and is identical to the source, for
24973         parallel builds.
24974         Report from H.J. Lu against binutils in PR binutils/12283.
24975
24976 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24977
24978         * users.txt: Mention sharutils.
24979
24980 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24981
24982         * users.txt: Mention OATH Toolkit.
24983
24984 2011-01-27  Bruno Haible  <bruno@clisp.org>
24985
24986         Prepare for supporting FreeBSD 10.
24987         * build-aux/config.libpath: Remove handling of freebsd1*.
24988
24989 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24990
24991         Prepare for supporting FreeBSD 10.
24992         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24993         match FreeBSD 10.0.
24994
24995 2011-01-27  Bruno Haible  <bruno@clisp.org>
24996
24997         vma-iter, get-rusage-as: Add OpenBSD support.
24998         * modules/vma-iter (configure.ac): Test for mquery.
24999         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25000         * lib/vma-iter.c: Include <sys/mman.h>.
25001         (vma_iterate): Add an implementation based on mquery().
25002         * lib/resource-ext.h (get_rusage_as): Update comments.
25003         * lib/get-rusage-as.c: Likewise.
25004         * lib/get-rusage-data.c: Likewise.
25005
25006 2011-01-26  Karl Berry  <karl@gnu.org>
25007
25008         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25009         variables to make it easier to override the makeinfo program used.
25010
25011 2011-01-26  Eric Blake  <eblake@redhat.com>
25012
25013         fcntl: work around Haiku F_DUPFD bugs
25014         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25015         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25016         cloexec bit on duplication.
25017         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25018
25019 2011-01-26  Bruno Haible  <bruno@clisp.org>
25020
25021         Enable memory leak tests on AIX.
25022         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25023         * tests/test-fprintf-posix3.c (main): Likewise.
25024
25025 2011-01-26  Bruno Haible  <bruno@clisp.org>
25026
25027         Tests for module 'get-rusage-data'.
25028         * modules/get-rusage-data-tests: New file.
25029         * tests/test-get-rusage-data.c: New file.
25030
25031         New module 'get-rusage-data'.
25032         * lib/resource-ext.h (get_rusage_data): New declaration.
25033         * lib/get-rusage-data.c: New file.
25034         * modules/get-rusage-data: New file.
25035
25036 2011-01-25  Bruno Haible  <bruno@clisp.org>
25037
25038         get-rusage-as: Allow for easier testing.
25039         * lib/resource-ext.h (get_rusage_as): Add comment.
25040         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25041         (main): New function for interactive testing.
25042
25043 2011-01-25  Bruno Haible  <bruno@clisp.org>
25044
25045         vma-iter: Treat Haiku like BeOS.
25046         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25047         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25048
25049 2011-01-25  Eric Blake  <eblake@redhat.com>
25050
25051         c-stack: fix regression on cygwin when libsigsegv is present
25052         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25053
25054 2011-01-24  Bruno Haible  <bruno@clisp.org>
25055
25056         vma-iter: Avoid empty intervals.
25057         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25058         on an empty interval.
25059
25060 2011-01-24  Jim Meyering  <meyering@redhat.com>
25061
25062         u64: remove unnecessary #include
25063         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25064
25065 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25066
25067         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25068         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25069
25070 2011-01-23  Bruno Haible  <bruno@clisp.org>
25071
25072         New module 'vma-iter'.
25073         * lib/vma-iter.h: New file.
25074         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25075         * modules/vma-iter: New file.
25076         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25077         for get_rusage_as_via_iterator.
25078         (vma_iterate_callback): New function.
25079         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25080         * modules/get-rusage-as (Depends-on): Add vma-iter.
25081
25082 2011-01-23  Bruno Haible  <bruno@clisp.org>
25083
25084         uninorm: Tweak includes.
25085         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25086         Reported by Jim Meyering.
25087
25088 2011-01-23  Bruno Haible  <bruno@clisp.org>
25089
25090         get-rusage-as: Improve on NetBSD.
25091         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25092         /proc, like on FreeBSD.
25093
25094 2011-01-23  Jim Meyering  <meyering@redhat.com>
25095
25096         xreadlink.h: remove unnecessary #include
25097         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25098
25099         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25100         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25101
25102 2011-01-23  Bruno Haible  <bruno@clisp.org>
25103
25104         get-rusage-as: Fix bug.
25105         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25106         original limit when aborting the first loop.
25107
25108 2011-01-23  Bruno Haible  <bruno@clisp.org>
25109
25110         wctype: Ensure valid C syntax.
25111         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25112         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25113
25114 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25115
25116         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25118         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25119         as they are needed only for configure's test case.
25120         This removes two unnecessary symbols from config.h.
25121
25122         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25123         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25125         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25126         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25127         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25128         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25129         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25130         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25131         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25132         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25136         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25137         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25138         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25139         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25140
25141 2011-01-21  Eric Blake  <eblake@redhat.com>
25142
25143         maintainer-makefile: work with older git for submodule check
25144         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25145         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25146         Reported by Matthias Bolte.
25147
25148         bootstrap: minor portability fixes
25149         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25150         (usage): Omit leading capital and trailing . on help phrases, per
25151         GNU Coding Standards.
25152         (check_versions, top level): Prefix messages with script name.
25153
25154 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25155
25156         bootstrap: support --no-git option
25157         * build-aux/bootstrap: Add --no-git option, to be used when
25158         --gnulib-srcdir points to the exact desired checkout.
25159
25160 2011-01-21  Eric Blake  <eblake@redhat.com>
25161
25162         strerror_r-posix: work with glibc 2.13
25163         * lib/strerror_r.c (strerror_r): Fix return type.
25164
25165 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25166             Bruno Haible  <bruno@clisp.org>
25167
25168         uN_strstr: New unit tests.
25169         * modules/unistr/u8-strstr-tests: New file.
25170         * modules/unistr/u16-strstr-tests: New file.
25171         * modules/unistr/u32-strstr-tests: New file.
25172         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25173         * tests/unistr/test-u8-strstr.c: New file.
25174         * tests/unistr/test-u16-strstr.c: New file.
25175         * tests/unistr/test-u32-strstr.c: New file.
25176
25177 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25178             Bruno Haible  <bruno@clisp.org>
25179
25180         Make uN_strstr functions O(n) worst-case.
25181         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25182         16-bit and 32-bit unit cases, use the unibyte algorithm from
25183         lib/mbsstr.c.
25184         * lib/unistr/u8-strstr.c: Include <string.h>.
25185         (UNIT_IS_UINT8_T): New macro.
25186         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25187         (U_STRLEN, U_STRNLEN): New macros.
25188         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25189         (U_STRLEN, U_STRNLEN): New macros.
25190         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25191         (configure.ac): Update required libunistring version.
25192         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25193         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25194         malloca.
25195         (configure.ac): Update required libunistring version.
25196         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25197         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25198         malloca.
25199         (configure.ac): Update required libunistring version.
25200
25201 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25202             Bruno Haible  <bruno@clisp.org>
25203
25204         Prepare for faster uN_strstr functions.
25205         * lib/str-kmp.h: Support definable UNITs.
25206         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25207         needle_len argument.
25208         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25209         * lib/mbscasestr.c (mbscasestr): Likewise.
25210
25211 2011-01-21  Pádraig Brady <P@draigBrady.com>
25212
25213         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25214         * tests/test-malloca.c (main): Unset the environment variable
25215         to greatly speed up the test.
25216         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25217         * modules/malloca-tests: Depend on unsetenv.
25218
25219 2011-01-21  Pádraig Brady <P@draigBrady.com>
25220
25221         ignore-value: remove stdint dependency
25222         * lib/ignore-value.h: Remove <stdint.h>
25223         * modules/ignore-value: Remove stdint dependency.
25224
25225 2011-01-21  Jim Meyering  <meyering@redhat.com>
25226
25227         maint.mk: adjust variable name to be consistent with other gl_ vars
25228         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25229         to be lower case.
25230
25231 2011-01-20  Jim Meyering  <meyering@redhat.com>
25232
25233         maint.mk: make "check" depend on public-submodule-commit by default
25234         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25235
25236 2011-01-20  Bruno Haible  <bruno@clisp.org>
25237
25238         mbfile, mbiter: Complete change from 2008-12-21.
25239         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25240         * m4/mbiter.m4 (gl_MBITER): Likewise.
25241
25242 2011-01-20  Jim Meyering  <meyering@redhat.com>
25243
25244         init.sh: insert space between each function name and "()"
25245         * tests/init.sh: Make it a little easier to see that a function's
25246         name is "warn_", and not "warn" when looking at the first part of
25247         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25248
25249 2011-01-20  Jim Meyering  <meyering@redhat.com>
25250
25251         mountlist: clean up code formatting
25252         * lib/mountlist.c (read_file_system_list): Split a long line,
25253         correct bracing style, use NULL in place of "(struct statfs *)0",
25254         don't parenthesize return value, add spaces around "=" and after
25255         ";-in-for-stmt".
25256
25257 2011-01-14  Markus Duft <mduft@gentoo.org>
25258
25259         mountlist: add support for Interix
25260         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25261         Apply statvfs to all entries of /dev/fs.
25262         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25263         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25264
25265 2011-01-20  Jim Meyering  <meyering@redhat.com>
25266
25267         maint.mk: improve the public-submodule-commit rule
25268         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25269         to suppress printing of its commands... unless V=1.
25270         Add git submodule's --quiet option to suppress printing of e.g.,
25271         "Entering gnulib" output.
25272         "cd" into $(srcdir) before running git submodule.
25273
25274 2011-01-20  Bruno Haible  <bruno@clisp.org>
25275
25276         include_next: Fix bug introduced on 2011-01-18.
25277         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25278         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25279         ac_cv_header_... variable if the second argument is not 'check'.
25280         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25281         gl_NEXT_HEADERS_INTERNAL.
25282
25283 2011-01-20  Bruno Haible  <bruno@clisp.org>
25284
25285         Allow the user to avoid the GNULIB_TEST_* macros.
25286         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25287         Suggested by Paul Eggert.
25288
25289 2011-01-14  Jim Meyering  <meyering@redhat.com>
25290
25291         bootstrap: avoid failure when there is no .gitmodules file
25292         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25293         has been assigned to, even when its value is the empty string.
25294         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25295         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25296         Reported by John W. Eaton <jwe@gnu.org>.
25297
25298 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25299
25300         assume <ctype.h>, ..., <time.h> exist
25301         For years gnulib has been assuming the existence of the headers
25302         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25303         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25304         them, since they don't appear to be needed.
25305         * README (Portability guidelines): Document this.
25306         * lib/flock.c: Assume <fcntl.h> exists.
25307         * lib/regex_internal.h: Assume <locale.h> exists.
25308         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25309         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25310         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25311         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25312         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25313         * m4/regex.m4 (gl_REGEX): Likewise.
25314         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25315         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25316         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25317         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25318         * tests/test-argp.c: Likewise.
25319         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25320
25321         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25322         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25323         AA_APPLE_UNIVERSAL_BUILD.  See
25324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25325         * NEWS: Document this.
25326
25327 2011-01-19  Eric Blake  <eblake@redhat.com>
25328
25329         c-stack: assume stack overflow if SA_SIGINFO unsupported
25330         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25331         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25332         sigaction will work.
25333         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25334         behavior match Linux.
25335         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25336
25337         stdbool-tests: accommodate Haiku
25338         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25339
25340         binary-io: fix O_TEXT on Haiku
25341         * modules/binary-io (Depends-on): Add fcntl-h.
25342         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25343         than blindly undefining O_TEXT.
25344         Reported by Scott McCreary.
25345
25346 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         include_next: do not check for standard headers like stddef.h
25349
25350         I found this problem when modifying Emacs to use gnulib.
25351         I noticed that it added HAVE_STDDEF_H to config.h, even though
25352         gnulib always assumes <stddef.h> exists as per README and this
25353         symbol is unnecessary.
25354         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25355         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25356         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25357         faster for headers like stddef.h that are known to exist.
25358         (gl_CHECK_NEXT_HEADERS): Use it.
25359         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25360         rather than gl_CHECK_NEXT_HEADERS.
25361         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25362         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25363
25364 2011-01-18  Eric Blake  <eblake@redhat.com>
25365
25366         ansi-c++-opt: skip C++ dependency style if C++ is unused
25367         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25368         tests when we know C++ compilation is not desired.
25369         Reported by Scott McCreary.
25370
25371 2011-01-18  Bruno Haible  <bruno@clisp.org>
25372
25373         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25374         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25375         (main): Perform test also when getrlimit and setrlimit don't exist or
25376         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25377         limiting the address space size using setrlimit, compare the address
25378         space size before and after the the test.
25379         * tests/test-dprintf-posix2.c: Likewise.
25380         * tests/test-fprintf-posix3.sh: Update skip messages.
25381         * tests/test-dprintf-posix2.sh: Likewise.
25382         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25383         * modules/dprintf-posix-tests (Depends-on): Likewise.
25384         Reported by Bruce Korb <bkorb@gnu.org> and
25385         Gary V. Vaughan <gary@gnu.org>.
25386
25387 2011-01-18  Bruno Haible  <bruno@clisp.org>
25388
25389         get-rusage-as: Improvement for Cygwin.
25390         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25391         areas that are merely reserved.
25392
25393 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25394
25395         strftime: remove dependencies on multibyte modules
25396
25397         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25398         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25399         only if __osf__ is defined, and I suspect OSF doesn't need these
25400         other modules.  If my guess is wrong, we'll need to come up with a
25401         variant of strftime that doesn't need the multibyte modules.
25402
25403         I discovered this problem when attempting modify Emacs to use the
25404         strftime module.  With the previous gnulib, this caused Emacs to
25405         need 31 new files, ranging from lib/config.charset to
25406         m4/wint_t.m4.  This was overkill and I expect would be offputting
25407         to the Emacs maintainers.  After this change, only 6 new files are
25408         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25409         stdbool.m4, and tm_gmtoff.m4.
25410
25411         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25412         Suggested by Bruno Haible in
25413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25414         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25415         and do not check for wchar.h.
25416         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25417         (Depends-on): Remove mbrlen, mbsinit, wchar.
25418
25419 2011-01-18  Bruno Haible  <bruno@clisp.org>
25420
25421         Tests for module 'get-rusage-as'.
25422         * modules/get-rusage-as-tests: New file.
25423         * tests/test-get-rusage-as.c: New file.
25424
25425         New module 'get-rusage-as'.
25426         * modules/get-rusage-as: New file.
25427         * lib/resource-ext.h: New file.
25428         * lib/get-rusage-as.c: New file.
25429
25430 2011-01-17  Eric Blake  <eblake@redhat.com>
25431
25432         sigaction: relax license from LGPLv3+ to LGPLv2+
25433         * modules/sigaction (License): Relax to LGPLv2+.
25434
25435 2011-01-14  Bruno Haible  <bruno@clisp.org>
25436
25437         filemode: Make function declarations usable in C++ mode.
25438         * lib/filemode.h: Enclose function declarations in extern "C" block.
25439         Reported by John W. Eaton <jwe@gnu.org>.
25440
25441 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25442
25443         save-cwd: no longer include "xgetcwd.h"
25444         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25445         This avoids a compilation failure in projects that use save-cwd
25446         without also using the xgetcwd module.
25447
25448 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25449
25450         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25451         This is so that a program like Emacs, which needs only dtoastr,
25452         does not have to bother with distributing and compiling ftoastr
25453         and ldtoastr.
25454         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25455         * modules/dtoastr, modules/ldtoastr: New files.
25456         * modules/ftoastr: Now works just for 'float'.
25457         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25458         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25459         dtoastr.c, ldtoastr.c.
25460
25461 2011-01-11  Jim Meyering  <meyering@redhat.com>
25462
25463         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25464         There is no need to work around the lack of the fchdir function,
25465         since gnulib can now provide a replacement when required.
25466         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25467         * modules/save-cwd (Depends-on): Add fchdir.
25468
25469 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25470
25471         openat, save-cwd: avoid xmalloc
25472
25473         This removes a direct (but undocumented) dependency of openat on
25474         xalloc, along with an indirect dependency via save-cwd.  It also
25475         removes a dependency of save-cwd on xgetcwd, and thereby
25476         indirectly on xalloc.  This change causes the openat substitute
25477         to fall back on save_cwd when memory is tight, and for save_cwd to
25478         fail instead of dying when memory is tight, but that's good enough.
25479         Problem and initial idea for fix reported by Bastien Roucaries in
25480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25481
25482         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25483         xalloc.h (for xmalloc).
25484         (openat_proc_name): Use malloc, not xmalloc.
25485         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25486         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25487
25488         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25489         This avoids heap allocation for file names whose lengths are in
25490         the range 512..1023, with the upper bound increasing to at most
25491         4031 depending on the platform's PATH_MAX.  (We do not want
25492         pathmax.h here as it might supply a non-constant PATH_MAX.)
25493         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25494         Perhaps they should be moved to malloca.h?
25495         (OPENAT_BUFFER_SIZE): Use them.
25496
25497 2011-01-10  Bruno Haible  <bruno@clisp.org>
25498
25499         doc: Update users.txt.
25500         * users.txt: Add recutils.
25501
25502 2011-01-09  Karl Berry  <karl@gnu.org>
25503
25504         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25505
25506         * doc/configmake.texi: New file.
25507         * doc/gnulib.texi: Include it.
25508         * modules/configmake: Move documentation from here.
25509
25510 2011-01-09  Bruno Haible  <bruno@clisp.org>
25511
25512         Update to Unicode 6.0.0.
25513         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25514         (get_lbp): Update for Unicode 6.0.0.
25515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25516         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25517         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25518         U+11001, U+11038..U+11046. Remove U+06DE.
25519         (uc_width): Fix bounds of planes.
25520         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25521         lib/uniwidth/width.c.
25522         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25523         trailing whitespace removed.
25524         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25525         without comments, but with the original copyright notice.
25526         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25527         * lib/unicase/ignorable.h: Likewise.
25528         * lib/unicase/tocasefold.h: Likewise.
25529         * lib/unicase/tolower.h: Likewise.
25530         * lib/unicase/totitle.h: Likewise.
25531         * lib/unicase/toupper.h: Likewise.
25532         * lib/unictype/bidi_of.h: Likewise.
25533         * lib/unictype/blocks.h: Likewise.
25534         * lib/unictype/categ_C.h: Likewise.
25535         * lib/unictype/categ_Cn.h: Likewise.
25536         * lib/unictype/categ_L.h: Likewise.
25537         * lib/unictype/categ_Ll.h: Likewise.
25538         * lib/unictype/categ_Lm.h: Likewise.
25539         * lib/unictype/categ_Lo.h: Likewise.
25540         * lib/unictype/categ_Lu.h: Likewise.
25541         * lib/unictype/categ_M.h: Likewise.
25542         * lib/unictype/categ_Mc.h: Likewise.
25543         * lib/unictype/categ_Me.h: Likewise.
25544         * lib/unictype/categ_Mn.h: Likewise.
25545         * lib/unictype/categ_N.h: Likewise.
25546         * lib/unictype/categ_Nd.h: Likewise.
25547         * lib/unictype/categ_No.h: Likewise.
25548         * lib/unictype/categ_P.h: Likewise.
25549         * lib/unictype/categ_Po.h: Likewise.
25550         * lib/unictype/categ_S.h: Likewise.
25551         * lib/unictype/categ_Sc.h: Likewise.
25552         * lib/unictype/categ_Sk.h: Likewise.
25553         * lib/unictype/categ_Sm.h: Likewise.
25554         * lib/unictype/categ_So.h: Likewise.
25555         * lib/unictype/categ_of.h: Likewise.
25556         * lib/unictype/combining.h: Likewise.
25557         * lib/unictype/ctype_alnum.h: Likewise.
25558         * lib/unictype/ctype_alpha.h: Likewise.
25559         * lib/unictype/ctype_graph.h: Likewise.
25560         * lib/unictype/ctype_lower.h: Likewise.
25561         * lib/unictype/ctype_print.h: Likewise.
25562         * lib/unictype/ctype_punct.h: Likewise.
25563         * lib/unictype/ctype_upper.h: Likewise.
25564         * lib/unictype/decdigit.h: Likewise.
25565         * lib/unictype/digit.h: Likewise.
25566         * lib/unictype/numeric.h: Likewise.
25567         * lib/unictype/pr_alphabetic.h: Likewise.
25568         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25569         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25570         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25571         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25572         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25573         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25574         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25575         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25576         * lib/unictype/pr_case_ignorable.h: Likewise.
25577         * lib/unictype/pr_cased.h: Likewise.
25578         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25579         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25580         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25581         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25582         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25583         * lib/unictype/pr_combining.h: Likewise.
25584         * lib/unictype/pr_composite.h: Likewise.
25585         * lib/unictype/pr_currency_symbol.h: Likewise.
25586         * lib/unictype/pr_decimal_digit.h: Likewise.
25587         * lib/unictype/pr_deprecated.h: Likewise.
25588         * lib/unictype/pr_format_control.h: Likewise.
25589         * lib/unictype/pr_grapheme_base.h: Likewise.
25590         * lib/unictype/pr_grapheme_extend.h: Likewise.
25591         * lib/unictype/pr_grapheme_link.h: Likewise.
25592         * lib/unictype/pr_id_continue.h: Likewise.
25593         * lib/unictype/pr_id_start.h: Likewise.
25594         * lib/unictype/pr_ideographic.h: Likewise.
25595         * lib/unictype/pr_lowercase.h: Likewise.
25596         * lib/unictype/pr_math.h: Likewise.
25597         * lib/unictype/pr_numeric.h: Likewise.
25598         * lib/unictype/pr_other_alphabetic.h: Likewise.
25599         * lib/unictype/pr_other_id_continue.h: Likewise.
25600         * lib/unictype/pr_other_math.h: Likewise.
25601         * lib/unictype/pr_punctuation.h: Likewise.
25602         * lib/unictype/pr_sentence_terminal.h: Likewise.
25603         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25604         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25605         * lib/unictype/pr_unified_ideograph.h: Likewise.
25606         * lib/unictype/pr_uppercase.h: Likewise.
25607         * lib/unictype/pr_xid_continue.h: Likewise.
25608         * lib/unictype/pr_xid_start.h: Likewise.
25609         * lib/unictype/scripts.h: Likewise.
25610         * lib/unictype/scripts_byname.gperf: Likewise.
25611         * lib/unictype/sy_java_ident.h: Likewise.
25612         * lib/unigbrk/gbrkprop.h: Likewise.
25613         * lib/unilbrk/lbrkprop1.h: Likewise.
25614         * lib/unilbrk/lbrkprop2.h: Likewise.
25615         * lib/uninorm/decomposition-table2.h: Likewise.
25616         * lib/uniwbrk/wbrkprop.h: Likewise.
25617         * tests/unicase/test-cased.c: Likewise.
25618         * tests/unicase/test-ignorable.c: Likewise.
25619         * tests/unicase/test-uc_tolower.c: Likewise.
25620         * tests/unicase/test-uc_totitle.c: Likewise.
25621         * tests/unicase/test-uc_toupper.c: Likewise.
25622         * tests/unictype/test-categ_C.c: Likewise.
25623         * tests/unictype/test-categ_Cn.c: Likewise.
25624         * tests/unictype/test-categ_L.c: Likewise.
25625         * tests/unictype/test-categ_Ll.c: Likewise.
25626         * tests/unictype/test-categ_Lm.c: Likewise.
25627         * tests/unictype/test-categ_Lo.c: Likewise.
25628         * tests/unictype/test-categ_Lu.c: Likewise.
25629         * tests/unictype/test-categ_M.c: Likewise.
25630         * tests/unictype/test-categ_Mc.c: Likewise.
25631         * tests/unictype/test-categ_Me.c: Likewise.
25632         * tests/unictype/test-categ_Mn.c: Likewise.
25633         * tests/unictype/test-categ_N.c: Likewise.
25634         * tests/unictype/test-categ_Nd.c: Likewise.
25635         * tests/unictype/test-categ_No.c: Likewise.
25636         * tests/unictype/test-categ_P.c: Likewise.
25637         * tests/unictype/test-categ_Po.c: Likewise.
25638         * tests/unictype/test-categ_S.c: Likewise.
25639         * tests/unictype/test-categ_Sc.c: Likewise.
25640         * tests/unictype/test-categ_Sk.c: Likewise.
25641         * tests/unictype/test-categ_Sm.c: Likewise.
25642         * tests/unictype/test-categ_So.c: Likewise.
25643         * tests/unictype/test-ctype_alnum.c: Likewise.
25644         * tests/unictype/test-ctype_alpha.c: Likewise.
25645         * tests/unictype/test-ctype_graph.c: Likewise.
25646         * tests/unictype/test-ctype_lower.c: Likewise.
25647         * tests/unictype/test-ctype_print.c: Likewise.
25648         * tests/unictype/test-ctype_punct.c: Likewise.
25649         * tests/unictype/test-ctype_upper.c: Likewise.
25650         * tests/unictype/test-decdigit.h: Likewise.
25651         * tests/unictype/test-digit.h: Likewise.
25652         * tests/unictype/test-numeric.h: Likewise.
25653         * tests/unictype/test-pr_alphabetic.c: Likewise.
25654         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25655         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25656         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25657         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25658         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25659         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25660         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25661         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25662         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25663         * tests/unictype/test-pr_cased.c: Likewise.
25664         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25665         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25666         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25667         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25668         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25669         * tests/unictype/test-pr_combining.c: Likewise.
25670         * tests/unictype/test-pr_composite.c: Likewise.
25671         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25672         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25673         * tests/unictype/test-pr_deprecated.c: Likewise.
25674         * tests/unictype/test-pr_format_control.c: Likewise.
25675         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25676         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25677         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25678         * tests/unictype/test-pr_id_continue.c: Likewise.
25679         * tests/unictype/test-pr_id_start.c: Likewise.
25680         * tests/unictype/test-pr_ideographic.c: Likewise.
25681         * tests/unictype/test-pr_lowercase.c: Likewise.
25682         * tests/unictype/test-pr_math.c: Likewise.
25683         * tests/unictype/test-pr_numeric.c: Likewise.
25684         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25685         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25686         * tests/unictype/test-pr_other_math.c: Likewise.
25687         * tests/unictype/test-pr_punctuation.c: Likewise.
25688         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25689         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25690         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25691         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25692         * tests/unictype/test-pr_uppercase.c: Likewise.
25693         * tests/unictype/test-pr_xid_continue.c: Likewise.
25694         * tests/unictype/test-pr_xid_start.c: Likewise.
25695         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25696         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25697         changes.
25698         * lib/unictype/categ_Cc.h: Likewise.
25699         * lib/unictype/categ_Cf.h: Likewise.
25700         * lib/unictype/categ_Co.h: Likewise.
25701         * lib/unictype/categ_Cs.h: Likewise.
25702         * lib/unictype/categ_Lt.h: Likewise.
25703         * lib/unictype/categ_Nl.h: Likewise.
25704         * lib/unictype/categ_Pc.h: Likewise.
25705         * lib/unictype/categ_Pd.h: Likewise.
25706         * lib/unictype/categ_Pe.h: Likewise.
25707         * lib/unictype/categ_Pf.h: Likewise.
25708         * lib/unictype/categ_Pi.h: Likewise.
25709         * lib/unictype/categ_Ps.h: Likewise.
25710         * lib/unictype/categ_Z.h: Likewise.
25711         * lib/unictype/categ_Zl.h: Likewise.
25712         * lib/unictype/categ_Zp.h: Likewise.
25713         * lib/unictype/categ_Zs.h: Likewise.
25714         * lib/unictype/ctype_blank.h: Likewise.
25715         * lib/unictype/ctype_cntrl.h: Likewise.
25716         * lib/unictype/ctype_digit.h: Likewise.
25717         * lib/unictype/ctype_space.h: Likewise.
25718         * lib/unictype/ctype_xdigit.h: Likewise.
25719         * lib/unictype/mirror.h: Likewise.
25720         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25721         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25722         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25723         * lib/unictype/pr_bidi_control.h: Likewise.
25724         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25725         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25726         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25727         * lib/unictype/pr_bidi_pdf.h: Likewise.
25728         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25729         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25730         * lib/unictype/pr_dash.h: Likewise.
25731         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25732         * lib/unictype/pr_diacritic.h: Likewise.
25733         * lib/unictype/pr_extender.h: Likewise.
25734         * lib/unictype/pr_hex_digit.h: Likewise.
25735         * lib/unictype/pr_hyphen.h: Likewise.
25736         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25737         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25738         * lib/unictype/pr_ignorable_control.h: Likewise.
25739         * lib/unictype/pr_iso_control.h: Likewise.
25740         * lib/unictype/pr_join_control.h: Likewise.
25741         * lib/unictype/pr_left_of_pair.h: Likewise.
25742         * lib/unictype/pr_line_separator.h: Likewise.
25743         * lib/unictype/pr_logical_order_exception.h: Likewise.
25744         * lib/unictype/pr_non_break.h: Likewise.
25745         * lib/unictype/pr_not_a_character.h: Likewise.
25746         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25747         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25748         * lib/unictype/pr_other_id_start.h: Likewise.
25749         * lib/unictype/pr_other_lowercase.h: Likewise.
25750         * lib/unictype/pr_other_uppercase.h: Likewise.
25751         * lib/unictype/pr_paired_punctuation.h: Likewise.
25752         * lib/unictype/pr_paragraph_separator.h: Likewise.
25753         * lib/unictype/pr_pattern_syntax.h: Likewise.
25754         * lib/unictype/pr_pattern_white_space.h: Likewise.
25755         * lib/unictype/pr_private_use.h: Likewise.
25756         * lib/unictype/pr_quotation_mark.h: Likewise.
25757         * lib/unictype/pr_radical.h: Likewise.
25758         * lib/unictype/pr_soft_dotted.h: Likewise.
25759         * lib/unictype/pr_space.h: Likewise.
25760         * lib/unictype/pr_titlecase.h: Likewise.
25761         * lib/unictype/pr_variation_selector.h: Likewise.
25762         * lib/unictype/pr_white_space.h: Likewise.
25763         * lib/unictype/pr_zero_width.h: Likewise.
25764         * lib/unictype/sy_c_ident.h: Likewise.
25765         * lib/unictype/sy_c_whitespace.h: Likewise.
25766         * lib/unictype/sy_java_whitespace.h: Likewise.
25767         * lib/uninorm/composition-table.gperf: Likewise.
25768         * lib/uninorm/decomposition-table1.h: Likewise.
25769         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25770         LB8.
25771         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25772         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25773         * modules/unictype/*: Bump version number of expected libunistring
25774         version.
25775
25776 2011-01-09  Bruno Haible  <bruno@clisp.org>
25777
25778         Update to Unicode 5.2.0.
25779         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25780         trailing whitespace removed.
25781
25782 2011-01-09  Bruno Haible  <bruno@clisp.org>
25783
25784         New Unicode character properties, from Unicode 5.2.0.
25785         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25786         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25787         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25788         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25789         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25790         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25791         uc_is_property_cased, uc_is_property_case_ignorable,
25792         uc_is_property_changes_when_lowercased,
25793         uc_is_property_changes_when_uppercased,
25794         uc_is_property_changes_when_titlecased,
25795         uc_is_property_changes_when_casefolded,
25796         uc_is_property_changes_when_casemapped): New declarations.
25797         * lib/unictype/pr_byname.gperf: Add the new properties.
25798         * modules/unictype/property-byname (Depends-on): Depend on the new
25799         properties modules.
25800         * modules/unictype/property-all (Depends-on): Likewise.
25801         * MODULES.html.sh (Unicode string functions): Add
25802         unictype/property-case-ignorable, unictype/property-cased,
25803         unictype/property-changes-when-casefolded,
25804         unictype/property-changes-when-casemapped,
25805         unictype/property-changes-when-lowercased,
25806         unictype/property-changes-when-titlecased,
25807         unictype/property-changes-when-uppercased.
25808
25809         New module 'unictype/property-changes-when-casemapped'.
25810         * modules/unictype/property-changes-when-casemapped: New file.
25811         * lib/unictype/pr_changes_when_casemapped.c: New file.
25812         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25813         generated by gen-uni-tables.
25814         * modules/unictype/property-changes-when-casemapped-tests: New file.
25815         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25816         automatically generated by gen-uni-tables.
25817
25818         New module 'unictype/property-changes-when-casefolded'.
25819         * modules/unictype/property-changes-when-casefolded: New file.
25820         * lib/unictype/pr_changes_when_casefolded.c: New file.
25821         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25822         generated by gen-uni-tables.
25823         * modules/unictype/property-changes-when-casefolded-tests: New file.
25824         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25825         automatically generated by gen-uni-tables.
25826
25827         New module 'unictype/property-changes-when-titlecased'.
25828         * modules/unictype/property-changes-when-titlecased: New file.
25829         * lib/unictype/pr_changes_when_titlecased.c: New file.
25830         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25831         generated by gen-uni-tables.
25832         * modules/unictype/property-changes-when-titlecased-tests: New file.
25833         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25834         automatically generated by gen-uni-tables.
25835
25836         New module 'unictype/property-changes-when-uppercased'.
25837         * modules/unictype/property-changes-when-uppercased: New file.
25838         * lib/unictype/pr_changes_when_uppercased.c: New file.
25839         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25840         generated by gen-uni-tables.
25841         * modules/unictype/property-changes-when-uppercased-tests: New file.
25842         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25843         automatically generated by gen-uni-tables.
25844
25845         New module 'unictype/property-changes-when-lowercased'.
25846         * modules/unictype/property-changes-when-lowercased: New file.
25847         * lib/unictype/pr_changes_when_lowercased.c: New file.
25848         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25849         generated by gen-uni-tables.
25850         * modules/unictype/property-changes-when-lowercased-tests: New file.
25851         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25852         automatically generated by gen-uni-tables.
25853
25854         New module 'unictype/property-case-ignorable'.
25855         * modules/unictype/property-case-ignorable: New file.
25856         * lib/unictype/pr_case_ignorable.c: New file.
25857         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25858         by gen-uni-tables.
25859         * modules/unictype/property-case-ignorable-tests: New file.
25860         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25861         generated by gen-uni-tables.
25862
25863         New module 'unictype/property-cased'.
25864         * modules/unictype/property-cased: New file.
25865         * lib/unictype/pr_cased.c: New file.
25866         * lib/unictype/pr_cased.h: New file, automatically generated by
25867         gen-uni-tables.
25868         * modules/unictype/property-cased-tests: New file.
25869         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25870         gen-uni-tables.
25871
25872 2011-01-09  Bruno Haible  <bruno@clisp.org>
25873
25874         Update to Unicode 5.2.0.
25875         * lib/gen-uni-tables.c (output_predicate, output_category,
25876         output_combclass, output_bidi_category, output_decimal_digit_test,
25877         output_decimal_digit, output_digit_test, output_digit,
25878         output_numeric_test, output_numeric, output_mirror, output_scripts,
25879         output_scripts_byname, output_blocks, output_ident_category): Fix
25880         comment header.
25881         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25882         get_wbp.
25883         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25884         items.
25885         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25886         Changes_When_Lowercased, Changes_When_Uppercased,
25887         Changes_When_Titlecased, Changes_When_Casefolded,
25888         Changes_When_Casemapped.
25889         (is_property_alphabetic, is_property_default_ignorable_code_point):
25890         Update for Unicode 5.2.0.
25891         (is_property_cased, is_property_case_ignorable,
25892         is_property_changes_when_lowercased,
25893         is_property_changes_when_uppercased,
25894         is_property_changes_when_titlecased,
25895         is_property_changes_when_casefolded,
25896         is_property_changes_when_casemapped): New functions.
25897         (output_properties): Output also the properties cased, case_ignorable,
25898         changes_when_lowercased, changes_when_uppercased,
25899         changes_when_titlecased, changes_when_casefolded,
25900         changes_when_casemapped.
25901         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25902         Unicode TR#11 revision 17 -> 19.
25903         (LBP_CP): New enumeration value.
25904         (LBP_*): Adjust values accordingly.
25905         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25906         TR#14 revision 22 -> 24.
25907         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25908         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25909         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25910         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25911         is_WBP_MIDLETTER.
25912         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25913         the code1 and code2 of each composition rule.
25914         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25915         * lib/unicase/ignorable.h: Likewise.
25916         * lib/unicase/tocasefold.h: Likewise.
25917         * lib/unicase/tolower.h: Likewise.
25918         * lib/unicase/totitle.h: Likewise.
25919         * lib/unicase/toupper.h: Likewise.
25920         * lib/unictype/bidi_of.h: Likewise.
25921         * lib/unictype/blocks.h: Likewise.
25922         * lib/unictype/categ_C.h: Likewise.
25923         * lib/unictype/categ_Cf.h: Likewise.
25924         * lib/unictype/categ_Cn.h: Likewise.
25925         * lib/unictype/categ_L.h: Likewise.
25926         * lib/unictype/categ_Ll.h: Likewise.
25927         * lib/unictype/categ_Lm.h: Likewise.
25928         * lib/unictype/categ_Lo.h: Likewise.
25929         * lib/unictype/categ_Lu.h: Likewise.
25930         * lib/unictype/categ_M.h: Likewise.
25931         * lib/unictype/categ_Mc.h: Likewise.
25932         * lib/unictype/categ_Mn.h: Likewise.
25933         * lib/unictype/categ_N.h: Likewise.
25934         * lib/unictype/categ_Nd.h: Likewise.
25935         * lib/unictype/categ_Nl.h: Likewise.
25936         * lib/unictype/categ_No.h: Likewise.
25937         * lib/unictype/categ_P.h: Likewise.
25938         * lib/unictype/categ_Pd.h: Likewise.
25939         * lib/unictype/categ_Po.h: Likewise.
25940         * lib/unictype/categ_S.h: Likewise.
25941         * lib/unictype/categ_Sc.h: Likewise.
25942         * lib/unictype/categ_So.h: Likewise.
25943         * lib/unictype/categ_of.h: Likewise.
25944         * lib/unictype/combining.h: Likewise.
25945         * lib/unictype/ctype_alnum.h: Likewise.
25946         * lib/unictype/ctype_alpha.h: Likewise.
25947         * lib/unictype/ctype_graph.h: Likewise.
25948         * lib/unictype/ctype_lower.h: Likewise.
25949         * lib/unictype/ctype_print.h: Likewise.
25950         * lib/unictype/ctype_punct.h: Likewise.
25951         * lib/unictype/ctype_upper.h: Likewise.
25952         * lib/unictype/decdigit.h: Likewise.
25953         * lib/unictype/digit.h: Likewise.
25954         * lib/unictype/numeric.h: Likewise.
25955         * lib/unictype/pr_alphabetic.h: Likewise.
25956         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25957         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25958         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25959         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25960         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25961         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25962         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25963         * lib/unictype/pr_combining.h: Likewise.
25964         * lib/unictype/pr_composite.h: Likewise.
25965         * lib/unictype/pr_currency_symbol.h: Likewise.
25966         * lib/unictype/pr_dash.h: Likewise.
25967         * lib/unictype/pr_decimal_digit.h: Likewise.
25968         * lib/unictype/pr_deprecated.h: Likewise.
25969         * lib/unictype/pr_diacritic.h: Likewise.
25970         * lib/unictype/pr_extender.h: Likewise.
25971         * lib/unictype/pr_grapheme_base.h: Likewise.
25972         * lib/unictype/pr_grapheme_extend.h: Likewise.
25973         * lib/unictype/pr_grapheme_link.h: Likewise.
25974         * lib/unictype/pr_id_continue.h: Likewise.
25975         * lib/unictype/pr_id_start.h: Likewise.
25976         * lib/unictype/pr_ideographic.h: Likewise.
25977         * lib/unictype/pr_ignorable_control.h: Likewise.
25978         * lib/unictype/pr_logical_order_exception.h: Likewise.
25979         * lib/unictype/pr_lowercase.h: Likewise.
25980         * lib/unictype/pr_numeric.h: Likewise.
25981         * lib/unictype/pr_other_alphabetic.h: Likewise.
25982         * lib/unictype/pr_punctuation.h: Likewise.
25983         * lib/unictype/pr_sentence_terminal.h: Likewise.
25984         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25985         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25986         * lib/unictype/pr_unified_ideograph.h: Likewise.
25987         * lib/unictype/pr_uppercase.h: Likewise.
25988         * lib/unictype/pr_xid_continue.h: Likewise.
25989         * lib/unictype/pr_xid_start.h: Likewise.
25990         * lib/unictype/pr_zero_width.h: Likewise.
25991         * lib/unictype/scripts.h: Likewise.
25992         * lib/unictype/scripts_byname.gperf: Likewise.
25993         * lib/unictype/sy_java_ident.h: Likewise.
25994         * lib/unigbrk/gbrkprop.h: Likewise.
25995         * lib/unilbrk/lbrkprop1.h: Likewise.
25996         * lib/unilbrk/lbrkprop2.h: Likewise.
25997         * lib/unilbrk/lbrktables.h: Likewise.
25998         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25999         LBP_CP. Implement rule LB30.
26000         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26001         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26002         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26003         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26004         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26005         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26006         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26007         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26008         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26009         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26010         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26011         bits instead of 16 bits in the code1 and code2 of each composition
26012         rule.
26013         (uc_composition): Update for Unicode 5.2.0.
26014         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26015         * lib/uninorm/decomposition-table2.h: Likewise.
26016         * lib/uniwbrk/wbrkprop.h: Likewise.
26017         * tests/unicase/test-cased.c: Likewise.
26018         * tests/unicase/test-ignorable.c: Likewise.
26019         * tests/unicase/test-uc_tolower.c: Likewise.
26020         * tests/unicase/test-uc_totitle.c: Likewise.
26021         * tests/unicase/test-uc_toupper.c: Likewise.
26022         * tests/unictype/test-categ_C.c: Likewise.
26023         * tests/unictype/test-categ_Cf.c: Likewise.
26024         * tests/unictype/test-categ_Cn.c: Likewise.
26025         * tests/unictype/test-categ_L.c: Likewise.
26026         * tests/unictype/test-categ_Ll.c: Likewise.
26027         * tests/unictype/test-categ_Lm.c: Likewise.
26028         * tests/unictype/test-categ_Lo.c: Likewise.
26029         * tests/unictype/test-categ_Lu.c: Likewise.
26030         * tests/unictype/test-categ_M.c: Likewise.
26031         * tests/unictype/test-categ_Mc.c: Likewise.
26032         * tests/unictype/test-categ_Mn.c: Likewise.
26033         * tests/unictype/test-categ_N.c: Likewise.
26034         * tests/unictype/test-categ_Nd.c: Likewise.
26035         * tests/unictype/test-categ_Nl.c: Likewise.
26036         * tests/unictype/test-categ_No.c: Likewise.
26037         * tests/unictype/test-categ_P.c: Likewise.
26038         * tests/unictype/test-categ_Pd.c: Likewise.
26039         * tests/unictype/test-categ_Po.c: Likewise.
26040         * tests/unictype/test-categ_S.c: Likewise.
26041         * tests/unictype/test-categ_Sc.c: Likewise.
26042         * tests/unictype/test-categ_So.c: Likewise.
26043         * tests/unictype/test-ctype_alnum.c: Likewise.
26044         * tests/unictype/test-ctype_alpha.c: Likewise.
26045         * tests/unictype/test-ctype_graph.c: Likewise.
26046         * tests/unictype/test-ctype_lower.c: Likewise.
26047         * tests/unictype/test-ctype_print.c: Likewise.
26048         * tests/unictype/test-ctype_punct.c: Likewise.
26049         * tests/unictype/test-ctype_upper.c: Likewise.
26050         * tests/unictype/test-decdigit.h: Likewise.
26051         * tests/unictype/test-digit.h: Likewise.
26052         * tests/unictype/test-numeric.h: Likewise.
26053         * tests/unictype/test-pr_alphabetic.c: Likewise.
26054         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26055         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26056         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26057         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26058         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26059         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26060         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26061         * tests/unictype/test-pr_combining.c: Likewise.
26062         * tests/unictype/test-pr_composite.c: Likewise.
26063         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26064         * tests/unictype/test-pr_dash.c: Likewise.
26065         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26066         * tests/unictype/test-pr_deprecated.c: Likewise.
26067         * tests/unictype/test-pr_diacritic.c: Likewise.
26068         * tests/unictype/test-pr_extender.c: Likewise.
26069         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26070         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26071         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26072         * tests/unictype/test-pr_id_continue.c: Likewise.
26073         * tests/unictype/test-pr_id_start.c: Likewise.
26074         * tests/unictype/test-pr_ideographic.c: Likewise.
26075         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26076         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26077         * tests/unictype/test-pr_lowercase.c: Likewise.
26078         * tests/unictype/test-pr_numeric.c: Likewise.
26079         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26080         * tests/unictype/test-pr_punctuation.c: Likewise.
26081         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26082         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26083         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26084         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26085         * tests/unictype/test-pr_uppercase.c: Likewise.
26086         * tests/unictype/test-pr_xid_continue.c: Likewise.
26087         * tests/unictype/test-pr_xid_start.c: Likewise.
26088         * tests/unictype/test-pr_zero_width.c: Likewise.
26089         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26090         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26091         changed behaviour: line breaking is now disallowed between a letter
26092         or '=' and '('.
26093         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26094         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26095         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26096         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26097         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26098         lib/uniwidth/width.c.
26099         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26100         without comments, but with the original copyright notice.
26101         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26102         changes.
26103         * lib/unictype/categ_Cc.h: Likewise.
26104         * lib/unictype/categ_Co.h: Likewise.
26105         * lib/unictype/categ_Cs.h: Likewise.
26106         * lib/unictype/categ_Lt.h: Likewise.
26107         * lib/unictype/categ_Me.h: Likewise.
26108         * lib/unictype/categ_Pc.h: Likewise.
26109         * lib/unictype/categ_Pe.h: Likewise.
26110         * lib/unictype/categ_Pf.h: Likewise.
26111         * lib/unictype/categ_Pi.h: Likewise.
26112         * lib/unictype/categ_Ps.h: Likewise.
26113         * lib/unictype/categ_Sk.h: Likewise.
26114         * lib/unictype/categ_Sm.h: Likewise.
26115         * lib/unictype/categ_Z.h: Likewise.
26116         * lib/unictype/categ_Zl.h: Likewise.
26117         * lib/unictype/categ_Zp.h: Likewise.
26118         * lib/unictype/categ_Zs.h: Likewise.
26119         * lib/unictype/ctype_blank.h: Likewise.
26120         * lib/unictype/ctype_cntrl.h: Likewise.
26121         * lib/unictype/ctype_digit.h: Likewise.
26122         * lib/unictype/ctype_space.h: Likewise.
26123         * lib/unictype/ctype_xdigit.h: Likewise.
26124         * lib/unictype/mirror.h: Likewise.
26125         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26126         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26127         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26128         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26129         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26130         * lib/unictype/pr_bidi_control.h: Likewise.
26131         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26132         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26133         * lib/unictype/pr_bidi_pdf.h: Likewise.
26134         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26135         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26136         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26137         * lib/unictype/pr_format_control.h: Likewise.
26138         * lib/unictype/pr_hex_digit.h: Likewise.
26139         * lib/unictype/pr_hyphen.h: Likewise.
26140         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26141         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26142         * lib/unictype/pr_iso_control.h: Likewise.
26143         * lib/unictype/pr_join_control.h: Likewise.
26144         * lib/unictype/pr_left_of_pair.h: Likewise.
26145         * lib/unictype/pr_line_separator.h: Likewise.
26146         * lib/unictype/pr_math.h: Likewise.
26147         * lib/unictype/pr_non_break.h: Likewise.
26148         * lib/unictype/pr_not_a_character.h: Likewise.
26149         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26150         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26151         * lib/unictype/pr_other_id_continue.h: Likewise.
26152         * lib/unictype/pr_other_id_start.h: Likewise.
26153         * lib/unictype/pr_other_lowercase.h: Likewise.
26154         * lib/unictype/pr_other_math.h: Likewise.
26155         * lib/unictype/pr_other_uppercase.h: Likewise.
26156         * lib/unictype/pr_paired_punctuation.h: Likewise.
26157         * lib/unictype/pr_paragraph_separator.h: Likewise.
26158         * lib/unictype/pr_pattern_syntax.h: Likewise.
26159         * lib/unictype/pr_pattern_white_space.h: Likewise.
26160         * lib/unictype/pr_private_use.h: Likewise.
26161         * lib/unictype/pr_quotation_mark.h: Likewise.
26162         * lib/unictype/pr_radical.h: Likewise.
26163         * lib/unictype/pr_soft_dotted.h: Likewise.
26164         * lib/unictype/pr_space.h: Likewise.
26165         * lib/unictype/pr_titlecase.h: Likewise.
26166         * lib/unictype/pr_variation_selector.h: Likewise.
26167         * lib/unictype/pr_white_space.h: Likewise.
26168         * lib/unictype/sy_c_ident.h: Likewise.
26169         * lib/unictype/sy_c_whitespace.h: Likewise.
26170         * lib/unictype/sy_java_whitespace.h: Likewise.
26171         * modules/uni*/*: Bump version number of expected libunistring version.
26172         Reported by Simon Josefsson.
26173
26174 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26175
26176         useless-if-before-free: fix typo in --help and make the internal,
26177         automatic version date update process work once again.
26178         --help output contained a NUL character instead of the
26179         backslash-zero that was intended.  Also, the "must lie within
26180         the first 8 lines" line is on line 9, and hence not getting
26181         automatically updated.
26182         * build-aux/useless-if-before-free: Fix the former by adding a
26183         backslash, and the latter by condensing the three lines of what-it-does
26184         to a single line, leaving one line of slack for the future.
26185
26186 2011-01-09  Bruno Haible  <bruno@clisp.org>
26187
26188         uniwidth/width: Fix width of U+1D173..U+1D17A.
26189         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26190         symbolic_width, output_width_property_test): New functions.
26191         (main): Invoke output_nonspacing_property, output_width_property_test.
26192         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26193         U+1D173..U+1D17A.
26194         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26195         1.
26196         * modules/uniwidth/*: Bump version number of expected libunistring
26197         version.
26198         * modules/unilbrk/*: Likewise.
26199
26200 2011-01-08  Bruno Haible  <bruno@clisp.org>
26201
26202         uninorm tests: Preserve copyright of Unicode data file.
26203         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26204         Mention modifications.
26205
26206 2011-01-08  Bruno Haible  <bruno@clisp.org>
26207
26208         gen-uni-tables: Prepare for Unicode 5.2.0.
26209         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26210         (debug_output_lbp, output_lbp): Update.
26211
26212 2011-01-08  Bruno Haible  <bruno@clisp.org>
26213
26214         unilbrk: Clarify gen-uni-tables.c code.
26215         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26216         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26217         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26218
26219 2011-01-07  Bruno Haible  <bruno@clisp.org>
26220
26221         strtod: Restore errno when successfully parsing Infinity or NaN.
26222         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26223         restore the original errno.
26224
26225 2011-01-07  Bruno Haible  <bruno@clisp.org>
26226
26227         remove test: Avoid failure on HP-UX 11.
26228         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26229
26230 2011-01-07  Bruno Haible  <bruno@clisp.org>
26231
26232         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26233         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26234         error code.
26235
26236 2011-01-07  Pádraig Brady <P@draigBrady.com>
26237
26238         ignore-value: fixup comments, and add Eric Blake
26239         as an author since he rewrote the macros.
26240         * lib/ignore-value.h (ignore_value):  State that
26241         we now support aggregates.  Also specify exactly
26242         when the GCC warn_unused_result feature was added.
26243
26244 2011-01-06  Eric Blake  <eblake@redhat.com>
26245
26246         ignore-value: support aggregate types
26247         * lib/ignore-value.h (ignore_value): Provide separate gcc
26248         definition.
26249         * modules/ignore-value-tests: New test module.
26250         * tests/test-ignore-value.c: New test.
26251
26252         maint.mk: improve sc_prohibit_strcmp regex
26253         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26254         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26255         definition of STRNEQ.
26256
26257         signal: work around Haiku issue with SIGBUS
26258         * lib/siglist.h: Add comment.
26259         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26260         strsignal's favoring of SIGSEGV.
26261         * tests/test-signal.c (main): Avoid test failure.
26262         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26263         Reported by Scott McCreary.
26264
26265         maint.mk: add pre-release check to ensure submodule commits are public
26266         * top/maint.mk (public-submodule-commit): New rule.
26267         (submodule-checks): New variable.
26268         (alpha beta stable): Depend on the variable.
26269
26270 2011-01-05  Pádraig Brady <P@draigBrady.com>
26271         and Jim Meyering  <meyering@redhat.com>
26272
26273         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26274         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26275         (ATTRIBUTE_DEPRECATED): Define.
26276         (_ignore_case): New function.
26277         (ignore_value): New macro, to replace the old function.
26278         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26279         * modules/ignore-value (Depends-on): Add stdint.
26280
26281 2011-01-04  Eric Blake  <eblake@redhat.com>
26282
26283         doc: regenerate INSTALL
26284         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26285         @firstparagraphindent support, now that autoconf dropped it.
26286         (INSTALL_PRELUDE): Reinstate old macro.
26287         * doc/install.texi: Resync from autoconf.
26288         * doc/INSTALL: Reflect recent autoconf update.
26289         * doc/INSTALL.ISO: Likewise.
26290         * doc/INSTALL.UTF-8: Likewise.
26291         Reported by Karl Berry.
26292
26293 2011-01-04  Bruce Korb  <address@hidden>
26294
26295         git-version-gen: avoid a sub-shell
26296         * build-aux/git-version-gen: Redirect stderr in `...` via
26297         "exec 2>...", rather than via an added sub-shell.
26298
26299 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26300
26301         git-version-gen: use (...) rather than sh -c '...'
26302         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26303         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26304
26305 2011-01-03  Jim Meyering  <meyering@redhat.com>
26306
26307         git-version-gen: convert leading TABs to spaces
26308         * build-aux/git-version-gen: Expand leading TABs.
26309
26310         git-version-gen: handle failed "git rev-list"
26311         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26312         from git and proceeding as if it had succeeded but printed no SHA1
26313         checksums, suppress the diagnostic and handle the failure.
26314         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26315
26316         git-version-gen: include command name in one more diagnostic
26317         * build-aux/git-version-gen: When the required .tarball-version file
26318         was missing or unreadable, you might see the diagnostic from "cat",
26319         but no trace of the name of the invoking script.  Now, you still see
26320         the diagnostic from cat, but also get one from "git-version-gen: ".
26321         Inspired by a patch from Bruce Korb.
26322
26323         update-copyright: adjust test to match changed code
26324         * tests/test-update-copyright.sh: Change test's expected output
26325         to match new actual output.
26326
26327 2011-01-02  Bruno Haible  <bruno@clisp.org>
26328
26329         getlogin_r: Avoid test failure on HP-UX 11.
26330         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26331         ERANGE when the second argument is zero.
26332         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26333         portability problem.
26334
26335 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26336
26337         * build-aux/update-copyright: doc Simon's changes
26338
26339 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26340
26341         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26342         environment variable.
26343
26344 2011-01-02  Bruno Haible  <bruno@clisp.org>
26345
26346         unigbrk: Avoid gcc warnings.
26347         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26348         unused variable.
26349         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26350         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26351         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26352         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26353         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26354         Change type of first argument to 'const char *'.
26355         (main): Remove unused variable.
26356         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26357         type of first argument to 'const char *'.
26358         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26359         Likewise.
26360         (main): Change type of variable 's'.
26361         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26362         to 'int'.
26363
26364 2011-01-02  Bruno Haible  <bruno@clisp.org>
26365
26366         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26367         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26368         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26369         bug.
26370         * lib/pwrite.c: Undo 2010-12-31 patch.
26371         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26372
26373 2011-01-02  Bruno Haible  <bruno@clisp.org>
26374
26375         pread: Fix test whether it works.
26376         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26377
26378 2011-01-02  Bruno Haible  <bruno@clisp.org>
26379
26380         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26381         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26382         ends in "6". Don't require a specific month name. Try also the locale
26383         names found on HP-UX 11 and Solaris 7.
26384
26385 2011-01-02  Bruno Haible  <bruno@clisp.org>
26386
26387         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26388         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26389         C linkage.
26390         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26391
26392 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26393
26394         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26395         for consistency, since the "cluster" term is not used elsewhere.
26396         * lib/unigbrk.in.h: Update name.
26397         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26398         * lib/unigbrk/u16-grapheme-next.c: Update name.
26399         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26400         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26401         * lib/unigbrk/u32-grapheme-next.c: Update name.
26402         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26403         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26404         * lib/unigbrk/u8-grapheme-next.c: Update name.
26405         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26406         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26407         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26408         Suggested by Bruno Haible.
26409
26410 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26411
26412         Remove module 'u8-grapheme-len' as too redundant with
26413         'u8-grapheme-next'.
26414         * modules/unigbrk/u8-grapheme-len: Delete file.
26415         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26416         * lib/unigbrk.in.h: Remove prototype for deleted function.
26417         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26418         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26419
26420         Remove module 'u16-grapheme-len' as too redundant with
26421         'u16-grapheme-next'.
26422         * modules/unigbrk/u16-grapheme-len: Delete file.
26423         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26424         * lib/unigbrk.in.h: Remove prototype for deleted function.
26425         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26426         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26427
26428         Remove module 'u32-grapheme-len' as too redundant with
26429         'u32-grapheme-next'.
26430         * modules/unigbrk/u32-grapheme-len: Delete file.
26431         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26432         * lib/unigbrk.in.h: Remove prototype for deleted function.
26433         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26434         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26435
26436         Suggested by Bruno Haible.
26437
26438 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26439
26440         * unigbrk.in.h: Fix typo: "ben" => "been".
26441         Reported by Bruno Haible.
26442
26443 2011-01-01  Jim Meyering  <meyering@redhat.com>
26444
26445         maint: update almost all copyright ranges to include 2011
26446         Run the new "make update-copyright" rule.
26447
26448 2011-01-01  Jim Meyering  <meyering@redhat.com>
26449
26450         maint: update-copyright: exempt doc/INSTALL*
26451         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26452         since they are generated.  Suggested by Bruno Haible.
26453
26454 2011-01-01  Jim Meyering  <meyering@redhat.com>
26455
26456         maint: refine the update-copyright rule
26457         * Makefile (update-copyright): Also exclude any file that includes
26458         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26459         code that merely generates the comment.
26460
26461 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26462
26463         New module 'u8-grapheme-len'.
26464         * modules/unigbrk/u8-grapheme-len: New file.
26465         * modules/unigbrk/u8-grapheme-len-tests: New file.
26466         * lib/unigbrk.in.h: Add prototype for new function.
26467         * lib/unigbrk/u8-grapheme-len.c: New file.
26468         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26469
26470         New module 'u16-grapheme-len'.
26471         * modules/unigbrk/u16-grapheme-len: New file.
26472         * modules/unigbrk/u16-grapheme-len-tests: New file.
26473         * lib/unigbrk.in.h: Add prototype for new function.
26474         * lib/unigbrk/u16-grapheme-len.c: New file.
26475         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26476
26477         New module 'u32-grapheme-len'.
26478         * modules/unigbrk/u32-grapheme-len: New file.
26479         * modules/unigbrk/u32-grapheme-len-tests: New file.
26480         * lib/unigbrk.in.h: Add prototype for new function.
26481         * lib/unigbrk/u32-grapheme-len.c: New file.
26482         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26483
26484         New module 'u8-grapheme-next'.
26485         * modules/unigbrk/u8-grapheme-next: New file.
26486         * modules/unigbrk/u8-grapheme-next-tests: New file.
26487         * lib/unigbrk.in.h: Add prototype for new function.
26488         * lib/unigbrk/u8-grapheme-next.c: New file.
26489         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26490
26491         New module 'u16-grapheme-next'.
26492         * modules/unigbrk/u16-grapheme-next: New file.
26493         * modules/unigbrk/u16-grapheme-next-tests: New file.
26494         * lib/unigbrk.in.h: Add prototype for new function.
26495         * lib/unigbrk/u16-grapheme-next.c: New file.
26496         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26497
26498         New module 'u32-grapheme-next'.
26499         * modules/unigbrk/u32-grapheme-next: New file.
26500         * modules/unigbrk/u32-grapheme-next-tests: New file.
26501         * lib/unigbrk.in.h: Add prototype for new function.
26502         * lib/unigbrk/u32-grapheme-next.c: New file.
26503         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26504
26505         New module 'u8-grapheme-prev'.
26506         * modules/unigbrk/u8-grapheme-prev: New file.
26507         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26508         * lib/unigbrk.in.h: Add prototype for new function.
26509         * lib/unigbrk/u8-grapheme-prev.c: New file.
26510         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26511
26512         New module 'u16-grapheme-prev'.
26513         * modules/unigbrk/u16-grapheme-prev: New file.
26514         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26515         * lib/unigbrk.in.h: Add prototype for new function.
26516         * lib/unigbrk/u16-grapheme-prev.c: New file.
26517         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26518
26519         New module 'u32-grapheme-prev'.
26520         * modules/unigbrk/u32-grapheme-prev: New file.
26521         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26522         * lib/unigbrk.in.h: Add prototype for new function.
26523         * lib/unigbrk/u32-grapheme-prev.c: New file.
26524         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26525
26526         New module 'u8-grapheme-breaks'.
26527         * modules/unigbrk/u8-grapheme-breaks: New file.
26528         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26529         * lib/unigbrk.in.h: Add prototype for new function.
26530         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26531         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26532
26533         New module 'u16-grapheme-breaks'.
26534         * modules/unigbrk/u16-grapheme-breaks: New file.
26535         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26536         * lib/unigbrk.in.h: Add prototype for new function.
26537         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26538         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26539
26540         New module 'u32-grapheme-breaks'.
26541         * modules/unigbrk/u32-grapheme-breaks: New file.
26542         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26543         * lib/unigbrk.in.h: Add prototype for new function.
26544         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26545         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26546
26547         New module 'ulc-grapheme-breaks'.
26548         * modules/unigbrk/ulc-grapheme-breaks: New file.
26549         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26550         * m4/locale-ar.m4: New file.
26551         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26552         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26553         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26554
26555 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26556
26557         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26558         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26559         modified how this file was generated before I initially submitted
26560         the module, but failed to regenerate it.  This meant that several
26561         of the level2 entries were wrong.
26562         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26563         Remove the division-by-2 that is folded into the table now that
26564         gbrkprop.h has been regenerated properly.  Now -1 entries are
26565         handled correctly.
26566
26567         New module 'unigbrk/uc-gbrk-prop-tests'.
26568         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26569         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26570         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26571         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26572
26573 2011-01-01  Bruno Haible  <bruno@clisp.org>
26574
26575         Avoid use of hexadecimal escapes.
26576         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26577         instead of hexadecimal escapes.
26578
26579 2011-01-01  Jim Meyering  <meyering@redhat.com>
26580
26581         maint: new rule to update copyright year ranges
26582         * Makefile (update-copyright): New rule.
26583
26584         maint: indent with TABs in Makefile
26585         * Makefile: Expand leading sequences of spaces to TABs
26586
26587         version-etc: update the copyright year it reports
26588         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26589
26590 2010-12-31  Bruno Haible  <bruno@clisp.org>
26591
26592         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26593         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26594         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26595         zero.
26596
26597 2010-12-31  Bruno Haible  <bruno@clisp.org>
26598
26599         pwrite: Work around HP-UX 11.11 bug.
26600         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26601         works and set REPLACE_PWRITE if not.
26602         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26603         function.
26604         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26605
26606 2010-12-31  Bruno Haible  <bruno@clisp.org>
26607
26608         pread: Work around HP-UX 11 bugs.
26609         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26610         and set REPLACE_PREAD if not.
26611         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26612
26613 2010-12-31  Eric Blake  <eblake@redhat.com>
26614
26615         nl_langinfo: fix YESEXPR on Irix 6.5
26616         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26617         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26618         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26619         it.
26620
26621 2010-12-31  Bruno Haible  <bruno@clisp.org>
26622
26623         iconv: Document HP-UX 11 bug.
26624         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26625
26626 2010-12-31  Bruno Haible  <bruno@clisp.org>
26627
26628         ldexpl: Fix link error on HP-UX 11.
26629         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26630         LDEXPL_LIBM, using $ISNANL_LIBM.
26631
26632 2010-12-31  Eric Blake  <eblake@redhat.com>
26633
26634         ftello: avoid compilation failure with SunStudio c89
26635         * lib/ftello.c (ftello): Use lseek, not llseek.
26636
26637         tests: avoid failing coreutils tests on cygwin
26638         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26639         (create_exe_shims_): Return 0 when skipping.
26640
26641 2010-12-31  Bruno Haible  <bruno@clisp.org>
26642
26643         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26644         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26645
26646 2010-12-31  Bruno Haible  <bruno@clisp.org>
26647
26648         waitpid: Fix link error in C++ mode.
26649         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26650
26651 2010-12-31  Bruno Haible  <bruno@clisp.org>
26652
26653         isnan: Use GCC built-ins when possible.
26654         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26655         __builtin_isnan.
26656         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26657         (isnan): Define using GCC built-ins for GCC >= 4.0.
26658
26659 2010-12-31  Bruno Haible  <bruno@clisp.org>
26660
26661         isnand: Fix mistake.
26662         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26663         __builtin_isnand.
26664
26665 2010-12-31  Bruno Haible  <bruno@clisp.org>
26666
26667         open: Avoid C++ error on HP-UX 11.
26668         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26669
26670 2010-12-31  Bruno Haible  <bruno@clisp.org>
26671
26672         time_r: Add missing declarations on HP-UX 11.
26673         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26674         instead of HAVE_LOCALTIME_R.
26675         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26676         HAVE_LOCALTIME_R always.
26677         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26678         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26679         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26680         HAVE_LOCALTIME_R.
26681         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26682         * doc/posix-functions/localtime_r.texi: Likewise.
26683
26684 2010-12-29  Eric Blake  <eblake@redhat.com>
26685
26686         mountlist: tweak previous commit
26687         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26688         Reported by Paul Eggert.
26689
26690         mountlist: fix local drive detection on cygwin
26691         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26692         that works for cygwin.
26693
26694 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         ftoastr, snprintf: ftoastr + snprintf module
26697         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26698         since the snprintf module now should be good enough here.
26699         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26700         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26701         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26702         GNULIB_SNPRINTF only for the test directory, and the latter
26703         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26704         seems to suffice by itself.
26705
26706 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26707
26708         alloca: one step towards thread-safety
26709         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26710         need for a static variable.  All callers changed.  This does not
26711         make the alloca replacement thread-safe, but it's one step.
26712
26713         tests: minor indenting change
26714         * tests/init.sh: Sync from coreutils housekeeping patch
26715         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26716         to keep lines within 80 columns.
26717
26718 2010-12-28  Jim Meyering  <meyering@redhat.com>
26719
26720         regex: don't infloop on persistent failing calloc
26721         * lib/regexec.c (build_trtable): Return failure indication upon
26722         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26723         In glibc, this was fixed for version 2.13:
26724         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26725
26726 2010-12-28  Bruno Haible  <bruno@clisp.org>
26727             Paul Eggert <eggert@cs.ucla.edu>
26728
26729         linkat: Make implementation robust against system behaviour variations.
26730         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26731         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26732         way, and to -2 if it needs a generic runtime test.
26733         * lib/linkat.c (solaris_optimized_link_immediate,
26734         solaris_optimized_link_follow): New functions.
26735         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26736         (check_same_link): Use it.
26737
26738 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26739
26740         New module 'unigbrk/base'.
26741         * modules/unigbrk/base: New file.
26742         * lib/unigbrk.in.h: New file.
26743
26744         New module 'unigbrk/uc-gbrk-prop'.
26745         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26746         * modules/unigbrk/uc-gbrk-prop: New file.
26747         * lib/unigbrk/gbrkprop.h: New file.
26748         * lib/unigbrk/uc-gbrk-prop.c: New file.
26749
26750         New module 'unigbrk/uc-is-grapheme-break'.
26751         * modules/unigbrk/uc-is-grapheme-break: New file.
26752         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26753         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26754         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26755         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26756         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26757
26758         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26759
26760 2010-12-27  Bruno Haible  <bruno@clisp.org>
26761
26762         linkat test: Avoid failure on Solaris 11 2010-11.
26763         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26764
26765 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26766
26767         utimens: work around glibc rounding bug on more platforms
26768         * lib/utimens.c (fdutimens): Work around rounding bug even if
26769         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26771
26772 2010-12-27  Bruno Haible  <bruno@clisp.org>
26773
26774         select tests: Improve comments.
26775         * tests/test-select.c (do_select): Add comments.
26776
26777 2010-12-27  Bruno Haible  <bruno@clisp.org>
26778
26779         select tests: Safer way of handling timeout.
26780         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26781         at every invocation.
26782
26783 2010-12-27  Bruno Haible  <bruno@clisp.org>
26784
26785         select tests: Use 'bool' where appropriate.
26786         * tests/test-select.c (connect_to_socket): Change argument type to
26787         'bool'.
26788
26789 2010-12-27  Bruno Haible  <bruno@clisp.org>
26790
26791         select tests: Use existing modules.
26792         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26793         (configure.ac): Don't test for unistd.h.
26794         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26795         declared in <unistd.h>.
26796
26797 2010-12-27  Bruno Haible  <bruno@clisp.org>
26798
26799         mbrtowc: Work around a Solaris 7 bug.
26800         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26801         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26802         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26803         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26804         MBRTOWC_NULL_ARG1_BUG.
26805         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26806         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26807         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26808         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26809
26810 2010-12-27  Jim Meyering  <meyering@redhat.com>
26811
26812         read-file.c: tweak syntax
26813         * lib/read-file.c (fread_file): Remove space after "*" in function
26814         definitions.
26815
26816 2010-12-27  Bruno Haible  <bruno@clisp.org>
26817
26818         times test: Avoid gcc warnings on OSF/1.
26819         * tests/test-times.c (main): Cast printf arguments from clock_t to
26820         'long int'.
26821
26822 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26823
26824         utimens: work around glibc rounding bug on older Linux kernels
26825         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26826         on Linux with a glibc whose utimes might not work, then work
26827         around a longstanding glibc bug involving rounding rather than
26828         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26830
26831 2010-12-26  Bruno Haible  <bruno@clisp.org>
26832
26833         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26834         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26835         _GL_CXXALIAS_SYS.
26836         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26837
26838 2010-12-26  Bruno Haible  <bruno@clisp.org>
26839
26840         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26841         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26842         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26843         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26844         looking for the declaration.
26845         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26846         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26847         problem.
26848         * doc/posix-functions/inet_pton.texi: Likewise.
26849
26850 2010-12-26  Bruno Haible  <bruno@clisp.org>
26851
26852         arpa_inet: Use the common idioms with C++ support.
26853         * lib/arpa_inet.in.h: Include c++defs.h.
26854         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26855         support.
26856         * modules/arpa_inet (Depends-on): Add c++defs.
26857         (Makefile.am): Substitute the contents of c++defs.h.
26858         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26859         * modules/arpa_inet-c++-tests: New file.
26860         * tests/test-arpa_inet-c++.cc: New file.
26861
26862 2010-12-25  Bruno Haible  <bruno@clisp.org>
26863
26864         Fix more C++ link errors on Solaris 8.
26865         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26866         $(LIB_EACCESS).
26867         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26868         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26869         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26870         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26871         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26872
26873 2010-12-25  Bruno Haible  <bruno@clisp.org>
26874
26875         printf-posix: Fix link error when a non-GCC compiler is used.
26876         * lib/stdio.in.h (printf): When not using GCC, override printf
26877         correctly.
26878         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26879
26880 2010-12-25  Bruno Haible  <bruno@clisp.org>
26881
26882         strerror_r-posix: Update doc.
26883         * doc/posix-functions/strerror_r.texi: Update doc about the return
26884         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26885
26886 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26887
26888         utimens: simplify the logic of the previous change
26889         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26890         This should not affect whether the test succeeds or fails.
26891
26892         utimens: configure better on hosts with NFS clock skew
26893         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26894         uses the clock of the local host.  It might use the clock of the
26895         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26897
26898 2010-12-25  Bruno Haible  <bruno@clisp.org>
26899
26900         ptsname test: Avoid failure on Solaris.
26901         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26902         open a pseudo-terminal; don't use BSD-style ptys.
26903         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26904
26905 2010-12-25  Bruno Haible  <bruno@clisp.org>
26906
26907         ptsname: Avoid ERANGE failure on some systems.
26908         * lib/ptsname.c (buffer): Increase size.
26909
26910 2010-12-25  Bruno Haible  <bruno@clisp.org>
26911
26912         rename, renameat: Avoid test failures at NFS mounted locations.
26913         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26914         so that subsequent mkdir calls succeed.
26915
26916 2010-12-25  Bruno Haible  <bruno@clisp.org>
26917
26918         iswblank: Fix C++ link error on Solaris 8.
26919         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26920         _GL_FUNCDECL_SYS.
26921
26922 2010-12-25  Bruno Haible  <bruno@clisp.org>
26923
26924         unistd: Fix C++ link error on Solaris 8.
26925         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26926
26927 2010-12-25  Bruno Haible  <bruno@clisp.org>
26928
26929         readlink doc: Mention an old glibc bug.
26930         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26931
26932 2010-12-25  Bruno Haible  <bruno@clisp.org>
26933
26934         fcntl-h: Fix for use of C++ on glibc systems.
26935         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26936         also on glibc systems in C++ mode.
26937         Reported by Gary V. Vaughan <gary@gnu.org>.
26938
26939 2010-12-25  Bruno Haible  <bruno@clisp.org>
26940
26941         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26942         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26943
26944 2010-12-25  Bruno Haible  <bruno@clisp.org>
26945
26946         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26947         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26948         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26949         test whether truncl works according to ISO C 99 with IEC 60559.
26950         * m4/truncl-ieee.m4: New file.
26951         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26952         m4/signbit.m4.
26953         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26954
26955 2010-12-25  Bruno Haible  <bruno@clisp.org>
26956
26957         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26958         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26959         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26960         test whether ceill works according to ISO C 99 with IEC 60559.
26961         * m4/ceill-ieee.m4: New file.
26962         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26963         m4/signbit.m4.
26964         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26965
26966 2010-12-25  Bruno Haible  <bruno@clisp.org>
26967
26968         Ensure all prerequisites of <wchar.h> are included.
26969         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26970         before <wchar.h>.
26971         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26972         gl_MBRLEN_NUL_RETVAL): Likewise.
26973         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26974         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26975         AC_FUNC_MBRTOWC): Likewise.
26976         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26977         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26978         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26979         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26980         Likewise.
26981         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26982         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26983         (gl_WCHAR_H): Improve comments.
26984         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26985
26986 2010-12-25  Bruno Haible  <bruno@clisp.org>
26987
26988         strtok_r: Fix C syntax error in autoconf macro.
26989         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26990         characters in test program.
26991
26992 2010-12-24  Bruno Haible  <bruno@clisp.org>
26993
26994         ceil, trunc, round: Fix gcc warnings.
26995         * lib/ceil.c (MIN): Undefine before redefining.
26996         * lib/trunc.c (MIN): Likewise.
26997         * lib/round.c (MIN): Likewise.
26998         Include <math.h> first.
26999
27000 2010-12-24  Bruno Haible  <bruno@clisp.org>
27001
27002         select tests: Avoid failures on OSF/1 5.1.
27003         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27004         failure of closing the last socket; it may fail with ECONNRESET.
27005
27006 2010-12-24  Eric Blake  <eblake@redhat.com>
27007
27008         stdint: avoid HP-UX 10.20 preprocessor bug
27009         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27010         than #if.
27011         * tests/test-floor2.c (main): Likewise.
27012         Reported by Peter O'Gorman.
27013
27014         pipe: make obsoletion transition easier
27015         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27016         * modules/pipe (Files): Include revived file.
27017         (Include): Drop reference, to mirror getdate's behavior.
27018
27019 2010-12-24  Bruno Haible  <bruno@clisp.org>
27020
27021         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27022         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27023         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27024         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27025
27026 2010-12-24  Bruno Haible  <bruno@clisp.org>
27027
27028         gethostname: Ensure declaration on NonStop Kernel.
27029         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27030         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27031
27032 2010-12-24  Bruno Haible  <bruno@clisp.org>
27033
27034         sys_select: Ensure all necessary types on NonStop Kernel.
27035         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27036         include <sys/time.h>.
27037         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27038         NonStop Kernel.
27039         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27040
27041 2010-12-24  Bruno Haible  <bruno@clisp.org>
27042
27043         sys_select: Remove unneeded include.
27044         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27045         have <sys/select.h>.
27046
27047 2010-12-24  Bruno Haible  <bruno@clisp.org>
27048
27049         gethostname: Provide a fallback for HOST_NAME_MAX.
27050         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27051         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27052         instead.
27053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27054
27055 2010-12-24  Bruno Haible  <bruno@clisp.org>
27056
27057         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27058         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27059         (SA_RESTART): Likewise.
27060         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27061
27062 2010-12-24  Bruno Haible  <bruno@clisp.org>
27063
27064         signal: Define NSIG.
27065         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27066         * tests/test-signal.c (nsig): New variable.
27067         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27068
27069 2010-12-24  Bruno Haible  <bruno@clisp.org>
27070
27071         rename, renameat: Avoid test failures on OSF/1 5.1.
27072         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27073         alternative error codes.
27074         * tests/test-renameat.c (main): Likewise.
27075
27076 2010-12-24  Bruno Haible  <bruno@clisp.org>
27077
27078         *printf: Detect large precisions bug on Solaris 10/SPARC.
27079         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27080         by Paul Eggert.
27081         * tests/test-snprintf-posix.h (test_function): Add this test code here
27082         too.
27083         * tests/test-sprintf-posix.h (test_function): Likewise.
27084         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27085         * tests/test-vasprintf-posix.c (test_function): Likewise.
27086         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27087         around by gnulib.
27088         * doc/posix-functions/printf.texi: Likewise.
27089         * doc/posix-functions/snprintf.texi: Likewise.
27090         * doc/posix-functions/sprintf.texi: Likewise.
27091         * doc/posix-functions/vfprintf.texi: Likewise.
27092         * doc/posix-functions/vprintf.texi: Likewise.
27093         * doc/posix-functions/vsnprintf.texi: Likewise.
27094         * doc/posix-functions/vsprintf.texi: Likewise.
27095         * doc/posix-functions/dprintf.texi: Undo last commit.
27096         * doc/posix-functions/vdprintf.texi: Likewise.
27097
27098 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27099
27100         tests: port test-fdutimensat.c to Solaris 8
27101         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27102         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27103         On Solaris 8, it fails with errno == ENOSYS, because there is no
27104         futimens (so it can't use the fd), and there is no lutimens (so it
27105         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27106
27107         vsnprintf: make more consistent with snprintf; doc fixes
27108
27109         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27110         the byte count return problem was promoted from the snprintf-posix
27111         to the snprintf module.
27112         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27113         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27114         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27115         * tests/test-snprintf.c (main): Check the byte count returned.
27116         * tests/test-vsnprintf.c (main): Likewise.
27117
27118 2010-12-23  Eric Blake  <eblake@redhat.com>
27119
27120         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27121         * modules/sigpipe (License): Relax license.
27122
27123 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27124
27125         doc: document Solaris printf bug with large float precisions
27126         * doc/posix-functions/dprintf.texi (dprintf):
27127         * doc/posix-functions/fprintf.texi (fprintf):
27128         * doc/posix-functions/printf.texi (printf):
27129         * doc/posix-functions/snprintf.texi (snprintf):
27130         * doc/posix-functions/sprintf.texi (sprintf):
27131         * doc/posix-functions/vdprintf.texi (vdprintf):
27132         * doc/posix-functions/vfprintf.texi (vfprintf):
27133         * doc/posix-functions/vprintf.texi (vprintf):
27134         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27135         * doc/posix-functions/vsprintf.texi (vsprintf):
27136         Mention that these functions mishandle large floating point
27137         precisions on Solaris 10.  The same bug is also present in Solaris
27138         8, and I assume earlier.  This causes "cd gnulib-tests; make
27139         check" to fail on Solaris 8 (and I assume, later) when building
27140         the latest coreutils, in test-vasprintf-posix's call to
27141         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27142         the wide flavors (e.g., wprintf) so this patch just updates the
27143         documentation for the narrow ones.
27144
27145         test-posixtm.c: add two tests
27146         * tests/test-posixtm.c: Add two tests, to highlight the
27147         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27148         around this bug; this is merely to document it.
27149
27150 2010-12-22  Bruno Haible  <bruno@clisp.org>
27151
27152         getlogin_r: Work around portability problem on OSF/1.
27153         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27154         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27155         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27156         test for a truncated result.
27157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27158         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27159         * modules/getlogin_r (Depends-on): Add memchr.
27160         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27161
27162 2010-12-22  Bruno Haible  <bruno@clisp.org>
27163
27164         ptsname: Avoid test failure on OSF/1 5.1.
27165         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27166         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27167         (same_slave): New function.
27168         (main): Use it to compare ptsname's result with the expected file name.
27169
27170 2010-12-22  Bruno Haible  <bruno@clisp.org>
27171
27172         Port extended stdio modules to HP NonStop Kernel.
27173         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27174         macros.
27175         * lib/fbufmode.c: Update comments.
27176         * lib/fflush.c: Likewise.
27177         * lib/fpurge.c: Likewise.
27178         * lib/freadable.c: Likewise.
27179         * lib/freadahead.c: Likewise.
27180         * lib/freading.c: Likewise.
27181         * lib/freadptr.c: Likewise.
27182         * lib/freadseek.c: Likewise.
27183         * lib/fseeko.c: Likewise.
27184         * lib/fseterr.c: Likewise.
27185         * lib/fwritable.c: Likewise.
27186         * lib/fwriting.c: Likewise.
27187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27188
27189 2010-12-22  Bruno Haible  <bruno@clisp.org>
27190
27191         ttyname_r: Work around bug on OSF/1 5.1.
27192         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27193         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27194         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27195         present.
27196         * lib/ttyname_r.c (ttyname_r): Update comments.
27197
27198 2010-12-22  Bruno Haible  <bruno@clisp.org>
27199
27200         round: Implement result sign according to IEEE 754.
27201         * lib/round.c (MIN, MINUS_ZERO): New macros.
27202         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27203         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27204         * tests/test-round-ieee.c (main): Likewise.
27205         * tests/test-roundl-ieee.c (main): Likewise.
27206
27207         trunc: Implement result sign according to IEEE 754.
27208         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27209         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27210         * tests/test-trunc2.c: Include minus-zero.h.
27211         (MINUS_ZERO): New macro.
27212         (trunc_reference): Keep in sync with lib/trunc.c.
27213         * tests/test-truncf2.c: Include minus-zero.h.
27214         (MINUS_ZERO): New macro.
27215         (truncf_reference): Keep in sync with lib/trunc.c.
27216         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27217         * tests/test-trunc-ieee.c (main): Likewise.
27218         * tests/test-truncl-ieee.c (main): Likewise.
27219
27220         ceil: Implement result sign according to IEEE 754.
27221         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27222         (FUNC): Return -0.0 for -1 < x < 0.
27223         * tests/test-ceil2.c: Include minus-zero.h.
27224         (MINUS_ZERO): New macro.
27225         (ceil_reference): Keep in sync with lib/ceil.c.
27226         * tests/test-ceilf2.c: Include minus-zero.h.
27227         (MINUS_ZERO): New macro.
27228         (ceilf_reference): Keep in sync with lib/ceil.c.
27229         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27230         * tests/test-ceil-ieee.c (main): Likewise.
27231         * tests/test-ceill-ieee.c (main): Likewise.
27232
27233         floor: Implement result sign according to IEEE 754.
27234         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27235         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27236         * tests/test-floorf2.c (floorf_reference): Likewise.
27237         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27238         * tests/test-floor-ieee.c (main): Likewise.
27239         * tests/test-floorl-ieee.c (main): Likewise.
27240
27241 2010-12-22  Bruno Haible  <bruno@clisp.org>
27242
27243         getaddrinfo: Update doc.
27244         * doc/posix-functions/gai_strerror.texi: Return type is also different
27245         on AIX and HP-UX.
27246
27247 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27248
27249         getaddrinfo, inet_ntop: Update doc for Solaris.
27250         * doc/posix-functions/gai_strerror.texi: Return type is also an
27251         issue on Solaris 9 and earlier.
27252         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27253         on Solaris 10 and earlier.
27254
27255 2010-12-21  Bruno Haible  <bruno@clisp.org>
27256
27257         New module 'roundl-ieee'.
27258         * modules/roundl-ieee: New file.
27259         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27260         test whether roundl works according to ISO C 99 with IEC 60559.
27261         * m4/roundl-ieee.m4: New file.
27262         * modules/roundl-ieee-tests: New file.
27263         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27264         * tests/test-roundl.c (main): Remove signbit tests.
27265         * modules/roundl-tests (Depends-on): Remove signbit.
27266         * doc/posix-functions/roundl.texi: Mention the new module.
27267
27268 2010-12-21  Bruno Haible  <bruno@clisp.org>
27269
27270         New module 'truncl-ieee'.
27271         * modules/truncl-ieee: New file.
27272         * modules/truncl-ieee-tests: New file.
27273         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27274         * tests/test-truncl.c (main): Remove signbit tests.
27275         * modules/truncl-tests (Depends-on): Remove signbit.
27276         * doc/posix-functions/truncl.texi: Mention the new module.
27277
27278 2010-12-21  Bruno Haible  <bruno@clisp.org>
27279
27280         New module 'ceill-ieee'.
27281         * modules/ceill-ieee: New file.
27282         * modules/ceill-ieee-tests: New file.
27283         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27284         * tests/test-ceill.c (main): Remove signbit tests.
27285         * modules/ceill-tests (Depends-on): Remove signbit.
27286         * doc/posix-functions/ceill.texi: Mention the new module.
27287
27288 2010-12-21  Bruno Haible  <bruno@clisp.org>
27289
27290         New module 'floorl-ieee'.
27291         * modules/floorl-ieee: New file.
27292         * modules/floorl-ieee-tests: New file.
27293         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27294         * tests/test-floorl.c (main): Remove signbit tests.
27295         * modules/floorl-tests (Depends-on): Remove signbit.
27296         * doc/posix-functions/floorl.texi: Mention the new module.
27297
27298 2010-12-21  Bruno Haible  <bruno@clisp.org>
27299
27300         New module 'round-ieee'.
27301         * modules/round-ieee: New file.
27302         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27303         whether round works according to ISO C 99 with IEC 60559.
27304         * m4/round-ieee.m4: New file.
27305         * modules/round-ieee-tests: New file.
27306         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27307         * tests/test-round1.c (main): Remove signbit tests.
27308         * modules/round-tests (Depends-on): Remove 'signbit'.
27309         * doc/posix-functions/round.texi: Mention the new module.
27310
27311 2010-12-21  Bruno Haible  <bruno@clisp.org>
27312
27313         New module 'trunc-ieee'.
27314         * modules/trunc-ieee: New file.
27315         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27316         whether trunc works according to ISO C 99 with IEC 60559.
27317         * m4/trunc-ieee.m4: New file.
27318         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27320         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27321         * modules/trunc-ieee-tests: New file.
27322         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27323         * tests/test-trunc1.c (main): Remove signbit tests.
27324         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27325         * doc/posix-functions/trunc.texi: Mention the new module.
27326
27327 2010-12-21  Bruno Haible  <bruno@clisp.org>
27328
27329         New module 'ceil-ieee'.
27330         * modules/ceil-ieee: New file.
27331         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27332         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27333         ISO C 99 with IEC 60559.
27334         * m4/ceil-ieee.m4: New file.
27335         * modules/ceil (Files): Add lib/ceil.c.
27336         (Depends-on): Add 'float'.
27337         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27338         * lib/math.in.h (ceil): New declaration.
27339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27340         REPLACE_CEIL.
27341         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27342         * modules/ceil-ieee-tests: New file.
27343         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27344         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27345         * doc/posix-functions/ceil.texi: Mention the new module.
27346
27347 2010-12-21  Bruno Haible  <bruno@clisp.org>
27348
27349         New module 'floor-ieee'.
27350         * modules/floor-ieee: New file.
27351         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27352         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27353         ISO C 99 with IEC 60559.
27354         * m4/floor-ieee.m4: New file.
27355         * modules/floor (Files): Add lib/floor.c.
27356         (Depends-on): Add 'float'.
27357         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27358         * lib/math.in.h (floor): New declaration.
27359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27360         REPLACE_FLOOR.
27361         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27362         * modules/floor-ieee-tests: New file.
27363         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27364         * tests/test-math-c++.cc: Check the signature of 'floor'.
27365         * doc/posix-functions/floor.texi: Mention the new module.
27366
27367 2010-12-21  Bruno Haible  <bruno@clisp.org>
27368
27369         New module 'roundf-ieee'.
27370         * modules/roundf-ieee: New file.
27371         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27372         test whether roundf works according to ISO C 99 with IEC 60559.
27373         * m4/roundf-ieee.m4: New file.
27374         * modules/roundf-ieee-tests: New file.
27375         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27376         * tests/test-roundf1.c (main): Remove signbit tests.
27377         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27378         * doc/posix-functions/roundf.texi: Mention the new module.
27379
27380 2010-12-21  Bruno Haible  <bruno@clisp.org>
27381
27382         New module 'truncf-ieee'.
27383         * modules/truncf-ieee: New file.
27384         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27385         test whether truncf works according to ISO C 99 with IEC 60559.
27386         * m4/truncf-ieee.m4: New file.
27387         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27389         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27390         * modules/truncf-ieee-tests: New file.
27391         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27392         * tests/test-truncf1.c (main): Remove signbit tests.
27393         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27394         * doc/posix-functions/truncf.texi: Mention the new module.
27395
27396 2010-12-21  Bruno Haible  <bruno@clisp.org>
27397
27398         New module 'ceilf-ieee'.
27399         * modules/ceilf-ieee: New file.
27400         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27401         test whether ceilf works according to ISO C 99 with IEC 60559.
27402         * m4/ceilf-ieee.m4: New file.
27403         * modules/ceilf-ieee-tests: New file.
27404         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27405         * tests/test-ceilf1.c (main): Remove signbit tests.
27406         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27407         * doc/posix-functions/ceilf.texi: Mention the new module.
27408
27409 2010-12-21  Bruno Haible  <bruno@clisp.org>
27410
27411         New module 'floorf-ieee'.
27412         * modules/floorf-ieee: New file.
27413         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27414         test whether floorf works according to ISO C 99 with IEC 60559.
27415         * m4/floorf-ieee.m4: New file.
27416         * modules/floorf-ieee-tests: New file.
27417         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27418         * tests/test-floorf1.c (main): Remove signbit tests.
27419         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27420         * doc/posix-functions/floorf.texi: Mention the new module.
27421
27422 2010-12-21  Bruno Haible  <bruno@clisp.org>
27423
27424         Support for minus zero in autoconf macros.
27425         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27426         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27427         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27428         * tests/minus-zero.h: Update comments.
27429
27430 2010-12-21  Bruno Haible  <bruno@clisp.org>
27431
27432         Tests for module 'ceil'.
27433         * modules/ceil-tests: New file.
27434         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27435         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27436
27437 2010-12-21  Bruno Haible  <bruno@clisp.org>
27438
27439         Tests for module 'floor'.
27440         * modules/floor-tests: New file.
27441         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27442         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27443
27444 2010-12-21  Bruno Haible  <bruno@clisp.org>
27445
27446         math: Fix indentation.
27447         * lib/math.in.h (floorf): Fix indentation.
27448
27449 2010-12-21  Bruno Haible  <bruno@clisp.org>
27450
27451         Fix cross-compilation guesses on Solaris.
27452         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27453         not match "solaris2.10".
27454         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27455         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27456         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27457
27458 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27459
27460         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27461         This fixes a problem observed with the latest coreutils snapshot
27462         that caused a test to fail on Solaris 8.  src/csplit.c's call
27463         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27464         earlier, instead of returning the number of bytes that would have
27465         been generated; this causes csplit to incorrectly report memory
27466         exhaustion.
27467         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27468         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27469         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27470         comments to match.
27471         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27472         Fix typo in matching older versions of Solaris: "solaris2.10"
27473         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27474         only for guessing while cross-compiling.
27475         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27476
27477 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27478
27479         ftoastr: fix comment again
27480         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27481         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27482         Also, simplify example a bit by using flags = 0.
27483
27484 2010-12-20  Bruno Haible  <bruno@clisp.org>
27485
27486         round*, trunc*: Update documentation regarding glibc.
27487         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27488         * doc/posix-functions/round.texi: Likewise.
27489         * doc/posix-functions/roundl.texi: Likewise.
27490         * doc/posix-functions/truncf.texi: Likewise.
27491         * doc/posix-functions/trunc.texi: Likewise.
27492         * doc/posix-functions/truncl.texi: Likewise.
27493
27494 2010-12-20  Bruno Haible  <bruno@clisp.org>
27495
27496         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27497         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27498         * doc/posix-functions/round.texi: Likewise.
27499         * doc/posix-functions/roundl.texi: Likewise.
27500
27501 2010-12-20  Bruno Haible  <bruno@clisp.org>
27502
27503         ttyname_r: Add missing declaration on HP-UX 11.
27504         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27505         HAVE_TTYNAME_R.
27506         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27507         declared. Set HAVE_TTYNAME_R always.
27508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27509         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27510         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27511         HAVE_TTYNAME_R.
27512         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27513
27514 2010-12-20  Bruno Haible  <bruno@clisp.org>
27515
27516         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27517         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27518         * doc/posix-functions/getlogin_r.texi: Likewise.
27519         * tests/test-getlogin.c: Include <errno.h>.
27520         (main): Avoid test failure on HP-UX 11.11.
27521         * tests/test-getlogin_r.c (main): Likewise.
27522
27523 2010-12-20  Bruno Haible  <bruno@clisp.org>
27524
27525         getlogin_r: Add missing declaration on HP-UX 11.
27526         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27527         declared also when it exists as a function.
27528         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27529
27530 2010-12-20  Bruno Haible  <bruno@clisp.org>
27531
27532         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27533         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27534         through wcrtomb.
27535
27536 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27537
27538         ftoastr: fix comment
27539         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27541
27542 2010-12-19  Bruno Haible  <bruno@clisp.org>
27543
27544         isnan: Ensure it is a macro.
27545         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27546         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27547         Solaris.
27548
27549 2010-12-19  Bruno Haible  <bruno@clisp.org>
27550
27551         ldexpl test: Fix link error on OSF/1 5.1.
27552         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27553
27554 2010-12-19  Bruno Haible  <bruno@clisp.org>
27555
27556         wctype: Make it work in C++ mode on OSF/1 5.1.
27557         * lib/wctype.in.h (iswblank): Declare but not define here.
27558         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27559         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27560         * modules/wctype (Files): Add lib/iswblank.c.
27561
27562 2010-12-19  Bruno Haible  <bruno@clisp.org>
27563
27564         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27565         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27566         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27567
27568 2010-12-19  Bruno Haible  <bruno@clisp.org>
27569
27570         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27571         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27572         _POSIX_PII_SOCKET.
27573         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27574         * doc/posix-functions/recvfrom.texi: Likewise.
27575         * doc/posix-functions/send.texi: Likewise.
27576         * doc/posix-functions/sendto.texi: Likewise.
27577
27578 2010-12-19  Bruno Haible  <bruno@clisp.org>
27579
27580         tcgetsid: Add missing declaration on OSF/1 5.1.
27581         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27582         HAVE_TCGETSID.
27583         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27584         Don't set HAVE_TCGETSID.
27585         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27586         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27587         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27588         HAVE_TCGETSID.
27589         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27590
27591 2010-12-19  Bruno Haible  <bruno@clisp.org>
27592
27593         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27594         * lib/stdio.in.h: During the include_next statement, let recursive
27595         includes of this file include only the system header file.
27596
27597 2010-12-19  Bruno Haible  <bruno@clisp.org>
27598
27599         iconv_open: Fix regression from 2010-12-04.
27600         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27601         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27602
27603 2010-12-19  Bruno Haible  <bruno@clisp.org>
27604
27605         stdbool test: Avoid a gcc warning.
27606         * tests/test-stdbool.c (main): Fail if e1 is false.
27607         Reported by Jim Meyering.
27608
27609 2010-12-19  Jim Meyering  <meyering@redhat.com>
27610
27611         setenv: restore to working order
27612         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27613         mistakenly removed.
27614         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27615         HAVE_SETENV.
27616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27617         HAVE_SETENV.
27618
27619 2010-12-19  Bruno Haible  <bruno@clisp.org>
27620
27621         Document some different function declarations on OSF/1 5.1.
27622         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27623         * doc/posix-functions/inet_ntop.texi: Likewise.
27624         * doc/posix-functions/gethostname.texi: Likewise.
27625         * lib/unistd.in.h (gethostname): Update comment.
27626
27627 2010-12-19  Bruno Haible  <bruno@clisp.org>
27628
27629         doc: Mention vasprintf-posix module.
27630         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27631         the 'vasprintf-posix' module.
27632         * doc/glibc-functions/vasprintf.texi: Likewise.
27633
27634 2010-12-19  Bruno Haible  <bruno@clisp.org>
27635
27636         unsetenv: Add missing declaration on OSF/1 5.1.
27637         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27638         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27639         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27641         not HAVE_UNSETENV.
27642         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27643         HAVE_UNSETENV.
27644         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27645
27646 2010-12-19  Bruno Haible  <bruno@clisp.org>
27647
27648         setenv: Add missing declaration on OSF/1 5.1.
27649         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27651         declared. Don't set HAVE_SETENV.
27652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27653         not HAVE_SETENV.
27654         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27655         HAVE_SETENV.
27656         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27657
27658 2010-12-19  Bruno Haible  <bruno@clisp.org>
27659
27660         nl_langinfo tests: Avoid gcc warning.
27661         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27662
27663 2010-12-19  Bruno Haible  <bruno@clisp.org>
27664
27665         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27666         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27667         _GL_CXXALIAS_SYS.
27668
27669 2010-12-19  Bruno Haible  <bruno@clisp.org>
27670
27671         stdbool: Relax test.
27672         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27673         address to 'bool' work in static initializer, for compilers other than
27674         GCC.
27675
27676 2010-12-19  Bruno Haible  <bruno@clisp.org>
27677
27678         ftello: Add missing declaration on OSF/1 5.1.
27679         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27680         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27682         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27683         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27684
27685 2010-12-19  Bruno Haible  <bruno@clisp.org>
27686
27687         fseeko: Add missing declaration on OSF/1 5.1.
27688         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27689         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27691         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27692         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27693
27694 2010-12-19  Bruno Haible  <bruno@clisp.org>
27695
27696         fchdir: Add missing declaration on OSF/1 5.1.
27697         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27700         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27701         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27702
27703 2010-12-19  Bruno Haible  <bruno@clisp.org>
27704
27705         relocatable-prog-wrapper: Separate from relocatable-prog.
27706         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27707         uninstall-relocwrapper rule here.
27708         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27709         Reported by Ian Beckwith <ianb@erislabs.net>.
27710
27711 2010-12-19  Bruno Haible  <bruno@clisp.org>
27712
27713         unistr/u8-mbsnlen: Add missing dependency.
27714         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27715         Reported by Ian Beckwith <ianb@erislabs.net>.
27716
27717 2010-12-19  Bruno Haible  <bruno@clisp.org>
27718
27719         iconv: Make it possible again to use this module without 'iconv-h'.
27720         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27721         if it is not defined.
27722         Reported by Ian Beckwith <ianb@erislabs.net>.
27723
27724 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27725
27726         acl: port to Solaris 8 when copying from tmpfs to ufs
27727         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27728         error number.  Problem observed on Solaris 8 with latest
27729         coreutils, with "mv A B", where A is on a tmpfs file system and B
27730         is on a ufs file system.  This caused coreutils' mv/part-symlink
27731         test to fail.
27732
27733         tests: set fail=0 at start
27734         * tests/init.sh (setup_): Move fail=0 initialization here ...
27735         (mktempd_): ... from here, so that tests can rely on fail being
27736         set to 0 initially.  This fixes a problem in coreutils; see:
27737         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27738
27739 2010-12-18  Bruno Haible  <bruno@clisp.org>
27740
27741         memmem-simple: Stylistic changes.
27742         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27743         Fix preprocessor directive indentation.
27744
27745 2010-12-15  Pádraig Brady <P@draigBrady.com>
27746
27747         memmem, memmem-simple: reorganize and expand empty needle check
27748         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27749         functional checks to memmem-simple so that one has a fully functional
27750         memmem by using just this module.
27751         Restrict the performance only check to the memmem module.
27752         Also expand the empty needle check to ensure the correct
27753         pointer is returned, not just a non NULL pointer.
27754         * doc/glibc-functions/memmem.texi: Rearrange the portability
27755         documentation to correlate with the rearranged checks.
27756         Clarify exactly how the memmem and memmem-simple modules
27757         relate to each other.
27758
27759 2010-12-15  Pádraig Brady <P@draigBrady.com>
27760             Bruno Haible  <bruno@clisp.org>
27761
27762         Improve cross-compilation guesses for uClibc.
27763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27764         that uClibc does not have the glibc bug.
27765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27766         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27767
27768 2010-12-14  Eric Blake  <eblake@redhat.com>
27769
27770         configmake: provide fallbacks for oldest supported autotools
27771         * m4/configmake.m4: New file.
27772         * modules/configmake (Files): Ship it.
27773         (configure.ac): Use it to guarantee fallbacks.
27774
27775 2010-12-13  Pádraig Brady <P@draigBrady.com>
27776
27777         read-file: Improve handling of large files
27778         * lib/read-file.c (fread_file): Minimize realloc()s
27779         for regular files, and better manage sizes around SIZE_MAX.
27780
27781 2010-12-13  Eric Blake  <eblake@redhat.com>
27782
27783         cloexec, fcntl: relax license
27784         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27785         consent from all contributors.
27786         * modules/fcntl (License): Likewise.
27787
27788 2010-12-10  Bruno Haible  <bruno@clisp.org>
27789
27790         Tests for module 'pipe-posix'.
27791         * modules/pipe-posix-tests: New file.
27792         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27793
27794 2010-12-10  Bruno Haible  <bruno@clisp.org>
27795
27796         pipe-posix: Make it work in C++ mode.
27797         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27798         (pipe): Use common idiom, not a macro definition.
27799         * lib/pipe.c: New file.
27800         * m4/pipe.m4: New file.
27801         * modules/pipe-posix (Description): Enhance.
27802         (Files): Add lib/pipe.c, m4/pipe.m4.
27803         (configure.ac): Invoke gl_FUNC_PIPE.
27804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27805         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27806         * tests/test-unistd-c++.cc: Check the signature of pipe.
27807
27808 2010-12-10  Bruno Haible  <bruno@clisp.org>
27809
27810         Rename module 'pipe' to 'spawn-pipe'.
27811         * modules/spawn-pipe: New file, renamed from modules/pipe.
27812         (Files, configure.ac, Makefile.am): Update.
27813         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27814         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27815         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27816         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27817         "spawn-pipe.h" instead of "pipe.h".
27818         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27819         to gl_SPAWN_PIPE.
27820         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27821         (Files, Makefile.am): Update.
27822         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27823         Update.
27824         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27825         Include "spawn-pipe.h" instead of "pipe.h".
27826         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27827         * lib/javacomp.c: Likewise.
27828         * lib/javaversion.c: Likewise.
27829         * lib/pipe-filter-gi.c: Likewise.
27830         * lib/pipe-filter-ii.c: Likewise.
27831         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27832         * modules/javacomp (Depends-on): Likewise.
27833         * modules/javaversion (Depends-on): Likewise.
27834         * modules/pipe-filter-gi (Depends-on): Likewise.
27835         * modules/pipe-filter-ii (Depends-on): Likewise.
27836         * MODULES.html.sh (Executing programs): Update.
27837         * NEWS: Mention the change.
27838
27839 2010-12-10  Eric Blake  <eblake@redhat.com>
27840
27841         pipe-posix: new module
27842         * modules/pipe-posix: New file.
27843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27844         (gl_UNISTD_H): Check for declaration.
27845         * modules/unistd (Makefile.am): Substitute it.
27846         * lib/unistd.in.h (pipe): Provide it for mingw.
27847         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27848         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27849
27850 2010-12-07  Bruno Haible  <bruno@clisp.org>
27851
27852         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27853         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27854         u8_strcmp_gnu.
27855         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27856
27857 2010-12-06  Bruno Haible  <bruno@clisp.org>
27858
27859         Update internal documentation.
27860         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27861
27862 2010-12-04  Bruno Haible  <bruno@clisp.org>
27863
27864         Put more information about failed tests into the test return codes.
27865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27866         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27867         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27869         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27870         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27872         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27873         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27876         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27877         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27878         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27879         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27880         returns a bit mask.
27881         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27882         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27883         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27884         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27886         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27887         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27889         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27890         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27891         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27892         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27893         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27894         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27895         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27896         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27897         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27898         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27899         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27900         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27902         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27904         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27905         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27906         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27907         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27908         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27909         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27910         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27911         gl_PRINTF_PRECISION): Likewise.
27912         * m4/regex.m4 (gl_REGEX): Likewise.
27913         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27914         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27915         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27916         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27919         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27920         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27921         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27922         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27923         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27924         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27925         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27926         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27927         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27928         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27929         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27930         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27932         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27933         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27934         enumerated value.
27935         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27936
27937 2010-12-04  Bruno Haible  <bruno@clisp.org>
27938
27939         Update for Solaris 11 2010-11.
27940         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27941         Express, released in November 2010.
27942
27943 2010-12-04  Bruno Haible  <bruno@clisp.org>
27944
27945         nproc: Relax license.
27946         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27947         and Paul Eggert.
27948         Requested by Ludovic Courtès <ludo@gnu.org>.
27949
27950 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27951
27952         utimecmp: fine-grained src to nearby coarse-grained dest
27953
27954         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27955         and the source is on a file system with higher-resolution time
27956         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27957         not work, and the time stamps are close together, the algorithm to
27958         determine the exact resolution from the read-back mtime was buggy:
27959         it had a "!=" where it should have had an "==".  This bug has been
27960         in the code ever since it was introduced to gnulib.
27961         Problem reported by Dan Jacobson in
27962         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27963
27964 2010-11-30  Bruno Haible  <bruno@clisp.org>
27965
27966         strerror_r-posix: Fix autoconf test.
27967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27968
27969 2010-11-28  Bruno Haible  <bruno@clisp.org>
27970             Paul Eggert  <eggert@cs.ucla.edu>
27971
27972         Tests for module 'getdomainname'.
27973         * modules/getdomainname-tests: New file.
27974         * tests/test-getdomainname.c: New file, based on
27975         tests/test-gethostname.c.
27976
27977 2010-11-28  Bruno Haible  <bruno@clisp.org>
27978             Paul Eggert  <eggert@cs.ucla.edu>
27979
27980         getdomainname: Use the system function when possible.
27981         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27982         (getdomainname): Replace if needed. Provide the declaration if it is
27983         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27984         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27985         (getdomainname): When the system has getdomainname, call the system
27986         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27987         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27988         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27989         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27990         the function if its second argument is of type 'int' or if it is found
27991         in libnsl.
27992         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27993         <sys/systeminfo.h> and sysinfo().
27994         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27996         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27997         HAVE_GETDOMAINNAME.
27998         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27999         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28000         * doc/glibc-functions/getdomainname.texi: Document the problems with
28001         the getdomainname declaration.
28002
28003 2010-11-28  Bruno Haible  <bruno@clisp.org>
28004
28005         sys_socket: Ensure ss_family field on AIX.
28006         * lib/sys_socket.in.h (ss_family): New macro definition.
28007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28008         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28009         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28010         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28011         * modules/sys_socket (Makefile.am): Substitute
28012         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28013         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28014
28015 2010-11-27  Bruno Haible  <bruno@clisp.org>
28016
28017         readline: Improve configure output.
28018         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28019         "checking for readline..." result understandable.
28020
28021 2010-11-27  Bruno Haible  <bruno@clisp.org>
28022
28023         *printf-posix: Detect a bug on Solaris 10/x86.
28024         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28025         for floating-point output.
28026         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28027         directive.
28028         * tests/test-snprintf-posix.h (test_function): Likewise.
28029         * tests/test-sprintf-posix.h (test_function): Likewise.
28030         * tests/test-vasprintf-posix.c (test_function): Likewise.
28031         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28032         * doc/posix-functions/printf.texi: Likewise.
28033         * doc/posix-functions/snprintf.texi: Likewise.
28034         * doc/posix-functions/sprintf.texi: Likewise.
28035         * doc/posix-functions/vfprintf.texi: Likewise.
28036         * doc/posix-functions/vprintf.texi: Likewise.
28037         * doc/posix-functions/vsnprintf.texi: Likewise.
28038         * doc/posix-functions/vsprintf.texi: Likewise.
28039         * doc/glibc-functions/obstack_printf.texi: Likewise.
28040         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28041
28042 2010-11-27  Bruno Haible  <bruno@clisp.org>
28043
28044         Fix link error when module libunistring-optional is in use.
28045         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28046         * modules/striconveha-tests (Makefile.am): Likewise.
28047
28048 2010-11-27  Bruno Haible  <bruno@clisp.org>
28049
28050         regex: Mention link dependencies.
28051         * modules/regex (Link): New section.
28052         * modules/rpmatch (Link): Likewise.
28053         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28054
28055 2010-11-27  Bruno Haible  <bruno@clisp.org>
28056
28057         ftoastr: Fix compilation error on Solaris.
28058         * lib/ftoastr.c: Include <config.h>.
28059
28060 2010-11-27  Bruno Haible  <bruno@clisp.org>
28061
28062         getloadavg: Update documentation.
28063         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28064
28065 2010-11-27  Bruno Haible  <bruno@clisp.org>
28066
28067         sys_socket: Fix test whether the functions are declared.
28068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28069         not <sys/select.h>.
28070
28071 2010-11-27  Bruno Haible  <bruno@clisp.org>
28072
28073         getpass: Make sure to get system declaration on some platforms.
28074         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28075         gl_USE_SYSTEM_EXTENSIONS.
28076         * modules/getpass (Depends-on): Add extensions.
28077
28078 2010-11-26  Bruno Haible  <bruno@clisp.org>
28079
28080         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28081         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28082         'iconv' module is present.
28083         (ICONV_CONST): New macro.
28084         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28085         ICONV_CONST.
28086         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28087         set ICONV_CONST.
28088         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28089         here.
28090         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28091         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28092         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28093         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28094         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28095         present.
28096
28097 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28098
28099         ftoastr: comment fix
28100         * lib/ftoastr.c: "little" -> "little or no" in comment
28101
28102 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28103
28104         stdint: port to GCC 4.3 + OSX + Octave
28105         On this platform, stdint.h is buggy and defines int64_t to long
28106         long int.  The replacement defined it to long int, causing
28107         problems with C++ style name mangling.  Instead, trust the system
28108         definition if INT64_MAX is defined, and likewise for the unsigned
28109         variant.   Problem reported by Jarno Rajahalme in
28110         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28111         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28112         and don't mess with int64_t and INT64_MAX in this case.
28113         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28114
28115 2010-11-24  Bruno Haible  <bruno@clisp.org>
28116
28117         doc: Corrections regarding MacOS X 10.4 and 10.5.
28118         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28119         MacOS X.
28120         Reported by Simon Josefsson.
28121
28122 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28123
28124         Uninstall ".bin" files installed by relocwrapper.
28125         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28126         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28127         unless it is already there.
28128
28129 2010-11-21  Bruno Haible  <bruno@clisp.org>
28130
28131         Update for NetBSD 5.0.
28132         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28133         NetBSD; the test fails on NetBSD 5.0.
28134         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28135         about NetBSD.
28136
28137 2010-11-21  Bruno Haible  <bruno@clisp.org>
28138
28139         Update for HP-UX 11.23 and HP-UX 11.31.
28140         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28141         HP-UX.
28142
28143 2010-11-21  Bruno Haible  <bruno@clisp.org>
28144
28145         Update for MacOS X 10.5.
28146         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28147         MacOS X; the test fails on MacOS X 10.5.8.
28148         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28149         about MacOS X.
28150
28151 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28152
28153         bootstrap: add bootstrap_sync option.
28154         See discussion at
28155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28157         * build-aux/bootstrap: Accept --bootstrap-sync to update
28158         bootstrap if it is not identical to the local gnulib's
28159         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28160         enable this by default.  Accept --no-bootstrap-sync to disable
28161         it.
28162
28163 2010-11-20  Bruno Haible  <bruno@clisp.org>
28164
28165         Ensure that <features.h> is included before __GLIBC__ is tested.
28166         * lib/printf-parse.h: Include <features.h>.
28167         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28168         Reported by Mike Frysinger <vapier@gentoo.org>.
28169
28170         Ensure that <features.h> is included before __GLIBC__ is tested.
28171         * lib/wchar.in.h: Include <features.h>.
28172         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28173         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28174         Reported by Mike Frysinger <vapier@gentoo.org>.
28175
28176         Ensure that <features.h> is included before __GLIBC__ is tested.
28177         * lib/arpa_inet.in.h: Include <features.h>.
28178         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28179         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28180         Reported by Mike Frysinger <vapier@gentoo.org>.
28181
28182         Ensure that <features.h> is included before __GLIBC__ is tested.
28183         * build-aux/link-warning.h: Include <features.h>.
28184         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28185         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28186         Reported by Mike Frysinger <vapier@gentoo.org>.
28187
28188         Ensure that <features.h> is included before __GLIBC__ is tested.
28189         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28190         Reported by Mike Frysinger <vapier@gentoo.org>.
28191
28192 2010-11-20  Bruno Haible  <bruno@clisp.org>
28193
28194         memmem: Fix autoconf test.
28195         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28196
28197 2010-11-20  Bruno Haible  <bruno@clisp.org>
28198
28199         Port to uClibc.
28200         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28201         * lib/fcntl.in.h: Likewise.
28202         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28203         * lib/mbrtowc.c (mbrtowc): Likewise.
28204         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28205         * lib/strerror_r.c: Likewise.
28206         * lib/unistr/u8-strnlen.c: Likewise.
28207         * lib/vasnprintf.c (decimal_point_char): Likewise.
28208         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28209         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28210         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28211         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28212         * tests/test-sigaction.c (handler, main): Likewise.
28213         * lib/freading.h: Treat uClibc like a non-glibc platform.
28214         * lib/freading.c: Likewise.
28215         * lib/gettext.h: Likewise.
28216         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28217         Likewise.
28218         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28219         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28220         * lib/propername.c (proper_name_utf8): Likewise.
28221         * lib/spawn.in.h: Likewise.
28222         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28223         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28224         mem_cd_iconveh_internal): Likewise.
28225         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28226         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28227         strstr, strcasestr): Likewise.
28228         * lib/unicodeio.c (unicode_to_mb): Likewise.
28229         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28230         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28231         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28232         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28233         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28234         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28235         * lib/unistr/u8-stpncpy.c: Likewise.
28236         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28237         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28238         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28239         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28240         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28241         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28242         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28245         Likewise.
28246         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28247         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28248         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28251         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28252         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28253         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28254         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28255         * tests/test-striconveha.c (main): Likewise.
28256         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28257         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28258         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28259         * doc/posix-functions/getline.texi: Likewise.
28260         Reported by Mike Frysinger <vapier@gentoo.org>.
28261
28262 2010-11-20  Bruno Haible  <bruno@clisp.org>
28263
28264         nproc: Fix condition.
28265         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28266         HAVE_PTHREAD_AFFINITY_NP.
28267
28268 2010-11-20  Bruno Haible  <bruno@clisp.org>
28269
28270         Fix a comment.
28271         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28272
28273 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28274
28275         ftoastr: don't assume snprintf
28276         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28277         Implement a subset of snprintf here, by using sprintf safely.
28278         * modules/ftoastr (Depends-on): Remove snprintf.
28279
28280 2010-11-19  Jim Meyering  <meyering@redhat.com>
28281
28282         test-rename.h: fix compilation failure
28283         * tests/test-rename.h (test_rename): Add omitted "}".
28284
28285 2010-11-17  Jim Meyering  <meyering@redhat.com>
28286
28287         maint.mk: add a URL discussing the no-@acronym policy
28288         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28289
28290 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28291
28292         ftoastr: depend on snprintf, improve comments
28293         * lib/ftoastr.c: Also mention Loitsch's draft.
28294         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28295         needed in the current implementation, but it might simplify
28296         speeding up the code later.
28297         * modules/ftoastr: Depend on snprintf; this improves portability.
28298         Suggested by Bruno Haible in the same email.
28299
28300         ftoastr: port to hosts lacking strtof and strtold
28301         Problem reported by Bruno Haible in
28302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28303         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28304         environment and strtold (and presumably strtof) are not available.
28305         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28306         (configure.ac): Require gl_C99_STRTOLD.
28307
28308 2010-11-18  Bruno Haible  <bruno@clisp.org>
28309
28310         c-strtold: Avoid link error on AIX 7.
28311         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28312         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28313         (gl_C_STRTOLD): Test whether strtold_l exists.
28314         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28315
28316 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28317
28318         intprops: new macro INT_BITS_STRLEN_BOUND
28319         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28320         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28321         not exposed.  Also, it uses a slightly tighter bound than before;
28322         though this makes no practical difference, we might as well be as
28323         tight as we easily can.
28324
28325         ftoastr: new module, for lossless conversion of floats to short strings
28326         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28327         * modules/ftoastr: New files.
28328
28329 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28330
28331         bootstrap: port to Solaris sed
28332         * build-aux/bootstrap (get_version): Port to Solaris sed.
28333         See Ralf Wildenhues's note in
28334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28335
28336 2010-11-14  Jim Meyering  <meyering@redhat.com>
28337
28338         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28339         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28340         and move definition closer to sole use.
28341
28342 2010-11-13  Jim Meyering  <meyering@redhat.com>
28343
28344         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28345         Now we require at least autoconf-2.59, which means the work-around
28346         is no longer needed.
28347         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28348         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28349         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28350         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28351         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28352
28353 2010-11-13  Bruno Haible  <bruno@clisp.org>
28354
28355         rename, renameat: Avoid test failures at NFS mounted locations.
28356         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28357         functions.
28358         (test_rename): Use assert_nonexistent.
28359         * tests/test-rename.c: Include <dirent.h>.
28360         * tests/test-renameat.c: Likewise.
28361         Reported by Gary V. Vaughan <gary@gnu.org>.
28362
28363         rename, renameat: Document Linux bug with NFS
28364         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28365         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28366         * doc/posix-functions/renameat.texi: Likewise.
28367         Suggested by Eric Blake.
28368
28369 2010-11-13  Bruno Haible  <bruno@clisp.org>
28370
28371         rename test: Add comments.
28372         * tests/test-rename.h (test_rename): Add structure and comments.
28373
28374 2010-11-13  Eric Blake  <eblake@redhat.com>
28375
28376         maintainer-makefile: cover a few more files
28377         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28378         scripts generated within C files, for libvirt.
28379
28380 2010-11-13  Bruno Haible  <bruno@clisp.org>
28381
28382         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28383         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28384         character, return the number of bytes that belong together, not always
28385         1.
28386         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28387         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28388         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28389         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28390         number of bytes of an invalid character.
28391         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28392         (main): Invoke it.
28393         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28394         results.
28395         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28396         malformed byte sequences.
28397         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28398         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28399         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28400         Reported by Ben Pfaff and Paolo Bonzini.
28401
28402 2010-11-13  Bruno Haible  <bruno@clisp.org>
28403
28404         openat: Work around glibc bug with fchownat() and empty file names.
28405         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28406         (gl_FUNC_FCHOWNAT): Invoke it.
28407         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28408         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28409         Reported by Gary V. Vaughan <gary@gnu.org>.
28410
28411 2010-11-13  Bruno Haible  <bruno@clisp.org>
28412
28413         openat: Ensure autoconf macro ordering.
28414         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28415         gl_USE_SYSTEM_EXTENSIONS.
28416         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28417
28418 2010-11-13  Bruno Haible  <bruno@clisp.org>
28419
28420         Update comments.
28421         * lib/unistr/u8-check.c: Update file name in comments.
28422         * lib/unistr/u8-mblen.c: Likewise.
28423         * lib/unistr/u8-prev.c: Likewise.
28424         * lib/unistr/u8-strmblen.c: Likewise.
28425         * lib/unistr/u8-strmbtouc.c: Likewise.
28426
28427 2010-11-13  Jim Meyering  <meyering@redhat.com>
28428
28429         tests: avoid test failure on Solaris 10 due to lack of PATH export
28430         * tests/test-update-copyright.sh: Don't forget to export PATH.
28431
28432         init.sh: ensure that IFS is defined, just in case...
28433         * tests/init.sh (setup_): Ensure that IFS is defined,
28434         so that saving and restoring it works as expected.  This
28435         appears to be useful at least for an old version of dash
28436         from a long time ago (RH 6).  See here for details:
28437         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28438
28439         maint.mk: tighten "test a == b" check
28440         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28441         test to files that contain something like #!/bin/sh.
28442         Without this, coreutils would get two false positives in
28443         the comments of C source files.
28444
28445 2010-11-12  Eric Blake  <eblake@redhat.com>
28446
28447         bootstrap: fix typo in previous attempt
28448         * build-aux/bootstrap (buildreq): Correct the grouping.
28449         Reported by Paul Eggert.
28450
28451         maintainer-makefile: prohibit test x == x
28452         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28453         Based on a report by Matthias Bolte.
28454
28455         bootstrap: allow FreeBSD gzip
28456         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28457         which has no '.' and goes to stderr.
28458         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28459         Reported by Matthias Bolte.
28460
28461         maintainer-makefile: check for i18n setup
28462         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28463         will likely work.
28464
28465 2010-11-12  Bruno Haible  <bruno@clisp.org>
28466
28467         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28468         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28469         * lib/nanosleep.c (nanosleep): Likewise.
28470
28471 2010-11-11  Bruno Haible  <bruno@clisp.org>
28472
28473         fcntl-h: Fix for use of C++ on glibc systems.
28474         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28475         also on glibc systems in C++ mode.
28476         Reported by Gary V. Vaughan <gary@gnu.org>.
28477
28478 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28479
28480         mknod: avoid false failure with dash
28481         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28482
28483 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         unlink: Fix "is it should" typo in diagnostic.
28486         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28487         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28488
28489 2010-11-11  Bruno Haible  <bruno@clisp.org>
28490
28491         Tests for module 'strerror_r-posix'.
28492         * modules/strerror_r-posix-tests: New file.
28493         * tests/test-strerror_r.c: New file.
28494         * tests/test-string-c++.cc: Check the signature of strerror_r.
28495
28496         New module 'strerror_r-posix'.
28497         * lib/string.in.h (strerror_r): New declaration.
28498         * lib/strerror_r.c: New file.
28499         * m4/strerror_r.m4: New file.
28500         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28501         of strerror_r.
28502         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28503         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28504         * modules/strerror_r-posix: New file.
28505         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28506         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28507         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28508         portability problems.
28509
28510 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28511
28512         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28513         line is also considered for output. Quoted function name in shell
28514         command, so temporary files for functions like MyClass::operator()
28515         are removed correctly without errors.
28516
28517 2010-11-09  Bruno Haible  <bruno@clisp.org>
28518
28519         * doc/posix-functions/strerror.texi: List more failing platforms.
28520
28521         * doc/posix-functions/strerror.texi: Add a comment.
28522
28523 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28524
28525         fdopendir: fix bug on MacOS X when low on file descriptors
28526
28527         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28528         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28529         All callers changed.
28530         (fdopendir): Invoke save_cwd at the top level, not after using
28531         multiple dup() calls to use up file descriptors.  Then retry
28532         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28533         less than the maximum number of open file descriptors, because
28534         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28535         on Mac OS X 10.6.4 for tar 1.24
28536         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28537         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28538         and for tar 1.25
28539         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28540
28541 2010-11-07  Bruno Haible  <bruno@clisp.org>
28542
28543         vasnprintf: Support I flag on glibc systems.
28544         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28545         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28546         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28547         snprintf function.
28548         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28549         glibc systems.
28550         * tests/test-vasnprintf-posix3.c: New file.
28551         * modules/vasnprintf-posix-tests (Files): Add it.
28552         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28553
28554 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28555
28556         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28557         * MODULES.html.sh: For compiler warnings, use name
28558         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28559
28560 2010-11-05  Eric Blake  <eblake@redhat.com>
28561
28562         ceil, floor: avoid spurious failure with icc
28563         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28564         [denormals-as-zero] when optimizing without -mieee-fp option.
28565         * tests/test-floorf2.c (floorf_reference): Likewise.
28566         * tests/test-ceilf1.c (dummy): New function.
28567         (main): Use it to outsmart icc's optimization.
28568         * tests/test-floorf1.c (dummy, main): Likewise.
28569
28570         tests: require working signbit
28571         * modules/ceilf-tests (Depends-on): Add signbit.
28572         * modules/ceill-tests (Depends-on): Likewise.
28573         * modules/floorf-tests (Depends-on): Likewise.
28574         * modules/floorl-tests (Depends-on): Likewise.
28575         * modules/round-tests (Depends-on): Likewise.
28576         * modules/roundf-tests (Depends-on): Likewise.
28577         * modules/roundl-tests (Depends-on): Likewise.
28578         * modules/trunc-tests (Depends-on): Likewise.
28579         * modules/truncf-tests (Depends-on): Likewise.
28580         * modules/truncl-tests (Depends-on): Likewise.
28581
28582         strtod: work around icc bug
28583         * lib/strtod.c (minus_zero): Define to working value.
28584         (strtod): Use it to avoid icc bug.
28585
28586         copysign: enhance tests
28587         * modules/copysign-tests (Files): Add minus-zero.h.
28588         * tests/test-copysign.c (main): Also test zeros.
28589
28590 2010-11-04  Eric Blake  <eblake@redhat.com>
28591
28592         ceil, floor, round, trunc: enhance tests of -0
28593         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28594         * tests/test-ceill.c (main): Likewise.
28595         * tests/test-floorf1.c (main): Likewise.
28596         * tests/test-floorl.c (main): Likewise.
28597         * tests/test-round1.c (main): Likewise.
28598         * tests/test-roundf1.c (main): Likewise.
28599         * tests/test-roundl.c (main): Likewise.
28600         * tests/test-trunc1.c (main): Likewise.
28601         * tests/test-truncf1.c (main): Likewise.
28602         * tests/test-truncl.c (main): Likewise.
28603
28604 2010-11-04  Eric Blake  <eblake@redhat.com>
28605
28606         frexp, tests: work around ICC bug with -zero
28607         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28608         works with more compilers.
28609         * tests/minus-zero.h: New file.
28610         * modules/ceilf-tests (Files): Include it.
28611         * modules/ceill-tests (Files): Likewise.
28612         * modules/floorf-tests (Files): Likewise.
28613         * modules/floorl-tests (Files): Likewise.
28614         * modules/frexp-nolibm-tests (Files): Likewise.
28615         * modules/frexp-tests (Files): Likewise.
28616         * modules/frexpl-nolibm-tests (Files): Likewise.
28617         * modules/frexpl-tests (Files): Likewise.
28618         * modules/isnan-tests (Files): Likewise.
28619         * modules/isnand-nolibm-tests (Files): Likewise.
28620         * modules/isnand-tests (Files): Likewise.
28621         * modules/isnanf-nolibm-tests (Files): Likewise.
28622         * modules/isnanf-tests (Files): Likewise.
28623         * modules/isnanl-nolibm-tests (Files): Likewise.
28624         * modules/isnanl-tests (Files): Likewise.
28625         * modules/round-tests (Files): Likewise.
28626         * modules/roundf-tests (Files): Likewise.
28627         * modules/roundl-tests (Files): Likewise.
28628         * modules/ldexpl-tests (Files): Likewise.
28629         * modules/signbit-tests (Files): Likewise.
28630         * modules/snprintf-posix-tests (Files): Likewise.
28631         * modules/sprintf-posix-tests (Files): Likewise.
28632         * modules/strtod-tests (Files): Likewise.
28633         * modules/trunc-tests (Files): Likewise.
28634         * modules/truncf-tests (Files): Likewise.
28635         * modules/truncl-tests (Files): Likewise.
28636         * modules/vsnprintf-posix-tests (Files): Likewise.
28637         * modules/vsprintf-posix-tests (Files): Likewise.
28638         * modules/vasnprintf-posix-tests (Files): Likewise.
28639         * modules/vasprintf-posix-tests (Files): Likewise.
28640         * tests/test-ceilf1.c (main): Use it.
28641         * tests/test-ceill.c (main): Likewise.
28642         * tests/test-floorf1.c (main): Likewise.
28643         * tests/test-floorl.c (main): Likewise.
28644         * tests/test-frexp.c (main): Likewise.
28645         * tests/test-frexpl.c (main): Likewise.
28646         * tests/test-isnan.c (main): Likewise.
28647         * tests/test-isnand.h (main): Likewise.
28648         * tests/test-isnanf.h (main): Likewise.
28649         * tests/test-isnanl.h (main): Likewise.
28650         * tests/test-ldexpl.c (main): Likewise.
28651         * tests/test-round.c (main): Likewise.
28652         * tests/test-roundf.c (main): Likewise.
28653         * tests/test-roundl.c (main): Likewise.
28654         * tests/test-signbit.c (test_signbitf, test_signbitd)
28655         (test_signbitl): Likewise.
28656         * tests/test-snprintf-posix.h (test_function): Likewise.
28657         * tests/test-sprintf-posix.h (test_function): Likewise.
28658         * tests/test-strtod.c (main): Likewise.
28659         * tests/test-trunc1.c (main): Likewise.
28660         * tests/test-truncf1.c (main): Likewise.
28661         * tests/test-truncl.c (main): Likewise.
28662
28663         isnanl: work around icc bug
28664         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28665
28666 2010-11-03  Eric Blake  <eblake@redhat.com>
28667
28668         tests: fix compiler warnings
28669         * tests/test-getopt.h (test_getopt): Fix condition.
28670         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28671         * tests/test-pipe2.c (main): Likewise.
28672         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28673
28674         utimens: fix broken m4 test
28675         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28676
28677 2010-10-28  Bruno Haible  <bruno@clisp.org>
28678
28679         posix_spawn*, getdtablesize: Relax license.
28680         * modules/posix_spawn (License): Change to LGPLv2+.
28681         * modules/posix_spawnp (License): Likewise.
28682         * modules/posix_spawn-internal (License): Likewise.
28683         * modules/posix_spawnattr_init (License): Likewise.
28684         * modules/posix_spawnattr_getflags (License): Likewise.
28685         * modules/posix_spawnattr_setflags (License): Likewise.
28686         * modules/posix_spawnattr_getpgroup (License): Likewise.
28687         * modules/posix_spawnattr_setpgroup (License): Likewise.
28688         * modules/posix_spawnattr_getschedparam (License): Likewise.
28689         * modules/posix_spawnattr_setschedparam (License): Likewise.
28690         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28691         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28692         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28693         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28694         * modules/posix_spawnattr_getsigmask (License): Likewise.
28695         * modules/posix_spawnattr_setsigmask (License): Likewise.
28696         * modules/posix_spawnattr_destroy (License): Likewise.
28697         * modules/posix_spawn_file_actions_init (License): Likewise.
28698         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28699         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28700         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28701         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28702         * modules/getdtablesize (License): Likewise.
28703         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28704
28705 2010-10-26  Bruno Haible  <bruno@clisp.org>
28706
28707         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28708         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28709         Cygwin and mingw.
28710         Suggested by Eric Blake.
28711
28712 2010-10-26  Bruno Haible  <bruno@clisp.org>
28713
28714         stdio: Work around compilation error due to renameat() on Solaris 10.
28715         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28716         * lib/renameat.c: Don't include <unistd.h> here.
28717         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28718         Reported by Paul Eggert and Eric Blake.
28719
28720 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28721
28722         renameat: port to Solaris 10, which declares renameat in unistd.h
28723
28724         * lib/renameat.c: Include unistd.h before stdio.h, because
28725         Solaris 10 declares renameat in unistd.h.  Problem encountered
28726         when building GNU tar 1.24 on Solaris 10.
28727
28728 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28729
28730         fdopendir: fix C89 compilation
28731         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28732         compilers.
28733
28734 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28735
28736         inttostr: simplify by removing unnecessary redundancy
28737         * lib/anytostr.c: Don't include verify.h.
28738         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28739         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28740         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28741         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28742         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28743         Likewise.
28744         * modules/inttostr (Depends-on): Remove 'verify'.
28745
28746 2010-10-23  Bruno Haible  <bruno@clisp.org>
28747
28748         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28749         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28750         Reported by Eric Blake.
28751
28752 2010-10-23  Bruno Haible  <bruno@clisp.org>
28753
28754         Tests: Fix LOCALE_JA on MirBSD 10.
28755         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28756         to an UTF-8 locale.
28757         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28758         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28759         Reported by Eric Blake.
28760
28761 2010-10-21  Bruno Haible  <bruno@clisp.org>
28762
28763         nl_langinfo test: Avoid test failure on NetBSD 5.
28764         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28765         Reported by Eric Blake.
28766
28767 2010-10-21  Eric Blake  <eblake@redhat.com>
28768
28769         c-stack: work around libsigsegv 2.8 bug
28770         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28771         overflow on at least PowerPC64.
28772
28773 2010-10-17  Bruno Haible  <bruno@clisp.org>
28774
28775         userspec: Drop redundant file.
28776         * modules/userspec (Files): Remove lib/inttostr.h.
28777
28778 2010-10-17  Bruno Haible  <bruno@clisp.org>
28779
28780         nl_langinfo tests: Silence some warnings.
28781         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28782         Reported by Jim Meyering.
28783
28784 2010-10-17  Bruno Haible  <bruno@clisp.org>
28785
28786         Make use of GCC's attribute __alloc_size__.
28787         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28788         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28789         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28790         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28791         __alloc_size__.
28792         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28793         Suggested by Jim Meyering.
28794
28795 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28796
28797         bootstrap: anchor .gitignore entries.
28798         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28799         with...
28800         (insert_vc_ignore): ... this new function, which prepends `/' to
28801         all .gitignore entries before passing them to
28802         insert_sorted_if_absent.
28803
28804 2010-10-16  Bruno Haible  <bruno@clisp.org>
28805
28806         nextafter: Fix configure check.
28807         * modules/nextafter (configure.ac): Correct expected prototype.
28808
28809 2010-10-16  Bruno Haible  <bruno@clisp.org>
28810
28811         termios: Update documentation.
28812         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28813
28814 2010-10-16  Bruno Haible  <bruno@clisp.org>
28815
28816         tests: Make them compile with TinyCC.
28817         * tests/test-strstr.c (main): Remove parentheses around array
28818         initializer.
28819
28820 2010-10-15  Eric Blake  <eblake@redhat.com>
28821
28822         ignore-value: make header idempotent
28823         * lib/ignore-value.h: Add double-inclusion guards.
28824         Reported by Stefan Berger.
28825
28826 2010-10-15  Jim Meyering  <meyering@redhat.com>
28827
28828         GNUmakefile: handle "stable" target, not "major"
28829         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28830         lists in maint.mk and announce-gen.  Without this, "make stable"
28831         would fail to ensure that $(VERSION) is up to date.
28832
28833 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28834
28835         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28836         & co.
28837
28838 2010-10-14  Bruno Haible  <bruno@clisp.org>
28839
28840         vasnprintf: Don't set errno to 0.
28841         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28842         block that sets it to 0.
28843         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28844
28845 2010-10-14  Bruno Haible  <bruno@clisp.org>
28846
28847         socketlib: Fix.
28848         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28849         gl_PREREQ_SYS_H_WINSOCK2.
28850         Reported by Ian Beckwith <ianb@erislabs.net>.
28851
28852 2010-10-13  Jim Meyering  <meyering@redhat.com>
28853
28854         test-select-stdin.c: avoid warn_unused_result warnings
28855         * tests/test-select-stdin.c: Include "macros.h".
28856         ASSERT that read and fflush succeed.
28857
28858 2010-10-13  Jim Meyering  <meyering@redhat.com>
28859
28860         git-version-gen: do require git-VC'd files in cwd
28861         * build-aux/git-version-gen: Reject a git version string
28862         if there are no commits associated with the current directory.
28863         This avoids an unlikely false-positive (unrelated dir whose parent
28864         repository also contains a tag matching v*), as pointed out
28865         by Giuseppe Scrivano in
28866         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28867
28868 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28869
28870         argv-iter: omit nonconforming declaration
28871         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28872         enum arg_iter_err declaration, which doesn't conform to C99.
28873         Solaris 10 cc warns about this.
28874
28875 2010-10-13  Eric Blake  <eblake@redhat.com>
28876
28877         termios: fix compilation on mingw
28878         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28879         (gl_TERMIOS_H): Adjust it on mingw.
28880         * modules/termios (Makefile.am): Substitute new key.
28881         * lib/termios.in.h (includes): Make include_next conditional.
28882         * doc/posix-headers/termios.texi (termios.h): Update
28883         documentation.
28884         Reported by Daniel P. Berrange.
28885
28886 2010-10-13  Jim Meyering  <meyering@redhat.com>
28887
28888         git-version-gen: don't require that .git/ be in the current dir
28889         * build-aux/git-version-gen: Adjust this script so that it works
28890         when run from any working directory beneath the top-level .git/-
28891         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28892         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28893
28894         test-select: avoid warn_unused_result warnings
28895         * tests/test-select.c: Include "macros.h".
28896         ASSERT that each call to read, write, and pipe succeeds.
28897         While not technically required, also check each "close".
28898         * modules/select-tests (Files): Add tests/macros.h.
28899
28900         test-symlinkat: remove declaration of unused local
28901         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28902
28903         test-inttostr: avoid shadowing warnings
28904         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28905         and use malloc rather than the stack for the same reason as
28906         mentioned in the comment justifying the other allocation.
28907
28908 2010-10-11  Bruno Haible  <bruno@clisp.org>
28909
28910         stdlib: Allow multiple gnulib generated replacements to coexist.
28911         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28912         Reported by Sam Steingold <sds@gnu.org>.
28913
28914 2010-10-11  Jim Meyering  <meyering@redhat.com>
28915
28916         fix a documentation typo
28917         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28918
28919 2010-10-11  Eric Blake  <eblake@redhat.com>
28920
28921         futimens: work around Solaris 11 bug
28922         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28923         * tests/test-futimens.h (test_futimens): Enhance, rather than
28924         weaken test.
28925         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28926
28927 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28928
28929         Indentation.
28930         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28931         higher-level operators more to the left.
28932
28933 2010-10-11  Jim Meyering  <meyering@redhat.com>
28934
28935         test-futimens: avoid unwarranted test failure on Solaris 5.11
28936         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28937         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28938         because it tries to dereference the NULL name argument.
28939
28940 2010-10-11  Bruno Haible  <bruno@clisp.org>
28941
28942         Indentation.
28943         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28944         indentation.
28945
28946 2010-10-11  Jim Meyering  <meyering@redhat.com>
28947
28948         spawn.in.h: make indentation consistent with parentheses
28949         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28950         Make indentation consistent with parentheses.
28951
28952 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28953
28954         Fix mismatched parens in previous commit
28955         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28956         parens.
28957
28958 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28959
28960         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28961
28962         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28963         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28964         * lib/malloca.c: Include "verify.h".
28965         (verify1): Remove, replacing with a verify call.
28966         * lib/relocwrapper.c (verify1): Likewise.
28967         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28968         Likewise.
28969         * modules/malloca (Depends-on): Add 'verify'.
28970         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28971         * modules/vasnprintf (Depends-on): Add 'verify'.
28972         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28973         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28974         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28975         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28976         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28977         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28978         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28979
28980         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28981
28982         Formerly the style was sometimes 2*X - 1, because the C standard
28983         was wrongly thought to disallow ?: in integral constant expressions.
28984         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28985         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28986         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28987         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28988         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28989         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28990         verify that time_t cannot be floating.
28991
28992 2010-10-08  Eric Blake  <eblake@redhat.com>
28993
28994         time: enforce recent POSIX ruling that time_t is integral
28995         * lib/time.in.h (__time_t_must_be_integral): Detect any
28996         problematic systems, allowing the rest of gnulib to assume POSIX.
28997
28998 2010-10-08  Jim Meyering  <meyering@redhat.com>
28999
29000         fdopendir: fix a bug on systems lacking openat and /proc support
29001         OpenBSD 4.7 is one such system.  The most noticeable effect was
29002         failure of any application making nontrivial use of fts: rm, du,
29003         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29004           ./rm: traversal failed: `a': Bad file descriptor
29005         Debugging that, you see that even though FD 6 was closed just
29006         prior to the opendir call in fd_clone_opendir, its resulting
29007         dir->dd_fd was 8, rather than the expected value of 6:
29008
29009         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29010         93                close (fd);
29011         (gdb) n
29012         94                dir = fd_clone_opendir (dupfd);
29013         (gdb) n
29014         95                saved_errno = errno;
29015         (gdb) p dir->dd_fd
29016         $11 = 8
29017
29018         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29019         The problem is that on OpenBSD, fd_clone_opendir has to resort
29020         to using the old-style save/restore CWD mechanism, due to its
29021         lack of openat/proc support, and *that* would steal the FD (6)
29022         that opendir was supposed to use.
29023
29024         The fix is to squirrel away the desired FD so that save_cwd uses a
29025         different one, and then free the dest FD right before calling opendir.
29026         That guarantees opendir will use the required file descriptor.
29027
29028         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29029
29030 2010-10-08  Bruno Haible  <bruno@clisp.org>
29031
29032         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29033         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29034
29035 2010-10-08  Bruno Haible  <bruno@clisp.org>
29036
29037         nanosleep: Make replacement POSIX compliant.
29038         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29039         is out of range.
29040         Reported by Jim Meyering.
29041
29042 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29043
29044         bootstrap: add hook for altering gnulib.mk, for Bison
29045         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29046         the Bison bootstrapping process can rewrite file names and variables
29047         in this file before later parts of 'bootstrap' use the file.
29048         Bison wants to include lib/gnulib.mk from the top-level makefile,
29049         so it needs the file names in this file to be relative to the top
29050         level, not relative to lib; plus it needs variable names to be
29051         rewritten.
29052         (slurp): Use the new function.
29053
29054         bootstrap: reformat for readability
29055         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29056
29057 2010-10-08  Eric Blake  <eblake@redhat.com>
29058
29059         docs: update cygwin progress
29060         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29061         1.7.7.
29062         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29063         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29064         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29065         * doc/posix-functions/carg.texi (carg): Likewise.
29066         * doc/posix-functions/cargf.texi (cargf): Likewise.
29067         * doc/posix-functions/casin.texi (casin): Likewise.
29068         * doc/posix-functions/casinf.texi (casinf): Likewise.
29069         * doc/posix-functions/casinh.texi (casinh): Likewise.
29070         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29071         * doc/posix-functions/catan.texi (catan): Likewise.
29072         * doc/posix-functions/catanf.texi (catanf): Likewise.
29073         * doc/posix-functions/catanh.texi (catanh): Likewise.
29074         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29075         * doc/posix-functions/ccos.texi (ccos): Likewise.
29076         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29077         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29078         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29079         * doc/posix-functions/cexp.texi (cexp): Likewise.
29080         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29081         * doc/posix-functions/cimag.texi (cimag): Likewise.
29082         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29083         * doc/posix-functions/clog.texi (clog): Likewise.
29084         * doc/posix-functions/clogf.texi (clogf): Likewise.
29085         * doc/posix-functions/conj.texi (conj): Likewise.
29086         * doc/posix-functions/conjf.texi (conjf): Likewise.
29087         * doc/posix-functions/cpow.texi (cpow): Likewise.
29088         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29089         * doc/posix-functions/cproj.texi (cproj): Likewise.
29090         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29091         * doc/posix-functions/creal.texi (creal): Likewise.
29092         * doc/posix-functions/crealf.texi (crealf): Likewise.
29093         * doc/posix-functions/csin.texi (csin): Likewise.
29094         * doc/posix-functions/csinf.texi (csinf): Likewise.
29095         * doc/posix-functions/csinh.texi (csinh): Likewise.
29096         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29097         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29098         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29099         * doc/posix-functions/ctan.texi (ctan): Likewise.
29100         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29101         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29102         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29103         * doc/posix-headers/complex.texi (complex.h): Likewise.
29104
29105 2010-10-07  Jim Meyering  <meyering@redhat.com>
29106
29107         parse-datetime: avoid compilation failure on OpenBSD 4.7
29108         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29109         This works around a compilation failure on OpenBSD 4.7:
29110         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29111
29112 2010-10-07  Eric Blake  <eblake@redhat.com>
29113
29114         docs: update cygwin progress
29115         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29116         1.7.6.
29117         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29118         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29119         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29120         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29121         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29122         Likewise.
29123         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29124         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29125         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29126         Likewise.
29127         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29128         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29129         Likewise.
29130         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29131         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29132         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29133         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29134         Likewise.
29135         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29136         Likewise.
29137         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29138
29139         docs: update parse-datetime history
29140         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29141         documentation of this function's history and alternatives.
29142
29143         cygwin: use more robust version check
29144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29145         exclude an eventual cygwin 1.9.1.
29146         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29148         (gl_FUNC_STRCASESTR): Likewise.
29149         Reported by Bruno Haible.
29150
29151 2010-10-06  Bruno Haible  <bruno@clisp.org>
29152
29153         string, sys_select: Avoid #including large headers unless necessary.
29154         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29155         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29156         OSF/1, BeOS, Haiku.
29157         Reported by Jim Meyering.
29158
29159 2010-10-05  Eric Blake  <eblake@redhat.com>
29160
29161         memmem, strstr, strcasestr: fix bug with long periodic needle
29162         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29163         periodic needle having false positive.
29164         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29165         and cygwin 1.7.7.
29166         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29167         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29168         (gl_FUNC_STRCASESTR): Likewise.
29169         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29170         * tests/test-memmem.c (main): Expose the bug.
29171         * tests/test-strcasestr.c (main): Likewise.
29172         * tests/test-strstr.c (main): Likewise.
29173         * tests/test-c-strcasestr.c (main): Likewise.
29174         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29175         * doc/posix-functions/strstr.texi (strstr): Likewise.
29176         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29177         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29178
29179 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29180
29181         parse-datetime: do some more renaming
29182         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29183         parse_datetime, not get_date.  Mention the renaming.
29184         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29185         in comments.
29186         * m4/bison.m4: Likewise.
29187
29188 2010-10-05  Eric Blake  <eblake@redhat.com>
29189
29190         parse-datetime: better name than get_date
29191         * NEWS: Reword the deprecation notice.
29192         * modules/get_date: Rename to modules/parse-datetime.
29193         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29194         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29195         * lib/get_date.y: Rename to lib/parse-datetime.y.
29196         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29197         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29198         * doc/getdate.texi: Provide fallback wrapper.
29199         * lib/getdate.h: Move guts, and wrap...
29200         * lib/parse-datetime.h: ...new file.
29201         * lib/parse-datetime.y (get_date): Rename...
29202         (parse_datetime): ...to this.
29203         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29204         (gl_PARSE_DATETIME): ...to this.
29205         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29206         documentation.
29207         * modules/getdate (Files): Provide fallback docs and header.
29208         (Notice, Depends-on): Update references.
29209         * tests/test-parse-datetime.c: Likewise.
29210         * DEPENDENCIES: Likewise.
29211         * MODULES.html.sh (Date and time <time.h>): Likewise.
29212         * doc/parse-datetime.texi (Date input formats)
29213         (Authors of parse_datetime): Likewise.
29214         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29215         (Include): Likewise.
29216         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29217         * gnulib-tool: Likewise.
29218         * m4/bison.m4 (gl_BISON): Likewise.
29219         Suggested by Bruno Haible.
29220
29221 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29222
29223         more ports to Solaris tr, which needs [] around ranges
29224         * gnulib-tool: Solaris tr needs [] around ranges.
29225         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29226         * tests/test-pipe-filter-gi1.c (main): Likewise.
29227         * tests/test-pipe-filter-ii1.c (main): Likewise.
29228
29229 2010-10-05  Eric Blake  <eblake@redhat.com>
29230
29231         bootstrap: fix Solaris regression
29232         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29233         around ranges.
29234         Reported by Pádraig Brady.
29235
29236         bootstrap: work with pkg-config
29237         * build-aux/bootstrap (check_versions): Also transliterate - in
29238         prerequisite name.
29239         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29240         prerequisites that were already found, to avoid confusion.
29241         Reported by Justin Clift.
29242
29243         faccessat: remove unused wrappers
29244         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29245         presence of these wrappers dragged in -lgen on Solaris.
29246         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29247
29248 2010-10-05  Jim Meyering  <meyering@redhat.com>
29249
29250         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29251         * Makefile (sc_pragma_columns): New syntax-check rule.
29252
29253 2010-10-04  Bruno Haible  <bruno@clisp.org>
29254
29255         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29256         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29257         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29258         Reported by Bruce Korb and Eric Blake.
29259
29260 2010-10-04  Bruno Haible  <bruno@clisp.org>
29261
29262         threadlib: Make option --with-libpth-prefix work.
29263         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29264         use $LIBPTH, not just -lpth.
29265
29266 2010-10-04  Bruno Haible  <bruno@clisp.org>
29267
29268         Avoid line length limitation from HP NonStop system header files.
29269         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29270         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29271         * lib/ctype.in.h: Likewise.
29272         * lib/dirent.in.h: Likewise.
29273         * lib/errno.in.h: Likewise.
29274         * lib/fcntl.in.h: Likewise.
29275         * lib/float.in.h: Likewise.
29276         * lib/getopt.in.h: Likewise.
29277         * lib/iconv.in.h: Likewise.
29278         * lib/inttypes.in.h: Likewise.
29279         * lib/langinfo.in.h: Likewise.
29280         * lib/locale.in.h: Likewise.
29281         * lib/math.in.h: Likewise.
29282         * lib/netdb.in.h: Likewise.
29283         * lib/netinet_in.in.h: Likewise.
29284         * lib/poll.in.h: Likewise.
29285         * lib/pthread.in.h: Likewise.
29286         * lib/pty.in.h: Likewise.
29287         * lib/sched.in.h: Likewise.
29288         * lib/se-selinux.in.h: Likewise.
29289         * lib/search.in.h: Likewise.
29290         * lib/signal.in.h: Likewise.
29291         * lib/spawn.in.h: Likewise.
29292         * lib/stdarg.in.h: Likewise.
29293         * lib/stddef.in.h: Likewise.
29294         * lib/stdint.in.h: Likewise.
29295         * lib/stdio.in.h: Likewise.
29296         * lib/stdlib.in.h: Likewise.
29297         * lib/string.in.h: Likewise.
29298         * lib/strings.in.h: Likewise.
29299         * lib/sys_file.in.h: Likewise.
29300         * lib/sys_ioctl.in.h: Likewise.
29301         * lib/sys_select.in.h: Likewise.
29302         * lib/sys_socket.in.h: Likewise.
29303         * lib/sys_stat.in.h: Likewise.
29304         * lib/sys_time.in.h: Likewise.
29305         * lib/sys_times.in.h: Likewise.
29306         * lib/sys_utsname.in.h: Likewise.
29307         * lib/sys_wait.in.h: Likewise.
29308         * lib/sysexits.in.h: Likewise.
29309         * lib/termios.in.h: Likewise.
29310         * lib/time.in.h: Likewise.
29311         * lib/unistd.in.h: Likewise.
29312         * lib/wchar.in.h: Likewise.
29313         * lib/wctype.in.h: Likewise.
29314         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29315         * modules/ctype (Makefile.am): Likewise.
29316         * modules/dirent (Makefile.am): Likewise.
29317         * modules/errno (Makefile.am): Likewise.
29318         * modules/fcntl-h (Makefile.am): Likewise.
29319         * modules/float (Makefile.am): Likewise.
29320         * modules/getopt-posix (Makefile.am): Likewise.
29321         * modules/iconv-h (Makefile.am): Likewise.
29322         * modules/inttypes (Makefile.am): Likewise.
29323         * modules/langinfo (Makefile.am): Likewise.
29324         * modules/locale (Makefile.am): Likewise.
29325         * modules/math (Makefile.am): Likewise.
29326         * modules/netdb (Makefile.am): Likewise.
29327         * modules/netinet_in (Makefile.am): Likewise.
29328         * modules/poll-h (Makefile.am): Likewise.
29329         * modules/pthread (Makefile.am): Likewise.
29330         * modules/pty (Makefile.am): Likewise.
29331         * modules/sched (Makefile.am): Likewise.
29332         * modules/search (Makefile.am): Likewise.
29333         * modules/selinux-h (Makefile.am): Likewise.
29334         * modules/signal (Makefile.am): Likewise.
29335         * modules/spawn (Makefile.am): Likewise.
29336         * modules/stdarg (Makefile.am): Likewise.
29337         * modules/stddef (Makefile.am): Likewise.
29338         * modules/stdint (Makefile.am): Likewise.
29339         * modules/stdio (Makefile.am): Likewise.
29340         * modules/stdlib (Makefile.am): Likewise.
29341         * modules/string (Makefile.am): Likewise.
29342         * modules/strings (Makefile.am): Likewise.
29343         * modules/sys_file (Makefile.am): Likewise.
29344         * modules/sys_ioctl (Makefile.am): Likewise.
29345         * modules/sys_select (Makefile.am): Likewise.
29346         * modules/sys_socket (Makefile.am): Likewise.
29347         * modules/sys_stat (Makefile.am): Likewise.
29348         * modules/sys_time (Makefile.am): Likewise.
29349         * modules/sys_times (Makefile.am): Likewise.
29350         * modules/sys_utsname (Makefile.am): Likewise.
29351         * modules/sys_wait (Makefile.am): Likewise.
29352         * modules/sysexits (Makefile.am): Likewise.
29353         * modules/termios (Makefile.am): Likewise.
29354         * modules/time (Makefile.am): Likewise.
29355         * modules/unistd (Makefile.am): Likewise.
29356         * modules/wchar (Makefile.am): Likewise.
29357         * modules/wctype (Makefile.am): Likewise.
29358
29359 2010-10-04  Bruno Haible  <bruno@clisp.org>
29360
29361         read-file tests: Avoid a test failure on NonStop Kernel.
29362         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29363         a regular file.
29364         Reported by Joachim Schmitz <schmitz@hp.com>.
29365
29366 2010-10-03  Bruno Haible  <bruno@clisp.org>
29367
29368         gnulib-tool: Fixes for --create-testdir with --libtool.
29369         * gnulib-tool (func_get_automake_snippet): Don't augment
29370         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29371         an executable.
29372         (func_create_testdir): Handle module 'alloca' like func_import.
29373         Reported by Bruce Korb <bruce.korb@gmail.com>.
29374
29375 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29376
29377         Avoid some lines longer than 80 characters.
29378         * lib/stdint.in.h: Break long comment lines.
29379         * lib/math.in.h: Likewise.
29380         (_GL_NUM_UINT_WORDS): New macro, for readability.
29381         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29382         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29383         * lib/stdlib.in.h: Likewise.
29384         * lib/spawn.in.h: Likewise.
29385         * lib/sys_socket.in.h: Update an URL.
29386         * lib/sys_stat.in.h: Break long line.
29387
29388 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29389
29390         Improve pmccabe2html.
29391         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29392         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29393         when the sources change. Remove the line in the HTML about "Used
29394         ranges" (which implied that there might be other unused ranges),
29395         rename "Resume" to "Summary" (easier to understand for more users).
29396         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29397         styles, and some unnecessary blank lines.
29398
29399 2010-10-03  Bruno Haible  <bruno@clisp.org>
29400             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29401
29402         acl: Add support for ACLs on NonStop Kernel.
29403         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29404         Check whether the function aclsort() exists.
29405         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29406         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29407         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29408         (acl_nontrivial [HAVE_ACLSORT]: New function.
29409         (file_has_acl): Implement for NonStop Kernel.
29410         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29411         (qset_acl): Implement for NonStop Kernel.
29412         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29413         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29414         (main): Implement for NonStop Kernel.
29415         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29416         Kernel. Handle this flavor.
29417         * tests/test-set-mode-acl.sh: Likewise.
29418         * tests/test-copy-acl.sh: Likewise.
29419         * tests/test-copy-file.sh: Likewise.
29420
29421 2010-10-03  Bruno Haible  <bruno@clisp.org>
29422
29423         Info about ACLs on NonStop Kernel.
29424         * doc/acl-resources.txt: Add info about NonStop Kernel.
29425         References by Joachim Schmitz <schmitz@hp.com>.
29426
29427 2010-10-02  Bruno Haible  <bruno@clisp.org>
29428
29429         Define missing EDQUOT on NonStop Kernel.
29430         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29431         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29433         missing.
29434         * doc/posix-headers/errno.texi: Mention the NSK bug.
29435         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29436         Reported by Joachim Schmitz <schmitz@hp.com>.
29437
29438 2010-10-02  Bruno Haible  <bruno@clisp.org>
29439
29440         Update doc for POSIX:2008.
29441         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29442         Update URL of POSIX specification.
29443
29444 2010-10-02  Bruno Haible  <bruno@clisp.org>
29445
29446         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29447         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29448         from gnulib, not from Automake.
29449
29450 2010-10-02  Bruno Haible  <bruno@clisp.org>
29451
29452         New module 'system-posix'.
29453         * modules/system-posix: New file.
29454         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29455         module is present.
29456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29457         GNULIB_SYSTEM_POSIX.
29458         * modules/stdlib (Depends-on): Remove sys_wait.
29459         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29460         * doc/posix-functions/system.texi: Mention the new module.
29461         * doc/posix-headers/stdlib.texi: Likewise.
29462         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29463         define test_sys_wait_macros to a no-op.
29464         Reported by Sam Steingold <sds@gnu.org>.
29465
29466 2010-09-30  Bruno Haible  <bruno@clisp.org>
29467
29468         More renaming from 'getdate' to 'get_date'.
29469         * doc/get_date.texi: Renamed from doc/getdate.texi.
29470         * modules/get_date (Files): Update.
29471         * MODULES.html.sh (Date and time <time.h>): Update.
29472         * DEPENDENCIES: Update.
29473         * gnulib-tool: Update comment.
29474         * m4/bison.m4 (gl_BISON): Likewise.
29475         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29476
29477 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29478
29479         bootstrap: support ACLOCAL_FLAGS during aclocal
29480         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29481         can add additional -I dir for third-party .m4 files.
29482
29483 2010-09-30  Eric Blake  <eblake@redhat.com>
29484
29485         bootstrap: use glibtoolize on MacOS
29486         * build-aux/bootstrap (check_versions): Convert libtool into
29487         libtoolize.
29488         (tool search): Move libtool check earlier, and look for
29489         glibtoolize for MacOS.
29490         (gnulib_tool_options): Auto-add --libtool when appropriate.
29491         Reported by Justin Clift.
29492
29493         poll: fix typo that broke test on MacOS
29494         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29495         Reported by Justin Clift.
29496
29497         getdate: rename to get_date
29498         Note: getdate.h is not renamed, to minimize client impact.
29499         * modules/getdate: Mark obsolete.  Move old contents...
29500         * modules/get_date: ...to new module name.
29501         * modules/getdate-tests: Move...
29502         * modules/get_date-tests: ...here.
29503         * m4/getdate.m4: Move...
29504         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29505         * lib/getdate.y: Move...
29506         * lib/get_date.y: ...here.
29507         * tests/test-getdate.c: Move...
29508         * tests/test-get_date.c: ...here.
29509         * doc/posix-functions/getdate.texi (getdate): Update name.
29510         * NEWS: Mention the change.
29511
29512 2010-09-29  Bruno Haible  <bruno@clisp.org>
29513
29514         Separate the module 'waitpid' from the module 'sys_wait'.
29515         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29516         present.
29517         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29518         gl_MODULE_INDICATOR_FOR_TESTS.
29519         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29520         * modules/sys_wait (Depends-on): Remove waitpid.
29521         (Makefile.am): Substitute GNULIB_WAITPID.
29522         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29523         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29524         signature only if the 'waitpid' module is present.
29525         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29526         * NEWS: Mention the change.
29527         * modules/grantpt (Depends-on): Add waitpid.
29528         * modules/wait-process (Depends-on): Likewise.
29529
29530 2010-09-29  Bruno Haible  <bruno@clisp.org>
29531
29532         More tests for module 'sys_wait'.
29533         * modules/sys_wait-c++-tests: New file.
29534         * tests/test-sys_wait-c++.cc: New file.
29535         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29536         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29537
29538 2010-09-29  Bruno Haible  <bruno@clisp.org>
29539
29540         New module 'waitpid'.
29541         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29542         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29543         Don't include <process.h>.
29544         (waitpid): Declare only, using modern idiom.
29545         * m4/waitpid.m4: New file.
29546         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29547         * modules/waitpid: New file.
29548         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29549         (Makefile.am): Update.
29550         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29551
29552 2010-09-28  Bruno Haible  <bruno@clisp.org>
29553
29554         poll: Assume ANSI C.
29555         * lib/poll.c (poll): Use an ANSI C declaration.
29556
29557 2010-09-28  Bruno Haible  <bruno@clisp.org>
29558
29559         poll-h: Create poll.h on all platforms.
29560         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29561         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29562         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29563         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29564         (gl_REPLACE_POLL_H): Don't set POLL_H.
29565         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29566         * modules/poll-h (Depends-on): Add include_next.
29567         (Makefile.am): Create poll.h unconditionally. Substitute also
29568         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29569
29570 2010-09-28  Bruno Haible  <bruno@clisp.org>
29571
29572         Tests for module 'poll-h'.
29573         * modules/poll-h-c++-tests: New file.
29574         * tests/test-poll-h-c++.cc: New file.
29575
29576         Tests for module 'poll-h'.
29577         * modules/poll-h-tests: New file.
29578         * tests/test-poll-h.c: New file.
29579
29580 2010-09-28  Bruno Haible  <bruno@clisp.org>
29581
29582         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29583         * modules/poll-h (Depends-on): Add 'extensions'.
29584
29585 2010-09-28  Bruno Haible  <bruno@clisp.org>
29586
29587         New module 'poll-h'.
29588         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29589         (poll): Use modern idiom.
29590         * modules/poll-h: New file.
29591         * modules/poll (Files): Remove lib/poll.in.h.
29592         (Depends-on): Add poll-h.
29593         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29594         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29595         * m4/poll_h.m4: New file.
29596         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29597         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29598         and invoke gl_REPLACE_POLL_H.
29599         * lib/poll.c: Use common idiom.
29600         * tests/test-poll.c: Likewise.
29601         * doc/posix-headers/poll.texi: Mention the poll-h module.
29602         Suggested by Eric Blake.
29603
29604 2010-09-26  Bruno Haible  <bruno@clisp.org>
29605
29606         sys_wait: Implement WSTOPSIG.
29607         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29608         Reported by Simon Josefsson.
29609
29610 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29611
29612         stdlib, sys_wait: Avoid compilation error on mingw.
29613         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29614
29615 2010-09-26  Bruno Haible  <bruno@clisp.org>
29616
29617         stdlib tests: Avoid code duplication.
29618         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29619         * modules/sys_wait-tests (Files): Likewise.
29620         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29621         * tests/test-stdlib.c: Include test-sys_wait.h.
29622         (main): Invoke test_sys_wait_macros.
29623         * tests/test-sys_wait.c: Include test-sys_wait.h.
29624         (main): Invoke test_sys_wait_macros.
29625
29626 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29627
29628         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29629         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29630         sure Windows sockets are working before calling getaddrinfo.
29631         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29632         * doc/gnulib.texi (Windows sockets): Fix typo.
29633
29634 2010-09-25  Bruno Haible  <bruno@clisp.org>
29635
29636         Tests for module 'regex-quote'.
29637         * modules/regex-quote-tests: New file.
29638         * tests/test-regex-quote.c: New file.
29639
29640         New module 'regex-quote'.
29641         * lib/regex-quote.h: New file.
29642         * lib/regex-quote.c: New file.
29643         * modules/regex-quote: New file.
29644         Suggested by Reuben Thomas <rrt@sc3d.org>.
29645
29646 2010-09-24  Bruno Haible  <bruno@clisp.org>
29647
29648         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29649         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29650
29651 2010-09-23  Bruno Haible  <bruno@clisp.org>
29652
29653         setenv: Relax license.
29654         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29655         Blake.
29656         Requested by Eric Blake.
29657
29658 2010-09-22  Bruno Haible  <bruno@clisp.org>
29659
29660         termios: Relax license.
29661         * modules/termios (License): Change to LGPLv2+.
29662         Requested by Eric Blake.
29663
29664 2010-09-22  Bruno Haible  <bruno@clisp.org>
29665
29666         threadlib: Allow the package to change the default to 'no'.
29667         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29668         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29669         Reported by Paul Eggert.
29670
29671 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29672             Bruno Haible  <bruno@clisp.org>
29673
29674         Fix endless loop in mbmemcasecoll.
29675         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29676         byte.
29677         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29678
29679 2010-09-22  Bruno Haible  <bruno@clisp.org>
29680
29681         Tests for module 'memcoll'.
29682         * modules/memcoll-tests: New file.
29683         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29684
29685         memcoll, xmemcoll: Clarify size vs. length.
29686         * modules/memcoll.c (memcoll0): Clarify specification.
29687         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29688         passed to collate_error.
29689
29690 2010-09-22  Bruno Haible  <bruno@clisp.org>
29691
29692         Tests for module 'memcasecmp'.
29693         * modules/memcasecmp-tests: New file.
29694         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29695
29696 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29697
29698         * lib/pthread.in.h: Add split double-inclusion guard, and include
29699         system <pthread.h> if there is one.  Use @@-style as in other
29700         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29701         pthread.h doesn't.
29702         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29703         (pthread_mutexattr_settype, pthread_mutex_trylock):
29704         New static inline functions, if there's no system <pthread.h>.
29705         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29706         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29707         Approximate with mutexes if the system lacks spinlocks, as in
29708         MacOS.
29709         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29710         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29711         @@-style.  Check for spinlocks separately.
29712         (gl_PTHREAD_DEFAULTS): New macro.
29713         * modules/pthread: Redo to use a more typical style for in.h files.
29714
29715 2010-09-21  Eric Blake  <eblake@redhat.com>
29716
29717         net_if: enhance tests
29718         * tests/test-net_if.c (main): Move signature checks earlier.
29719         Print failures to stderr.
29720         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29721         Document the bug that we do not yet fix.
29722
29723 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29724
29725         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29726         about gnulib, not GSS.
29727
29728 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29729
29730         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29731         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29732         for Emacs.
29733         * build-aux/pmccabe2html: Make Makefile.am example code more
29734         cut-and-paste friendly.
29735
29736 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29737
29738         * tests/test-net_if.c: New file.
29739         * modules/net_if-tests: New file.
29740
29741 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29742
29743         pthread: add pthread_spin_destroy
29744         * lib/pthread.in.h (pthread_spin_destroy): New function.
29745
29746 2010-09-19  Bruno Haible  <bruno@clisp.org>
29747
29748         gnulib-tool: Fix --help output.
29749         * gnulib-tool (func_usage): Fix help message.
29750         Reported by Reuben Thomas <rrt@sc3d.org>.
29751
29752 2010-09-18  Jim Meyering  <meyering@redhat.com>
29753
29754         maint.mk: avoid unexpanded \n in two diagnostics
29755         * top/maint.mk (sc_prohibit_always_true_header_tests):
29756         Don't use a literal \n in a halt=... assignment.  It would not be
29757         expanded, and the two \n bytes would appear in the diagnostic output
29758         rather than the desired newline.  Use halt=$$(printf ... instead.
29759         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29760
29761 2010-09-18  Bruno Haible  <bruno@clisp.org>
29762
29763         netinet_in: Doc tweak.
29764         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29765         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29766
29767 2010-09-18  Jim Meyering  <meyering@redhat.com>
29768
29769         init.sh: correct an outdated comment
29770         * tests/init.sh (create_exe_shims_):  s/function/alias/
29771
29772         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29773         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29774         a file named "*.exe" is removed between the glob expansion and the
29775         processing of that oddly named file.
29776
29777 2010-09-17  Eric Blake  <eblake@redhat.com>
29778
29779         mirbsd: add some more support
29780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29781         in BSD family.
29782         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29783         devices as OpenBSD.
29784         * m4/host-os.m4 (mirbsd): Add MirBSD.
29785
29786         tests: fix unportable assumption on sys/wait.h
29787         * tests/test-sys_wait.c (main): Relax test.
29788         * tests/test-stdlib.c (main): Likewise.
29789
29790         init.sh: accommodate directory with no .exes
29791         * tests/init.sh: Accomodate directory containing only scripts.
29792
29793         tests: avoid compiler warning
29794         * tests/test-stdlib.c (main): Use the variable.
29795
29796         fdutimens, fdutimensat: update signature, again
29797         * lib/utimens.h (gl_futimens): Delete, and move signature...
29798         (fdutimens): ...here.
29799         (fdutimensat): Rearrange signature.
29800         (lutimensat): Rename variable for clarity.
29801         * lib/fdutimensat.c (fdutimensat): Update signature.
29802         * lib/utimens.c (fdutimens): Likewise.
29803         (gl_futimens): Delete.
29804         (utimens, lutimens): Update callers.
29805         * lib/futimens.c (futimens): Likewise.
29806         * tests/test-fdutimensat.c: Likewise.
29807         * tests/test-utimens.c: Likewise.
29808         * tests/test-futimens.h: Update comment.
29809         * NEWS: Mention this.
29810         Suggested by Paul Eggert.
29811
29812 2010-09-17  Bruno Haible  <bruno@clisp.org>
29813
29814         Take over the maintenance of some older macros from Autoconf.
29815         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29816         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29817         GNU Autoconf.
29818         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29819         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29820
29821 2010-09-17  Eric Blake  <eblake@redhat.com>
29822
29823         fdutimensat: drop atflag validation
29824         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29825         with valid fd, to close a race scenario where futimens is
29826         unsupported and FILE was replaced by a symlink.
29827         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29828         accordingly.
29829         Suggested by Paul Eggert.
29830
29831 2010-09-16  Bruno Haible  <bruno@clisp.org>
29832
29833         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29834         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29835
29836 2010-09-16  Bruno Haible  <bruno@clisp.org>
29837
29838         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29839         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29840         login_tty exists.
29841         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29842
29843 2010-09-16  Bruno Haible  <bruno@clisp.org>
29844
29845         login_tty: Make the replacement code work on BSD systems.
29846         * lib/login_tty.c: Include <sys/ioctl.h>.
29847         (login_tty): Use ioctl TIOCSCTTY when available.
29848         * modules/login_tty (Depends-on): Add sys_ioctl.
29849         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29850
29851 2010-09-16  Bruno Haible  <bruno@clisp.org>
29852
29853         login_tty: Stricter unit test.
29854         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29855         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29856         and tcgetsid() after login_tty.
29857         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29858
29859 2010-09-16  Bruno Haible  <bruno@clisp.org>
29860
29861         New module 'tcgetsid'.
29862         * lib/tcgetsid.c: New file.
29863         * m4/tcgetsid.m4: New file.
29864         * modules/tcgetsid: New file.
29865         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29866         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29867         GNULIB_TCGETSID, HAVE_TCGETSID.
29868         * lib/termios.in.h: Include <sys/types.h>.
29869         (tcgetsid): New declaration.
29870         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29871         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29872         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29873         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29874
29875 2010-09-16  Bruno Haible  <bruno@clisp.org>
29876
29877         Tests for module 'termios'.
29878         * modules/termios-c++-tests: New file.
29879         * modules/termios-tests: New file.
29880         * tests/test-termios-c++.cc: New file.
29881         * tests/test-termios.c: New file.
29882
29883         New module 'termios'.
29884         * modules/termios: New file.
29885         * lib/termios.in.h: New file.
29886         * m4/termios_h.m4: New file.
29887         * doc/posix-headers/termios.texi: Mention the new module.
29888
29889 2010-09-16  Eric Blake  <eblake@redhat.com>
29890
29891         fdutimensat: add an atflag parameter
29892         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29893         * lib/utimens.h (fdutimensat): Update prototype.
29894         * tests/test-fdutimensat.c: Adjust test to match.
29895         * NEWS: Document the change.
29896         Suggested by Paul Eggert.
29897
29898 2010-09-16  Bruno Haible  <bruno@clisp.org>
29899
29900         Fix typos in comments.
29901         * lib/striconveh.h: Fix typo in comment.
29902         * lib/login_tty.c (login_tty): Likewise.
29903
29904 2010-09-15  Bruno Haible  <bruno@clisp.org>
29905
29906         stdlib: clarify MirBSD WEXITSTATUS bug
29907         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29908         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29909
29910 2010-09-15  Eric Blake  <eblake@redhat.com>
29911
29912         stdlib: work around MirBSD WEXITSTATUS bug
29913         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29914         * modules/stdlib (Depends-on): Add sys_wait.
29915         * tests/test-sys_wait.c (main): Enhance test.
29916         * tests/test-stdlib.c (main): Likewise.
29917         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29918
29919         docs: mention MacOS issue with WEXITSTATUS(constant)
29920         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29921         issue.
29922         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29923
29924         strnlen: add tests
29925         * modules/strnlen-tests: New file.
29926         * tests/test-strnlen.c: Likewise.
29927
29928 2010-09-14  Bruno Haible  <bruno@clisp.org>
29929
29930         unistr/base: Avoid link errors when module 'libunistring' is also used.
29931         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29932         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29933         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29934         Declare also when HAVE_LIBUNISTRING is set.
29935         Reported by Pádraig Brady <P@draigbrady.com>.
29936
29937 2010-09-14  Eric Blake  <eblake@redhat.com>
29938
29939         test-rawmemchr: make more robust
29940         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29941         (Depends-on, configure.ac): Add needed prerequisites to use it.
29942         * modules/memchr-tests (Files, Depends-on, configure.ac):
29943         Likewise, to avoid implicit reliance on memchr module prereqs.
29944         * tests/test-memchr.c (main): Ensure proper masking.
29945         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29946         reads.
29947
29948         memchr: detect glibc Alpha bug
29949         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29950         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29951         Alpha.
29952         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29953         * tests/test-memchr.c (main): Enhance test.
29954         Reported by Nelson H. F. Beebe.
29955
29956 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29957
29958         fts, getcwd, glob: audit for dirfd returning -1
29959         * lib/fts.c (opendir): Remove #define; no longer used.
29960         (opendirat): New arg PDIR_FD.  All callers changed.
29961         (fts_build, _opendir2): Use new opendirat to avoid the need for
29962         dirfd, or for checking whether dirfd returns a negative value.
29963         Don't use opendir; always use openat followed by fdopendir.
29964         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29965         it.
29966         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29967         returns -1 here.
29968         * modules/fts (Depends-on): Remove dirfd.
29969         * modules/getcwd (Depends-on): Likewise.
29970
29971 2010-09-13  Eric Blake  <eblake@redhat.com>
29972
29973         float: fix broken MirBSD header
29974         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29975         * doc/posix-headers/float.texi (float.h): Document it.
29976
29977 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29978
29979         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29980         * lib/fts.c (opendirat): New arg extra_flags.
29981         (__opendir2): Use it to avoid following symlinks when opening
29982         a directory, if symlinks are not supposed to be followed.  See
29983         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29984
29985         fdopendir: preserve argument fd before returning
29986         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29987         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29988         (fdopendir): Use them, arranging for FD to be open to the same
29989         directory that it was when it started.  (It might be temporarily
29990         closed while fdopendir is running, so this not thread- or
29991         signal-safe.)  Be careful to do the right thing even when file
29992         descriptors are scarce and dup fails with errno == EMFILE.  See
29993         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29994
29995 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29996
29997         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29998         * NEWS: Document change.
29999         * m4/regex.m4: Disable test for regoff_t size.
30000
30001 2010-09-13  Jim Meyering  <meyering@redhat.com>
30002
30003         fts: don't operate on an invalid file descriptor after failed dup
30004         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30005         negative file descriptor.
30006
30007 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30008
30009         savedir: add streamsavedir, deprecate fdsavedir
30010         * NEWS: Mention deprecation of fdsavedir.
30011         * lib/savedir.c (streamsavedir): New extern function, whose name
30012         ends in "savedir" to be consistent with the others.  This differs
30013         from savedirstream in that it doesn't close its argument.  The
30014         next version of GNU tar will use this instead of fdsavedir, to
30015         avoid some race conditions and conserve file descriptors.
30016         (savedirstream): Reimplement as a wrapper around streamsavedir.
30017         (fdsavedir): Add a comment deprecating this function.  As far as
30018         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30019         * lib/savedir.h (streamsavedir): New decl.
30020         (fdsavedir): Add a comment deprecating this.
30021
30022 2010-09-10  Bruno Haible  <bruno@clisp.org>
30023
30024         langinfo: Fix last commit.
30025         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30026         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30028
30029 2010-09-10  Bruno Haible  <bruno@clisp.org>
30030
30031         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30032         * lib/progreloc.c (O_EXEC): Define fallback.
30033
30034 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30035
30036         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30037         * NEWS: Document recent changes to fcntl-h.
30038         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30039         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30040         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30041         Similarly for O_SEARCH; this last was already true, but not documented.
30042         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30043         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30044         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30045         Likewise.
30046         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30047         is zero, not whether it is defined.
30048         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30049         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30050         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30051
30052 2010-09-10  Bruno Haible  <bruno@clisp.org>
30053
30054         langinfo, nl_langinfo: Fix for IRIX 5.3.
30055         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30056         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30057         HAVE_LANGINFO_YESEXPR.
30058         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30059         HAVE_LANGINFO_YESEXPR.
30060         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30061         HAVE_LANGINFO_T_FMT_AMPM is 0.
30062         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30063         HAVE_LANGINFO_YESEXPR is 0.
30064         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30065         NOEXPR.
30066         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30067         * doc/posix-functions/nl_langinfo.texi: Likewise.
30068         Reported by Eric Blake.
30069
30070 2010-09-10  Bruno Haible  <bruno@clisp.org>
30071
30072         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30073         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30074         on FreeBSD 8.0 and OpenBSD 4.6.
30075         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30076         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30077         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30078         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30079         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30080         ac_includes_default.
30081         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30082
30083 2010-09-09  Eric Blake  <eblake@redhat.com>
30084
30085         strsignal: work around NetBSD bug
30086         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30087         * lib/string.in.h (includes): Likewise.
30088         * doc/posix-functions/strsignal.texi (strsignal): Document the
30089         bug.
30090         Reported by Nelson H. F. Beebe.
30091
30092         gnulib-tool: work with NetBSD /bin/sh
30093         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30094         (func_get_description, func_get_comment, func_get_status)
30095         (func_get_notice, func_get_applicability, func_get_filelist)
30096         (func_get_dependencies, func_get_autoconf_early_snippet)
30097         (func_get_autoconf_snippet, func_get_automake_snippet)
30098         (func_get_include_directive, func_get_link_directive)
30099         (func_get_license, func_get_maintainer, func_import): Avoid
30100         shell syntax errors from parsing syntax extensions.
30101
30102 2010-09-09  Bruno Haible  <bruno@clisp.org>
30103
30104         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30105         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30106         a reliable way to determine whether the 'alias' command works.
30107
30108 2010-09-08  Jim Meyering  <meyering@redhat.com>
30109
30110         init.sh: penalize a set-x-impaired shell; don't disqualify it
30111         * tests/init.sh: Too many shells corrupt application stderr when
30112         you set -x, so we can't afford to disqualify them, since at least
30113         on Irix-6.5, that would disqualify all bourne shells.
30114         Instead, use a two-pass approach.
30115         On the first pass, try to find a shell that meets the stricter
30116         condition that set -x does not corrupt stderr.
30117         If no shell meets the stricter condition, retest each candidate
30118         shell, but without that extra condition.  Finally, when
30119         VERBOSE=yes is requested and set -x might cause trouble, simply
30120         issue a warning and refrain from enabling debug output.
30121
30122 2010-09-08  Eric Blake  <eblake@redhat.com>
30123
30124         unsetenv: fix OpenBSD bug
30125         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30126         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30127         documentation.
30128         Reported by Jim Meyering.
30129
30130         strtod: work around IRIX 6.5 bug
30131         * lib/strtod.c (strtod): Reparse number on shorter string if
30132         exponent parse was invalid.
30133         * tests/test-strtod.c (main): Add check for "0x1p 2".
30134         Reported by Tom G. Christensen.
30135
30136         getopt: optimize previous patch
30137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30138         empty variable.  Speed up awk script.
30139         Reported by Paolo Bonzini.
30140
30141 2010-09-08  Jim Meyering  <meyering@redhat.com>
30142
30143         test.sh: disqualify shells for which set -x corrupts stderr
30144         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30145         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30146         appear in stderr output.  For example, this command:
30147             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30148         prints "P=1" on those two systems:
30149
30150 2010-09-08  Bruno Haible  <bruno@clisp.org>
30151
30152         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30153         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30154         commands, because some shells ignore redirections when there is an
30155         error in the command lookup.
30156         Reported by Eric Blake.
30157
30158 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30159
30160         * lib/regex.h: Fix a mention of `regex_compile' (should be
30161         `re_compile_pattern').
30162         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30163         (re_set_registers): Correct name of parameter in comment.
30164
30165         * doc/regex.texi: Add documentation for missing syntax flags.
30166         Remove commented-out documentation of defunct syntax option
30167         RE_NO_EMPTY_ALTS.
30168         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30169         Add documentation of re_set_registers.
30170         Document trick to re-use a pattern buffer by setting fastmap manually.
30171         Update documentation of struct re_pattern_buffer per public members.
30172         Uncomment documentation of equivalence class operators and
30173         collating symbol operators, since they are now implemented,
30174         Explain leftmost-longest matching in relation to alternatives.
30175         Tidy documentation of substring matching.
30176         Remove POSIX documentation, which is done better in
30177         glibc, and refer the reader there. Keep BSD API documentation, as
30178         that is not readily available elsewhere.
30179
30180 2010-09-07  Eric Blake  <eblake@redhat.com>
30181
30182         getopt: handle POSIXLY_CORRECT set but not exported
30183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30184         export state of POSIXLY_CORRECT, due to bash set -o posix.
30185         Reported by Dustin J. Mitchell.
30186
30187 2010-09-05  Bruno Haible  <bruno@clisp.org>
30188
30189         gnulib-tool: Highlight the changed options.
30190         * gnulib-tool (func_usage): Display the --import, --add-import,
30191         --remove-import explanations in bold font.
30192
30193 2010-09-06  Karl Berry  <karl@gnu.org>
30194
30195         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30196
30197 2010-09-05  Bruno Haible  <bruno@clisp.org>
30198
30199         uniwidth/width: Update comment.
30200         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30201         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30202
30203 2010-09-05  Bruno Haible  <bruno@clisp.org>
30204
30205         isinf, isnan: Relax license.
30206         * modules/isinf (License): Change from GPL to LGPL, with consent from
30207         Ben Pfaff.
30208         * modules/isnan (License): Likewise.
30209         Requested by Ludovic Courtès.
30210
30211 2010-09-04  Bruno Haible  <bruno@clisp.org>
30212
30213         gnulib-tool: Help migration from --import to --add-import or --update.
30214         * gnulib-tool: Emit a verbose error message when --import is used
30215         without any module name.
30216
30217 2010-09-04  Bruno Haible  <bruno@clisp.org>
30218
30219         Update doc about gnulib-tool.
30220         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30221         'gnulib-tool --update' in more detail.
30222         Reported by Eric Blake.
30223
30224 2010-09-04  Bruno Haible  <bruno@clisp.org>
30225
30226         gnulib-tool: Change --import. New options --add/remove-import.
30227         * gnulib-tool: New options --add-import, --remove-import.
30228         (func_usage): Document them.
30229         (have_associative): Define always.
30230         (func_import): In import mode, don't merge the specified settings with
30231         the cached settings. Implement remove-import mode.
30232         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30233         Explain when to use them versus --import.
30234         (Simple update): Use --add-import instead of --import.
30235         * NEWS: Mention the change.
30236
30237 2010-09-04  Bruno Haible  <bruno@clisp.org>
30238
30239         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30240         separate gnulib.mk.
30241
30242 2010-09-04  Bruno Haible  <bruno@clisp.org>
30243
30244         gnulib-tool: Don't talk about CVS any more.
30245         * gnulib-tool (func_usage, func_import): Write "version control"
30246         instead of CVS.
30247
30248 2010-09-04  Jim Meyering  <meyering@redhat.com>
30249
30250         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30251         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30252         false positives (whose names may be ill-chosen) when searching
30253         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30254         would cause a false-positive.
30255
30256         avoid coreutils "make distcheck" failure
30257         Coreutils tests with an absolute build directory name that contains
30258         a space.  Not quoting this directory name caused a failure.
30259         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30260         * tests/test-vc-list-files-cvs.sh: Likewise.
30261
30262 2010-09-04  Bruno Haible  <bruno@clisp.org>
30263
30264         gnulib-tool: Avoid error when run in a package without Makefile.am.
30265         * gnulib-tool: When collecting the m4dirs in a package that does not
30266         have a Makefile.am, eliminate those directories that contain no
30267         gnulib-cache.m4. Fix expression that counts these directories.
30268
30269 2010-09-04  Bruno Haible  <bruno@clisp.org>
30270
30271         update-copyright test: Improve output when perl is missing or too old.
30272         * tests/test-update-copyright.sh: Move test of Perl version down after
30273         the test whether Perl exists. Provide an explanation relating Perl's
30274         error message to Automake's SKIP: message.
30275
30276 2010-09-04  Bruno Haible  <bruno@clisp.org>
30277
30278         Don't augment PATH in TESTS_ENVIRONMENT.
30279         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30280         set abs_aux_dir instead of augmenting PATH.
30281         * modules/vc-list-files-tests (Makefile.am): Likewise.
30282         * tests/test-update-copyright.sh: Augment PATH here.
30283         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30284         path_prepend_.
30285         * tests/test-vc-list-files-git.sh: Likewise.
30286
30287 2010-09-04  Jim Meyering  <meyering@redhat.com>
30288
30289         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30290         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30291
30292 2010-09-04  Bruno Haible  <bruno@clisp.org>
30293
30294         strdup: Fix compilation error in C++ mode.
30295         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30296         the macro.
30297
30298 2010-09-04  Bruno Haible  <bruno@clisp.org>
30299
30300         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30301         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30302         macro into a function.
30303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30304
30305 2010-09-04  Bruno Haible  <bruno@clisp.org>
30306
30307         Set PATH_SEPARATOR the same way autoconf does.
30308         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30309         the value of PATH_SEPARATOR the same way autoconf-generated configure
30310         scripts do.
30311         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30312         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30313
30314 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30315
30316         Set PATH_SEPARATOR the same way autoconf does.
30317         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30318         the same way autoconf-generated configure scripts do.
30319         * posix-modules: Likewise.
30320
30321 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30322
30323         hash: fix safe_hasher const typo
30324         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30325         const; otherwise, there is a type error later.
30326
30327 2010-09-02  Jim Meyering  <meyering@redhat.com>
30328
30329         test-update-copyright.sh: require perl 5.8.0
30330         * tests/test-update-copyright.sh: Require 5.8.0,
30331         which Tom G. Christensen has confirmed is adequate,
30332         while 5.6.1 is not.
30333
30334 2010-09-02  Eric Blake  <eblake@redhat.com>
30335
30336         tests: init.sh improvements for re-exec'ing with zsh
30337         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30338         -vx through shell re-exec.
30339         Reported by Tom G. Christensen.
30340
30341         wctype: fix typo in previous commit
30342         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30343         Reported by Ludovic Courtès.
30344
30345 2010-09-02  Jim Meyering  <meyering@redhat.com>
30346
30347         test-update-copyright.sh: skip test if Perl is too old
30348         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30349         Reported by Tom G. Christensen.
30350
30351 2010-09-02  Bruno Haible  <bruno@clisp.org>
30352
30353         wctype: Avoid compilation error on IRIX 6.5.30.
30354         * lib/wctype.in.h (iswblank): Declare with a replacement if
30355         REPLACE_ISWBLANK is set.
30356         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30357         declared. Set REPLACE_ISWBLANK.
30358         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30359         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30360         * doc/posix-headers/wctype.texi: Likewise.
30361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30362
30363 2010-09-01  Bruno Haible  <bruno@clisp.org>
30364
30365         New module 'socketlib'.
30366         * modules/socketlib: New file.
30367         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30368         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30369         * modules/sockets (Depends-on): Add socketlib.
30370         Suggested by Sam Steingold <sds@gnu.org>.
30371
30372 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30373
30374         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30375
30376         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30377         when one needs search access to a directory but not read access.
30378         On systems where it is available, it works in some cases where
30379         O_RDONLY does not, namely on directories that are searchable but
30380         not readable, and which need only to be searchable.  If O_SEARCH
30381         is not available, fall back to the traditional method of using
30382         O_RDONLY.
30383
30384         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30385         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30386         when opening a directory that needs only to be searchable.
30387         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30388         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30389         * lib/openat-proc.c (openat_proc_name): Likewise.
30390         * lib/openat.c (openat_needs_fchdir): Likewise.
30391         * lib/save-cwd.c (save_cwd): Likewise.
30392         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30393
30394 2010-08-28  Bruno Haible  <bruno@clisp.org>
30395
30396         New module 'host-cpu-c-abi'.
30397         * modules/host-cpu-c-abi: New file.
30398         * m4/host-cpu-c-abi.m4: New file, based on part of
30399         clisp/src/m4/general.m4.
30400         Requested by Sam Steingold <sds@gnu.org>.
30401
30402 2010-08-31  Eric Blake  <eblake@redhat.com>
30403         and Jim Meyering  <meyering@redhat.com>
30404
30405         hash: factor, and guard against misbehaving hasher function
30406         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30407         of table->hasher's return value.  Also protect against a hash value
30408         so large that adding it to table->bucket results in a NULL pointer.
30409         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30410         Use it in place of open-coded check-and-abort.
30411
30412 2010-08-30  Bruno Haible  <bruno@clisp.org>
30413
30414         hash: silence spurious clang warning
30415         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30416         Reported by Eric Blake.
30417
30418 2010-08-30  Eric Blake  <eblake@redhat.com>
30419
30420         strstr, memmem, strcasestr: avoid leaked shell message
30421         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30422         FreeBSD.
30423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30425
30426         tests: silence clang warning
30427         * tests/test-malloca.c (do_allocation): Avoid dead store.
30428
30429 2010-08-29  Bruno Haible  <bruno@clisp.org>
30430
30431         gettext: Fix recent mistake.
30432         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30433
30434 2010-08-29  Bruno Haible  <bruno@clisp.org>
30435
30436         selinux-h: Offer a --without-selinux option.
30437         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30438         --without-selinux was specified, skip all tests and define
30439         HAVE_SELINUX_SELINUX_H to 0.
30440         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30441         set LIB_SELINUX to empty.
30442         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30443         gl_LIBSELINUX. If --without-selinux was specified, replace
30444         selinux/context.h.
30445         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30446
30447 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30448             Bruno Haible  <bruno@clisp.org>
30449
30450         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30451         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30452         of HAVE_REALLOC.
30453         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30454         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30455         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30456         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30457
30458 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30459             Bruno Haible  <bruno@clisp.org>
30460
30461         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30462         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30463         HAVE_CALLOC.
30464         * lib/xmalloc.c: Update accordingly.
30465         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30466         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30467         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30468
30469 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30470             Bruno Haible  <bruno@clisp.org>
30471
30472         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30473         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30474         HAVE_MALLOC.
30475         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30476         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30477         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30478
30479 2010-08-29  Bruno Haible  <bruno@clisp.org>
30480
30481         Update modules list.
30482         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30483         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30484         (String handling <string.h>): Add astrxfrm.
30485         (File system functions): Add readlinkat.
30486
30487 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30488
30489         Tests for module 'realloc-gnu'.
30490         * modules/realloc-gnu-tests: New file.
30491         * tests/test-realloc-gnu.c: New file.
30492
30493         Tests for module 'calloc-gnu'.
30494         * modules/calloc-gnu-tests: New file.
30495         * tests/test-calloc-gnu.c: New file.
30496
30497         Tests for module 'malloc-gnu'.
30498         * modules/malloc-gnu-tests: New file.
30499         * tests/test-malloc-gnu.c: New file.
30500
30501 2010-08-28  Bruno Haible  <bruno@clisp.org>
30502
30503         Rename module 'realloc' -> 'realloc-gnu'.
30504         * modules/realloc-gnu: New file, copied from modules/realloc.
30505         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30506         obsolete.
30507         * modules/mgetgroups (Depends-on): Update.
30508         * doc/posix-functions/realloc.texi: Update.
30509         * NEWS: Mention the change.
30510
30511         Rename module 'calloc' -> 'calloc-gnu'.
30512         * modules/calloc-gnu: New file, copied from modules/calloc.
30513         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30514         obsolete.
30515         * doc/posix-functions/calloc.texi: Update.
30516         * NEWS: Mention the change.
30517
30518         Rename module 'malloc' -> 'malloc-gnu'.
30519         * modules/malloc-gnu: New file, copied from modules/malloc.
30520         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30521         obsolete.
30522         * modules/argp (Depends-on): Update.
30523         * modules/regex (Depends-on): Update.
30524         * doc/posix-functions/malloc.texi: Update.
30525         * NEWS: Mention the change.
30526
30527 2010-08-28  Eric Blake  <eblake@redhat.com>
30528
30529         pread, pwrite: add missing dependency
30530         * modules/pread (Depends-on): Add extensions.
30531         * modules/pwrite (Depends-on): Likewise.
30532
30533 2010-08-28  Bruno Haible  <bruno@clisp.org>
30534
30535         unistr/u*-strchr: Fix tests dependencies.
30536         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30537         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30538         Reported by Ian Beckwith <ianb@erislabs.net>.
30539
30540 2010-08-28  Bruno Haible  <bruno@clisp.org>
30541
30542         read-file: Don't occupy too much unused memory.
30543         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30544
30545 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30546             Eric Blake  <eblake@redhat.com>
30547             Bruno Haible  <bruno@clisp.org>
30548
30549         read-file: Avoid memory reallocations with regular files.
30550         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30551         (fread_file): With regular files, use the remaining length as the
30552         initial buffer size.  Check against overflow.
30553         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30554         sys_stat.
30555
30556 2010-08-28  Bruno Haible  <bruno@clisp.org>
30557
30558         ftello: Relax license.
30559         * modules/ftello (License): Relax to LGPLv2+.
30560         Reported by Eric Blake.
30561
30562 2010-08-28  Bruno Haible  <bruno@clisp.org>
30563
30564         Avoid relocwrapper link errors due to gnulib replacement functions.
30565         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30566         function.
30567         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30568
30569 2010-08-28  Bruno Haible  <bruno@clisp.org>
30570
30571         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30572         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30573         defined.
30574         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30575         Suggested by Eric Blake.
30576
30577 2010-08-28  Bruno Haible  <bruno@clisp.org>
30578
30579         sys_socket, netdb: Ensure socklen_t gets defined.
30580         * modules/sys_socket (Depends-on): Add socklen.
30581         * modules/netdb (Depends-on): Likewise.
30582         * modules/getaddrinfo (Depends-on): Remove socklen.
30583         * modules/getsockopt (Depends-on): Likewise.
30584         * modules/setsockopt (Depends-on): Likewise.
30585         * tests/test-sys_socket.c: Check that socklen_t is defined.
30586         * tests/test-netdb.c: Likewise.
30587         * m4/socklen.m4: Update comments.
30588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30589
30590 2010-08-27  Eric Blake  <eblake@redhat.com>
30591
30592         login_tty: add missing dependency
30593         * modules/login_tty (Depends-on): Add pty.
30594
30595 2010-08-26  Eric Blake  <eblake@redhat.com>
30596
30597         lib-symbol-versions: fix m4 quoting
30598         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30599         format for AC_LINK_IFELSE.
30600
30601         glob: fix compile test
30602         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30603
30604         btowc: fix missing file
30605         * modules/btowc (Files): Also ship locale-fr.m4.
30606
30607         lseek: fix link test
30608         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30609         AC_LINK_IFELSE.
30610
30611         include_next: silence autoconf 2.68 warning
30612         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30613         AC_COMPILE_IFELSE as special.
30614         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30615         autoconf < 2.68.
30616
30617         acl: fix compilation test
30618         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30619         AC_COMPILE_IFELSE.
30620
30621 2010-08-26  Bruno Haible  <bruno@clisp.org>
30622
30623         Modernize AC_TRY_RUN invocations.
30624         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30625         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30626         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30627         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30628         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30629         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30630         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30632         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30633         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30635         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30636         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30637         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30639         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30640         gl_MBRLEN_NUL_RETVAL): Likewise.
30641         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30642         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30643         Likewise.
30644         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30645         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30646         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30647         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30648         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30649         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30650         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30651         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30652         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30653         Likewise.
30654         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30655         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30656         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30657         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30658         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30659         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30660         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30661         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30662         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30664
30665 2010-08-26  Bruno Haible  <bruno@clisp.org>
30666
30667         Modernize AC_TRY_LINK invocations.
30668         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30669         AC_TRY_LINK.
30670         * m4/argp.m4 (gl_ARGP): Likewise.
30671         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30672         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30673         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30674         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30675         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30676         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30677         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30678         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30679         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30680         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30681         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30682         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30683         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30684         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30685         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30686         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30687         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30688         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30689         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30690         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30691         Likewise.
30692         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30693         Likewise.
30694         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30695         Likewise.
30696         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30698         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30699         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30700         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30701         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30702         * m4/servent.m4 (gl_SERVENT): Likewise.
30703         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30704         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30705         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30706         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30707         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30708         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30709         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30710         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30711         * modules/tsearch-tests (configure.ac): Likewise.
30712
30713 2010-08-26  Bruno Haible  <bruno@clisp.org>
30714
30715         Modernize AC_TRY_COMPILE invocations.
30716         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30717         AC_TRY_COMPILE.
30718         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30719         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30720         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30721         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30722         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30723         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30724         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30725         * m4/lock.m4 (gl_LOCK): Likewise.
30726         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30727         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30728         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30729         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30730         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30731         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30732         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30734         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30735         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30736         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30737         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30738         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30739         extraneous semicolon.
30740
30741 2010-08-26  Jim Meyering  <meyering@redhat.com>
30742
30743         stat-time: relax license LGPL
30744         * modules/stat-time (License): Change from GPL to LGPL,
30745         with consent from all contributors, for use in libguile.
30746         Requested by Ludovic Courtès.
30747
30748 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30749
30750         poll: return immediately on POLLHUP.
30751         * lib/poll.c (poll): Always set timeout before wait_timeout is
30752         computed.
30753
30754 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30755
30756         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30757         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30758         rmdir ("dir/.//"), unlinkat.
30759
30760 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30761
30762         stdbool: avoid spurious failure with modern xlc
30763         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30764
30765 2010-08-24  Bruno Haible  <bruno@clisp.org>
30766
30767         getloadavg: simplify code
30768         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30769         gl_have_func. Update comments.
30770
30771 2010-08-24  Eric Blake  <eblake@redhat.com>
30772
30773         getloadavg: don't define SVR4 on cygwin
30774         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30775         only define SVR4 when -lkvm is required.
30776         Reported by Yaakov Selkowitz.
30777
30778 2010-08-24  Bruno Haible  <bruno@clisp.org>
30779
30780         priv-set: fix comment
30781         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30782
30783 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30784
30785         priv-set: fix comments
30786         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30787         to match code, as suggested by David Bartley in:
30788         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30789
30790 2010-08-23  Eric Blake  <eblake@redhat.com>
30791
30792         stdbool: avoid rejecting clang
30793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30794         * tests/test-stdbool.c: Enable more tests if using the system
30795         <stdbool.h> instead of the gnulib replacement.
30796         (main): Move xlc bug test to a runtime test for all compilers.
30797         Reported by Anders Kaseorg.
30798
30799         argz: fix shell quoting issue
30800         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30801         Reported by Charles Wilson.
30802
30803 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30804             Erik Faye-Lund <kusmabite@gmail.com>
30805
30806         poll, select: handle ERROR_BROKEN_PIPE.
30807         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30808         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30809         * lib/select.c (win32_compute_revents): Do not mark a pipe
30810         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30811
30812 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30813
30814         fts: allow compilation with C++
30815         * lib/fts_.h: Specify extern "C" linkage with C++.
30816
30817 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30818
30819         Fix gnulib-tool sed script de-commentation for AIX sed.
30820         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30821         sed.
30822
30823 2010-08-17  Eric Blake  <eblake@redhat.com>
30824
30825         test-stddef: test for (some) offsetof bugs
30826         * tests/test-stddef.c: Enhance test to ensure correct type of
30827         offsetof.
30828         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30829         that we are not fixing at this time.
30830
30831 2010-08-15  Bruno Haible  <bruno@clisp.org>
30832
30833         stpncpy: Allow stpncpy to be defined as a macro.
30834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30835         if it's already correctly declared.
30836         * lib/string.in.h (stpncpy): Undefine before redefining.
30837         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30838
30839 2010-08-14  Bruno Haible  <bruno@clisp.org>
30840
30841         Rename module 'memxfrm' to 'amemxfrm'.
30842         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30843         (amemxfrm): Renamed from memxfrm.
30844         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30845         (amemxfrm): Renamed from memxfrm.
30846         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30847         * NEWS: Mention the change.
30848         * MODULES.html.sh (String handling <string.h>): Update.
30849         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30850         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30851         * lib/unicase/u16-casexfrm.c: Likewise.
30852         * lib/unicase/u32-casexfrm.c: Likewise.
30853         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30854         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30855         * lib/uninorm/u16-normxfrm.c: Likewise.
30856         * lib/uninorm/u32-normxfrm.c: Likewise.
30857         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30858         memxfrm.
30859         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30860         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30861         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30862         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30863         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30864         Suggested by Paul Eggert.
30865
30866 2010-08-14  Bruno Haible  <bruno@clisp.org>
30867
30868         Tests for module 'astrxfrm'.
30869         * modules/astrxfrm-tests: New file.
30870         * tests/test-astrxfrm.c: New file.
30871
30872         New module 'astrxfrm'.
30873         * lib/astrxfrm.h: New file.
30874         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30875         * modules/astrxfrm: New file.
30876
30877 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30878
30879         regex: Tweak doc.
30880         * doc/regex.texi (Overview): Don't mention regex.c.
30881         (GNU Regular Expression Compiling): Likewise.
30882         (Match-end-of-line Operator): Mention 'not_eol'.
30883
30884 2010-08-14  Brian Gough  <bjg@gnu.org>
30885             Bruno Haible  <bruno@clisp.org>
30886
30887         git-merge-changelog: add doc relating to use with bzr and hg.
30888         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30889
30890 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30891
30892         pthread: fix pthread.h creation for srcdir != builddir
30893         * modules/pthread (Makefile.am): Fix the rule to work also in a
30894         non-srcdir build.
30895
30896 2010-08-13  Karl Berry  <karl@gnu.org>
30897
30898         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30899         * doc/posix-*/*: force line break before @url of POSIX
30900         specifications.
30901         Suggested by Werner Lemberg.
30902
30903 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30904
30905         strtod: fix const diagnostic
30906         * lib/strtod.c (strtod): Don't assign const char * to char *,
30907         as this elicits a warning from GCC when warnings are enabled.
30908
30909 2010-08-10  Pádraig Brady <P@draigbrady.com>
30910         and Eric Blake  <eblake@redhat.com>
30911
30912         copy-acl: ignore ENOTSUP on HP-UX
30913         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30914         so that it is available for HP-UX.
30915         * lib/copy-acl.c (qcopy_acl): Use it.
30916         Reported by Patrick M. Callahan.
30917
30918 2010-08-10  Eric Blake  <eblake@redhat.com>
30919
30920         open, chown: relax license
30921         * modules/open (License): Change to LGPLv2+, with consent by all
30922         authors, for use in augeas.
30923         * modules/chown (License): Likewise.
30924         * modules/lchown (Likewise): Likewise.
30925         Requested by Adam Stokes.
30926
30927 2010-08-09  Karl Berry  <karl@gnu.org>
30928
30929         * build-aux/ar-lib: new file, import from Automake.
30930         * config/srclist.txt: autocheck for updates.
30931
30932 2010-08-09  Eric Blake  <eblake@redhat.com>
30933
30934         readlinkat: adjust client modules
30935         * modules/areadlinkat (Depends-on): Use readlinkat, not
30936         symlinkat.
30937         * modules/areadlinkat-with-size (Depends-on): Likewise.
30938
30939         mknod: be more vocal about danger of running tests as root
30940         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30941         root, since that is just asking for problems.
30942         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30943
30944         readlinkat: split into its own module
30945         * modules/symlinkat: Split readlinkat...
30946         * modules/readlinkat: ...into separate module.
30947         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30948         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30949         * lib/symlinkat.c (readlinkat): Move...
30950         * lib/readlinkat.c: ...into new file.
30951         * modules/symlinkat-tests: Split readlinkat test...
30952         * modules/readlinkat-tests: ...into separate module.
30953         * tests/test-symlinkat.c: Split...
30954         * tests/test-readlinkat.c: ...into new file.
30955         * NEWS: Document the split.
30956         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30957         * lib/unistd.in.h (readlinkat): Likewise.
30958         Suggested by Bruno Haible.
30959
30960 2010-08-08  Bruno Haible  <bruno@clisp.org>
30961
30962         memxfrm: Speed up.
30963         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30964         that usually only one call to strxfrm is necessary for each string
30965         part.
30966         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30967
30968 2010-08-07  Karl Berry  <karl@gnu.org>
30969
30970         * doc/posix-headers/limits.texi,
30971         * doc/posix-functions/malloc.texi,
30972         * doc/posix-functions/strsignal.texi: missing @item.
30973         * doc/ld-version-script.texi: spurious leading i.
30974         * doc/regex.texi (Interval Operators): no commas inside @var.
30975
30976 2010-08-01  Bruno Haible  <bruno@clisp.org>
30977
30978         Integrate the regex documentation.
30979         * doc/gnulib.texi: Define 'cn' index.
30980         (Regular expressions): New a chapter that includes regex.texi and
30981         regexprops-generic.texi.
30982         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30983         syntax.
30984
30985         Whitespace cleanup.
30986         * doc/regex.texi: Remove trailing spaces.
30987
30988         Add regex documentation.
30989         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30990         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30991         Written by Kathy A. Hargreaves and Karl Berry.
30992
30993 2010-08-01  Bruno Haible  <bruno@clisp.org>
30994
30995         link: Update documentation.
30996         * doc/posix-functions/link.texi: Update regarding Solaris.
30997
30998 2010-07-31  Bruno Haible  <bruno@clisp.org>
30999
31000         Update modules list.
31001         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31002         (String handling <string.h>): Add memcmp2, memxfrm.
31003         (Container data structures): Add xlist, xsublist, xoset.
31004         (Core language properties): Add alignof, unused-parameter.
31005         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31006         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31007         (Unibyte characters <ctype.h>): New section.
31008         (String handling <string.h>): New section.
31009         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31010         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31011         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31012         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31013         tan, tanh, tanl, y0, y1, yn.
31014         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31015         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31016         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31017         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31018         unlockpt, vdprintf, vdprintf-posix.
31019         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31020         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31021         xconcat-filename.
31022         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31023         getdtablesize, pipe2, pipe2-safer.
31024         (Security): New section.
31025         (Networking functions): Add accept4.
31026         (Signal handling): Add sigpipe.
31027         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31028         mbmemcasecoll.
31029         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31030         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31031         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31032         pipe-filter-ii.
31033         (Misc): Add argp-version-etc, login_tty, parse-duration.
31034
31035 2010-07-31  Bruno Haible  <bruno@clisp.org>
31036
31037         Improve doc in MODULES.html.
31038         * modules/linkat (Description): Add the word "function".
31039         * modules/mkfifo (Description): Likewise.
31040         * modules/mknod (Description): Likewise.
31041         * modules/remove (Description): Likewise.
31042         * modules/renameat (Description): Likewise.
31043         * modules/stat (Description): Likewise.
31044         * modules/symlink (Description): Likewise.
31045         * modules/unlink (Description): Likewise.
31046
31047 2010-07-31  Bruno Haible  <bruno@clisp.org>
31048
31049         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31050         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31051         option --enable/disable-c++ instead of --enable/disable-cxx.
31052         * NEWS: Mention the change.
31053
31054 2010-07-31  Bruno Haible  <bruno@clisp.org>
31055
31056         readlink, areadlink: Relax test a bit.
31057         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31058         alternative to ENOTDIR.
31059         * tests/test-areadlink.h (test_areadlink): Likewise.
31060         Reported by Rainer Tammer.
31061
31062 2010-07-31  Bruno Haible  <bruno@clisp.org>
31063
31064         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31065         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31066         character, perform the search using U_STRCHR.
31067         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31068         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31069         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31070         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31071         Suggested by Paolo Bonzini.
31072
31073 2010-07-31  Bruno Haible  <bruno@clisp.org>
31074
31075         unistr/u*-strstr: Fix dependencies.
31076         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31077         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31078         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31079
31080 2010-07-31  Bruno Haible  <bruno@clisp.org>
31081
31082         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31083         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31084         the beginning of the loop.
31085         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31086         cases in 'switch' statement.
31087
31088         unistr/u8-strchr: Fix several bugs.
31089         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31090         the string. When not found, return NULL, not a pointer near the end.
31091
31092         More tests for unistr/u8-strchr.
31093         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31094         that the function does not read past the first occurrence of the byte
31095         being searched.
31096         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31097         * tests/unistr/test-u16-strchr.c (main): New function.
31098         * tests/unistr/test-u32-strchr.c (main): New function.
31099
31100 2010-07-31  Bruno Haible  <bruno@clisp.org>
31101
31102         posix-modules: Ignore backup files of documentation files.
31103         * posix-modules: grep only through files named *.texi.
31104
31105 2010-07-31  Bruno Haible  <bruno@clisp.org>
31106
31107         symlinkat: Fix documentation.
31108         * doc/posix-functions/readlinkat.texi: Fix module name.
31109
31110 2010-07-31  Bruno Haible  <bruno@clisp.org>
31111
31112         fchownat: Replace also when chown has the trailing slash bug.
31113         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31114         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31115         introduced on 2010-04-10.
31116         Reported by Rainer Tammer.
31117
31118 2010-07-31  Bruno Haible  <bruno@clisp.org>
31119
31120         linkat: Work around AIX 7.1 bug.
31121         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31122         whether linkat handles trailing slash correctly. If not, replace linkat
31123         and define LINKAT_TRAILING_SLASH_BUG.
31124         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31125         check whether (fd1,file1) points to a directory if file1 or file2 ends
31126         in a slash. Code taken from lib/link.c.
31127         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31128         Reported by Rainer Tammer.
31129
31130 2010-07-31  Bruno Haible  <bruno@clisp.org>
31131
31132         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31133         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31134         This disables an xlc optimization that was causing wrong test results.
31135         Reported by Rainer Tammer.
31136
31137 2010-07-31  Bruno Haible  <bruno@clisp.org>
31138
31139         iconv: Work around AIX 6.1..7.1 bug.
31140         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31141         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31142         cross-compiling, guess no on all versions of AIX.
31143         Reported by Rainer Tammer.
31144
31145 2010-07-31  Bruno Haible  <bruno@clisp.org>
31146
31147         readlink: Relax test a bit.
31148         * tests/test-readlink.h (test_readlink): Allow different errno value
31149         when readlink is called with a file name that ends in / and refers to
31150         a file.
31151         Suggested by Eric Blake.
31152         Reported by Rainer Tammer.
31153
31154 2010-07-31  Bruno Haible  <bruno@clisp.org>
31155
31156         copysign: Does not require -lm on glibc systems.
31157         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31158         gl_COMMON_DOUBLE_MATHFUNC.
31159         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31160
31161 2010-07-31  Bruno Haible  <bruno@clisp.org>
31162
31163         duplocale: Work around AIX 7.1 bug.
31164         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31165         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31166         * lib/duplocale.c (rpl_duplocale): Update comment.
31167         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31168         Reported by Rainer Tammer.
31169
31170 2010-07-30  Bruno Haible  <bruno@clisp.org>
31171
31172         dirfd: Avoid link error on AIX 7.1.
31173         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31174         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31175         exist, set REPLACE_DIRFD.
31176         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31177         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31178         * doc/posix-functions/dirfd.texi: Update.
31179         Reported by Rainer Tammer.
31180
31181 2010-07-30  Eric Blake  <eblake@redhat.com>
31182
31183         strtod: next round of AIX fixes
31184         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31185         exponent.
31186         * tests/test-strtod.c (main): Enhance tests.
31187         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31188         Reported by Rainer Tammer.
31189
31190         futimens: fix configure check
31191         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31192         Reported by Bruno Haible.
31193
31194 2010-07-30  Bruno Haible  <bruno@clisp.org>
31195
31196         getline: Update regarding AIX.
31197         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31198         Reported by Rainer Tammer.
31199
31200 2010-07-30  Bruno Haible  <bruno@clisp.org>
31201
31202         wcwidth: Drop replacement on AIX 7.
31203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31204         AIX 7.
31205         Reported by Rainer Tammer.
31206
31207 2010-07-30  Bruno Haible  <bruno@clisp.org>
31208
31209         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31210         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31211         a 'char *'.
31212         Reported by Rainer Tammer.
31213
31214 2010-07-30  Bruno Haible  <bruno@clisp.org>
31215
31216         unlink: Update regarding AIX.
31217         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31218         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31219         Reported by Rainer Tammer.
31220
31221 2010-07-30  Bruno Haible  <bruno@clisp.org>
31222
31223         symlink: Update regarding AIX.
31224         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31225         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31226         Reported by Rainer Tammer.
31227
31228 2010-07-30  Bruno Haible  <bruno@clisp.org>
31229
31230         strndup: Update regarding AIX.
31231         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31232         AIX 7.
31233         Reported by Rainer Tammer.
31234
31235 2010-07-30  Bruno Haible  <bruno@clisp.org>
31236
31237         stat: Update regarding AIX.
31238         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31239         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31240         Reported by Rainer Tammer.
31241
31242 2010-07-30  Bruno Haible  <bruno@clisp.org>
31243
31244         truncl: Fix autoconf test.
31245         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31246         whether truncl works.
31247         Reported by Rainer Tammer.
31248
31249 2010-07-30  Bruno Haible  <bruno@clisp.org>
31250
31251         round: Update regarding AIX.
31252         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31253         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31254         Reported by Rainer Tammer.
31255
31256 2010-07-30  Bruno Haible  <bruno@clisp.org>
31257
31258         rename: Update regarding AIX.
31259         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31260         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31261         Reported by Rainer Tammer.
31262
31263 2010-07-30  Bruno Haible  <bruno@clisp.org>
31264
31265         printf.m4: Update regarding AIX.
31266         * m4/printf.m4: Update comments regarding AIX.
31267         Reported by Rainer Tammer.
31268
31269 2010-07-30  Bruno Haible  <bruno@clisp.org>
31270
31271         iconv: Update regarding AIX.
31272         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31273         AIX 7.
31274         Reported by Rainer Tammer.
31275
31276 2010-07-30  Bruno Haible  <bruno@clisp.org>
31277
31278         getopt: Update regarding AIX.
31279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31280         no on AIX.
31281         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31282         Reported by Rainer Tammer.
31283
31284 2010-07-30  Bruno Haible  <bruno@clisp.org>
31285
31286         ldexpl; Update regarding AIX.
31287         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31288         on AIX 7.
31289         Reported by Rainer Tammer.
31290
31291 2010-07-30  Bruno Haible  <bruno@clisp.org>
31292
31293         frexpl: Update regarding AIX.
31294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31295         on AIX 7.
31296         Reported by Rainer Tammer.
31297
31298 2010-07-30  Bruno Haible  <bruno@clisp.org>
31299
31300         open, fopen: Update regarding AIX.
31301         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31302         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31303         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31304         * doc/posix-functions/fopen.texi: Likewise.
31305         Reported by Rainer Tammer.
31306
31307 2010-07-30  Bruno Haible  <bruno@clisp.org>
31308
31309         chown: Update doc regarding AIX.
31310         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31311         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31312         Reported by Rainer Tammer.
31313
31314 2010-07-30  Eric Blake  <eblake@redhat.com>
31315
31316         strtod: fix bug in replacement function on AIX
31317         * lib/strtod.c (strtod): Special case broken "0x" parse in
31318         underlying strtod.
31319         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31320         * doc/posix-functions/strtod.texi (strtod): Likewise.
31321         Reported by Rainer Tammer.
31322
31323 2010-07-30  Bruno Haible  <bruno@clisp.org>
31324
31325         mbrlen: Fix cross-compilation guess for AIX.
31326         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31327         guess. Leftover from 2008-12-22.
31328
31329 2010-07-30  Bruno Haible  <bruno@clisp.org>
31330
31331         mbrtowc: Fix cross-compilation guess for AIX.
31332         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31333         guess. Leftover from 2008-12-21.
31334
31335 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31336
31337         init.sh: work around trap limitation of some shells
31338         * tests/init.sh (setup_): Move exit trap outside of shell function.
31339
31340 2010-07-29  Eric Blake  <eblake@redhat.com>
31341
31342         strtod: aid debugging
31343         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31344         understanding why strtod is rejected.
31345
31346 2010-07-28  Bruno Haible  <bruno@clisp.org>
31347
31348         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31349         * lib/unistr/u8-chr.c: Include <string.h>.
31350         * tests/unistr/test-u8-chr.c: Likewise.
31351         * tests/unistr/test-u16-chr.c: Likewise.
31352         * tests/unistr/test-u32-chr.c: Likewise.
31353         * tests/unistr/test-u8-strchr.c: Likewise.
31354         * tests/unistr/test-u16-strchr.c: Likewise.
31355         * tests/unistr/test-u32-strchr.c: Likewise.
31356         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31357         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31358         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31359         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31360
31361 2010-07-28  Bruno Haible  <bruno@clisp.org>
31362
31363         Use spaces for indentation, not tabs.
31364         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31365
31366 2010-07-27  Bruno Haible  <bruno@clisp.org>
31367
31368         mbspcasecmp: Fix function specification.
31369         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31370         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31371         Reported by Eric Blake <eblake@redhat.com>.
31372
31373 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31374
31375         timespec: use cast and not conditional, as truncation isn't possible
31376         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31377         instead of a conditional.  Comment about the situation in more detail.
31378         This undoes most of the 2009-10-29 patch.
31379
31380 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31381
31382         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31383         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31384         * lib/unistr/u8-strchr.c: Likewise.
31385         * modules/unistr/u8-chr: Depend on memchr.
31386
31387         unistr/u*-strchr: add tests
31388         * modules/unistr/u8-strchr-tests: New file.
31389         * modules/unistr/u16-strchr-tests: New file.
31390         * modules/unistr/u32-strchr-tests: New file.
31391         * tests/unistr/test-strchr.h: New file.
31392         * tests/unistr/test-u8-strchr.c: New file.
31393         * tests/unistr/test-u16-strchr.c: New file.
31394         * tests/unistr/test-u32-strchr.c: New file.
31395
31396         unistr/u*-chr: test multibyte sequences more
31397         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31398         test vector.
31399         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31400         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31401         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31402
31403         unistr/u*-chr: test multibyte sequences
31404         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31405
31406         unistr/u*-chr: prepare for multibyte tests
31407         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31408         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31409         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31410         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31411         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31412         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31413
31414 2010-07-18  Bruno Haible  <bruno@clisp.org>
31415
31416         unistr/u8-strchr: Optimize non-ASCII argument case.
31417         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31418         because the first byte often matches anyway.
31419         Reported by Pádraig Brady <P@draigbrady.com>.
31420
31421 2010-07-15  Karl Berry  <karl@gnu.org>
31422
31423         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31424
31425 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31426
31427         getcwd: on Solaris, work better if ancestors are inaccessible
31428         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31429         buffer and size, try again with a large buffer.  This works better
31430         on Solaris, since its getcwd succeeds even if the path to the root
31431         is inaccessible, and this is helpful in common cases such as .zfs
31432         hidden directories.  Problem reported by J Chapman Flack in
31433         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31434         Use system getcwd if it's declared, not merely if it's partly
31435         working; use the partly-working test only to avoid needless effort
31436         if the system getcwd fails.
31437         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31438         comment that was already obsolete and is now even more obsolete.
31439         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31440         now might call strdup.
31441
31442 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31443
31444         pthread: Add enough so that coreutils/src/sort.c compiles.
31445         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31446         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31447         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31448         Include <sys/types.h>, in case it defines pthread_t.
31449         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31450         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31451         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31452         (pthread_rwlockattr_t, pthread_spinlock_t):
31453         New typedefs, if HAVE_PTHREAD_T is not defined.
31454         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31455         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31456         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31457         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31458         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31459         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31460         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31461         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31462         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31463         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31464         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31465         New macros.
31466         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31467         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31468         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31469         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31470         (pthread_spin_unlock): New dummy functions.
31471         (pthread_create): Return EAGAIN; don't set errno.
31472         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31473         require AC_C_INLINE.
31474         * modules/pthread (Depends-on): Add sched, time.
31475         (pthread.h): Use AM_V_GEN.
31476
31477 2010-07-13  Bruno Haible  <bruno@clisp.org>
31478
31479         striconveh: Don't malloc memory if the result buffer is sufficient.
31480         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31481         buffer if its size is sufficient.
31482         Reported by Ludovic Courtès <ludo@gnu.org>.
31483
31484 2010-07-13  Bruno Haible  <bruno@clisp.org>
31485
31486         strtod: Add safety check.
31487         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31488
31489 2010-07-12  Bruno Haible  <bruno@clisp.org>
31490
31491         Unify tests that set gl_cv_func_ldexpl_no_libm.
31492         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31493         gl_FUNC_LDEXPL.
31494         (gl_FUNC_LDEXPL): Invoke it.
31495         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31496
31497 2010-07-12  Bruno Haible  <bruno@clisp.org>
31498
31499         Unify tests that set gl_cv_func_ldexp_no_libm.
31500         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31501         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31502         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31503         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31504         * modules/strtod (Files): Add m4/ldexp.m4.
31505
31506 2010-07-12  Bruno Haible  <bruno@clisp.org>
31507
31508         Unify tests that set gl_cv_func_frexpl_no_libm.
31509         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31510         gl_FUNC_FREXPL_NO_LIBM.
31511         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31512         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31513
31514 2010-07-12  Bruno Haible  <bruno@clisp.org>
31515
31516         Unify tests that set gl_cv_func_frexp_no_libm.
31517         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31518         gl_FUNC_FREXP_NO_LIBM.
31519         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31520         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31521
31522 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31523
31524         memcoll: clarify sizes versus lengths, document better, and tweak perf
31525         * lib/memcoll.c (strcoll_loop, memcoll0):
31526         Improve quality of descriptive comments.  Name variables
31527         consistently as to whether they are lengths (which do not include
31528         terminating null) versus sizes (which do).
31529         * lib/xmemcoll.c (xmemcoll0): Likewise.
31530         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31531         returned when s1size == 0; this is easier to compile and saves
31532         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31533
31534 2010-07-12  Bruno Haible  <bruno@clisp.org>
31535
31536         Tests for module '_Exit'.
31537         * modules/_Exit-tests: New file.
31538         * tests/test-_Exit.sh: New file.
31539         * tests/test-_Exit.c: New file.
31540
31541         New module '_Exit'.
31542         * lib/stdlib.in.h (__attribute__): New macro.
31543         (_Exit): New declaration.
31544         * lib/_Exit.c: New file.
31545         * m4/_Exit.m4: New file.
31546         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31547         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31548         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31549         * modules/_Exit: New file.
31550         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31551         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31552
31553 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31554
31555         strtod: make it more-accurate typically, and don't require libm
31556         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31557         Include limits.h.  Don't include string.h.
31558         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31559         (locale_isspace): New function, so that no casts are needed to
31560         check whether *s is a space.
31561         (ldexp): Provide an unused dummy if not available.
31562         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31563         (strtod): Use them.  This implementation prefers to use the
31564         underlying strtod if available, falling back on our own code
31565         only to fix known bugs.  This is more likely to produce an
31566         accurate result.  Also, it avoids the use of libm functions.
31567         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31568         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31569         was absent, but it caused a test failure with coreutils.
31570         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31571         with libm.
31572         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31573         * modules/strtod-tests (Makefile.am): Likewise.
31574
31575 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31576             Bruno Haible  <bruno@clisp.org>
31577
31578         unistr/u8-strchr: Optimize ASCII argument case.
31579         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31580
31581 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31582
31583         (x)memcoll: minor tweaks
31584         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31585         is after the type that it qualifies.
31586         (memcoll0): Likewise.
31587         * lib/memcoll.h (memcoll0): Likewise.
31588         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31589         * lib/xmemcoll.h (xmemcoll0): Likewise.
31590         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31591         differs from memcoll in that the NUL byte is part of the argument.
31592         Omit the abort-checks, as performance is a real issue here.  Plus,
31593         the checks were wrong anyway (an off-by-one error).  Omit local
31594         variable 'diff', as it's a bit clearer that way.
31595         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31596         no longer needed.
31597
31598 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31599
31600         (x)memcoll: speedup when input is known to be NUL delimited
31601         * lib/memcoll.c: Include stdlib.
31602         (memcoll0): New function.
31603         (strcoll_loop): New function, refactored for use in both memcoll
31604         and memcoll0.
31605         * lib/memcoll.h (memcoll0): Add prototype.
31606         * lib/xmemcoll.c (xmemcoll0): New function.
31607         (collate_error): New function, refactored for use in both xmemcoll
31608         and xmemcoll0.
31609         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31610         * m4/memcoll.m4: add inline invocation.
31611
31612 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31613
31614         * build-aux/bootstrap: Remove any local translations
31615         from the translation project synchronization directory,
31616         so that local only translations are not distributed.
31617
31618 2010-07-04  Bruno Haible  <bruno@clisp.org>
31619
31620         fsusage: Clarify which code applies to which platforms.
31621         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31622         platform.
31623         * lib/fsusage.c (get_fs_usage): Likewise.
31624
31625 2010-07-04  Bruno Haible  <bruno@clisp.org>
31626
31627         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31628         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31629         Reported by Martin Lambers <marlam@marlam.de>.
31630
31631 2010-07-04  Jim Meyering  <meyering@redhat.com>
31632
31633         hash: once again explicitly disallow insertion of NULL
31634         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31635         inserting a NULL pointer cannot work with these functions.
31636         Add a comment with details.
31637         This reverts part of the 2010-07-01 commit, 5bef1a35
31638         "hash: extend module to deal with non-pointer keys".
31639
31640 2010-07-01  Bruno Haible  <bruno@clisp.org>
31641
31642         stdbool: Update doc.
31643         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31644         Info from Christian Weisgerber <naddy@mips.inka.de>.
31645
31646 2010-07-01  Jim Meyering  <meyering@redhat.com>
31647
31648         hash: extend module to deal with non-pointer keys
31649         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31650         but that allows insertion of non-pointer entries.
31651         Do not disallow an ENTRY value of NULL.
31652         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31653         * lib/hash.h (hash_insert0): Declare.
31654
31655 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31656
31657         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31658         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31659         not present (i.e. with autoconf 2.59 and when using gettextize, not
31660         gnulib), require AC_GNU_SOURCE instead.
31661
31662 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31663
31664         idpriv-drop: Fix tests.
31665         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31666         not to the test-idpriv-droptemp program.
31667
31668 2010-06-29  Bruno Haible  <bruno@clisp.org>
31669
31670         string: Fix syntax error with g++ 2.96.
31671         * lib/string.in.h (__pure__): Remove definition.
31672         (_GL_ATTRIBUTE_PURE): New macro.
31673         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31674         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31675         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31676
31677 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31678
31679         unitypes: Fix bug introduced on 2010-05-18.
31680         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31681
31682 2010-06-22  Eric Blake  <eblake@redhat.com>
31683
31684         memmem: slight optimization
31685         * lib/str-two-way.h (critical_factorization): Update comments.
31686         Reduce work during factorization phase.
31687         Reported by Carlos Bueno <carlos@bueno.org>.
31688
31689 2010-06-21  Bruno Haible  <bruno@clisp.org>
31690
31691         Fix HAVE_CALLOC_POSIX misnomer.
31692         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31693         !HAVE_CALLOC_POSIX.
31694         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31695         HAVE_CALLOC_POSIX.
31696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31697         instead of HAVE_CALLOC_POSIX.
31698         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31699         HAVE_CALLOC_POSIX.
31700
31701         Use modern idiom for calloc() replacement.
31702         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31703         AC_FUNC_CALLOC.
31704         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31705         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31706         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31707         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31708         (gl_REPLACE_CALLOC): New macro.
31709
31710 2010-06-21  Bruno Haible  <bruno@clisp.org>
31711
31712         Fix HAVE_REALLOC_POSIX misnomer.
31713         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31714         !HAVE_REALLOC_POSIX.
31715         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31716         HAVE_REALLOC_POSIX.
31717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31718         instead of HAVE_REALLOC_POSIX.
31719         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31720         HAVE_REALLOC_POSIX.
31721
31722         Use modern idiom for realloc() replacement.
31723         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31724         AC_FUNC_REALLOC.
31725         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31726         Autoconf's AC_FUNC_REALLOC.
31727         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31728         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31729         (gl_REPLACE_REALLOC): New macro.
31730         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31731
31732 2010-06-21  Bruno Haible  <bruno@clisp.org>
31733
31734         Fix HAVE_MALLOC_POSIX misnomer.
31735         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31736         !HAVE_MALLOC_POSIX.
31737         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31738         HAVE_MALLOC_POSIX.
31739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31740         instead of HAVE_MALLOC_POSIX.
31741         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31742         HAVE_MALLOC_POSIX.
31743
31744         Use modern idiom for malloc() replacement.
31745         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31746         AC_FUNC_MALLOC.
31747         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31748         Autoconf's AC_FUNC_MALLOC.
31749         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31750         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31751         (gl_REPLACE_MALLOC): New macro.
31752         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31753
31754 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31755
31756         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31757         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31758         This macro takes 3 arguments, not 4.
31759
31760 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31761
31762         ipv6: fix detection under mingw
31763         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31764         in6_addr.
31765
31766 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31767
31768         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31769         that strtod() works when cross-compiling to a glibc version known
31770         to work.
31771
31772 2010-06-15  Bruno Haible  <bruno@clisp.org>
31773
31774         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31775
31776 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31777
31778         select: Correct timeout.
31779         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31780
31781 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31782
31783         git-version-gen: init shell var to avoid env var influence
31784         * build-aux/git-version-gen (v): Init shell var to empty.
31785
31786 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31787
31788         priv-set: Don't assume that priv.h exists merely because getppriv does.
31789         See Jan Andersen's bug report about AIX 5L in
31790         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31791         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31792         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31793         * lib/priv-set.h: Likewise.
31794         * tests/test-priv-set.c: Likewise.
31795
31796 2010-06-13  Bruno Haible  <bruno@clisp.org>
31797
31798         relocatable: Make it easier to test whether to install wrappers.
31799         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31800         RELOCATABLE_VIA_WRAPPER.
31801
31802 2010-06-13  Bruno Haible  <bruno@clisp.org>
31803
31804         gnulib-tool: Display specified modules and dependencies differently.
31805         * gnulib-tool (func_show_module_list): New function.
31806         (func_import, func_create_testdir): Invoke it.
31807         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31808
31809 2010-06-13  Bruno Haible  <bruno@clisp.org>
31810
31811         gnulib-tool: Align code of func_import and func_create_testdir.
31812         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31813         specified_modules.
31814
31815 2010-06-12  Jim Meyering  <meyering@redhat.com>
31816
31817         test-inttostr: avoid spurious failure on Solaris 9
31818         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31819         to accept "%ju".  Reported by Bruno Haible.
31820
31821 2010-06-11  Jim Meyering  <meyering@redhat.com>
31822
31823         test-sys_socket: mark variables as used more readably
31824         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31825         as "used" explicitly via (void) statement casts.  This is more
31826         readable than using them in an artificial return expression.
31827         Suggestion from Bruno Haible.
31828
31829 2010-06-11  Bruno Haible  <bruno@clisp.org>
31830
31831         Avoid some more warnings from "gcc -Wwrite-strings".
31832         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31833         to 'const char *'.
31834         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31835         * tests/test-c-strcasestr.c (main): Likewise.
31836         * tests/test-mbscasestr1.c (main): Likewise.
31837         * tests/test-mbscasestr2.c (main): Likewise.
31838         * tests/test-memmem.c (main): Likewise.
31839         * tests/test-strstr.c (main): Likewise.
31840         * tests/test-strcasestr.c (main): Likewise.
31841
31842 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31843
31844         init.sh: change framework_failure_ to fail with status 99, not 1
31845         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31846         automake's parallel-tests rule that this is an unexpected failure,
31847         even if the test is listed in XFAIL_TESTS.
31848
31849 2010-06-11  Jim Meyering  <meyering@redhat.com>
31850
31851         test-inttostr: avoid warnings about 4-6KB literal strings
31852         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31853         Include "macros.h", for its definition of ASSERT.
31854         (CK): s/assert/ASSERT/
31855         * modules/inttostr-tests (Files): Add macros.h.
31856
31857         init.sh: don't use $ME_ or skip_ before they are defined
31858         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31859         their first uses.  Also hoist their companions: warn_, fail_,
31860         framework_failure_, $stderr_fileno.  Prompted by a patch from
31861         Stefano Lattarini.
31862
31863         test-sys_socket: avoid set-but-not-used warnings from gcc
31864         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31865         avoid warning about set-but-not-used variables.
31866
31867         test-xvasprintf: avoid 'const' discard warnings
31868         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31869         "const" when assigning from literal strings.
31870         (test_xasprintf): Add "void" in function argument list to placate
31871         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31872
31873         tests: avoid compilation warnings in argmatch and exclude tests...
31874         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31875         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31876         Since it always exits, declare with the "noreturn" attribute.
31877         * tests/test-argmatch.c: Likewise.
31878
31879         tests: avoid 'const' discard warnings in mbsstr tests
31880         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31881         * tests/test-mbsstr2.c (main): Likewise.
31882
31883         test-verify: avoid warning from gcc's -Wmissing-declarations
31884         * tests/test-verify.c (function): Declare to be static.
31885
31886         test-inttostr.c: include <string.h> for use of strcmp
31887         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31888
31889         test-linkat: avoid failed assertion on "other" architectures
31890         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31891         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31892         sparc: https://bugs.launchpad.net/bugs/591968
31893
31894 2010-06-11  Jim Meyering  <meyering@redhat.com>
31895
31896         printf.m4: avoid autoconf's "Expanded Before Required" warning
31897         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31898         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31899         autoconf warning.
31900
31901 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31902
31903         Replacement header templates are now named with ".in", not "_".
31904         * doc/gnulib-intro.texi: Correct.
31905
31906 2010-06-10  Jim Meyering  <meyering@redhat.com>
31907
31908         inttostr-tests: depend on snprintf, not snprintf-posix
31909         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31910         snprintf-posix, to avoid this aclocal failure:
31911           missing file gnulib-tests/vasnprintf.c
31912           configure.ac:45: error: expected source file, required through \
31913           AC_LIBSOURCES, not found
31914
31915 2010-06-10  Jim Meyering  <meyering@redhat.com>
31916
31917         inttostr: add a new function, inttostr, and tests
31918         The namesake function was not available.  The existence of the
31919         template file, inttostr.c makes its addition nontrivial.
31920         * lib/anytostr.c: Rename from inttostr.c.
31921         (anytostr): Rename from inttostr.
31922         * lib/inttostr.c: New file.
31923         * modules/inttostr (Files): Add anytostr.c.
31924         (Makefile.am): Set lib_SOURCES instead of ...
31925         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31926         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31927         * lib/offtostr.c: Likewise.
31928         * lib/uinttostr.c: Likewise.
31929         * lib/umaxtostr.c: Likewise.
31930         * modules/inttostr-tests: New file.
31931         * tests/test-inttostr.c: New file.  Test these functions.
31932
31933 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31934             Bruno Haible  <bruno@clisp.org>
31935
31936         Add "Extending Gnulib" chapter to manual.
31937         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31938         chapter.
31939         (Extending Gnulib): New chapter.
31940         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31941         chapter.
31942
31943 2010-06-09  Bruno Haible  <bruno@clisp.org>
31944
31945         Avoid relocwrapper link errors due to gnulib replacement functions.
31946         * lib/areadlink.c: Use the system's malloc, realloc functions.
31947         (areadlink): Set errno to ENOMEM explicitly.
31948         * modules/areadlink (Depends-on): Remove malloc-posix.
31949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31950
31951 2010-06-09  Bruno Haible  <bruno@clisp.org>
31952
31953         Avoid relocwrapper link errors due to gnulib replacement functions.
31954         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31955         * lib/malloca.c: Likewise.
31956         * lib/relocatable.c: Likewise.
31957         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31958         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31959         * lib/setenv.c: Use the system's malloc, realloc functions.
31960         * lib/strerror.c: Use the system's sprintf function.
31961         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31962
31963 2010-06-04  Bruno Haible  <bruno@clisp.org>
31964
31965         Prefer documented low-level autoconf macro names.
31966         * m4/lib-link.m4: Use m4_translit instead of translit.
31967         * m4/environ.m4: Likewise.
31968         * m4/mathfunc.m4: Likewise.
31969         * m4/onceonly.m4: Likewise.
31970         * m4/stdint.m4: Likewise.
31971         Suggested by Eric Blake.
31972
31973 2010-06-04  Martin Lambers  <marlam@marlam.de>
31974             Bruno Haible  <bruno@clisp.org>
31975
31976         havelib: Allow library names with '+' characters.
31977         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31978         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31979
31980 2010-06-09  Bruno Haible  <bruno@clisp.org>
31981
31982         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31983         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31984         realloc failed.
31985
31986 2010-06-08  Peter Simons  <simons@cryp.to>
31987
31988         maint.mk: make the news-check rule more configurable
31989         * top/maint.mk (news-check-lines-spec): New variable.
31990         (news-check): Use "sed -n 1,10p" in place of "head".
31991
31992 2010-06-07  Jim Meyering  <meyering@redhat.com>
31993
31994         do-release-commit-and-tag: fix typo in --help
31995         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31996
31997         regex: avoid new dead-code warning with gcc-4.6.0
31998         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31999         if-block containing a while-loop.  It's been unused for at least
32000         5 years.
32001
32002 2010-06-05  Bruno Haible  <bruno@clisp.org>
32003
32004         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32005         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32006
32007 2010-06-04  Bruno Haible  <bruno@clisp.org>
32008
32009         Update to GNU gettext 0.18.1.
32010         * modules/gettext (configure.ac): Require gettext infrastructure from
32011         version 0.18.1.
32012
32013 2010-06-03  Bruno Haible  <bruno@clisp.org>
32014
32015         Don't use AC_LIBOBJ with file names in subdirectories.
32016         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32017         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32018         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32019         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32020         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32021         gl_LIBUNISTRING_LIBSOURCE.
32022         (Makefile.am): Augment lib_SOURCES here, conditionally.
32023         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32024
32025 2010-06-03  Bruno Haible  <bruno@clisp.org>
32026
32027         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32028         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32029         expansion does not end with a newline.
32030         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32031         unnecessary newline.
32032
32033 2010-06-03  Bruno Haible  <bruno@clisp.org>
32034
32035         Reduce dependencies.
32036         * tests/test-quotearg.h: New file, extracted from
32037         tests/test-quotearg.c.
32038         * tests/test-quotearg-simple.c: New file, extracted from
32039         tests/test-quotearg.c.
32040         * tests/test-quotearg.c: Don't include <ctype.h>.
32041         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32042         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32043         use_quote_double_quotes, use_quotearg_colon): Moved to
32044         tests/test-quotearg.h.
32045         (results_g, flag_results, custom_quotes, custom_results): Moved
32046         to tests/test-quotearg-simple.c.
32047         (main): Moved the part that does not depend on gettext to
32048         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32049         performed.
32050         * modules/quotearg-simple: New file.
32051         * modules/quotearg-simple-tests: New file.
32052         * modules/quotearg (Depends-on): Add quotearg-simple.
32053         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32054         (Files): Add tests/test-quotearg.h.
32055         Reported by Paolo Bonzini.
32056
32057 2010-06-03  Bruno Haible  <bruno@clisp.org>
32058
32059         Reduce dependencies.
32060         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32061
32062 2010-06-03  Bruno Haible  <bruno@clisp.org>
32063
32064         time: Undefine more broken macros.
32065         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32066         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32067         Reported by Eric Blake.
32068
32069 2010-06-03  Bruno Haible  <bruno@clisp.org>
32070
32071         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32072         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32073         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32074         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32075         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32076         Reported by Ludovic Courtès <ludo@gnu.org>.
32077
32078 2010-06-02  Eric Blake  <eblake@redhat.com>
32079
32080         time: work with mingw + pthreads-win32 library
32081         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32082         if timespec is defined only in pthread.h.
32083         * modules/time (Makefile.am): Substitute it.
32084         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32085         <pthread.h>, when needed.
32086         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32087         from the library.
32088
32089 2010-05-31  Bruno Haible  <bruno@clisp.org>
32090
32091         Avoid expanding two macros in the wrong order.
32092         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32093         gl_LIBUNISTRING if it is defined.
32094         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32095         autoconf >= 2.64.
32096         Reported by Ludovic Courtès <ludo@gnu.org>.
32097
32098 2010-05-27  Jim Meyering  <meyering@redhat.com>
32099
32100         maint.mk: also prohibit "#undef" of always-defined symbols
32101         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32102         Allow more than one space before the symbol name.
32103         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32104         the regexp uses alternation.
32105
32106 2010-05-26  Eric Blake  <eblake@redhat.com>
32107
32108         maint.mk: avoid echo -e
32109         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32110         Convert all uses of echo -* to printf.
32111         Reported by Matthias Bolte.
32112
32113 2010-05-25  Bruno Haible  <bruno@clisp.org>
32114
32115         Update to GNU gettext 0.18, part 2.
32116         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32117         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32118
32119 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32120
32121         Add missing include in test-pwrite.c.
32122         * tests/test-pwrite.c: Include string.h, for strcmp.
32123
32124 2010-05-24  Bruno Haible  <bruno@clisp.org>
32125
32126         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32127
32128 2010-05-24  Bruno Haible  <bruno@clisp.org>
32129
32130         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32131         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32132         iconveh_error argument.
32133         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32134         U_STRCONV_TO_LOCALE.
32135         * lib/unistr/u16-strcoll.c: Likewise.
32136         * lib/unistr/u32-strcoll.c: Likewise.
32137         * modules/unistr/u8-strcoll (Depends-on): Add
32138         uniconv/u8-strconv-to-enc, localcharset. Remove
32139         uniconv/u8-strconv-to-locale.
32140         (configure.ac): Bump version number.
32141         * modules/unistr/u16-strcoll (Depends-on): Add
32142         uniconv/u16-strconv-to-enc, localcharset. Remove
32143         uniconv/u16-strconv-to-locale.
32144         (configure.ac): Bump version number.
32145         * modules/unistr/u32-strcoll (Depends-on): Add
32146         uniconv/u32-strconv-to-enc, localcharset. Remove
32147         uniconv/u32-strconv-to-locale.
32148         (configure.ac): Bump version number.
32149
32150 2010-05-24  Bruno Haible  <bruno@clisp.org>
32151
32152         Avoid a test failure on NetBSD 5.0.
32153         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32154         an iconv() bug.
32155
32156 2010-05-24  Bruno Haible  <bruno@clisp.org>
32157
32158         Adjust #include directive style.
32159         * modules/regex (Includes): Recommend to write <regex.h>.
32160
32161 2010-05-24  Bruno Haible  <bruno@clisp.org>
32162
32163         regex: Don't require alloca.
32164         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32165         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32166         only inside if (0).
32167
32168 2010-05-23  Jim Meyering  <meyering@redhat.com>
32169
32170         test-renameat.c: include <sys/stat.h>
32171         * tests/test-renameat.c: Include <sys/stat.h>; required for
32172         definition of S_IS* macros.
32173
32174 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32175
32176         Update maintainer documentation for 'relocatable-prog' module.
32177         * doc/relocatable-maint.texi: Update.
32178         Comments by Bruno Haible.
32179
32180 2010-05-23  Bruno Haible  <bruno@clisp.org>
32181
32182         git-merge-changelog: Enable --split-merged-entry by default.
32183         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32184         (usage): Don't mention this option any more.
32185         Reported by Ralf Wildenhues.
32186
32187 2010-05-23  Jim Meyering  <meyering@redhat.com>
32188
32189         test-pwrite: do not leave behind a test file named "out"
32190         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32191         The trivial-looking use of init.sh is really necessary.
32192         It ensures that the temporary file, "out", is created in
32193         a temporary directory, and removed upon termination.
32194         * tests/test-pwrite.sh: Re-add file.
32195         * modules/pwrite-tests: Reference it.
32196
32197 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32198
32199         Fix output redirection buglet in init.sh.
32200         * tests/init.sh: Fix redirection of stderr.
32201
32202 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32203
32204         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32205
32206 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32207
32208         * modules/valgrind-tests: New file.
32209         * m4/valgrind-tests.m4: New file.
32210         * doc/valgrind-tests.texi: New file.
32211         * doc/gnulib.texi (Running self-tests under valgrind): New
32212         section.
32213
32214 2010-05-19  Bruno Haible  <bruno@clisp.org>
32215
32216         Clean up dead code in recent commit.
32217         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32218         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32219         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32220         Suggested by Paolo Bonzini.
32221
32222 2010-05-19  Bruno Haible  <bruno@clisp.org>
32223
32224         Avoid valgrind error reports from libunistring.
32225         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32226         * modules/libunistring (Files): Add it.
32227         * modules/libunistring-optional (Files): Likewise.
32228
32229 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32230             Bruno Haible  <bruno@clisp.org>
32231
32232         New module 'libunistring-optional'.
32233         * modules/libunistring-optional: New file.
32234         * m4/libunistring-base.m4: New file.
32235         * m4/libunistring-optional.m4: New file.
32236         * lib/unicase.in.h: Renamed from lib/unicase.h.
32237         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32238         * lib/unictype.in.h: Renamed from lib/unictype.h.
32239         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32240         * lib/uniname.in.h: Renamed from lib/uniname.h.
32241         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32242         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32243         * lib/unistr.in.h: Renamed from lib/unistr.h.
32244         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32245         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32246         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32247         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32248         gl_LIBUNISTRING. If the library was found, determine the installed
32249         version and set LIBUNISTRING_VERSION.
32250         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32251         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32252         handle a configuration option --with-included-libunistring.
32253         * modules/libunistring (Files): Add m4/absolute-header.m4.
32254         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32255         Add m4/libunistring-base.m4.
32256         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32257         (Makefile.am): Build unicase.h from unicase.in.h.
32258         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32259         Add m4/libunistring-base.m4.
32260         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32261         (Makefile.am): Build uniconv.h from uniconv.in.h.
32262         * modules/unictype/base (Files): Use unictype.in.h instead of
32263         unictype.h. Add m4/libunistring-base.m4.
32264         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32265         (Makefile.am): Build unictype.h from unictype.in.h.
32266         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32267         Add m4/libunistring-base.m4.
32268         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32269         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32270         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32271         Add m4/libunistring-base.m4.
32272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32273         (Makefile.am): Build uniname.h from uniname.in.h.
32274         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32275         Add m4/libunistring-base.m4.
32276         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32277         (Makefile.am): Build uninorm.h from uninorm.in.h.
32278         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32279         unistdio.h. Add m4/libunistring-base.m4.
32280         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32281         (Makefile.am): Build unistdio.h from unistdio.in.h.
32282         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32283         Add m4/libunistring-base.m4.
32284         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32285         (Makefile.am): Build unistr.h from unistr.in.h.
32286         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32287         Add m4/libunistring-base.m4.
32288         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32289         (Makefile.am): Build unitypes.h from unitypes.in.h.
32290         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32291         Add m4/libunistring-base.m4.
32292         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32293         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32294         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32295         uniwidth.h. Add m4/libunistring-base.m4.
32296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32297         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32298         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32299         instead of augmenting lib_SOURCES.
32300         * modules/unicase/empty-suffix-context: Likewise.
32301         * modules/unicase/locale-language: Likewise.
32302         * modules/unicase/tolower: Likewise.
32303         * modules/unicase/totitle: Likewise.
32304         * modules/unicase/toupper: Likewise.
32305         * modules/unicase/u8-casecmp: Likewise.
32306         * modules/unicase/u8-casecoll: Likewise.
32307         * modules/unicase/u8-casefold: Likewise.
32308         * modules/unicase/u8-casexfrm: Likewise.
32309         * modules/unicase/u8-ct-casefold: Likewise.
32310         * modules/unicase/u8-ct-tolower: Likewise.
32311         * modules/unicase/u8-ct-totitle: Likewise.
32312         * modules/unicase/u8-ct-toupper: Likewise.
32313         * modules/unicase/u8-is-cased: Likewise.
32314         * modules/unicase/u8-is-casefolded: Likewise.
32315         * modules/unicase/u8-is-lowercase: Likewise.
32316         * modules/unicase/u8-is-titlecase: Likewise.
32317         * modules/unicase/u8-is-uppercase: Likewise.
32318         * modules/unicase/u8-prefix-context: Likewise.
32319         * modules/unicase/u8-suffix-context: Likewise.
32320         * modules/unicase/u8-tolower: Likewise.
32321         * modules/unicase/u8-totitle: Likewise.
32322         * modules/unicase/u8-toupper: Likewise.
32323         * modules/unicase/u16-casecmp: Likewise.
32324         * modules/unicase/u16-casecoll: Likewise.
32325         * modules/unicase/u16-casefold: Likewise.
32326         * modules/unicase/u16-casexfrm: Likewise.
32327         * modules/unicase/u16-ct-casefold: Likewise.
32328         * modules/unicase/u16-ct-tolower: Likewise.
32329         * modules/unicase/u16-ct-totitle: Likewise.
32330         * modules/unicase/u16-ct-toupper: Likewise.
32331         * modules/unicase/u16-is-cased: Likewise.
32332         * modules/unicase/u16-is-casefolded: Likewise.
32333         * modules/unicase/u16-is-lowercase: Likewise.
32334         * modules/unicase/u16-is-titlecase: Likewise.
32335         * modules/unicase/u16-is-uppercase: Likewise.
32336         * modules/unicase/u16-prefix-context: Likewise.
32337         * modules/unicase/u16-suffix-context: Likewise.
32338         * modules/unicase/u16-tolower: Likewise.
32339         * modules/unicase/u16-totitle: Likewise.
32340         * modules/unicase/u16-toupper: Likewise.
32341         * modules/unicase/u32-casecmp: Likewise.
32342         * modules/unicase/u32-casecoll: Likewise.
32343         * modules/unicase/u32-casefold: Likewise.
32344         * modules/unicase/u32-casexfrm: Likewise.
32345         * modules/unicase/u32-ct-casefold: Likewise.
32346         * modules/unicase/u32-ct-tolower: Likewise.
32347         * modules/unicase/u32-ct-totitle: Likewise.
32348         * modules/unicase/u32-ct-toupper: Likewise.
32349         * modules/unicase/u32-is-cased: Likewise.
32350         * modules/unicase/u32-is-casefolded: Likewise.
32351         * modules/unicase/u32-is-lowercase: Likewise.
32352         * modules/unicase/u32-is-titlecase: Likewise.
32353         * modules/unicase/u32-is-uppercase: Likewise.
32354         * modules/unicase/u32-prefix-context: Likewise.
32355         * modules/unicase/u32-suffix-context: Likewise.
32356         * modules/unicase/u32-tolower: Likewise.
32357         * modules/unicase/u32-totitle: Likewise.
32358         * modules/unicase/u32-toupper: Likewise.
32359         * modules/unicase/ulc-casecmp: Likewise.
32360         * modules/unicase/ulc-casecoll: Likewise.
32361         * modules/unicase/ulc-casexfrm: Likewise.
32362         * modules/uniconv/u8-conv-from-enc: Likewise.
32363         * modules/uniconv/u8-conv-to-enc: Likewise.
32364         * modules/uniconv/u8-strconv-from-enc: Likewise.
32365         * modules/uniconv/u8-strconv-from-locale: Likewise.
32366         * modules/uniconv/u8-strconv-to-enc: Likewise.
32367         * modules/uniconv/u8-strconv-to-locale: Likewise.
32368         * modules/uniconv/u16-conv-from-enc: Likewise.
32369         * modules/uniconv/u16-conv-to-enc: Likewise.
32370         * modules/uniconv/u16-strconv-from-enc: Likewise.
32371         * modules/uniconv/u16-strconv-from-locale: Likewise.
32372         * modules/uniconv/u16-strconv-to-enc: Likewise.
32373         * modules/uniconv/u16-strconv-to-locale: Likewise.
32374         * modules/uniconv/u32-conv-from-enc: Likewise.
32375         * modules/uniconv/u32-conv-to-enc: Likewise.
32376         * modules/uniconv/u32-strconv-from-enc: Likewise.
32377         * modules/uniconv/u32-strconv-from-locale: Likewise.
32378         * modules/uniconv/u32-strconv-to-enc: Likewise.
32379         * modules/uniconv/u32-strconv-to-locale: Likewise.
32380         * modules/unictype/bidicategory-byname: Likewise.
32381         * modules/unictype/bidicategory-name: Likewise.
32382         * modules/unictype/bidicategory-of: Likewise.
32383         * modules/unictype/bidicategory-test: Likewise.
32384         * modules/unictype/block-list: Likewise.
32385         * modules/unictype/block-test: Likewise.
32386         * modules/unictype/category-C: Likewise.
32387         * modules/unictype/category-Cc: Likewise.
32388         * modules/unictype/category-Cf: Likewise.
32389         * modules/unictype/category-Cn: Likewise.
32390         * modules/unictype/category-Co: Likewise.
32391         * modules/unictype/category-Cs: Likewise.
32392         * modules/unictype/category-L: Likewise.
32393         * modules/unictype/category-Ll: Likewise.
32394         * modules/unictype/category-Lm: Likewise.
32395         * modules/unictype/category-Lo: Likewise.
32396         * modules/unictype/category-Lt: Likewise.
32397         * modules/unictype/category-Lu: Likewise.
32398         * modules/unictype/category-M: Likewise.
32399         * modules/unictype/category-Mc: Likewise.
32400         * modules/unictype/category-Me: Likewise.
32401         * modules/unictype/category-Mn: Likewise.
32402         * modules/unictype/category-N: Likewise.
32403         * modules/unictype/category-Nd: Likewise.
32404         * modules/unictype/category-Nl: Likewise.
32405         * modules/unictype/category-No: Likewise.
32406         * modules/unictype/category-P: Likewise.
32407         * modules/unictype/category-Pc: Likewise.
32408         * modules/unictype/category-Pd: Likewise.
32409         * modules/unictype/category-Pe: Likewise.
32410         * modules/unictype/category-Pf: Likewise.
32411         * modules/unictype/category-Pi: Likewise.
32412         * modules/unictype/category-Po: Likewise.
32413         * modules/unictype/category-Ps: Likewise.
32414         * modules/unictype/category-S: Likewise.
32415         * modules/unictype/category-Sc: Likewise.
32416         * modules/unictype/category-Sk: Likewise.
32417         * modules/unictype/category-Sm: Likewise.
32418         * modules/unictype/category-So: Likewise.
32419         * modules/unictype/category-Z: Likewise.
32420         * modules/unictype/category-Zl: Likewise.
32421         * modules/unictype/category-Zp: Likewise.
32422         * modules/unictype/category-Zs: Likewise.
32423         * modules/unictype/category-and: Likewise.
32424         * modules/unictype/category-and-not: Likewise.
32425         * modules/unictype/category-byname: Likewise.
32426         * modules/unictype/category-name: Likewise.
32427         * modules/unictype/category-none: Likewise.
32428         * modules/unictype/category-of: Likewise.
32429         * modules/unictype/category-or: Likewise.
32430         * modules/unictype/category-test: Likewise.
32431         * modules/unictype/combining-class: Likewise.
32432         * modules/unictype/ctype-alnum: Likewise.
32433         * modules/unictype/ctype-alpha: Likewise.
32434         * modules/unictype/ctype-blank: Likewise.
32435         * modules/unictype/ctype-cntrl: Likewise.
32436         * modules/unictype/ctype-digit: Likewise.
32437         * modules/unictype/ctype-graph: Likewise.
32438         * modules/unictype/ctype-lower: Likewise.
32439         * modules/unictype/ctype-print: Likewise.
32440         * modules/unictype/ctype-punct: Likewise.
32441         * modules/unictype/ctype-space: Likewise.
32442         * modules/unictype/ctype-upper: Likewise.
32443         * modules/unictype/ctype-xdigit: Likewise.
32444         * modules/unictype/decimal-digit: Likewise.
32445         * modules/unictype/digit: Likewise.
32446         * modules/unictype/mirror: Likewise.
32447         * modules/unictype/numeric: Likewise.
32448         * modules/unictype/property-alphabetic: Likewise.
32449         * modules/unictype/property-ascii-hex-digit: Likewise.
32450         * modules/unictype/property-bidi-arabic-digit: Likewise.
32451         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32452         * modules/unictype/property-bidi-block-separator: Likewise.
32453         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32454         * modules/unictype/property-bidi-common-separator: Likewise.
32455         * modules/unictype/property-bidi-control: Likewise.
32456         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32457         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32458         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32459         * modules/unictype/property-bidi-european-digit: Likewise.
32460         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32461         * modules/unictype/property-bidi-left-to-right: Likewise.
32462         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32463         * modules/unictype/property-bidi-other-neutral: Likewise.
32464         * modules/unictype/property-bidi-pdf: Likewise.
32465         * modules/unictype/property-bidi-segment-separator: Likewise.
32466         * modules/unictype/property-bidi-whitespace: Likewise.
32467         * modules/unictype/property-byname: Likewise.
32468         * modules/unictype/property-combining: Likewise.
32469         * modules/unictype/property-composite: Likewise.
32470         * modules/unictype/property-currency-symbol: Likewise.
32471         * modules/unictype/property-dash: Likewise.
32472         * modules/unictype/property-decimal-digit: Likewise.
32473         * modules/unictype/property-default-ignorable-code-point: Likewise.
32474         * modules/unictype/property-deprecated: Likewise.
32475         * modules/unictype/property-diacritic: Likewise.
32476         * modules/unictype/property-extender: Likewise.
32477         * modules/unictype/property-format-control: Likewise.
32478         * modules/unictype/property-grapheme-base: Likewise.
32479         * modules/unictype/property-grapheme-extend: Likewise.
32480         * modules/unictype/property-grapheme-link: Likewise.
32481         * modules/unictype/property-hex-digit: Likewise.
32482         * modules/unictype/property-hyphen: Likewise.
32483         * modules/unictype/property-id-continue: Likewise.
32484         * modules/unictype/property-id-start: Likewise.
32485         * modules/unictype/property-ideographic: Likewise.
32486         * modules/unictype/property-ids-binary-operator: Likewise.
32487         * modules/unictype/property-ids-trinary-operator: Likewise.
32488         * modules/unictype/property-ignorable-control: Likewise.
32489         * modules/unictype/property-iso-control: Likewise.
32490         * modules/unictype/property-join-control: Likewise.
32491         * modules/unictype/property-left-of-pair: Likewise.
32492         * modules/unictype/property-line-separator: Likewise.
32493         * modules/unictype/property-logical-order-exception: Likewise.
32494         * modules/unictype/property-lowercase: Likewise.
32495         * modules/unictype/property-math: Likewise.
32496         * modules/unictype/property-non-break: Likewise.
32497         * modules/unictype/property-not-a-character: Likewise.
32498         * modules/unictype/property-numeric: Likewise.
32499         * modules/unictype/property-other-alphabetic: Likewise.
32500         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32501         * modules/unictype/property-other-grapheme-extend: Likewise.
32502         * modules/unictype/property-other-id-continue: Likewise.
32503         * modules/unictype/property-other-id-start: Likewise.
32504         * modules/unictype/property-other-lowercase: Likewise.
32505         * modules/unictype/property-other-math: Likewise.
32506         * modules/unictype/property-other-uppercase: Likewise.
32507         * modules/unictype/property-paired-punctuation: Likewise.
32508         * modules/unictype/property-paragraph-separator: Likewise.
32509         * modules/unictype/property-pattern-syntax: Likewise.
32510         * modules/unictype/property-pattern-white-space: Likewise.
32511         * modules/unictype/property-private-use: Likewise.
32512         * modules/unictype/property-punctuation: Likewise.
32513         * modules/unictype/property-quotation-mark: Likewise.
32514         * modules/unictype/property-radical: Likewise.
32515         * modules/unictype/property-sentence-terminal: Likewise.
32516         * modules/unictype/property-soft-dotted: Likewise.
32517         * modules/unictype/property-space: Likewise.
32518         * modules/unictype/property-terminal-punctuation: Likewise.
32519         * modules/unictype/property-test: Likewise.
32520         * modules/unictype/property-titlecase: Likewise.
32521         * modules/unictype/property-unassigned-code-value: Likewise.
32522         * modules/unictype/property-unified-ideograph: Likewise.
32523         * modules/unictype/property-uppercase: Likewise.
32524         * modules/unictype/property-variation-selector: Likewise.
32525         * modules/unictype/property-white-space: Likewise.
32526         * modules/unictype/property-xid-continue: Likewise.
32527         * modules/unictype/property-xid-start: Likewise.
32528         * modules/unictype/property-zero-width: Likewise.
32529         * modules/unictype/scripts: Likewise.
32530         * modules/unictype/syntax-c-ident: Likewise.
32531         * modules/unictype/syntax-c-whitespace: Likewise.
32532         * modules/unictype/syntax-java-ident: Likewise.
32533         * modules/unictype/syntax-java-whitespace: Likewise.
32534         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32535         * modules/unilbrk/u8-width-linebreaks: Likewise.
32536         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32537         * modules/unilbrk/u16-width-linebreaks: Likewise.
32538         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32539         * modules/unilbrk/u32-width-linebreaks: Likewise.
32540         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32541         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32542         * modules/uniname/uniname: Likewise.
32543         * modules/uninorm/canonical-decomposition: Likewise.
32544         * modules/uninorm/composition: Likewise.
32545         * modules/uninorm/decomposing-form: Likewise.
32546         * modules/uninorm/decomposition: Likewise.
32547         * modules/uninorm/filter: Likewise.
32548         * modules/uninorm/nfc: Likewise.
32549         * modules/uninorm/nfd: Likewise.
32550         * modules/uninorm/nfkc: Likewise.
32551         * modules/uninorm/nfkd: Likewise.
32552         * modules/uninorm/u8-normalize: Likewise.
32553         * modules/uninorm/u8-normcmp: Likewise.
32554         * modules/uninorm/u8-normcoll: Likewise.
32555         * modules/uninorm/u8-normxfrm: Likewise.
32556         * modules/uninorm/u16-normalize: Likewise.
32557         * modules/uninorm/u16-normcmp: Likewise.
32558         * modules/uninorm/u16-normcoll: Likewise.
32559         * modules/uninorm/u16-normxfrm: Likewise.
32560         * modules/uninorm/u32-normalize: Likewise.
32561         * modules/uninorm/u32-normcmp: Likewise.
32562         * modules/uninorm/u32-normcoll: Likewise.
32563         * modules/uninorm/u32-normxfrm: Likewise.
32564         * modules/unistdio/u8-asnprintf: Likewise.
32565         * modules/unistdio/u8-asprintf: Likewise.
32566         * modules/unistdio/u8-snprintf: Likewise.
32567         * modules/unistdio/u8-sprintf: Likewise.
32568         * modules/unistdio/u8-u8-asnprintf: Likewise.
32569         * modules/unistdio/u8-u8-asprintf: Likewise.
32570         * modules/unistdio/u8-u8-snprintf: Likewise.
32571         * modules/unistdio/u8-u8-sprintf: Likewise.
32572         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32573         * modules/unistdio/u8-u8-vasprintf: Likewise.
32574         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32575         * modules/unistdio/u8-u8-vsprintf: Likewise.
32576         * modules/unistdio/u8-vasnprintf: Likewise.
32577         * modules/unistdio/u8-vasprintf: Likewise.
32578         * modules/unistdio/u8-vsnprintf: Likewise.
32579         * modules/unistdio/u8-vsprintf: Likewise.
32580         * modules/unistdio/u16-asnprintf: Likewise.
32581         * modules/unistdio/u16-asprintf: Likewise.
32582         * modules/unistdio/u16-snprintf: Likewise.
32583         * modules/unistdio/u16-sprintf: Likewise.
32584         * modules/unistdio/u16-u16-asnprintf: Likewise.
32585         * modules/unistdio/u16-u16-asprintf: Likewise.
32586         * modules/unistdio/u16-u16-snprintf: Likewise.
32587         * modules/unistdio/u16-u16-sprintf: Likewise.
32588         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32589         * modules/unistdio/u16-u16-vasprintf: Likewise.
32590         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32591         * modules/unistdio/u16-u16-vsprintf: Likewise.
32592         * modules/unistdio/u16-vasnprintf: Likewise.
32593         * modules/unistdio/u16-vasprintf: Likewise.
32594         * modules/unistdio/u16-vsnprintf: Likewise.
32595         * modules/unistdio/u16-vsprintf: Likewise.
32596         * modules/unistdio/u32-asnprintf: Likewise.
32597         * modules/unistdio/u32-asprintf: Likewise.
32598         * modules/unistdio/u32-snprintf: Likewise.
32599         * modules/unistdio/u32-sprintf: Likewise.
32600         * modules/unistdio/u32-u32-asnprintf: Likewise.
32601         * modules/unistdio/u32-u32-asprintf: Likewise.
32602         * modules/unistdio/u32-u32-snprintf: Likewise.
32603         * modules/unistdio/u32-u32-sprintf: Likewise.
32604         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32605         * modules/unistdio/u32-u32-vasprintf: Likewise.
32606         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32607         * modules/unistdio/u32-u32-vsprintf: Likewise.
32608         * modules/unistdio/u32-vasnprintf: Likewise.
32609         * modules/unistdio/u32-vasprintf: Likewise.
32610         * modules/unistdio/u32-vsnprintf: Likewise.
32611         * modules/unistdio/u32-vsprintf: Likewise.
32612         * modules/unistdio/ulc-asnprintf: Likewise.
32613         * modules/unistdio/ulc-asprintf: Likewise.
32614         * modules/unistdio/ulc-fprintf: Likewise.
32615         * modules/unistdio/ulc-snprintf: Likewise.
32616         * modules/unistdio/ulc-sprintf: Likewise.
32617         * modules/unistdio/ulc-vasnprintf: Likewise.
32618         * modules/unistdio/ulc-vasprintf: Likewise.
32619         * modules/unistdio/ulc-vfprintf: Likewise.
32620         * modules/unistdio/ulc-vsnprintf: Likewise.
32621         * modules/unistdio/ulc-vsprintf: Likewise.
32622         * modules/unistr/u8-check: Likewise.
32623         * modules/unistr/u8-chr: Likewise.
32624         * modules/unistr/u8-cmp: Likewise.
32625         * modules/unistr/u8-cmp2: Likewise.
32626         * modules/unistr/u8-cpy: Likewise.
32627         * modules/unistr/u8-cpy-alloc: Likewise.
32628         * modules/unistr/u8-endswith: Likewise.
32629         * modules/unistr/u8-mblen: Likewise.
32630         * modules/unistr/u8-mbsnlen: Likewise.
32631         * modules/unistr/u8-mbtouc: Likewise.
32632         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32633         * modules/unistr/u8-mbtoucr: Likewise.
32634         * modules/unistr/u8-move: Likewise.
32635         * modules/unistr/u8-next: Likewise.
32636         * modules/unistr/u8-prev: Likewise.
32637         * modules/unistr/u8-set: Likewise.
32638         * modules/unistr/u8-startswith: Likewise.
32639         * modules/unistr/u8-stpcpy: Likewise.
32640         * modules/unistr/u8-stpncpy: Likewise.
32641         * modules/unistr/u8-strcat: Likewise.
32642         * modules/unistr/u8-strchr: Likewise.
32643         * modules/unistr/u8-strcmp: Likewise.
32644         * modules/unistr/u8-strcoll: Likewise.
32645         * modules/unistr/u8-strcpy: Likewise.
32646         * modules/unistr/u8-strcspn: Likewise.
32647         * modules/unistr/u8-strdup: Likewise.
32648         * modules/unistr/u8-strlen: Likewise.
32649         * modules/unistr/u8-strmblen: Likewise.
32650         * modules/unistr/u8-strmbtouc: Likewise.
32651         * modules/unistr/u8-strncat: Likewise.
32652         * modules/unistr/u8-strncmp: Likewise.
32653         * modules/unistr/u8-strncpy: Likewise.
32654         * modules/unistr/u8-strnlen: Likewise.
32655         * modules/unistr/u8-strpbrk: Likewise.
32656         * modules/unistr/u8-strrchr: Likewise.
32657         * modules/unistr/u8-strspn: Likewise.
32658         * modules/unistr/u8-strstr: Likewise.
32659         * modules/unistr/u8-strtok: Likewise.
32660         * modules/unistr/u8-to-u16: Likewise.
32661         * modules/unistr/u8-to-u32: Likewise.
32662         * modules/unistr/u8-uctomb: Likewise.
32663         * modules/unistr/u16-check: Likewise.
32664         * modules/unistr/u16-chr: Likewise.
32665         * modules/unistr/u16-cmp: Likewise.
32666         * modules/unistr/u16-cmp2: Likewise.
32667         * modules/unistr/u16-cpy: Likewise.
32668         * modules/unistr/u16-cpy-alloc: Likewise.
32669         * modules/unistr/u16-endswith: Likewise.
32670         * modules/unistr/u16-mblen: Likewise.
32671         * modules/unistr/u16-mbsnlen: Likewise.
32672         * modules/unistr/u16-mbtouc: Likewise.
32673         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32674         * modules/unistr/u16-mbtoucr: Likewise.
32675         * modules/unistr/u16-move: Likewise.
32676         * modules/unistr/u16-next: Likewise.
32677         * modules/unistr/u16-prev: Likewise.
32678         * modules/unistr/u16-set: Likewise.
32679         * modules/unistr/u16-startswith: Likewise.
32680         * modules/unistr/u16-stpcpy: Likewise.
32681         * modules/unistr/u16-stpncpy: Likewise.
32682         * modules/unistr/u16-strcat: Likewise.
32683         * modules/unistr/u16-strchr: Likewise.
32684         * modules/unistr/u16-strcmp: Likewise.
32685         * modules/unistr/u16-strcoll: Likewise.
32686         * modules/unistr/u16-strcpy: Likewise.
32687         * modules/unistr/u16-strcspn: Likewise.
32688         * modules/unistr/u16-strdup: Likewise.
32689         * modules/unistr/u16-strlen: Likewise.
32690         * modules/unistr/u16-strmblen: Likewise.
32691         * modules/unistr/u16-strmbtouc: Likewise.
32692         * modules/unistr/u16-strncat: Likewise.
32693         * modules/unistr/u16-strncmp: Likewise.
32694         * modules/unistr/u16-strncpy: Likewise.
32695         * modules/unistr/u16-strnlen: Likewise.
32696         * modules/unistr/u16-strpbrk: Likewise.
32697         * modules/unistr/u16-strrchr: Likewise.
32698         * modules/unistr/u16-strspn: Likewise.
32699         * modules/unistr/u16-strstr: Likewise.
32700         * modules/unistr/u16-strtok: Likewise.
32701         * modules/unistr/u16-to-u32: Likewise.
32702         * modules/unistr/u16-to-u8: Likewise.
32703         * modules/unistr/u16-uctomb: Likewise.
32704         * modules/unistr/u32-check: Likewise.
32705         * modules/unistr/u32-chr: Likewise.
32706         * modules/unistr/u32-cmp: Likewise.
32707         * modules/unistr/u32-cmp2: Likewise.
32708         * modules/unistr/u32-cpy: Likewise.
32709         * modules/unistr/u32-cpy-alloc: Likewise.
32710         * modules/unistr/u32-endswith: Likewise.
32711         * modules/unistr/u32-mblen: Likewise.
32712         * modules/unistr/u32-mbsnlen: Likewise.
32713         * modules/unistr/u32-mbtouc: Likewise.
32714         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32715         * modules/unistr/u32-mbtoucr: Likewise.
32716         * modules/unistr/u32-move: Likewise.
32717         * modules/unistr/u32-next: Likewise.
32718         * modules/unistr/u32-prev: Likewise.
32719         * modules/unistr/u32-set: Likewise.
32720         * modules/unistr/u32-startswith: Likewise.
32721         * modules/unistr/u32-stpcpy: Likewise.
32722         * modules/unistr/u32-stpncpy: Likewise.
32723         * modules/unistr/u32-strcat: Likewise.
32724         * modules/unistr/u32-strchr: Likewise.
32725         * modules/unistr/u32-strcmp: Likewise.
32726         * modules/unistr/u32-strcoll: Likewise.
32727         * modules/unistr/u32-strcpy: Likewise.
32728         * modules/unistr/u32-strcspn: Likewise.
32729         * modules/unistr/u32-strdup: Likewise.
32730         * modules/unistr/u32-strlen: Likewise.
32731         * modules/unistr/u32-strmblen: Likewise.
32732         * modules/unistr/u32-strmbtouc: Likewise.
32733         * modules/unistr/u32-strncat: Likewise.
32734         * modules/unistr/u32-strncmp: Likewise.
32735         * modules/unistr/u32-strncpy: Likewise.
32736         * modules/unistr/u32-strnlen: Likewise.
32737         * modules/unistr/u32-strpbrk: Likewise.
32738         * modules/unistr/u32-strrchr: Likewise.
32739         * modules/unistr/u32-strspn: Likewise.
32740         * modules/unistr/u32-strstr: Likewise.
32741         * modules/unistr/u32-strtok: Likewise.
32742         * modules/unistr/u32-to-u16: Likewise.
32743         * modules/unistr/u32-to-u8: Likewise.
32744         * modules/unistr/u32-uctomb: Likewise.
32745         * modules/uniwbrk/u8-wordbreaks: Likewise.
32746         * modules/uniwbrk/u16-wordbreaks: Likewise.
32747         * modules/uniwbrk/u32-wordbreaks: Likewise.
32748         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32749         * modules/uniwbrk/wordbreak-property: Likewise.
32750         * modules/uniwidth/u8-strwidth: Likewise.
32751         * modules/uniwidth/u8-width: Likewise.
32752         * modules/uniwidth/u16-strwidth: Likewise.
32753         * modules/uniwidth/u16-width: Likewise.
32754         * modules/uniwidth/u32-strwidth: Likewise.
32755         * modules/uniwidth/u32-width: Likewise.
32756         * modules/uniwidth/width: Likewise.
32757         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32758         with $(LIBUNISTRING).
32759         * modules/unicase/ignorable-tests: Likewise.
32760         * modules/unicase/locale-language-tests: Likewise.
32761         * modules/unicase/tolower-tests: Likewise.
32762         * modules/unicase/totitle-tests: Likewise.
32763         * modules/unicase/toupper-tests: Likewise.
32764         * modules/unicase/u8-casecmp-tests: Likewise.
32765         * modules/unicase/u8-casecoll-tests: Likewise.
32766         * modules/unicase/u8-casefold-tests: Likewise.
32767         * modules/unicase/u8-is-cased-tests: Likewise.
32768         * modules/unicase/u8-is-casefolded-tests: Likewise.
32769         * modules/unicase/u8-is-lowercase-tests: Likewise.
32770         * modules/unicase/u8-is-titlecase-tests: Likewise.
32771         * modules/unicase/u8-is-uppercase-tests: Likewise.
32772         * modules/unicase/u8-tolower-tests: Likewise.
32773         * modules/unicase/u8-totitle-tests: Likewise.
32774         * modules/unicase/u8-toupper-tests: Likewise.
32775         * modules/unicase/u16-casecmp-tests: Likewise.
32776         * modules/unicase/u16-casecoll-tests: Likewise.
32777         * modules/unicase/u16-casefold-tests: Likewise.
32778         * modules/unicase/u16-is-cased-tests: Likewise.
32779         * modules/unicase/u16-is-casefolded-tests: Likewise.
32780         * modules/unicase/u16-is-lowercase-tests: Likewise.
32781         * modules/unicase/u16-is-titlecase-tests: Likewise.
32782         * modules/unicase/u16-is-uppercase-tests: Likewise.
32783         * modules/unicase/u16-tolower-tests: Likewise.
32784         * modules/unicase/u16-totitle-tests: Likewise.
32785         * modules/unicase/u16-toupper-tests: Likewise.
32786         * modules/unicase/u32-casecmp-tests: Likewise.
32787         * modules/unicase/u32-casecoll-tests: Likewise.
32788         * modules/unicase/u32-casefold-tests: Likewise.
32789         * modules/unicase/u32-is-cased-tests: Likewise.
32790         * modules/unicase/u32-is-casefolded-tests: Likewise.
32791         * modules/unicase/u32-is-lowercase-tests: Likewise.
32792         * modules/unicase/u32-is-titlecase-tests: Likewise.
32793         * modules/unicase/u32-is-uppercase-tests: Likewise.
32794         * modules/unicase/u32-tolower-tests: Likewise.
32795         * modules/unicase/u32-totitle-tests: Likewise.
32796         * modules/unicase/u32-toupper-tests: Likewise.
32797         * modules/unicase/ulc-casecmp-tests: Likewise.
32798         * modules/unicase/ulc-casecoll-tests: Likewise.
32799         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32800         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32801         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32802         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32803         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32804         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32805         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32806         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32807         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32808         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32809         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32810         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32811         * modules/unictype/bidicategory-byname-tests: Likewise.
32812         * modules/unictype/bidicategory-name-tests: Likewise.
32813         * modules/unictype/bidicategory-of-tests: Likewise.
32814         * modules/unictype/bidicategory-test-tests: Likewise.
32815         * modules/unictype/block-list-tests: Likewise.
32816         * modules/unictype/block-of-tests: Likewise.
32817         * modules/unictype/block-test-tests: Likewise.
32818         * modules/unictype/category-C-tests: Likewise.
32819         * modules/unictype/category-Cc-tests: Likewise.
32820         * modules/unictype/category-Cf-tests: Likewise.
32821         * modules/unictype/category-Cn-tests: Likewise.
32822         * modules/unictype/category-Co-tests: Likewise.
32823         * modules/unictype/category-Cs-tests: Likewise.
32824         * modules/unictype/category-L-tests: Likewise.
32825         * modules/unictype/category-Ll-tests: Likewise.
32826         * modules/unictype/category-Lm-tests: Likewise.
32827         * modules/unictype/category-Lo-tests: Likewise.
32828         * modules/unictype/category-Lt-tests: Likewise.
32829         * modules/unictype/category-Lu-tests: Likewise.
32830         * modules/unictype/category-M-tests: Likewise.
32831         * modules/unictype/category-Mc-tests: Likewise.
32832         * modules/unictype/category-Me-tests: Likewise.
32833         * modules/unictype/category-Mn-tests: Likewise.
32834         * modules/unictype/category-N-tests: Likewise.
32835         * modules/unictype/category-Nd-tests: Likewise.
32836         * modules/unictype/category-Nl-tests: Likewise.
32837         * modules/unictype/category-No-tests: Likewise.
32838         * modules/unictype/category-P-tests: Likewise.
32839         * modules/unictype/category-Pc-tests: Likewise.
32840         * modules/unictype/category-Pd-tests: Likewise.
32841         * modules/unictype/category-Pe-tests: Likewise.
32842         * modules/unictype/category-Pf-tests: Likewise.
32843         * modules/unictype/category-Pi-tests: Likewise.
32844         * modules/unictype/category-Po-tests: Likewise.
32845         * modules/unictype/category-Ps-tests: Likewise.
32846         * modules/unictype/category-S-tests: Likewise.
32847         * modules/unictype/category-Sc-tests: Likewise.
32848         * modules/unictype/category-Sk-tests: Likewise.
32849         * modules/unictype/category-Sm-tests: Likewise.
32850         * modules/unictype/category-So-tests: Likewise.
32851         * modules/unictype/category-Z-tests: Likewise.
32852         * modules/unictype/category-Zl-tests: Likewise.
32853         * modules/unictype/category-Zp-tests: Likewise.
32854         * modules/unictype/category-Zs-tests: Likewise.
32855         * modules/unictype/category-and-not-tests: Likewise.
32856         * modules/unictype/category-and-tests: Likewise.
32857         * modules/unictype/category-byname-tests: Likewise.
32858         * modules/unictype/category-name-tests: Likewise.
32859         * modules/unictype/category-none-tests: Likewise.
32860         * modules/unictype/category-of-tests: Likewise.
32861         * modules/unictype/category-or-tests: Likewise.
32862         * modules/unictype/category-test-withtable-tests: Likewise.
32863         * modules/unictype/combining-class-tests: Likewise.
32864         * modules/unictype/ctype-alnum-tests: Likewise.
32865         * modules/unictype/ctype-alpha-tests: Likewise.
32866         * modules/unictype/ctype-blank-tests: Likewise.
32867         * modules/unictype/ctype-cntrl-tests: Likewise.
32868         * modules/unictype/ctype-digit-tests: Likewise.
32869         * modules/unictype/ctype-graph-tests: Likewise.
32870         * modules/unictype/ctype-lower-tests: Likewise.
32871         * modules/unictype/ctype-print-tests: Likewise.
32872         * modules/unictype/ctype-punct-tests: Likewise.
32873         * modules/unictype/ctype-space-tests: Likewise.
32874         * modules/unictype/ctype-upper-tests: Likewise.
32875         * modules/unictype/ctype-xdigit-tests: Likewise.
32876         * modules/unictype/decimal-digit-tests: Likewise.
32877         * modules/unictype/digit-tests: Likewise.
32878         * modules/unictype/mirror-tests: Likewise.
32879         * modules/unictype/numeric-tests: Likewise.
32880         * modules/unictype/property-alphabetic-tests: Likewise.
32881         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32882         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32883         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32884         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32885         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32886         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32887         * modules/unictype/property-bidi-control-tests: Likewise.
32888         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32889         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32890         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32891         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32892         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32893         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32894         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32895         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32896         * modules/unictype/property-bidi-pdf-tests: Likewise.
32897         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32898         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32899         * modules/unictype/property-byname-tests: Likewise.
32900         * modules/unictype/property-combining-tests: Likewise.
32901         * modules/unictype/property-composite-tests: Likewise.
32902         * modules/unictype/property-currency-symbol-tests: Likewise.
32903         * modules/unictype/property-dash-tests: Likewise.
32904         * modules/unictype/property-decimal-digit-tests: Likewise.
32905         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32906         * modules/unictype/property-deprecated-tests: Likewise.
32907         * modules/unictype/property-diacritic-tests: Likewise.
32908         * modules/unictype/property-extender-tests: Likewise.
32909         * modules/unictype/property-format-control-tests: Likewise.
32910         * modules/unictype/property-grapheme-base-tests: Likewise.
32911         * modules/unictype/property-grapheme-extend-tests: Likewise.
32912         * modules/unictype/property-grapheme-link-tests: Likewise.
32913         * modules/unictype/property-hex-digit-tests: Likewise.
32914         * modules/unictype/property-hyphen-tests: Likewise.
32915         * modules/unictype/property-id-continue-tests: Likewise.
32916         * modules/unictype/property-id-start-tests: Likewise.
32917         * modules/unictype/property-ideographic-tests: Likewise.
32918         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32919         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32920         * modules/unictype/property-ignorable-control-tests: Likewise.
32921         * modules/unictype/property-iso-control-tests: Likewise.
32922         * modules/unictype/property-join-control-tests: Likewise.
32923         * modules/unictype/property-left-of-pair-tests: Likewise.
32924         * modules/unictype/property-line-separator-tests: Likewise.
32925         * modules/unictype/property-logical-order-exception-tests: Likewise.
32926         * modules/unictype/property-lowercase-tests: Likewise.
32927         * modules/unictype/property-math-tests: Likewise.
32928         * modules/unictype/property-non-break-tests: Likewise.
32929         * modules/unictype/property-not-a-character-tests: Likewise.
32930         * modules/unictype/property-numeric-tests: Likewise.
32931         * modules/unictype/property-other-alphabetic-tests: Likewise.
32932         * modules/unictype/property-other-default-ignorable-code-point-tests:
32933         Likewise.
32934         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32935         * modules/unictype/property-other-id-continue-tests: Likewise.
32936         * modules/unictype/property-other-id-start-tests: Likewise.
32937         * modules/unictype/property-other-lowercase-tests: Likewise.
32938         * modules/unictype/property-other-math-tests: Likewise.
32939         * modules/unictype/property-other-uppercase-tests: Likewise.
32940         * modules/unictype/property-paired-punctuation-tests: Likewise.
32941         * modules/unictype/property-paragraph-separator-tests: Likewise.
32942         * modules/unictype/property-pattern-syntax-tests: Likewise.
32943         * modules/unictype/property-pattern-white-space-tests: Likewise.
32944         * modules/unictype/property-private-use-tests: Likewise.
32945         * modules/unictype/property-punctuation-tests: Likewise.
32946         * modules/unictype/property-quotation-mark-tests: Likewise.
32947         * modules/unictype/property-radical-tests: Likewise.
32948         * modules/unictype/property-sentence-terminal-tests: Likewise.
32949         * modules/unictype/property-soft-dotted-tests: Likewise.
32950         * modules/unictype/property-space-tests: Likewise.
32951         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32952         * modules/unictype/property-test-tests: Likewise.
32953         * modules/unictype/property-titlecase-tests: Likewise.
32954         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32955         * modules/unictype/property-unified-ideograph-tests: Likewise.
32956         * modules/unictype/property-uppercase-tests: Likewise.
32957         * modules/unictype/property-variation-selector-tests: Likewise.
32958         * modules/unictype/property-white-space-tests: Likewise.
32959         * modules/unictype/property-xid-continue-tests: Likewise.
32960         * modules/unictype/property-xid-start-tests: Likewise.
32961         * modules/unictype/property-zero-width-tests: Likewise.
32962         * modules/unictype/scripts-tests: Likewise.
32963         * modules/unictype/syntax-c-ident-tests: Likewise.
32964         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32965         * modules/unictype/syntax-java-ident-tests: Likewise.
32966         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32967         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32968         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32969         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32970         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32971         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32972         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32973         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32974         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32975         * modules/uniname/uniname-tests: Likewise.
32976         * modules/uninorm/canonical-decomposition-tests: Likewise.
32977         * modules/uninorm/compat-decomposition-tests: Likewise.
32978         * modules/uninorm/composition-tests: Likewise.
32979         * modules/uninorm/decomposing-form-tests: Likewise.
32980         * modules/uninorm/decomposition-tests: Likewise.
32981         * modules/uninorm/filter-tests: Likewise.
32982         * modules/uninorm/nfc-tests: Likewise.
32983         * modules/uninorm/nfd-tests: Likewise.
32984         * modules/uninorm/nfkc-tests: Likewise.
32985         * modules/uninorm/nfkd-tests: Likewise.
32986         * modules/uninorm/u8-normcmp-tests: Likewise.
32987         * modules/uninorm/u8-normcoll-tests: Likewise.
32988         * modules/uninorm/u16-normcmp-tests: Likewise.
32989         * modules/uninorm/u16-normcoll-tests: Likewise.
32990         * modules/uninorm/u32-normcmp-tests: Likewise.
32991         * modules/uninorm/u32-normcoll-tests: Likewise.
32992         * modules/unistdio/u8-asnprintf-tests: Likewise.
32993         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32994         * modules/unistdio/u8-vasprintf-tests: Likewise.
32995         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32996         * modules/unistdio/u8-vsprintf-tests: Likewise.
32997         * modules/unistdio/u16-asnprintf-tests: Likewise.
32998         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32999         * modules/unistdio/u16-vasprintf-tests: Likewise.
33000         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33001         * modules/unistdio/u16-vsprintf-tests: Likewise.
33002         * modules/unistdio/u32-asnprintf-tests: Likewise.
33003         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33004         * modules/unistdio/u32-vasprintf-tests: Likewise.
33005         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33006         * modules/unistdio/u32-vsprintf-tests: Likewise.
33007         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33008         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33009         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33010         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33011         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33012         * modules/unistr/u8-check-tests: Likewise.
33013         * modules/unistr/u8-chr-tests: Likewise.
33014         * modules/unistr/u8-cmp-tests: Likewise.
33015         * modules/unistr/u8-cmp2-tests: Likewise.
33016         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33017         * modules/unistr/u8-cpy-tests: Likewise.
33018         * modules/unistr/u8-mblen-tests: Likewise.
33019         * modules/unistr/u8-mbsnlen-tests: Likewise.
33020         * modules/unistr/u8-mbtouc-tests: Likewise.
33021         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33022         * modules/unistr/u8-mbtoucr-tests: Likewise.
33023         * modules/unistr/u8-move-tests: Likewise.
33024         * modules/unistr/u8-next-tests: Likewise.
33025         * modules/unistr/u8-prev-tests: Likewise.
33026         * modules/unistr/u8-set-tests: Likewise.
33027         * modules/unistr/u8-stpcpy-tests: Likewise.
33028         * modules/unistr/u8-stpncpy-tests: Likewise.
33029         * modules/unistr/u8-strcat-tests: Likewise.
33030         * modules/unistr/u8-strcmp-tests: Likewise.
33031         * modules/unistr/u8-strcoll-tests: Likewise.
33032         * modules/unistr/u8-strcpy-tests: Likewise.
33033         * modules/unistr/u8-strdup-tests: Likewise.
33034         * modules/unistr/u8-strlen-tests: Likewise.
33035         * modules/unistr/u8-strmblen-tests: Likewise.
33036         * modules/unistr/u8-strmbtouc-tests: Likewise.
33037         * modules/unistr/u8-strncat-tests: Likewise.
33038         * modules/unistr/u8-strncmp-tests: Likewise.
33039         * modules/unistr/u8-strncpy-tests: Likewise.
33040         * modules/unistr/u8-strnlen-tests: Likewise.
33041         * modules/unistr/u8-to-u16-tests: Likewise.
33042         * modules/unistr/u8-to-u32-tests: Likewise.
33043         * modules/unistr/u8-uctomb-tests: Likewise.
33044         * modules/unistr/u16-check-tests: Likewise.
33045         * modules/unistr/u16-chr-tests: Likewise.
33046         * modules/unistr/u16-cmp-tests: Likewise.
33047         * modules/unistr/u16-cmp2-tests: Likewise.
33048         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33049         * modules/unistr/u16-cpy-tests: Likewise.
33050         * modules/unistr/u16-mblen-tests: Likewise.
33051         * modules/unistr/u16-mbsnlen-tests: Likewise.
33052         * modules/unistr/u16-mbtouc-tests: Likewise.
33053         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33054         * modules/unistr/u16-mbtoucr-tests: Likewise.
33055         * modules/unistr/u16-move-tests: Likewise.
33056         * modules/unistr/u16-next-tests: Likewise.
33057         * modules/unistr/u16-prev-tests: Likewise.
33058         * modules/unistr/u16-set-tests: Likewise.
33059         * modules/unistr/u16-stpcpy-tests: Likewise.
33060         * modules/unistr/u16-stpncpy-tests: Likewise.
33061         * modules/unistr/u16-strcat-tests: Likewise.
33062         * modules/unistr/u16-strcmp-tests: Likewise.
33063         * modules/unistr/u16-strcoll-tests: Likewise.
33064         * modules/unistr/u16-strcpy-tests: Likewise.
33065         * modules/unistr/u16-strdup-tests: Likewise.
33066         * modules/unistr/u16-strlen-tests: Likewise.
33067         * modules/unistr/u16-strmblen-tests: Likewise.
33068         * modules/unistr/u16-strmbtouc-tests: Likewise.
33069         * modules/unistr/u16-strncat-tests: Likewise.
33070         * modules/unistr/u16-strncmp-tests: Likewise.
33071         * modules/unistr/u16-strncpy-tests: Likewise.
33072         * modules/unistr/u16-strnlen-tests: Likewise.
33073         * modules/unistr/u16-to-u32-tests: Likewise.
33074         * modules/unistr/u16-to-u8-tests: Likewise.
33075         * modules/unistr/u16-uctomb-tests: Likewise.
33076         * modules/unistr/u32-check-tests: Likewise.
33077         * modules/unistr/u32-chr-tests: Likewise.
33078         * modules/unistr/u32-cmp-tests: Likewise.
33079         * modules/unistr/u32-cmp2-tests: Likewise.
33080         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33081         * modules/unistr/u32-cpy-tests: Likewise.
33082         * modules/unistr/u32-mblen-tests: Likewise.
33083         * modules/unistr/u32-mbsnlen-tests: Likewise.
33084         * modules/unistr/u32-mbtouc-tests: Likewise.
33085         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33086         * modules/unistr/u32-mbtoucr-tests: Likewise.
33087         * modules/unistr/u32-move-tests: Likewise.
33088         * modules/unistr/u32-next-tests: Likewise.
33089         * modules/unistr/u32-prev-tests: Likewise.
33090         * modules/unistr/u32-set-tests: Likewise.
33091         * modules/unistr/u32-stpcpy-tests: Likewise.
33092         * modules/unistr/u32-stpncpy-tests: Likewise.
33093         * modules/unistr/u32-strcat-tests: Likewise.
33094         * modules/unistr/u32-strcmp-tests: Likewise.
33095         * modules/unistr/u32-strcoll-tests: Likewise.
33096         * modules/unistr/u32-strcpy-tests: Likewise.
33097         * modules/unistr/u32-strdup-tests: Likewise.
33098         * modules/unistr/u32-strlen-tests: Likewise.
33099         * modules/unistr/u32-strmblen-tests: Likewise.
33100         * modules/unistr/u32-strmbtouc-tests: Likewise.
33101         * modules/unistr/u32-strncat-tests: Likewise.
33102         * modules/unistr/u32-strncmp-tests: Likewise.
33103         * modules/unistr/u32-strncpy-tests: Likewise.
33104         * modules/unistr/u32-strnlen-tests: Likewise.
33105         * modules/unistr/u32-to-u16-tests: Likewise.
33106         * modules/unistr/u32-to-u8-tests: Likewise.
33107         * modules/unistr/u32-uctomb-tests: Likewise.
33108         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33109         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33110         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33111         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33112         * modules/uniwidth/u8-strwidth-tests: Likewise.
33113         * modules/uniwidth/u8-width-tests: Likewise.
33114         * modules/uniwidth/u16-strwidth-tests: Likewise.
33115         * modules/uniwidth/u16-width-tests: Likewise.
33116         * modules/uniwidth/u32-strwidth-tests: Likewise.
33117         * modules/uniwidth/u32-width-tests: Likewise.
33118         * modules/uniwidth/width-tests: Likewise.
33119
33120 2010-05-18  Richard Jones  <rjones@redhat.com>
33121
33122         doc: users.txt: list hivex
33123         * users.txt: Add hivex.
33124
33125 2010-05-18  Richard Jones  <rjones@redhat.com>
33126
33127         doc: users.txt: list febootstrap
33128         * users.txt: Add febootstrap.
33129
33130 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33131
33132         bootstrap: fix an error when gnulib is not used as a git submodule
33133         * build-aux/bootstrap (gnulib_path): If its length is zero then
33134         assign "gnulib" to it.
33135         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33136
33137 2010-05-16  Bruno Haible  <bruno@clisp.org>
33138
33139         Avoid autoconf warnings about AM_ICONV.
33140         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33141         2.64.
33142
33143 2010-05-16  Bruno Haible  <bruno@clisp.org>
33144
33145         absolute-header: Make the macro usable in more situations.
33146         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33147         from gl_ABSOLUTE_HEADER.
33148         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33149
33150 2010-05-16  James Youngman  <jay@gnu.org>
33151
33152         doc: update users.txt
33153         * users.txt: Add CSSC.
33154
33155 2010-05-16  Jim Meyering  <meyering@redhat.com>
33156
33157         init.sh: fix an error in the previous change; add more comments
33158         * tests/init.sh: Compare exit code in loop against 9, not 2.
33159         Patch by Bruno Haible.
33160         Make the two tests more similar by adding an empty "then" clause.
33161         Add comments.
33162
33163         init.sh: avoid unnecessary shell re-exec
33164         * tests/init.sh: Improve the re-exec-required check to first test the
33165         current shell.  If it passes the test, do not search for a shell that
33166         does pass, and do not re-exec.  This test is particularly contorted to
33167         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33168         of $(...) evokes a syntax error and causes immediate shell exit with
33169         status 2.  Bruno Haible reported that the re-exec made it impossible
33170         to single-step through any init.sh-using script.
33171
33172 2010-05-16  Bruno Haible  <bruno@clisp.org>
33173
33174         Fix collision between gnulib's and libintl's printf replacements.
33175         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33176         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33177         (printf): When using GNU C, map the __printf__ function to rpl_printf
33178         via __asm__. When not using GNU C, define rpl_printf instead of
33179         __printf__.
33180         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33181         commit.
33182         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33183         commit.
33184         * m4/asm-underscore.m4: New file.
33185         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33186         * modules/stdio (Files): Add m4/asm-underscore.m4.
33187         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33188         Reported by Ben Pfaff.
33189
33190 2010-05-16  Bruno Haible  <bruno@clisp.org>
33191
33192         verify: Avoid skipping the test on openSUSE 11.0.
33193         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33194
33195 2010-05-13  Bruno Haible  <bruno@clisp.org>
33196
33197         Avoid useless warnings from G++.
33198         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33199         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33200         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33201
33202 2010-05-11  Jim Meyering  <meyering@redhat.com>
33203
33204         maint.mk: tweak preceding change
33205         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33206         regexps tighter by anchoring at EOL, and make the new group "shy"
33207         for slightly decreased overhead.
33208
33209 2010-05-11  Eric Blake  <eblake@redhat.com>
33210
33211         maint.mk: gnulib doesn't guarantee NSIG
33212         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33213
33214 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33215
33216         test-pwrite.c: Remove unused variable declaration.
33217         * tests/test-pwrite.c (main): Remove read_buf declaration.
33218
33219         Remove useless test-pwrite.sh file.
33220         * tests/test-pwrite.sh: Delete file.
33221         * modules/pwrite-tests: Remove references.
33222         Reported by Bruno Haible.
33223
33224 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33225
33226         init.sh: fix a typo
33227         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33228
33229 2010-05-10  Jim Meyering  <meyering@redhat.com>
33230
33231         maint.mk: avoid using a temporary file in the always-defined-macros check
33232         * top/maint.mk (.re-defmac): Remove rule.
33233         (gl_trap_): Remove definition.
33234         (sc_prohibit_always-defined_macros): Rewrite not to create and
33235         depend on a temporary file.  Instead, depend on GNU grep's ability
33236         to read a list of regular expressions from stdin when given "-f -".
33237
33238 2010-05-09  Bruno Haible  <bruno@clisp.org>
33239
33240         Update to GNU gettext 0.18, part 1.
33241         * m4/gettext.m4: Update to GNU gettext 0.18.
33242         * m4/intl.m4: Likewise.
33243         * m4/po.m4: Likewise.
33244         * modules/gettext (Files): Add m4/fcntl-o.m4.
33245         (configure.ac): Require gettext infrastructure from version 0.18.
33246
33247 2010-05-09  Jim Meyering  <meyering@redhat.com>
33248
33249         init.sh: enable MALLOC_PERTURB_
33250         * tests/init.sh: Enable glibc's malloc-perturbing option.
33251
33252         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33253         With my recent change in init.sh from the two-line form:
33254             -#   : ${srcdir=.}
33255             -#   . "$srcdir/init.sh"; path_prepend_ .
33256             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33257         I noticed that using the one-line form would cause this test
33258         to fail with a false-positive, or to stop working altogether,
33259         depending on whether help-version changed or all the tests did.
33260         * top/maint.mk (_hv_regex): Remove this definition.
33261         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33262         (_hv_regex_strong): Use a stronger regex to check for conformance.
33263         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33264         Give a separate diagnostic for lack of conforming use.
33265
33266         maint.mk: prohibit definition of symbols defined by gnulib
33267         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33268         definition of symbols defined by gnulib.
33269
33270 2010-05-09  Bruno Haible  <bruno@clisp.org>
33271
33272         acl: Avoid test failure on Cygwin-hosted mingw.
33273         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33274
33275 2010-05-09  Bruno Haible  <bruno@clisp.org>
33276
33277         error: Use system's fcntl function.
33278         * lib/error.c (fcntl): Undefine.
33279
33280 2010-05-09  Jim Meyering  <meyering@redhat.com>
33281
33282         verify: adjust formatting to be more consistent
33283         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33284         argument-list '('s, and after one comma.
33285
33286 2010-05-09  Bruno Haible  <bruno@clisp.org>
33287
33288         error: More reliable output on mingw.
33289         * lib/error.c: Include <windows.h>.
33290         (is_open): New function.
33291         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33292         defined.
33293
33294 2010-05-09  Bruno Haible  <bruno@clisp.org>
33295
33296         vasnprintf: Fix syntax errors in libintl build on mingw.
33297         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33298         pad_ourselves and prec_ourselves after use.
33299
33300 2010-05-08  Bruno Haible  <bruno@clisp.org>
33301
33302         * lib/config.charset: Update comments for Cygwin 1.7.
33303         * lib/localcharset.c: Likewise.
33304
33305 2010-05-07  Jim Meyering  <meyering@redhat.com>
33306
33307         init.sh: improve comments
33308         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33309         . "${srcdir=.}/init.sh"; path_prepend_ .
33310         Add a note about path_prepend_ and the alternative of using
33311         TESTS_ENVIRONMENT.
33312
33313 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33314
33315         exclude: Unescape hashed patterns in wildcard mode.
33316         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33317         to the hash list.
33318         * tests/test-exclude8.sh: New test case.
33319         * modules/exclude-tests: Add new test.
33320
33321 2010-05-05  Eric Blake  <eblake@redhat.com>
33322
33323         verify: automate tests
33324         * modules/verify-tests: New module.
33325         * tests/test-verify.sh: New file.
33326         * tests/test-verify.c: Guard each negative test with a unique id.
33327         Also avoid warning about unused left hand of comma expressions.
33328
33329 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33330
33331         Further improvements to verify.h, suggested by Eric Blake.
33332         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33333         the GL_* versions, to avoid collision with OpenGL.
33334         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33335         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33336         than testing merely whether it's defined.
33337
33338         Modify verify.h to pacify gcc -Wredundant_decls.
33339         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33340         These use the prefix "GL_" since they're likely to be useful elsewhere.
33341         We may need to break them out into a different .h file.
33342         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33343         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33344         of verify_function__.
33345
33346 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33347
33348         Tests for module pwrite.
33349         * modules/pwrite-tests: New file.
33350         * tests/test-pwrite.sh: New file.
33351         * tests/test-pwrite.c: New file.
33352
33353         New module pwrite.
33354         * lib/unistd.in.h (pwrite): New declaration.
33355         * lib/pwrite.c: New file, from glibc with modifications.
33356         * m4/pwrite.m4: New file.
33357         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33358         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33359         REPLACE_PWRITE.
33360         * modules/pwrite: New file.
33361         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33362         REPLACE_PWRITE.
33363         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33364         * doc/posix-functions/pwrite.texi: Mention the new module.
33365
33366 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33367
33368         pread: Update documentation.
33369         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33370
33371 2010-05-04  Eric Blake  <eblake@redhat.com>
33372
33373         docs: update cygwin progress
33374         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33375         this bug.
33376         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33377         Added in cygwin 1.7.2.
33378         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33379         Likewise.
33380         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33381         Likewise.
33382         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33383         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33384         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33385         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33386         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33387         Mention nproc module.
33388         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33389         bug in cygwin 1.7.5 addition.
33390         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33391         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33392         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33393         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33394         1.7.5.
33395         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33396         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33397         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33398         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33399         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33400         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33401         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33402         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33403         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33404         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33405         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33406         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33407         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33408         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33409         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33410         Likewise.
33411         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33412         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33413         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33414         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33415         Likewise.
33416         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33417         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33418         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33419         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33420         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33421         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33422         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33423         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33424         Likewise.
33425         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33426         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33427         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33428         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33429         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33430         Likewise.
33431         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33432         Likewise.
33433         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33434         Likewise.
33435         * doc/glibc-functions/xdrrec_endofrecord.texi
33436         (xdrrec_endofrecord): Likewise.
33437         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33438         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33439         Likewise.
33440         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33441         Likewise.
33442
33443 2010-05-04  Jim Meyering  <meyering@redhat.com>
33444
33445         gendocs.sh: make its "-s FILE" option more useful
33446         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33447         $PACKAGE to reflect the probably-different basename of "FILE".
33448
33449 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33450
33451         bootstrap: don't ignore download_po_files failure
33452         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33453         failure.
33454
33455 2010-05-03  Jim Meyering  <meyering@redhat.com>
33456
33457         maint.mk: allow to pass options to gendocs.sh
33458         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33459         (gendocs_options_): New overridable variable.
33460
33461         gnu-web-doc-update: don't ignore configure or build failure
33462         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33463
33464         announce-gen: backslash-escape '@'s in --help output
33465         * build-aux/announce-gen: Fix syntax errors.
33466
33467         maint.mk, announce-gen: allow project-specific announcement mail headers
33468         * top/maint.mk (translation_project_): Define default.
33469         (announcement_Cc_, announcement_mail_headers_): Likewise.
33470         (announcement): Invoke announce-gen with new --mail-headers option.
33471         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33472
33473         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33474         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33475         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33476         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33477         line in the "err2" output file when running "make check" in verbose
33478         mode (i.e., with set -x enabled).
33479
33480 2010-05-03  Bruno Haible  <bruno@clisp.org>
33481
33482         wctob: Fix for weird platforms.
33483         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33484         argument value.
33485
33486 2010-05-03  Jim Meyering  <meyering@redhat.com>
33487
33488         maint.mk: prohibit unwarranted use of <strings.h>
33489         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33490         strings.h in a file that does not also use strcasecmp, strncasecmp,
33491         ffs or ffsll.
33492
33493         maint.mk: remove obsolete comments
33494         * top/maint.mk: Remove stale, commented-out rules.
33495
33496 2010-05-02  Bruno Haible  <bruno@clisp.org>
33497
33498         wcwidth: Declare also when it's aliased.
33499         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33500         macro.
33501
33502 2010-05-02  Bruno Haible  <bruno@clisp.org>
33503
33504         Fix regression from 2010-04-25.
33505         * gnulib-tool (func_modules_transitive_closure): Check the status of
33506         all modules, not only of the tests that are of the form foo-tests where
33507         foo is a module.
33508
33509 2010-05-02  Bruno Haible  <bruno@clisp.org>
33510
33511         wctob: Work around nasty Cygwin 1.7.2 bug.
33512         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33513         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33514
33515 2010-05-01  Bruno Haible  <bruno@clisp.org>
33516
33517         fpurge: Sharper test.
33518         * tests/test-fpurge.c (main): Add one more ftell check.
33519         * modules/fpurge-tests (Depends-on): Add ftell.
33520         Suggested by Eric Blake.
33521
33522 2010-05-01  Bruno Haible  <bruno@clisp.org>
33523
33524         ftello: Another test.
33525         * tests/test-ftello3.c: New file.
33526         * modules/ftello-tests (Files): Add it.
33527         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33528         MOSTLYCLEANFILES.
33529
33530         ftell: Another test.
33531         * tests/test-ftell3.c: New file.
33532         * modules/ftell-tests (Files): Add it.
33533         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33534         MOSTLYCLEANFILES.
33535
33536 2010-05-01  Bruno Haible  <bruno@clisp.org>
33537
33538         ftell, ftello: Work around Solaris bug.
33539         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33540         * lib/ftello.c: Include stdio-impl.h.
33541         (ftello): On Solaris, when _IOWRT is set, compute the result without
33542         looking at _IOREAD.
33543         * modules/ftello (Files): Add lib/stdio-impl.h.
33544         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33545         * doc/posix-functions/ftello.texi: Likewise.
33546         Reported by Eric Blake.
33547
33548 2010-05-01  Bruno Haible  <bruno@clisp.org>
33549
33550         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33551         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33552         the _IOWRT flag is also set.
33553
33554 2010-05-01  Bruno Haible  <bruno@clisp.org>
33555
33556         Fix doc about a HP-UX stdio bug.
33557         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33558         * doc/posix-functions/ftello.texi: Likewise.
33559
33560 2010-05-01  Bruno Haible  <bruno@clisp.org>
33561
33562         lseek test: Fix failure on Solaris.
33563         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33564         output.
33565
33566 2010-04-30  Jim Meyering  <meyering@redhat.com>
33567
33568         bootstrap: don't ignore failure to generate po*/Makevars
33569         * build-aux/bootstrap (with_gettext): Don't ignore failure
33570         to create po/Makevars or runtime-po/Makevars.
33571
33572 2010-04-29  Eric Blake  <eblake@redhat.com>
33573
33574         headers: relax license to LGPLv2+
33575         * modules/fcntl-h (License): Relax license.
33576         * modules/getopt-posix (License): Likewise.
33577         * modules/locale (License): Likewise.
33578         * modules/math (License): Likewise.
33579         * modules/pty (License): Likewise.
33580         * modules/sched (License): Likewise.
33581         * modules/search (License): Likewise.
33582         * modules/spawn (License): Likewise.
33583         * modules/stdarg (License): Likewise.
33584         * modules/sysexits (License): Likewise.
33585
33586 2010-04-29  Jim Meyering  <meyering@redhat.com>
33587
33588         inttypes: relax license to LGPLv2+
33589         * modules/inttypes (License): Relax license.
33590
33591 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33592
33593         * top/maint.mk (indent): Run twice to produce idempotent results.
33594
33595 2010-04-28  Bruno Haible  <bruno@clisp.org>
33596
33597         getdate: Generate getdate.c in the source directory.
33598         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33599         MOSTLYCLEANFILES.
33600         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33601
33602 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33603
33604         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33605         is not declared as a const *; avoid warnings in that case.
33606
33607 2010-04-28  Eric Blake  <eblake@redhat.com>
33608
33609         canonicalize-lgpl: avoid compiler warning
33610         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33611         declaration' / 'extraneous semicolon' warning with some compilers.
33612         Reported by Andreas Gruenbacher.
33613
33614 2010-04-28  Jim Meyering  <meyering@redhat.com>
33615
33616         init.sh: ensure a more reliable exit status when exiting via trap
33617         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33618         Inspired by patches from Dmitry V. Levin.
33619         Also trap on signal 3 (SIGQUIT).
33620
33621 2010-04-27  Bruno Haible  <bruno@clisp.org>
33622
33623         Update doc about utimes().
33624         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33625         'utimens' module.
33626         Reported by Andreas Gruenbacher <agruen@suse.de>.
33627
33628 2010-04-27  Eric Blake  <eblake@redhat.com>
33629
33630         full-read, full-write: relax license
33631         * modules/full-read (License): Drop to LGPLv2+.
33632         * modules/full-write (License): Likewise.
33633         * modules/safe-read (License): Likewise.
33634         * modules/safe-write (License): Likewise.
33635
33636         pthread: mention library for linking
33637         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33638
33639 2010-04-27  Jim Meyering  <meyering@redhat.com>
33640
33641         maint.mk: fix a bug introduced in last change
33642         * top/maint.mk (gl_assured_headers_): Now that all names are on
33643         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33644         is not anchored to end of word, it should be adequate.
33645
33646         maint.mk: avoid side-effect in latest syntax-check
33647         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33648         to run commands via $(shell...), and hence to incur cost only when
33649         the new rule is actually run.
33650
33651         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33652         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33653         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33654         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33655         (gl_assured_headers_, az_, AZ_): Define.
33656         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33657
33658 2010-04-26  Jim Meyering  <jim@meyering.net>
33659             Bruno Haible  <bruno@clisp.org>
33660
33661         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33662         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33663         Prompted by an exchange with Gilles Espinasse.
33664
33665 2010-04-26  Jim Meyering  <meyering@redhat.com>
33666
33667         git-version-gen: aesthetic tweak
33668         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33669         so that the command remains on a single line.
33670
33671 2010-04-26  Eric Blake  <eblake@redhat.com>
33672
33673         git-version-gen: allow use on EBCDIC hosts
33674         * build-aux/git-version-gen (dirty): Use literal rather than tying
33675         ourselves to ascii.
33676         Reported by Steve Goetze.
33677
33678 2010-04-25  Bruno Haible  <bruno@clisp.org>
33679
33680         netdb: Add support for GNULIB_POSIXCHECK.
33681         * lib/netdb.in.h: Include warn-on-use.h.
33682         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33683         functions are used when GNULIB_POSIXCHECK is defined and the
33684         getaddrinfo module is not in use.
33685         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33686         freeaddrinfo, gai_strerror, getnameinfo are declared.
33687         * modules/netdb (Depends-on): Add warn-on-use.
33688         (Makefile.am): Include warn-on-use.h in netdb.h.
33689
33690 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33691
33692         build: avoid "make check" failure without .git/ directory
33693         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33694         there is no .git/ directory.
33695
33696 2010-04-25  Bruno Haible  <bruno@clisp.org>
33697
33698         ptsname: Fix misuse of ttyname_r.
33699         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33700         of errno.
33701
33702 2010-04-25  Bruno Haible  <bruno@clisp.org>
33703
33704         ttyname_r: Make it work on Solaris 10.
33705         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33706         if the system function has the POSIX declaration. Test whether the
33707         function fails if the buffer is less than 128 bytes large.
33708         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33709         system's ttyname_r function. Provide a reasonably large buffer.
33710         * modules/ttyname_r (Depends-on): Add extensions.
33711         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33712
33713 2010-04-25  Bruno Haible  <bruno@clisp.org>
33714
33715         Use the 'extensions' module for some more functions on Solaris.
33716         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33717         module.
33718         * doc/posix-functions/ctime_r.texi: Likewise.
33719         * doc/posix-functions/getgrgid_r.texi: Likewise.
33720         * doc/posix-functions/getgrnam_r.texi: Likewise.
33721         * doc/posix-functions/getpwnam_r.texi: Likewise.
33722         * doc/posix-functions/getpwuid_r.texi: Likewise.
33723         * doc/posix-functions/readdir_r.texi: Likewise.
33724         * doc/posix-functions/sigwait.texi: Likewise.
33725         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33726         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33727
33728 2010-04-25  Bruno Haible  <bruno@clisp.org>
33729
33730         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33731         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33732         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33733         * lib/ttyname_r.c: Include <limits.h>.
33734         (ttyname_r): Define using the system's ttyname_r function, if it exists
33735         and not on Solaris.
33736         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33737         set.
33738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33739         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33740         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33741         Reported by Simon Josefsson.
33742
33743 2010-04-25  Bruno Haible  <bruno@clisp.org>
33744
33745         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33746         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33747         * doc/posix-functions/ctime_r.texi: Likewise.
33748         * doc/posix-functions/getgrgid_r.texi: Likewise.
33749         * doc/posix-functions/getgrnam_r.texi: Likewise.
33750         * doc/posix-functions/getlogin_r.texi: Likewise.
33751         * doc/posix-functions/getpwnam_r.texi: Likewise.
33752         * doc/posix-functions/getpwuid_r.texi: Likewise.
33753         * doc/posix-functions/readdir_r.texi: Likewise.
33754         * doc/posix-functions/sigwait.texi: Likewise.
33755         * doc/posix-functions/ttyname_r.texi: Likewise.
33756         Reported by Simon Josefsson.
33757
33758 2010-04-25  Bruno Haible  <bruno@clisp.org>
33759
33760         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33761         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33762         also to --create-testdir.
33763         (func_acceptable): Don't consider the status of *-tests modules here.
33764         (func_modules_transitive_closure): Consider it here, before including a
33765         test module.
33766         (func_import, func_create_testdir): Set inc_all_direct_tests,
33767         inc_all_indirect_tests.
33768         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33769         --create-testdir and --create-megatestdir.
33770
33771 2010-04-25  Bruno Haible  <bruno@clisp.org>
33772
33773         gnulib-tool: Add --without-*-tests options.
33774         * gnulib-tool (func_usage): Document the --without-*-tests options.
33775         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33776         excl_unportable_tests): New variables.
33777         Fail if they are specified with --import or --update.
33778         (func_acceptable): Respect the excl_*_tests variables.
33779         (func_import): Set the excl_*_tests variables to empty.
33780
33781 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33782             Bruno Haible  <bruno@clisp.org>
33783
33784         Work around a MacOS X 10.4 bug with openpty.
33785         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33786         * tests/test-openpty.c (main): Close the master side explicitly.
33787
33788 2010-04-25  Bruno Haible  <bruno@clisp.org>
33789
33790         strnlen: Fix a C++ test error on MacOS X and Solaris.
33791         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33792         the function is not declared.
33793         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33794         Simon Josefsson.
33795
33796 2010-04-24  Bruno Haible  <bruno@clisp.org>
33797
33798         Avoid a gcc warning.
33799         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33800         of correct type for %08lx directive.
33801         Reported by Eric Blake.
33802
33803 2010-04-24  Bruno Haible  <bruno@clisp.org>
33804
33805         vasnprintf: Correct errno value in case of out-of-memory.
33806         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33807         or sprintf. Use the errno value from SNPRINTF or sprintf.
33808         Reported by Ian Beckwith <ianb@erislabs.net>.
33809
33810 2010-04-24  Bruno Haible  <bruno@clisp.org>
33811
33812         ansi-c++-opt: Find correct compiler when cross-compiling.
33813         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33814         AC_CHECK_PROGS.
33815         Reported by Simon Josefsson.
33816
33817 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33818
33819         vc-list-files: Add support for subversion
33820         * build-aux/vc-list-files: Use "svn list" to generate the list of
33821         files controlled by subversion.
33822
33823 2010-04-23  Jim Meyering  <meyering@redhat.com>
33824
33825         vc-list-files tests: convert to use init.sh
33826         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33827         path_prepend_.
33828         Use Exit, not exit.
33829         Use skip_ rather than open coding it.
33830         Remove trap set-up and compare definitions.
33831         * tests/test-vc-list-files-git.sh: Likewise.
33832         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33833
33834 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33835
33836         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33837         backup files.
33838
33839 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33840
33841         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33842
33843 2010-04-20  Eric Blake  <eblake@redhat.com>
33844
33845         tests: be robust to ignored SIGPIPE
33846         * tests/test-select-in.sh: Consume all output.
33847         * tests/test-lseek.sh: Check correct exit status, while avoiding
33848         EPIPE.
33849
33850 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33851             Bruno Haible  <bruno@clisp.org>
33852
33853         visibility: Don't use -fvisibility if it leads to a warning.
33854         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33855         yes, don't pretend that visibility works if it leads to a warning.
33856         Reported by Mike Gran <spk121@yahoo.com>.
33857
33858 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33859
33860         * build-aux/bootstrap: Use "git -h" for testing for supported options
33861         instead of "git --help".  The short-form option only shows a summary,
33862         and doesn't layout the full man page.  Grep for the full option name
33863         in the summary, too.
33864
33865 2010-04-19  Bruno Haible  <bruno@clisp.org>
33866
33867         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33869         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33870         mention of RELOCATABLE_STRIP.
33871         Reported by Sylvain Beucler <beuc@beuc.net>.
33872
33873 2010-04-19  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/diffseq.h: Fix typo in comment.
33876         Reported by Eric Blake.
33877
33878 2010-04-19  Bruno Haible  <bruno@clisp.org>
33879
33880         ioctl: Move autoconf macro to a .m4 file.
33881         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33882         * modules/ioctl (Files): Add it.
33883         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33884         Reported by Ian Beckwith <ianb@erislabs.net>.
33885
33886 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33887             Bruno Haible  <bruno@clisp.org>
33888
33889         diffseq: Accommodate use-case with abstract arrays.
33890         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33891         is not defined.
33892         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33893         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33894
33895 2010-04-18  Bruno Haible  <bruno@clisp.org>
33896
33897         * doc/posix-headers/stdbool.texi: More precise wording.
33898
33899 2010-04-17  Jim Meyering  <meyering@redhat.com>
33900
33901         maint.mk: use gnu-style indentation in an embedded perl script
33902         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33903         Rename variable: s/two/last_two_bytes/
33904
33905 2010-04-16  Eric Blake  <eblake@redhat.com>
33906
33907         test-stdbool: skip test that fails with Solaris CC
33908         * tests/test-stdbool.c (f): Skip test that causes compilation
33909         error under buggy C++ compiler.
33910         * lib/stdbool.in.h: Document the limitation.
33911         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33912
33913         setenv: allow compilation with C++
33914         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33915         register keyword.
33916
33917         stdint: allow test to pass with C++
33918         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33919
33920         getopt: allow compilation with C++
33921         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33922         struct.
33923         * lib/getopt.c (_getopt_internal_r): Use correct type.
33924         Reported by Dagobert Michelson, via Joel E. Denny.
33925
33926 2010-04-16  Bruno Haible  <bruno@clisp.org>
33927
33928         Override netdb.h always.
33929         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33930         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33931         Reported by Ludovic Courtès <ludo@gnu.org>.
33932
33933 2010-04-15  Bruno Haible  <bruno@clisp.org>
33934
33935         openpty: Fix mistake from 2010-03-21.
33936         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33937         Reported by Simon Josefsson.
33938
33939 2010-04-15  Eric Blake  <eblake@redhat.com>
33940
33941         test-forkpty: fix expected signature
33942         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33943         Reported by Simon Josefsson.
33944
33945 2010-04-15  Jim Meyering  <meyering@redhat.com>
33946
33947         maint.mk: texinfo_suffix_re_: correct the default regexp
33948         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33949
33950         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33951         make it configurable via texinfo_suffix_re_.
33952
33953 2010-04-14  Eric Blake  <eblake@redhat.com>
33954
33955         strtok_r: relax license to LGPLv2+
33956         * modules/strtok_r (License): Relax license.
33957         Reported by Matthias Bolte.
33958
33959 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33960
33961         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33962         version 1.4.4 by default instead of requiring the libgcrypt
33963         version used during build.  This makes it possible to use the
33964         application with older but still binary compatible libgcrypt
33965         versions.
33966
33967 2010-04-13  Eric Blake  <eblake@redhat.com>
33968
33969         getopt-gnu: match recent glibc fixes and posix ruling
33970         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33971         '+' handling, when requesting extensions.
33972         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33973         'W;' handling.
33974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33975         * doc/posix-functions/getopt.texi (getopt): Document this.
33976         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33977         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33978         Likewise.
33979
33980         getopt: merge bug fixes from glibc
33981         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33982         diagnostics.  Honor '+:' correctly.  Reject ';'.
33983
33984         getopt-posix: detect MacOS bug
33985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33986         optind when missing a required argument.
33987         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33988         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33989         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33990         Likewise.
33991
33992         getopt-posix: avoid spurious failure on Solaris
33993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33994         an indicator that setting optind=1 is sufficient for reset.
33995
33996         getopt-posix: avoid spurious failure on FreeBSD
33997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33998         in POSIX mode, since the m4 test uses it.
33999
34000         gnulib-tool: silence warning on BSD sh
34001         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34002
34003 2010-04-13  Jim Meyering  <meyering@redhat.com>
34004
34005         doc: users.txt: GNU patch now uses gnulib
34006         * users.txt: Add patch.
34007
34008 2010-04-12  Jim Meyering  <meyering@redhat.com>
34009
34010         maint.mk: generate more concise timing data for syntax-check rules
34011         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34012         " done" from each line that reports a syntax-check test duration.
34013
34014 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34015
34016         git-version-gen: use "git update-index..." rather than "git status"
34017         * build-aux/git-version-gen: Use git update-index --refresh, not
34018         "git status".  With some versions of git, "git status" would fail
34019         to update the index and result in an unwarranted "-dirty" suffix.
34020
34021 2010-04-11  Jim Meyering  <meyering@redhat.com>
34022
34023         openat: correct formatting (no semantic change)
34024         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34025         Suggested by Bruno Haible.
34026
34027 2010-04-11  Bruno Haible  <bruno@clisp.org>
34028
34029         Stricter declaration checking in testdirs.
34030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34031         If for_tests is true, augment AM_CPPFLAGS to define
34032         GNULIB_STRICT_CHECKING.
34033         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34034         GNULIB_STRICT_CHECKING is defined, verify that the function is
34035         declared.
34036
34037 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34038             Bruno Haible  <bruno@clisp.org>
34039
34040         libunistring: Improve configure output.
34041         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34042         Don't say "consider installing GNU libunistring" when checking again
34043         with libiconv.
34044
34045 2010-04-11  Bruno Haible  <bruno@clisp.org>
34046
34047         libunistring: Correct value of $LTLIBUNISTRING.
34048         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34049         correct the value of $LTLIBUNISTRING.
34050
34051 2010-04-11  Bruno Haible  <bruno@clisp.org>
34052
34053         havelib: Add static libraries to LIBS in the right order.
34054         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34055         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34056
34057 2010-04-11  Bruno Haible  <bruno@clisp.org>
34058
34059         libunistring: Detect libunistring also when it depends on libiconv.
34060         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34061         the second AC_LIB_HAVE_LINKFLAGS invocation.
34062
34063 2010-04-11  James Youngman  <jay@gnu.org>
34064
34065         close-stream: declare local scalars to be "const"
34066         * lib/close-stream.c (close_stream): Make boolean variables const
34067         to document the fact that we set but do not change them.
34068
34069 2010-04-11  Bruno Haible  <bruno@clisp.org>
34070
34071         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34072
34073 2010-04-11  Jim Meyering  <meyering@redhat.com>
34074
34075         maint.mk: don't include dist-check.mk
34076         * top/maint.mk: Remove bogus include directive.
34077
34078         maint.mk: improve empty-line-at-EOF check
34079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34080         solution, rather than tail+Perl-based one.  The latter would read
34081         a few kilobytes from the end of each file, and did not handle empty
34082         files properly.
34083
34084         maint.mk: print the elapsed time for each syntax-check rule
34085         * top/maint.mk (sc_m_rules_): Save start time in a file.
34086         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34087         (local-check): Interpose the .z rules
34088
34089 2010-04-11  Jim Meyering  <meyering@redhat.com>
34090
34091         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34092         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34093         empty file with one that ends in an empty line.
34094
34095 2010-04-10  Bruno Haible  <bruno@clisp.org>
34096
34097         mkdir: Make it work on mingw64.
34098         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34099         * lib/mkdir.c: Update comment.
34100         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
34101
34102 2010-04-10  Bruno Haible  <bruno@clisp.org>
34103
34104         Don't override improved macro from newer autoconf.
34105         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34106         autoconf >= 2.62.
34107         Reported by Joel E. Denny <jdenny@clemson.edu>.
34108
34109 2010-04-10  Jim Meyering  <meyering@redhat.com>
34110
34111         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34112         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34113
34114         maint.mk: correct a diagnostic
34115         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34116         in diagnostic; now use $prohibit.
34117
34118 2010-04-10  Bruno Haible  <address@hidden>
34119
34120         fchownat: Fix a C++ test error on Solaris 8.
34121         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34122         the function does not exist.
34123
34124 2010-04-10  Bruno Haible  <bruno@clisp.org>
34125
34126         vasnprintf: Add more tests.
34127         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34128         (test_function): Test converting an invalid wide string.
34129
34130         vasnprintf: Correct handling of unconvertible wide string arguments.
34131         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34132         VASNPRINTF.
34133         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34134         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34135         smaller than the expected maximum need for the directive. Set errno to
34136         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34137         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34139         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34140         * modules/vasnprintf (Files): Add m4/printf.m4.
34141         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34142
34143 2010-04-10  Bruno Haible  <bruno@clisp.org>
34144
34145         vasnprintf: Fix crash in %ls directive.
34146         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34147         string is passed as argument to %ls, with no precision and no width.
34148         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34149
34150 2010-04-10  Bruno Haible  <bruno@clisp.org>
34151
34152         vasnprintf: Fix multiple test failures on mingw.
34153         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34154         _snprintf, or snwprintf, not _snwprintf.
34155
34156 2010-04-10  Bruno Haible  <bruno@clisp.org>
34157
34158         write: Fix a C++ test error on mingw.
34159         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34160
34161 2010-04-10  Bruno Haible  <bruno@clisp.org>
34162
34163         vasnprintf test: Reduce code duplication.
34164         * tests/test-vasnprintf.c (test_function): New function, extracted from
34165         test_vasnprintf.
34166         (test_vasnprintf, test_asnprintf): Invoke it.
34167
34168 2010-04-10  Bruno Haible  <bruno@clisp.org>
34169
34170         strnlen: Fix warning in C++ mode on MacOS X.
34171         * lib/string.in.h (strnlen): Use the modern idiom.
34172         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34173         defining strnlen as a macro already in <config.h>.
34174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34175         REPLACE_STRNLEN.
34176         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34177         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34178
34179 2010-04-08  James Youngman  <jay@gnu.org>
34180
34181         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34182         the example.
34183
34184 2010-04-09  Jim Meyering  <meyering@redhat.com>
34185
34186         maint.mk: print better diagnostic when there is no $(_hv_file)
34187         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34188         announce that when $(_hv_file) (aka help-version) does not exist.
34189
34190         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34191         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34192         not try to interpret its random input bytes.  Jarno Rajahalme reported
34193         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34194         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34195         (mktempd_): Likewise, just in case.
34196
34197         ftruncate: add two years to projected module removal date: 2012
34198         * m4/ftruncate.m4: Adjust comments.
34199
34200         ftruncate: mark module as obsolete; even MinGW provides it, now
34201         * modules/ftruncate (Status): Obsolete.
34202         (Notice): Say that.
34203         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34204         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34205
34206 2010-04-08  Bruno Haible  <bruno@clisp.org>
34207
34208         Fix side effects from tests-related modules.
34209         * modules/dprintf-posix (Comment): New section.
34210         * modules/fprintf-posix (Comment): Likewise.
34211         * modules/obstack-printf-posix (Comment): Likewise.
34212         * modules/printf-posix (Comment): Likewise.
34213         * modules/snprintf-posix (Comment): Likewise.
34214         * modules/sprintf-posix (Comment): Likewise.
34215         * modules/vasnprintf-posix (Comment): Likewise.
34216         * modules/vasprintf-posix (Comment): Likewise.
34217         * modules/vdprintf-posix (Comment): Likewise.
34218         * modules/vfprintf-posix (Comment): Likewise.
34219         * modules/vprintf-posix (Comment): Likewise.
34220         * modules/vsnprintf-posix (Comment): Likewise.
34221         * modules/vsprintf-posix (Comment): Likewise.
34222         * modules/xprintf-posix (Comment): Likewise.
34223         * modules/xvasprintf-posix (Comment): Likewise.
34224         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34225         * modules/floorf-tests (Depends-on): Likewise.
34226         * modules/round-tests (Depends-on): Likewise.
34227         * modules/roundf-tests (Depends-on): Likewise.
34228         * modules/trunc-tests (Depends-on): Likewise.
34229         * modules/truncf-tests (Depends-on): Likewise.
34230         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34231         'fprintf-posix' module is not present.
34232         * tests/test-floorf2.c (check): Likewise.
34233         * tests/test-trunc2.c (check): Likewise.
34234         * tests/test-truncf2.c (check): Likewise.
34235         * tests/test-round2.c (equal): Likewise.
34236         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34237
34238 2010-04-07  Karl Berry  <karl@gnu.org>
34239
34240         * config/srclist.txt,
34241         * config/srclistvars.sh,
34242         * config/srclist-update: doc fixes.
34243
34244 2010-04-07  Jim Meyering  <meyering@redhat.com>
34245
34246         maint.mk: add a PATH crosschecking syntax-check rule
34247         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34248         Useful if you use a test like the one in help-version (coreutils,
34249         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34250         printed by prog --version.
34251
34252 2010-04-06  Bruno Haible  <bruno@clisp.org>
34253
34254         Fix link error on mingw.
34255         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34256         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34257
34258 2010-04-06  Bruno Haible  <bruno@clisp.org>
34259
34260         Assume rmdir exists.
34261         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34262
34263 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34264
34265         doc: update users.txt
34266         * users.txt: Add gcal.
34267
34268 2010-04-06  Jim Meyering  <meyering@redhat.com>
34269
34270         init.sh: simply unset TMPDIR rather than risking env -i
34271         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34272         although it probably works fine on all Unix-based systems, some
34273         systems (Cygwin?) cannot tolerate a totally cleared environment.
34274         Suggestion from Eric Blake.
34275
34276 2010-04-06  Jim Meyering  <meyering@redhat.com>
34277
34278         init.sh: portability fix: use env's POSIX-specified -i option not -u
34279         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34280         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34281
34282 2010-04-05  Bruno Haible  <bruno@clisp.org>
34283
34284         btowc: Work around Cygwin 1.7.2 bug.
34285         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34286         does not map NUL to 0.
34287         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34288
34289 2010-04-05  Bruno Haible  <bruno@clisp.org>
34290
34291         Make the multithread modules work on Cygwin 1.7.2.
34292         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34293         imported symbols can be declared weak, so that it returns "no" on
34294         Cygwin 1.7.2.
34295
34296 2010-04-05  Bruno Haible  <bruno@clisp.org>
34297
34298         Use the module 'strncat'.
34299         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34300
34301         Tests for module 'strncat'.
34302         * modules/strncat-tests: New file.
34303         * tests/test-strncat.c: New file.
34304
34305         New module 'strncat'.
34306         * lib/string.in.h (strncat): New declaration.
34307         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34308         * m4/strncat.m4: New file, based on m4/memchr.m4.
34309         * modules/strncat: New file.
34310         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34311         is declared.
34312         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34313         REPLACE_STRNCAT.
34314         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34315         REPLACE_STRNCAT.
34316         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34317         module.
34318         * tests/test-string-c++.cc: Check signature of strncat.
34319
34320 2010-04-05  Jim Meyering  <meyering@redhat.com>
34321
34322         xstrtoumax-tests: convert to use init.sh
34323         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34324         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34325         Use Exit, not exit.
34326         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34327
34328         xstrtoimax-tests: convert to use init.sh
34329         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34330         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34331         Use Exit, not exit.
34332         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34333
34334 2010-04-05  Bruno Haible  <bruno@clisp.org>
34335
34336         sys_socket: Avoid #define replacements in C++ mode.
34337         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34338         warning to the function if possible, rather than #defining the symbol
34339         to a dysfunctional alias.
34340
34341 2010-04-05  Bruno Haible  <bruno@clisp.org>
34342
34343         fseeko: Fix C++ test error on mingw.
34344         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34345         gl_FUNC_FSEEKO.
34346         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34347         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34348         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34349         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34350
34351 2010-04-05  Bruno Haible  <bruno@clisp.org>
34352
34353         duplocale: Improve test output.
34354         * tests/test-duplocale.c (main): Print reason for skipped test.
34355
34356 2010-04-05  Bruno Haible  <bruno@clisp.org>
34357
34358         Assume rmdir exists.
34359         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34360         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34361
34362 2010-04-05  Bruno Haible  <bruno@clisp.org>
34363
34364         Fix link error on Solaris 8 with cc.
34365         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34366
34367 2010-04-05  Bruno Haible  <bruno@clisp.org>
34368
34369         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34370         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34371
34372 2010-04-05  Bruno Haible  <bruno@clisp.org>
34373
34374         vasprintf: Update documentation.
34375         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34376
34377 2010-04-05  Bruno Haible  <bruno@clisp.org>
34378
34379         ptsname: Improve test.
34380         * tests/test-ptsname.c (main): Also try the various master names of BSD
34381         systems.
34382
34383 2010-04-05  Bruno Haible  <bruno@clisp.org>
34384
34385         memchr: Avoid a possible C++ test error.
34386         * lib/string.in.h (memchr): Provide declaration if function is missing.
34387         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34388         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34390         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34391
34392 2010-04-05  Bruno Haible  <bruno@clisp.org>
34393
34394         strtok_r: Improve idiom.
34395         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34396         AC_LIBOBJ is used.
34397
34398 2010-04-05  Bruno Haible  <bruno@clisp.org>
34399
34400         strdup: Improve idiom.
34401         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34402         AC_LIBOBJ is used.
34403         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34404         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34405         when AC_LIBOBJ is used.
34406
34407 2010-04-05  Bruno Haible  <bruno@clisp.org>
34408
34409         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34410         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34411         don't set REPLACE_MBSINIT to 1.
34412         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34413         don't set REPLACE_MBRTOWC to 1.
34414         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34415         exist, don't set REPLACE_MBSRTOWCS to 1.
34416         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34417         exist, don't set REPLACE_MBSNRTOWCS to 1.
34418         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34419         don't set REPLACE_WCRTOMB to 1.
34420         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34421         exist, don't set REPLACE_WCSRTOMBS to 1.
34422         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34423         exist, don't set REPLACE_WCSNRTOMBS to 1.
34424
34425 2010-04-05  Bruno Haible  <bruno@clisp.org>
34426
34427         ldexpl: Improve idiom.
34428         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34429         make sure to set HAVE_DECL_LDEXPL to 0.
34430
34431 2010-04-05  Jim Meyering  <meyering@redhat.com>
34432
34433         xstrtol-tests: convert to use init.sh
34434         * modules/xstrtol-tests (Files): Add tests/init.sh.
34435         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34436         Use Exit, not exit.
34437         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34438
34439         atexit-tests: convert to use init.sh
34440         * modules/atexit-tests (Files): Add tests/init.sh.
34441         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34442         Use Exit, not exit.
34443         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34444
34445         init.sh: fix typo
34446         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34447
34448         init.sh: make it easier for a test script to write to the tty, ...
34449         when using automake's parallel-tests mode.
34450         * tests/init.sh (stderr_fileno_): Define overridable variable.
34451         (warn_): New function, to use it.
34452         (fail_, skip_, framework_failure_): Use warn_.
34453
34454 2010-04-04  Bruno Haible  <bruno@clisp.org>
34455
34456         btowc: Avoid warning.
34457         * lib/btowc.c: Include <stdlib.h>.
34458         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34459
34460 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34461             Bruno Haible  <bruno@clisp.org>
34462
34463         wchar: Port to NetBSD 1.5.
34464         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34465         * lib/wctype.in.h (WEOF): Likewise.
34466
34467 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34468             Bruno Haible  <bruno@clisp.org>
34469
34470         Port extended stdio to NetBSD 1.5.
34471         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34472         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34473         older.
34474
34475 2010-04-04  Bruno Haible  <bruno@clisp.org>
34476
34477         string: Remove unused substitution.
34478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34479         HAVE_DECL_STRERROR.
34480         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34481
34482 2010-04-04  Bruno Haible  <bruno@clisp.org>
34483
34484         strtod: Avoid a possible C++ test error.
34485         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34486         set REPLACE_STRTOD.
34487
34488 2010-04-04  Bruno Haible  <bruno@clisp.org>
34489
34490         strerror: Update documentation.
34491         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34492
34493 2010-04-04  Bruno Haible  <bruno@clisp.org>
34494
34495         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34496         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34497         _GL_CXXALIAS_SYS_CAST.
34498
34499 2010-04-04  Bruno Haible  <bruno@clisp.org>
34500
34501         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34502         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34503         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34504         REPLACE_FREXPL to 1.
34505         * doc/posix-functions/frexpl.texi: Update documentation.
34506
34507 2010-04-04  Bruno Haible  <bruno@clisp.org>
34508
34509         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34510         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34511
34512 2010-04-04  Bruno Haible  <bruno@clisp.org>
34513
34514         Implement nanosleep for native Windows.
34515         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34516
34517 2010-04-04  Bruno Haible  <bruno@clisp.org>
34518
34519         math: Fix some C++ test errors on Solaris 8.
34520         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34521
34522 2010-04-04  Bruno Haible  <bruno@clisp.org>
34523
34524         math: Fix some C++ test errors on Cygwin.
34525         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34526         truncl): Provide declaration if the system does not have it.
34527         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34528         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34529         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34530         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34531         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34532         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34533         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34534         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34535         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34536         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34537         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34538         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34539         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34540         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34541         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34542         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34544         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34545         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34546         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34547         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34548         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34549
34550 2010-04-04  Bruno Haible  <bruno@clisp.org>
34551
34552         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34553         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34554         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34555         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34556         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34557         * m4/isinf.m4 (gl_ISINF): Likewise.
34558         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34559
34560 2010-04-04  Bruno Haible  <bruno@clisp.org>
34561
34562         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34563         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34564
34565 2010-04-04  Bruno Haible  <bruno@clisp.org>
34566
34567         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34568         * modules/tmpfile (configure.ac): Update.
34569
34570         tmpfile: Fix C++ test error on mingw.
34571         * lib/stdio.in.h (tmpfile): New declaration.
34572         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34573         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34574         * modules/tmpfile (Depends-on): Add stdio.
34575         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34576         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34577         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34578         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34579         REPLACE_TMPFILE.
34580         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34581
34582 2010-04-04  Bruno Haible  <bruno@clisp.org>
34583
34584         ioctl: Fix C++ test error on mingw.
34585         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34586         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34587         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34588
34589 2010-04-03  Bruno Haible  <bruno@clisp.org>
34590
34591         wcwidth: Fix C++ test error on mingw.
34592         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34594         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34595
34596 2010-04-03  Bruno Haible  <bruno@clisp.org>
34597
34598         nanosleep: Fix C++ test error on mingw.
34599         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34600         * lib/time.in.h (nanosleep): Use modern idiom.
34601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34602         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34603         REPLACE_NANOSLEEP to 1.
34604         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34605         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34606
34607 2010-04-03  Bruno Haible  <bruno@clisp.org>
34608
34609         strptime: Fix C++ test error on mingw.
34610         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34611         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34612         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34613         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34614         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34615         not REPLACE_STRPTIME.
34616         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34617         REPLACE_STRPTIME.
34618
34619 2010-04-03  Bruno Haible  <bruno@clisp.org>
34620
34621         timegm: Fix C++ test error on mingw.
34622         * lib/time.in.h (timegm): Use modern idiom.
34623         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34624         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34625         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34626         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34627
34628 2010-04-03  Bruno Haible  <bruno@clisp.org>
34629
34630         timegm: Assume declaration if function exists.
34631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34632         if it exists. Don't clobber ac_cv_func_timegm.
34633
34634 2010-04-03  Bruno Haible  <bruno@clisp.org>
34635
34636         time_r: Fix C++ test error on mingw.
34637         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34638         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34639         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34640         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34641         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34642
34643 2010-04-03  Bruno Haible  <bruno@clisp.org>
34644
34645         time_r: Minor updates.
34646         * modules/time_r (Description): Mention the provided functions.
34647         * lib/time_r.c: Don't include <string.h>.
34648         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34649         * doc/posix-functions/localtime_r.texi: Likewise.
34650
34651 2010-04-03  Bruno Haible  <bruno@clisp.org>
34652
34653         time: Fix regression introduced on 2010-03-08.
34654         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34655         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34656
34657 2010-04-03  Jim Meyering  <meyering@redhat.com>
34658
34659         maint.mk: don't silently disable project-specific syntax-check rules
34660         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34661         that they need to convert their project-specific syntax-check rules
34662         to use the new _sc_search_regexp.
34663
34664 2010-04-03  Bruno Haible  <bruno@clisp.org>
34665
34666         fchdir: Fix regression introduced on 2010-03-08.
34667         * lib/unistd.in.h (fchdir): Fix declaration.
34668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34670         REPLACE_FCHDIR.
34671         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34672         REPLACE_FCHDIR.
34673
34674 2010-04-03  Bruno Haible  <bruno@clisp.org>
34675
34676         getpagesize: Fix C++ test error on mingw.
34677         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34678         system does not declare the function.
34679         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34680         declared.
34681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34682         HAVE_DECL_GETPAGESIZE.
34683         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34684
34685 2010-04-03  Bruno Haible  <bruno@clisp.org>
34686
34687         stdio: Make C++ tests work on mingw.
34688         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34689         does not declare the function.
34690
34691 2010-04-03  Bruno Haible  <bruno@clisp.org>
34692
34693         ftello: Fix C++ test error on mingw.
34694         * lib/stdio.in.h (ftello): Use modern idiom.
34695         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34696         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34697         is missing and that it needs to be replaced.
34698         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34700         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34701
34702 2010-04-03  Bruno Haible  <bruno@clisp.org>
34703
34704         fseeko: Fix C++ test error on mingw.
34705         * lib/stdio.in.h (fseeko): Use modern idiom.
34706         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34707         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34708         is missing and that it needs to be replaced.
34709         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34711         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34712
34713 2010-04-03  Bruno Haible  <bruno@clisp.org>
34714
34715         mkstemp: Fix C++ test error on mingw.
34716         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34718         function is missing and that it needs to be replaced.
34719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34720         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34721
34722 2010-04-03  Bruno Haible  <bruno@clisp.org>
34723
34724         stpncpy: Fix C++ test error on mingw.
34725         * lib/string.in.h (stpncpy): Use modern idiom.
34726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34727         function is missing and that it needs to be replaced.
34728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34729         REPLACE_STPNCPY.
34730         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34731
34732 2010-04-03  Bruno Haible  <bruno@clisp.org>
34733
34734         sys_stat: Fix C++ test error on mingw.
34735         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34736         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34737
34738 2010-04-03  Bruno Haible  <bruno@clisp.org>
34739
34740         pty: Update doc.
34741         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34742
34743 2010-04-03  Bruno Haible  <bruno@clisp.org>
34744
34745         unistd: Fix C++ test error on mingw.
34746         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34747
34748 2010-04-03  Bruno Haible  <bruno@clisp.org>
34749
34750         Update doc regarding mingw.
34751         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34752         * doc/glibc-functions/login_tty.texi: Likewise.
34753         * doc/glibc-functions/forkpty.texi: Likewise.
34754
34755 2010-04-03  Bruno Haible  <bruno@clisp.org>
34756
34757         stdlib: Avoid compilation failure of c-strtold on mingw.
34758         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34759
34760 2010-04-03  Bruno Haible  <bruno@clisp.org>
34761
34762         locale: Make C++ tests work on Cygwin and mingw.
34763         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34764         cannot provide the function.
34765         Reported by Simon Josefsson.
34766
34767 2010-04-03  Bruno Haible  <bruno@clisp.org>
34768
34769         localename: Port to MacOS X 10.6.
34770         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34771         memory layout of the locales in MacOS X 10.6 as well.
34772         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34773
34774 2010-04-02  Bruno Haible  <bruno@clisp.org>
34775
34776         gnulib-tool: Ensure that long-running tests are executed last.
34777         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34778         running tests after the one for the other tests.
34779
34780 2010-04-02  Bruno Haible  <bruno@clisp.org>
34781
34782         gnulib-tool: Ensure the tests in the main directory are executed first.
34783         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34784         start with the current directory.
34785
34786 2010-04-02  Bruno Haible  <bruno@clisp.org>
34787
34788         Tests for module 'havelib', moved here from GNU gettext.
34789         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34790         modifications.
34791         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34792         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34793         with modifications.
34794         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34795         modifications.
34796         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34797         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34798         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34799         with modifications.
34800         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34801         with modifications.
34802         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34803         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34804         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34805         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34806         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34807         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34808         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34809         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34810         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34811         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34812         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34813         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34814         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34815         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34816         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34817         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34818         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34819         with modifications.
34820         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34821         with modifications.
34822         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34823         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34824         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34825         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34826         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34827         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34828         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34829         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34830         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34831         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34832         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34833         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34834         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34835         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34836         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34837         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34838         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34839         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34840         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34841         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34842         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34843         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34844         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34845         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34846         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34847         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34848         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34849         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34850         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34851         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34852         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34853         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34854         * tests/havelib/rpathx/rpathx.c: New file, from
34855         gettext/autoconf-lib-link.
34856         * tests/havelib/rpathx/Makefile.am: New file, from
34857         gettext/autoconf-lib-link.
34858         * tests/havelib/rpathx/configure.ac: New file, from
34859         gettext/autoconf-lib-link with modifications.
34860         * tests/havelib/rpathy/rpathy.c: New file, from
34861         gettext/autoconf-lib-link.
34862         * tests/havelib/rpathy/Makefile.am: New file, from
34863         gettext/autoconf-lib-link.
34864         * tests/havelib/rpathy/configure.ac: New file, from
34865         gettext/autoconf-lib-link with modifications.
34866         * tests/havelib/rpathz/rpathz.c: New file, from
34867         gettext/autoconf-lib-link.
34868         * tests/havelib/rpathz/Makefile.am: New file, from
34869         gettext/autoconf-lib-link.
34870         * tests/havelib/rpathz/configure.ac: New file, from
34871         gettext/autoconf-lib-link with modifications.
34872         * tests/havelib/rpathlx/usex.c: New file, from
34873         gettext/autoconf-lib-link.
34874         * tests/havelib/rpathlx/Makefile.am: New file, from
34875         gettext/autoconf-lib-link.
34876         * tests/havelib/rpathlx/configure.ac: New file, from
34877         gettext/autoconf-lib-link with modifications.
34878         * tests/havelib/rpathly/usey.c: New file, from
34879         gettext/autoconf-lib-link.
34880         * tests/havelib/rpathly/Makefile.am: New file, from
34881         gettext/autoconf-lib-link.
34882         * tests/havelib/rpathly/configure.ac: New file, from
34883         gettext/autoconf-lib-link with modifications.
34884         * tests/havelib/rpathlz/usez.c: New file, from
34885         gettext/autoconf-lib-link.
34886         * tests/havelib/rpathlz/Makefile.am: New file, from
34887         gettext/autoconf-lib-link.
34888         * tests/havelib/rpathlz/configure.ac: New file, from
34889         gettext/autoconf-lib-link with modifications.
34890         * tests/havelib/rpathlyx/usey.c: New file, from
34891         gettext/autoconf-lib-link.
34892         * tests/havelib/rpathlyx/Makefile.am: New file, from
34893         gettext/autoconf-lib-link.
34894         * tests/havelib/rpathlyx/configure.ac: New file, from
34895         gettext/autoconf-lib-link with modifications.
34896         * tests/havelib/rpathlzyx/usez.c: New file, from
34897         gettext/autoconf-lib-link.
34898         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34899         gettext/autoconf-lib-link.
34900         * tests/havelib/rpathlzyx/configure.ac: New file, from
34901         gettext/autoconf-lib-link with modifications.
34902         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34903         with modifications.
34904
34905 2010-04-02  Bruno Haible  <bruno@clisp.org>
34906
34907         gnulib-tool: Create distributed built sources also for the tests.
34908         * gnulib-tool (func_create_testdir): Also generate distributed built
34909         sources in the tests directory.
34910
34911 2010-04-02  Bruno Haible  <bruno@clisp.org>
34912
34913         gnulib-tool: Obey user's environment variables.
34914         * gnulib-tool (func_create_testdir): When creating built sources,
34915         respect the environment variables for autoconf, automake, etc. given by
34916         the user.
34917
34918 2010-04-02  Bruno Haible  <bruno@clisp.org>
34919
34920         gnulib-tool: Provide the value of --m4-base to modules.
34921         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34922         of gl_m4_base.
34923
34924 2010-04-02  Eric Blake  <eblake@redhat.com>
34925
34926         maint.mk: fix some fallout
34927         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34928         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34929
34930 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34931
34932         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34933         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34934         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34935         (sc_cast_of_x_alloc_return_value): Likewise.
34936         (sc_cast_of_alloca_return_value): Likewise.
34937         (sc_space_tab): Likewise.
34938         (sc_prohibit_atoi_atof): Likewise.
34939         (sc_prohibit_magic_number_exit): Likewise.
34940         (sc_error_exit_success): Likewise.
34941         (sc_file_system): Likewise.
34942         (sc_prohibit_have_config_h): Likewise.
34943         (sc_require_config_h): Likewise.
34944         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34945         (sc_obsolete_symbols): Likewise.
34946         (sc_changelog): Likewise.
34947         (sc_program_name): Likewise.
34948         (sc_the_the): Likewise.
34949         (sc_trailing_blank): Likewise.
34950         (sc_two_space_separator_in_usage): Likewise.
34951         (sc_useless_cpp_parens): Likewise.
34952         (sc_GPL_version): Likewise.
34953         (sc_GFDL_version): Likewise.
34954         (sc_texinfo_acronym): Likewise.
34955         (sc_prohibit_cvs_keyword): Likewise.
34956         (sc_prohibit_stat_st_blocks): Likewise.
34957         (sc_prohibit_S_IS_definition): Likewise.
34958         (sc_redundant_const): Likewise.
34959         (sc_makefile_TAB_only_indentation): Likewise.
34960         (sc_m4_quote_check): Likewise.
34961         (sc_makefile_path_separator_check): Likewise.
34962         (sc_copyright_check): Likewise.
34963         (sc_Wundef_boolean): Likewise.
34964         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34965
34966         maint.mk: match 0 or more whitespace-before-function-call '('
34967         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34968         that have zero or two-and-more spaces between the function name
34969         and the open parenthesis.
34970         (sc_error_message_warn_fatal): Likewise.
34971         (sc_error_message_uppercase): Likewise.
34972         (sc_error_message_period): Likewise.
34973
34974 2010-03-31  Eric Blake  <eblake@redhat.com>
34975
34976         maint.mk: check for [ as well as test
34977         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34978         Based on a libvirt report by Matthias Bolte.
34979
34980         gnumakefile: don't squelch _version output
34981         * top/GNUmakefile (_version): Create one-shot dependency rather
34982         than using $(shell) when version must be regenerated.
34983         (_autoreconf): Run verbosely, by default.
34984
34985         sys_time: avoid compiler warnings
34986         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34987         unconditional, fixing regression from 2010-03-29.
34988         Reported by Simon Josefsson.
34989
34990 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34991
34992         maint.mk: s/_header_without_use/_sc_header_without_use/
34993         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34994         (sc_prohibit_assert_without_use): Use the new name.
34995         (sc_prohibit_close_stream_without_use): Likewise.
34996         (sc_prohibit_getopt_without_use): Likewise.
34997         (sc_prohibit_quotearg_without_use): Likewise.
34998         (sc_prohibit_quote_without_use): Likewise.
34999         (sc_prohibit_long_options_without_use): Likewise.
35000         (sc_prohibit_inttostr_without_use): Likewise.
35001         (sc_prohibit_ignore_value_without_use): Likewise.
35002         (sc_prohibit_error_without_use): Likewise.
35003         (sc_prohibit_xalloc_without_use): Likewise.
35004         (sc_prohibit_hash_without_use): Likewise.
35005         (sc_prohibit_hash_pjw_without_use): Likewise.
35006         (sc_prohibit_safe_read_without_use): Likewise.
35007         (sc_prohibit_argmatch_without_use): Likewise.
35008         (sc_prohibit_canonicalize_without_use): Likewise.
35009         (sc_prohibit_root_dev_ino_without_use): Likewise.
35010         (sc_prohibit_openat_without_use): Likewise.
35011         (sc_prohibit_c_ctype_without_use): Likewise.
35012         (sc_prohibit_signal_without_use): Likewise.
35013         (sc_prohibit_intprops_without_use): Likewise.
35014
35015 2010-03-30  Eric Blake  <eblake@redhat.com>
35016
35017         maint: improve module indicators
35018         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35019         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35020         columns, and avoid extra macro expansion.
35021
35022         fdopendir: work around FreeBSD bug
35023         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35024         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35025         * modules/dirent (Makefile.am): Substitute it.
35026         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35027         declaration.
35028         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35029         fix.
35030         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35031
35032 2010-03-29  Bruno Haible  <bruno@clisp.org>
35033
35034         Emit #pragma system_header after the inclusion guard, not before.
35035         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35036         guard that spans the entire file, not before. This enables an
35037         optimization in GCC's preprocessor.
35038         * lib/ctype.in.h: Likewise.
35039         * lib/dirent.in.h: Likewise.
35040         * lib/errno.in.h: Likewise.
35041         * lib/float.in.h: Likewise.
35042         * lib/getopt.in.h: Likewise.
35043         * lib/iconv.in.h: Likewise.
35044         * lib/langinfo.in.h: Likewise.
35045         * lib/locale.in.h: Likewise.
35046         * lib/math.in.h: Likewise.
35047         * lib/netdb.in.h: Likewise.
35048         * lib/netinet_in.in.h: Likewise.
35049         * lib/pty.in.h: Likewise.
35050         * lib/sched.in.h: Likewise.
35051         * lib/se-selinux.in.h: Likewise.
35052         * lib/search.in.h: Likewise.
35053         * lib/spawn.in.h: Likewise.
35054         * lib/stdarg.in.h: Likewise.
35055         * lib/stdint.in.h: Likewise.
35056         * lib/string.in.h: Likewise.
35057         * lib/strings.in.h: Likewise.
35058         * lib/sys_file.in.h: Likewise.
35059         * lib/sys_ioctl.in.h: Likewise.
35060         * lib/sys_time.in.h: Likewise.
35061         * lib/sys_times.in.h: Likewise.
35062         * lib/sys_utsname.in.h: Likewise.
35063         * lib/sys_wait.in.h: Likewise.
35064         * lib/sysexits.in.h: Likewise.
35065         * lib/wctype.in.h: Likewise.
35066
35067 2010-03-28  James Youngman  <jay@gnu.org>
35068
35069         save-cwd: don't leak a file descriptor when the caller execs.
35070         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35071         saved file descriptor.
35072         * modules/save-cwd (Depends-on): Depend on cloexec.
35073
35074 2010-03-29  Bruno Haible  <bruno@clisp.org>
35075
35076         Remove vestiges of fts-lgpl module.
35077         * lib/fts_.h: Assume GNULIB_FTS is 1.
35078         * lib/fts.c: Likewise.
35079         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35080
35081 2010-03-28  Bruno Haible  <bruno@clisp.org>
35082
35083         Fix definition of tests witness macro.
35084         * gnulib-tool (func_import): Fix definition of witness macro.
35085
35086 2010-03-28  Bruno Haible  <bruno@clisp.org>
35087
35088         Fix ioctl's protoype on glibc systems.
35089         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35090         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35091         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35092         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35093         signature. If not, arrange to replace the ioctl function.
35094         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35095         REPLACE_IOCTL.
35096         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35097         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35098         Reported by Ludovic Courtès <ludo@gnu.org>.
35099
35100 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35101
35102         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35103         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35104         made it so grep -r --include=GLOB* ... did not work.
35105
35106 2010-03-26  Jim Meyering  <meyering@redhat.com>
35107             Eric Blake  <eblake@redhat.com>
35108
35109         maint.mk: prohibit use of test's -o and -a operators
35110         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35111
35112 2010-03-28  Bruno Haible  <bruno@clisp.org>
35113
35114         Remove unused GNULIB_XYZ macro definitions.
35115         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35116         invocation.
35117
35118 2010-03-28  Bruno Haible  <bruno@clisp.org>
35119
35120         Mark privileged tests modules.
35121         * modules/idpriv-drop-tests (Status): New section.
35122         * modules/idpriv-droptemp-tests (Status): New section.
35123
35124 2010-03-28  Bruno Haible  <bruno@clisp.org>
35125
35126         Split C++ tests into separate tests modules.
35127         * modules/dirent-c++-tests: New file, extracted from
35128         modules/dirent-tests.
35129         * modules/dirent-tests: Depend on it.
35130         * modules/fcntl-h-c++-tests: New file, extracted from
35131         modules/fcntl-h-tests.
35132         * modules/fcntl-h-tests: Depend on it.
35133         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35134         * modules/glob-tests: Depend on it.
35135         * modules/iconv-h-c++-tests: New file, extracted from
35136         modules/iconv-h-tests.
35137         * modules/iconv-h-tests: Depend on it.
35138         * modules/langinfo-c++-tests: New file, extracted from
35139         modules/langinfo-tests.
35140         * modules/langinfo-tests: Depend on it.
35141         * modules/locale-c++-tests: New file, extracted from
35142         modules/locale-tests.
35143         * modules/locale-tests: Depend on it.
35144         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35145         * modules/math-tests: Depend on it.
35146         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35147         * modules/pty-tests: Depend on it.
35148         * modules/search-c++-tests: New file, extracted from
35149         modules/search-tests.
35150         * modules/search-tests: Depend on it.
35151         * modules/signal-c++-tests: New file, extracted from
35152         modules/signal-tests.
35153         * modules/signal-tests: Depend on it.
35154         * modules/spawn-c++-tests: New file, extracted from
35155         modules/spawn-tests.
35156         * modules/spawn-tests: Depend on it.
35157         * modules/stdio-c++-tests: New file, extracted from
35158         modules/stdio-tests.
35159         * modules/stdio-tests: Depend on it.
35160         * modules/stdlib-c++-tests: New file, extracted from
35161         modules/stdlib-tests.
35162         * modules/stdlib-tests: Depend on it.
35163         * modules/string-c++-tests: New file, extracted from
35164         modules/string-tests.
35165         * modules/string-tests: Depend on it.
35166         * modules/sys_ioctl-c++-tests: New file, extracted from
35167         modules/sys_ioctl-tests.
35168         * modules/sys_ioctl-tests: Depend on it.
35169         * modules/sys_select-c++-tests: New file, extracted from
35170         modules/sys_select-tests.
35171         * modules/sys_select-tests: Depend on it.
35172         * modules/sys_socket-c++-tests: New file, extracted from
35173         modules/sys_socket-tests.
35174         * modules/sys_socket-tests: Depend on it.
35175         * modules/sys_stat-c++-tests: New file, extracted from
35176         modules/sys_stat-tests.
35177         * modules/sys_stat-tests: Depend on it.
35178         * modules/sys_time-c++-tests: New file, extracted from
35179         modules/sys_time-tests.
35180         * modules/sys_time-tests: Depend on it.
35181         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35182         * modules/time-tests: Depend on it.
35183         * modules/unistd-c++-tests: New file, extracted from
35184         modules/unistd-tests.
35185         * modules/unistd-tests: Depend on it.
35186         * modules/wchar-c++-tests: New file, extracted from
35187         modules/wchar-tests.
35188         * modules/wchar-tests: Depend on it.
35189         * modules/wctype-c++-tests: New file, extracted from
35190         modules/wctype-tests.
35191         * modules/wctype-tests: Depend on it.
35192         Reported by Simon Josefsson.
35193
35194 2010-03-28  Bruno Haible  <bruno@clisp.org>
35195
35196         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35197         * gnulib-tool (func_exists_module): New function, extracted from
35198         func_verify_module.
35199         (func_verify_module): Use it.
35200         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35201         'foo' only if 'foo' exists.
35202         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35203         module.
35204
35205 2010-03-28  Bruno Haible  <bruno@clisp.org>
35206
35207         gnulib-tool: Add support for special categories of tests.
35208         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35209         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35210         (func_usage): Document them.
35211         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35212         inc_unportable_tests, inc_all_tests): New variables.
35213         (func_acceptable): Consider these variables.
35214         (func_modules_transitive_closure): Make it work when the 'Status' field
35215         consists of multiple words.
35216         (func_import): Store and restore the values of inc_cxx_tests,
35217         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35218         inc_all_tests in gnulib-comp.m4.
35219         (func_create_testdir): Set inc_all_tests to true.
35220         * doc/gnulib.texi (Extra tests modules): New section.
35221         Suggested by Jim Meyering.
35222
35223 2010-03-28  Bruno Haible  <bruno@clisp.org>
35224
35225         ansi-c++-opt: Allow turning off the C++ build by default.
35226         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35227         gl_CXX_CHOICE_DEFAULT_NO is defined.
35228         Requested by Eric Blake.
35229
35230 2010-03-28  Bruno Haible  <bruno@clisp.org>
35231
35232         unistd: Avoid #define replacements in C++ mode.
35233         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35234         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35235         setsockopt, shutdown, select): In C++, attach a warning to the function
35236         if possible, rather than #defining the symbol to a dysfunctional alias.
35237         Reported by John W. Eaton <jwe@gnu.org>.
35238
35239 2010-03-28  Bruno Haible  <bruno@clisp.org>
35240
35241         Fix link errors on mingw.
35242         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35243         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35244         $(LIBSOCKET).
35245         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35246         $(LIBSOCKET).
35247
35248 2010-03-28  Bruno Haible  <bruno@clisp.org>
35249             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35250
35251         lib-ignore: Determine different options for different compilers.
35252         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35253         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35254         Add comments.
35255         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35256         * NEWS: Mention the change.
35257
35258 2010-03-27  Bruno Haible  <bruno@clisp.org>
35259
35260         Remove unused GNULIB_XYZ macro definitions.
35261         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35262         * modules/fseek (configure.ac): Likewise.
35263         * modules/ioctl (configure.ac): Likewise.
35264         * modules/open (configure.ac): Likewise.
35265         * modules/stdlib-safer (configure.ac): Likewise.
35266
35267 2010-03-27  Bruno Haible  <bruno@clisp.org>
35268
35269         Add a remark about certain modules.
35270         * modules/malloc (Comment): New section.
35271         * modules/realloc (Comment): Likewise.
35272         * modules/sigpipe (Comment): Likewise.
35273
35274 2010-03-27  Bruno Haible  <bruno@clisp.org>
35275
35276         Resolve conflict between the two kinds of module indicators.
35277         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35278         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35279         * modules/canonicalize (configure.ac): Invoke
35280         gl_MODULE_INDICATOR_FOR_TESTS.
35281         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35282         GNULIB_XYZ.
35283         * tests/test-dirent-c++.cc: Likewise.
35284         * tests/test-dirent-safer.c: Likewise.
35285         * tests/test-dup2.c: Likewise.
35286         * tests/test-fchdir.c: Likewise.
35287         * tests/test-fcntl-h-c++.cc: Likewise.
35288         * tests/test-getopt.c: Likewise.
35289         * tests/test-getopt.h: Likewise.
35290         * tests/test-langinfo-c++.cc: Likewise.
35291         * tests/test-locale-c++.cc: Likewise.
35292         * tests/test-math-c++.cc: Likewise.
35293         * tests/test-pty-c++.cc: Likewise.
35294         * tests/test-search-c++.cc: Likewise.
35295         * tests/test-signal-c++.cc: Likewise.
35296         * tests/test-spawn-c++.cc: Likewise.
35297         * tests/test-stdio-c++.cc: Likewise.
35298         * tests/test-stdlib-c++.cc: Likewise.
35299         * tests/test-string-c++.cc: Likewise.
35300         * tests/test-sys_ioctl-c++.cc: Likewise.
35301         * tests/test-sys_select-c++.cc: Likewise.
35302         * tests/test-sys_socket-c++.cc: Likewise.
35303         * tests/test-sys_stat-c++.cc: Likewise.
35304         * tests/test-sys_time-c++.cc: Likewise.
35305         * tests/test-time-c++.cc: Likewise.
35306         * tests/test-unistd-c++.cc: Likewise.
35307         * tests/test-wchar-c++.cc: Likewise.
35308         * tests/uninorm/test-u8-nfc.c: Likewise.
35309         * tests/uninorm/test-u8-nfd.c: Likewise.
35310         * tests/uninorm/test-u8-nfkc.c: Likewise.
35311         * tests/uninorm/test-u8-nfkd.c: Likewise.
35312         * tests/uninorm/test-u16-nfc.c: Likewise.
35313         * tests/uninorm/test-u16-nfd.c: Likewise.
35314         * tests/uninorm/test-u16-nfkc.c: Likewise.
35315         * tests/uninorm/test-u16-nfkd.c: Likewise.
35316         * tests/uninorm/test-u32-nfc.c: Likewise.
35317         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35318         * tests/uninorm/test-u32-nfd.c: Likewise.
35319         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35320         * tests/uninorm/test-u32-nfkc.c: Likewise.
35321         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35322         * tests/uninorm/test-u32-nfkd.c: Likewise.
35323         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35324         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35325
35326 2010-03-27  Bruno Haible  <bruno@clisp.org>
35327
35328         Distinguish two kinds of module indicators.
35329         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35330         gl_MODULE_INDICATOR.
35331         (gl_MODULE_INDICATOR): New macro.
35332         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35333         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35334         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35335         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35336         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35337         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35338         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35339         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35340         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35341         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35342         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35343         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35346         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35347         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35348         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35349         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35350         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35351         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35352         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35353         * modules/cloexec (configure.ac): Likewise.
35354         * modules/getopt-gnu (configure.ac): Likewise.
35355         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35356         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35357         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35358         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35359
35360 2010-03-27  Bruno Haible  <bruno@clisp.org>
35361
35362         New module description field 'Comment'.
35363         * gnulib-tool: New option --extract-comment.
35364         (func_usage): Document it.
35365         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35366         (func_get_comment): New function.
35367         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35368
35369 2010-03-27  Bruno Haible  <bruno@clisp.org>
35370
35371         Addendum to 2010-02-07 commit.
35372         * gnulib-tool (func_usage): Document --extract-applicability option.
35373
35374 2010-03-27  Bruno Haible  <bruno@clisp.org>
35375
35376         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35377         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35378         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35379         rather than link errors.
35380
35381 2010-03-27  Bruno Haible  <bruno@clisp.org>
35382
35383         Avoid side effects from tests-related modules on the compilation of lib.
35384         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35385         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35386         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35387         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35388         macro.
35389         (func_import): Define a witness macro. Assign it a value that depends
35390         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35391         tests-related modules.
35392         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35393         Reported by Jim Meyering.
35394
35395 2010-03-27  Bruno Haible  <bruno@clisp.org>
35396
35397         Factorize common .m4 code.
35398         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35399         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35400         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35401         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35402         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35403         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35404         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35405         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35406         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35407         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35408         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35409         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35410         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35411         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35412         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35413         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35414         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35415         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35417         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35418         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35419         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35420         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35421         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35422         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35423         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35424         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35425         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35426         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35427         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35428         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35429         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35430
35431 2010-03-27  Bruno Haible  <bruno@clisp.org>
35432
35433         Fix a compilation error on Cygwin with g++ >= 4.3.
35434         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35435         if it is undefined or if we alias it to chmod.
35436         (lstat): Don't warn about the use of this function if it is undefined
35437         or if we alias it to stat.
35438         Reported by Simon Josefsson.
35439
35440 2010-03-27  Bruno Haible  <bruno@clisp.org>
35441
35442         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35443         * modules/getlogin (configure.ac): Update.
35444
35445         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35446         * modules/getlogin_r (configure.ac): Update.
35447
35448         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35450         * modules/inet_ntop (configure.ac): Update.
35451
35452         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35453         * modules/inet_pton (configure.ac): Update.
35454
35455         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35456         * modules/mbslen (configure.ac): Update.
35457
35458         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35459         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35460         * modules/forkpty (configure.ac): Update.
35461         * modules/openpty (configure.ac): Update.
35462
35463 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35464
35465         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35466         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35467
35468 2010-03-25  Eric Blake  <eblake@redhat.com>
35469
35470         maint: use pragma consistently across replacement headers
35471         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35472         * lib/dirent.in.h (system_header): Likewise.
35473         * lib/errno.in.h (system_header): Likewise.
35474         * lib/float.in.h (system_header): Likewise.
35475         * lib/getopt.in.h (system_header): Likewise.
35476         * lib/iconv.in.h (system_header): Likewise.
35477         * lib/inttypes.in.h (system_header): Likewise.
35478         * lib/langinfo.in.h (system_header): Likewise.
35479         * lib/locale.in.h (system_header): Likewise.
35480         * lib/math.in.h (system_header): Likewise.
35481         * lib/netdb.in.h (system_header): Likewise.
35482         * lib/netinet_in.in.h (system_header): Likewise.
35483         * lib/pty.in.h (system_header): Likewise.
35484         * lib/sched.in.h (system_header): Likewise.
35485         * lib/se-selinux.in.h (system_header): Likewise.
35486         * lib/search.in.h (system_header): Likewise.
35487         * lib/spawn.in.h (system_header): Likewise.
35488         * lib/stdarg.in.h (system_header): Likewise.
35489         * lib/stdint.in.h (system_header): Likewise.
35490         * lib/string.in.h (system_header): Likewise.
35491         * lib/strings.in.h (system_header): Likewise.
35492         * lib/sys_file.in.h (system_header): Likewise.
35493         * lib/sys_ioctl.in.h (system_header): Likewise.
35494         * lib/sys_socket.in.h (system_header): Likewise.
35495         * lib/sys_times.in.h (system_header): Likewise.
35496         * lib/sys_utsname.in.h (system_header): Likewise.
35497         * lib/sys_wait.in.h (system_header): Likewise.
35498         * lib/sysexits.in.h (system_header): Likewise.
35499         * lib/unistd.in.h (system_header): Likewise.
35500         * lib/wctype.in.h (system_header): Likewise.
35501
35502         arpa/inet: fix mingw compilation warning
35503         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35504         Reported by Matthew Bolte.
35505
35506 2010-03-25  Bruno Haible  <bruno@clisp.org>
35507
35508         Avoid collision between gnulib wrapper and libintl wrapper.
35509         * lib/printf.c (printf): Don't define if a printf wrapper is already
35510         defined in intl/printf.c.
35511         Reported by Michel Boaventura <michel@michelboaventura.com>.
35512
35513 2010-03-25  Bruno Haible  <bruno@clisp.org>
35514
35515         Use ANSI C.
35516         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35517
35518 2010-03-25  Bruno Haible  <bruno@clisp.org>
35519
35520         Minor formatting changes.
35521         * lib/acosl.c: Insert space before function argument list.
35522         * lib/argz.c: Likewise.
35523         * lib/asinl.c: Likewise.
35524         * lib/expl.c: Likewise.
35525         * lib/gen-uni-tables.c: Likewise.
35526         * lib/gettext.h: Likewise.
35527         * lib/glthread/lock.h: Likewise.
35528         * lib/tanl.c: Likewise.
35529         * lib/uniname/uniname.c: Likewise.
35530         * tests/test-idpriv-drop.c: Likewise.
35531         * tests/test-idpriv-droptemp.c: Likewise.
35532         * tests/test-lock.c: Likewise.
35533         * tests/test-tls.c: Likewise.
35534         * lib/argp-help.c: Insert space before function-like macro argument
35535         list.
35536         * lib/memcmp.c: Likewise.
35537         * tests/test-base64.c: Likewise.
35538         * lib/localename.c: Insert space before sizeof's argument list.
35539         * lib/safe-alloc.h: Likewise.
35540         * lib/file-set.h: Insert space before macro argument list.
35541         * tests/test-argp.c: Likewise.
35542         * lib/argp-namefrob.h: Insert space before function parameter list.
35543         * lib/getaddrinfo.c: Likewise.
35544         * lib/netdb.in.h: Likewise.
35545         * lib/parse-duration.h: Likewise.
35546         * lib/parse-duration.c: Likewise.
35547         * lib/poll.c: Likewise.
35548         * lib/select.c: Likewise.
35549         * lib/trim.h: Likewise.
35550         * tests/test-usleep.c: Likewise.
35551         * lib/ldexpl.c: Insert space before function parameter list and before
35552         function argument list.
35553         * lib/logl.c: Likewise.
35554         * lib/sqrtl.c: Likewise.
35555         * lib/trim.c: Likewise.
35556         * lib/cosl.c: Use GNU style indentation. Insert space before function
35557         argument list.
35558         * lib/sinl.c: Likewise.
35559         * lib/tsearch.c: Insert space after 'for'.
35560         Reported by Jim Meyering.
35561
35562 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35563
35564         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35565         config header before grepping, as it's not present before
35566         autoreconf/configure are run.  Reported by Simon Josefsson.
35567
35568 2010-03-23  Bruno Haible  <bruno@clisp.org>
35569
35570         pt_chown: Make it work with automake < 1.11.
35571         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35572         Reported by Simon Josefsson.
35573
35574 2010-03-23  Bruno Haible  <bruno@clisp.org>
35575
35576         pt_chown: Don't depend on GPLed modules.
35577         * lib/pt_chown.c: Don't include idpriv.h.
35578         (main): Don't drop privileges.
35579         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35580         Reported by Simon Josefsson.
35581
35582 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35583
35584         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35585         suggestions from karl@freefriends.org (Karl Berry).
35586
35587 2010-03-22  Eric Blake  <eblake@redhat.com>
35588
35589         gethostname: further tweaks
35590         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35591         are overriding gethostname.
35592         Suggested by Bruno Haible.
35593
35594 2010-03-21  Bruno Haible  <bruno@clisp.org>
35595
35596         Fix comments.
35597         * lib/forkpty.c (rpl_forkpty): Fix comment.
35598         * lib/openpty.c (rpl_openpty): Likewise.
35599         Reported by Eric Blake.
35600
35601 2010-03-22  Eric Blake  <eblake@redhat.com>
35602
35603         gethostname: fix build on mingw
35604         * lib/unistd.in.h (includes): Work around fact that mingw
35605         <winsock2.h> re-includes <unistd.h>, by avoiding any
35606         redeclarations if we are being included by <winsock2.h>.
35607         Reported by Matthias Bolte.
35608
35609 2010-03-21  Bruno Haible  <bruno@clisp.org>
35610
35611         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35612         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35613         modifications.
35614         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35615         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35616         provide the replacement.
35617         * modules/forkpty (Depends-on): Add openpty, login_tty.
35618         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35619         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35620         * doc/glibc-functions/forkpty.texi: More supported platforms.
35621         * config/srclist.txt: Add forkpty.c (commented).
35622
35623 2010-03-21  Bruno Haible  <bruno@clisp.org>
35624
35625         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35626         (Makefile.am): Verify that PTY_LIB is defined.
35627
35628         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35629
35630 2010-03-21  Bruno Haible  <bruno@clisp.org>
35631
35632         Tests for module 'login_tty'.
35633         * modules/login_tty-tests: New file.
35634         * tests/test-login_tty.c: New file.
35635
35636         New module 'login_tty'.
35637         * lib/login_tty.c: New file.
35638         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35639         * modules/login_tty: New file.
35640         * doc/glibc-functions/login_tty.texi: Mention the new module.
35641
35642 2010-03-21  Bruno Haible  <bruno@clisp.org>
35643
35644         login_tty: Documentation.
35645         * doc/glibc-functions/login_tty.texi: New file.
35646         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35647
35648 2010-03-21  Bruno Haible  <bruno@clisp.org>
35649
35650         pty: Consistent macro naming.
35651         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35652         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35653         * modules/pty (configure.ac): Update.
35654
35655 2010-03-21  Bruno Haible  <bruno@clisp.org>
35656
35657         Tests for openpty: Make stricter.
35658         * tests/test-openpty.c (main): Add test of canonical processing and
35659         erase.
35660         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35661
35662         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35663         * lib/openpty.c (openpty): New replacement function.
35664         * lib/pty.in.h: Include <termios.h>.
35665         (openpty): Update declaration. Add comments.
35666         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35667         is not declared, arrange to provide the replacement. Check for _getpty
35668         and posix_openpt.
35669         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35670         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35671         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35672         * modules/pty-tests (test_pty_c___LDADD): New variable.
35673         * doc/glibc-functions/openpty.texi: More supported platforms.
35674
35675 2010-03-21  Bruno Haible  <bruno@clisp.org>
35676
35677         setenv: Tweaks.
35678         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35679         the test program.
35680         * doc/posix-functions/setenv.texi: Update platforms list.
35681
35682 2010-03-21  Bruno Haible  <bruno@clisp.org>
35683
35684         New module 'unlockpt'.
35685         * lib/unlockpt.c: New file, from glibc with modifications.
35686         * m4/unlockpt.m4: New file.
35687         * modules/unlockpt: New file.
35688         * lib/stdlib.in.h (unlockpt): New declaration.
35689         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35690         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35691         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35692         HAVE_UNLOCKPT.
35693         * doc/posix-functions/unlockpt.texi: Mention the new module.
35694         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35695         * config/srclist.txt: Add unlockpt.c (commented).
35696
35697 2010-03-21  Jim Meyering  <meyering@redhat.com>
35698
35699         maint.mk: prohibit inclusion of "intprops.h" without use
35700         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35701
35702 2010-03-21  Bruno Haible  <bruno@clisp.org>
35703
35704         New module 'grantpt'.
35705         * lib/grantpt.c: New file, from glibc with modifications.
35706         * m4/grantpt.m4: New file.
35707         * modules/grantpt: New file.
35708         * lib/stdlib.in.h (grantpt): New declaration.
35709         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35710         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35711         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35712         HAVE_GRANTPT.
35713         * doc/posix-functions/grantpt.texi: Mention the new module.
35714         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35715         * config/srclist.txt: Add grantpt.c (commented).
35716
35717 2010-03-21  Bruno Haible  <bruno@clisp.org>
35718
35719         New module 'pt_chown'.
35720         * lib/pt_chown.c: New file, from glibc with modifications.
35721         * lib/pty-private.h: New file, from glibc with modifications.
35722         * modules/pt_chown: New file.
35723         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35724
35725 2010-03-21  Bruno Haible  <bruno@clisp.org>
35726
35727         Tests for module 'ptsname'.
35728         * modules/ptsname-tests: New file.
35729         * tests/test-ptsname.c: New file.
35730
35731         New module 'ptsname'.
35732         * lib/ptsname.c: New file, from glibc with modifications.
35733         * m4/ptsname.m4: New file.
35734         * modules/ptsname: New file.
35735         * lib/stdlib.in.h (ptsname): New declaration.
35736         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35737         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35738         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35739         HAVE_PTSNAME.
35740         * doc/posix-functions/ptsname.texi: Mention the new module.
35741         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35742         * config/srclist.txt: Add ptsname.c (commented).
35743
35744 2010-03-21  Bruno Haible  <bruno@clisp.org>
35745
35746         Tests for module 'ttyname_r'.
35747         * modules/ttyname_r-tests: New file.
35748         * tests/test-ttyname_r.c: New file.
35749
35750         New module 'ttyname_r'.
35751         * lib/ttyname_r.c: New file.
35752         * m4/ttyname_r.m4: New file.
35753         * modules/ttyname_r: New file.
35754         * lib/unistd.in.h (ttyname_r): New declaration.
35755         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35756         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35757         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35758         HAVE_TTYNAME_R.
35759         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35760         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35761
35762 2010-03-20  Bruno Haible  <bruno@clisp.org>
35763
35764         signal: Undefine macro definitions in C++ mode.
35765         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35766         sigfillset): Undefine macro definitions from the system header in C++
35767         mode.
35768         Reported by John W. Eaton <jwe@gnu.org>.
35769
35770 2010-03-20  Bruno Haible  <bruno@clisp.org>
35771
35772         Ensure no #include statements inside extern "C" { ... }.
35773         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35774         contain #include statements.
35775         * lib/time.in.h: Likewise.
35776
35777 2010-03-20  Bruno Haible  <bruno@clisp.org>
35778
35779         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35780         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35781         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35782         Reported by John W. Eaton <jwe@gnu.org>.
35783
35784 2010-03-20  Bruno Haible  <bruno@clisp.org>
35785
35786         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35787         Reported by Jim Meyering.
35788
35789 2010-03-20  Bruno Haible  <bruno@clisp.org>
35790
35791         pipe: Set errno upon failure.
35792         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35793         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35794         errno value in error message.
35795
35796 2010-03-20  Bruno Haible  <bruno@clisp.org>
35797             Jim Meyering  <meyering@redhat.com>
35798
35799         lchown: Avoid "unused variable" warning.
35800         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35801
35802 2010-03-20  Bruno Haible  <bruno@clisp.org>
35803
35804         Work around unlink() bug on MacOS X 10.5.6.
35805         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35806         attempting to unlink a parent directory.
35807         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35808         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35809         activate for the replacement function.
35810         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35811
35812 2010-03-20  Bruno Haible  <bruno@clisp.org>
35813
35814         Fix link errors on Solaris 8.
35815         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35816         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35817
35818 2010-03-19  Jim Meyering  <meyering@redhat.com>
35819
35820         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35821         The _LIBC implementation of build_range_exp correctly honors the
35822         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35823         However, the non-_LIBC implementation would ignore that syntax-bit
35824         flag and return REG_ERANGE unconditionally.
35825         This change makes it honor that flag.
35826         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35827         Make two pointer parameters "const".
35828         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35829         (parse_bracket_exp): Update caller.
35830
35831         regex.m4: correct the reversed range endpoint ([b-a]) test
35832         * m4/regex.m4: When requiring that [b-a] evoke failure,
35833         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35834         test pass once again for x86-based systems.
35835
35836 2010-03-19  Bruno Haible  <bruno@clisp.org>
35837
35838         scandir: Fix link error on Solaris 8.
35839         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35840         macros.
35841
35842 2010-03-19  Bruno Haible  <bruno@clisp.org>
35843
35844         getusershell: Fix documentation.
35845         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35846         module.
35847         * doc/glibc-functions/setusershell.texi: Likewise.
35848
35849         getusershell: Provide declaration, missing on Solaris 9.
35850         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35851         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35852         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35853         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35855         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35856         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35857         HAVE_GETUSERSHELL.
35858         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35859
35860 2010-03-19  Bruno Haible  <bruno@clisp.org>
35861
35862         wctype: Provide iswblank function.
35863         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35864         exists and is fine.
35865         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35866         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35867         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35868         * doc/posix-functions/iswblank.texi: Update.
35869
35870 2010-03-19  Bruno Haible  <bruno@clisp.org>
35871
35872         Tests of module 'pty' in C++ mode.
35873         * modules/pty-tests: New file.
35874         * tests/test-pty-c++.cc: New file.
35875         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35876
35877 2010-03-19  Eric Blake  <eblake@redhat.com>
35878
35879         logb: fix documentation
35880         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35881         1.5 declaration bug.
35882
35883         forkpty, openpty: prefer glibc's const-safe prototype
35884         * lib/forkpty.c (rpl_forkpty): New file.
35885         * lib/openpty.c (rpl_openpty): Likewise.
35886         * modules/forkpty (Files): Distribute it.
35887         * modules/openpty (Files): Likewise.
35888         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35889         check...
35890         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35891         replacement for for non-const BSD signature.
35892         * modules/pty (Makefile.am): Substitute witnesses.
35893         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35894         * tests/test-forkpty.c: Update signature check.
35895         * tests/test-openpty.c: Likewise.
35896         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35897         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35898
35899         forkpty, openpty: split functions into new modules
35900         * modules/pty (Makefile.am): Substitute new witnesses.
35901         (Libraries): Move library detection...
35902         * modules/forkpty: ...into new module.
35903         * modules/openpty: Another new module.
35904         * modules/pty-tests: Rename and split...
35905         * modules/forkpty-tests: ...to this...
35906         * modules/openpty-tests: ...and this.
35907         * tests/test-pty.c: Rename and split...
35908         * tests/test-forkpty.c: ...to this...
35909         * tests/test-openpty.c: ...and this.
35910         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35911         (gl_PTY): Split library searching...
35912         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35913         (gl_FORKPTY, gl_OPENPTY): New macros.
35914         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35915         * NEWS: Mention the split.
35916         * MODULES.html.sh (Misc): Document the modules.
35917         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35918         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35919
35920         pty: improve replacement header
35921         * lib/pty.in.h: New file.
35922         * modules/pty (Files): Ship it.
35923         (Makefile.am): Always build replacement.
35924         * m4/pty.m4: Rename...
35925         * m4/pty_h.m4: ...to this.
35926         (gl_PTY): Modernize setting of witness macros; update check of
35927         forkpty to take proper advantage of cache.
35928         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35929
35930         getopt: avoid compiler warning
35931         * lib/getopt.c (attribute_hidden): Remove unused macro.
35932
35933 2010-03-18  Bruno Haible  <bruno@clisp.org>
35934
35935         Fix link errors on Solaris 8.
35936         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35937         * modules/search-tests (test_search_c___LDADD): Likewise.
35938         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35939         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35940         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35941         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35942         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35943         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35944         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35945
35946 2010-03-18  Bruno Haible  <bruno@clisp.org>
35947
35948         Fix bug introduced on 2010-03-14.
35949         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35950         (gl_SPAWN_H): Require it.
35951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35952         Reported by Simon Josefsson.
35953
35954 2010-03-18  Bruno Haible  <bruno@clisp.org>
35955
35956         Fix typo introduced on 2009-12-31.
35957         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35958         posix_spawn_file_actions_adddup2.
35959
35960 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35961         and Eric Blake  <eblake@redhat.com>
35962
35963         test-vc-list-files-git: make more robust
35964         * tests/test-vc-list-files-git.sh: Unset problematic environment
35965         variables.  Chain commands together.
35966
35967 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35968
35969         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35970         `AC_CHECK_DECL' invocation.
35971
35972 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35973
35974         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35975         appears before executable statements. Suggested by Petr Sumbera
35976         <Petr.Sumbera@Sun.COM>.
35977
35978 2010-03-14  Bruno Haible  <bruno@clisp.org>
35979
35980         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35981         portability problems. Instead use a simpler test.
35982         (main): Check that invalid arguments are rejected only on Linux.
35983
35984 2010-03-14  Bruno Haible  <bruno@clisp.org>
35985
35986         Fix bug introduced on 2009-12-31.
35987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35988         gl_PREREQ_SYS_H_WINSOCK2 always.
35989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35990         SYS_SOCKET_H variable.
35991         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35992         Update comments.
35993         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35994         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35995         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35996         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35997         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35998
35999 2010-03-14  Bruno Haible  <bruno@clisp.org>
36000
36001         Fix values returned by sinl, cosl.
36002         * lib/trigl.h: Add specification comments.
36003         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36004         that combines the values from the precomputed table with the values of
36005         the Chebyshev polynomials.
36006
36007 2010-03-14  Bruno Haible  <bruno@clisp.org>
36008
36009         Fix compilation error when modules 'posix_spawn[p]' are not used.
36010         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36012
36013 2010-03-14  Bruno Haible  <bruno@clisp.org>
36014
36015         Fix compilation error on mingw when module 'time_r' is not used.
36016         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36017         is 1.
36018         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36019         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36020         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36021         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36022
36023 2010-03-14  Bruno Haible  <bruno@clisp.org>
36024
36025         Fix compilation error with Sun C.
36026         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36027         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36028         instead of GCC specific ULONG_LONG_MAX.
36029         * lib/xstrtoll.c: Likewise.
36030         * lib/xstrtoull.c: Likewise.
36031
36032 2010-03-13  Bruno Haible  <bruno@clisp.org>
36033
36034         Allow the user to disable C++ code and tests.
36035         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36036         (gl_PROG_ANSI_CXX): Require it.
36037
36038 2010-03-13  Bruno Haible  <bruno@clisp.org>
36039
36040         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36041         cases.
36042
36043 2010-03-13  Bruno Haible  <bruno@clisp.org>
36044
36045         Test that gnulib does not break the standard C++ headers.
36046         * tests/test-locale-c++2.cc: New file.
36047         * modules/locale-tests (Files): Add it.
36048         (Makefile.am): Compile it for test-locale-c++.
36049         * tests/test-math-c++2.cc: New file.
36050         * modules/math-tests (Files): Add it.
36051         (Makefile.am): Compile it for test-math-c++.
36052         * tests/test-signal-c++2.cc: New file.
36053         * modules/signal-tests (Files): Add it.
36054         (Makefile.am): Compile it for test-signal-c++.
36055         * tests/test-stdio-c++2.cc: New file.
36056         * modules/stdio-tests (Files): Add it.
36057         (Makefile.am): Compile it for test-stdio-c++.
36058         * tests/test-stdlib-c++2.cc: New file.
36059         * modules/stdlib-tests (Files): Add it.
36060         (Makefile.am): Compile it for test-stdlib-c++.
36061         * tests/test-string-c++2.cc: New file.
36062         * modules/string-tests (Files): Add it.
36063         (Makefile.am): Compile it for test-string-c++.
36064         * tests/test-time-c++2.cc: New file.
36065         * modules/time-tests (Files): Add it.
36066         (Makefile.am): Compile it for test-time-c++.
36067         Reported by John W. Eaton <jwe@gnu.org>.
36068
36069 2010-03-13  Bruno Haible  <bruno@clisp.org>
36070
36071         * gnulib-tool (func_usage): Clarify which options are available for
36072         --create-testdir and --create-megatestdir.
36073
36074 2010-03-13  Bruno Haible  <bruno@clisp.org>
36075
36076         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36077         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36078         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36079         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36080         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36081         when appropriate.
36082         Reported by Jim Meyering.
36083
36084 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36085
36086         * gnulib-tool (func_import): Explain origin of code.
36087
36088 2010-03-12  Bruno Haible  <bruno@clisp.org>
36089
36090         Fix problem with automake's definition of CXXLINK.
36091         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36092         Reported by Simon Josefsson and Ludovic Courtès.
36093
36094 2010-03-12  Bruno Haible  <bruno@clisp.org>
36095
36096         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36097         stable releases.
36098
36099 2010-03-11  Bruno Haible  <bruno@clisp.org>
36100
36101         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36102         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36103         whether the system provides one variant or multiple variants of the
36104         function.
36105         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36106         C++ compilers.
36107         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36108         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36109         Reported by Jim Meyering.
36110
36111 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36112
36113         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36114
36115 2010-03-08  Bruno Haible  <bruno@clisp.org>
36116
36117         gnulib-tool: Add support for --libtool in --create-testdir.
36118         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36119         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36120
36121 2010-03-08  Eric Blake  <eblake@redhat.com>
36122
36123         gnulib-tool.texi: mention possibility of git submodule
36124         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36125         submodules.
36126         * doc/.gitignore: Ignore another generated file.
36127
36128 2010-03-08  Karl Berry  <karl@gnu.org>
36129
36130         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36131         of committing gnulib files while skipping others.
36132
36133 2010-03-07  Bruno Haible  <bruno@clisp.org>
36134
36135         Tests of module 'wctype' in C++ mode.
36136         * tests/test-wctype-c++.cc: New file.
36137         * modules/wctype-tests (Files): Add it and tests/signature.h.
36138         (Depends-on): Add ansi-c++-opt.
36139         (Makefile.am): Arrange to compile and run test-wctype-c++.
36140
36141         Tests of module 'wchar' in C++ mode.
36142         * tests/test-wchar-c++.cc: New file.
36143         * modules/wchar-tests (Files): Add it and tests/signature.h.
36144         (Depends-on): Add ansi-c++-opt.
36145         (Makefile.am): Arrange to compile and run test-wchar-c++.
36146         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36147         gl_MODULE_INDICATOR.
36148
36149         Tests of module 'unistd' in C++ mode.
36150         * tests/test-unistd-c++.cc: New file.
36151         * modules/unistd-tests (Files): Add it and tests/signature.h.
36152         (Depends-on): Add ansi-c++-opt.
36153         (Makefile.am): Arrange to compile and run test-unistd-c++.
36154         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36155         gl_MODULE_INDICATOR.
36156
36157         Tests of module 'time' in C++ mode.
36158         * tests/test-time-c++.cc: New file.
36159         * modules/time-tests (Files): Add it and tests/signature.h.
36160         (Depends-on): Add ansi-c++-opt.
36161         (Makefile.am): Arrange to compile and run test-time-c++.
36162         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36163
36164         Tests of module 'sys_time' in C++ mode.
36165         * tests/test-sys_time-c++.cc: New file.
36166         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36167         (Depends-on): Add ansi-c++-opt.
36168         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36169         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36170         gl_MODULE_INDICATOR.
36171
36172         Tests of module 'sys_stat' in C++ mode.
36173         * tests/test-sys_stat-c++.cc: New file.
36174         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36175         (Depends-on): Add ansi-c++-opt.
36176         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36177         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36178         gl_MODULE_INDICATOR.
36179
36180         Tests of module 'sys_socket' in C++ mode.
36181         * tests/test-sys_socket-c++.cc: New file.
36182         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36183         (Depends-on): Add ansi-c++-opt.
36184         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36185         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36186         gl_MODULE_INDICATOR.
36187
36188         Tests of module 'sys_select' in C++ mode.
36189         * tests/test-sys_select-c++.cc: New file.
36190         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36191         (Depends-on): Add ansi-c++-opt.
36192         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36193         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36194         gl_MODULE_INDICATOR.
36195
36196         Tests of module 'sys_ioctl' in C++ mode.
36197         * tests/test-sys_ioctl-c++.cc: New file.
36198         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36199         (Depends-on): Add ansi-c++-opt.
36200         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36201         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36202         gl_MODULE_INDICATOR.
36203
36204         Tests of module 'string' in C++ mode.
36205         * tests/test-string-c++.cc: New file.
36206         * modules/string-tests (Files): Add it and tests/signature.h.
36207         (Depends-on): Add ansi-c++-opt.
36208         (Makefile.am): Arrange to compile and run test-string-c++.
36209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36210         gl_MODULE_INDICATOR.
36211
36212         Tests of module 'stdlib' in C++ mode.
36213         * tests/test-stdlib-c++.cc: New file.
36214         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36215         (Depends-on): Add ansi-c++-opt.
36216         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36217         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36218         gl_MODULE_INDICATOR.
36219
36220         Tests of module 'stdio' in C++ mode.
36221         * tests/test-stdio-c++.cc: New file.
36222         * modules/stdio-tests (Files): Add it and tests/signature.h.
36223         (Depends-on): Add ansi-c++-opt.
36224         (Makefile.am): Arrange to compile and run test-stdio-c++.
36225         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36226         gl_MODULE_INDICATOR.
36227
36228         Tests of module 'spawn' in C++ mode.
36229         * tests/test-spawn-c++.cc: New file.
36230         * modules/spawn-tests (Files): Add it and tests/signature.h.
36231         (Depends-on): Add ansi-c++-opt.
36232         (Makefile.am): Arrange to compile and run test-spawn-c++.
36233         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36234         gl_MODULE_INDICATOR.
36235
36236         Tests of module 'signal' in C++ mode.
36237         * tests/test-signal-c++.cc: New file.
36238         * modules/signal-tests (Files): Add it and tests/signature.h.
36239         (Depends-on): Add ansi-c++-opt.
36240         (Makefile.am): Arrange to compile and run test-signal-c++.
36241         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36242         gl_MODULE_INDICATOR.
36243
36244         Tests of module 'search' in C++ mode.
36245         * tests/test-search-c++.cc: New file.
36246         * modules/search-tests (Files): Add it and tests/signature.h.
36247         (Depends-on): Add ansi-c++-opt.
36248         (Makefile.am): Arrange to compile and run test-search-c++.
36249         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36250         gl_MODULE_INDICATOR.
36251
36252         Tests of module 'math' in C++ mode.
36253         * tests/test-math-c++.cc: New file.
36254         * modules/math-tests (Files): Add it and tests/signature.h.
36255         (Depends-on): Add ansi-c++-opt.
36256         (Makefile.am): Arrange to compile and run test-math-c++.
36257         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36258
36259         Tests of module 'locale' in C++ mode.
36260         * tests/test-locale-c++.cc: New file.
36261         * modules/locale-tests (Files): Add it and tests/signature.h.
36262         (Depends-on): Add ansi-c++-opt.
36263         (Makefile.am): Arrange to compile and run test-locale-c++.
36264         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36265         gl_MODULE_INDICATOR.
36266
36267         Tests of module 'langinfo' in C++ mode.
36268         * tests/test-langinfo-c++.cc: New file.
36269         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36270         (Depends-on): Add ansi-c++-opt.
36271         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36272         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36273         gl_MODULE_INDICATOR.
36274
36275         Tests of module 'iconv-h' in C++ mode.
36276         * tests/test-iconv-h-c++.cc: New file.
36277         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36278         (Depends-on): Add ansi-c++-opt.
36279         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36280
36281         Tests of module 'glob' in C++ mode.
36282         * tests/test-glob-c++.cc: New file.
36283         * modules/glob-tests (Files): Add it.
36284         (Depends-on): Add ansi-c++-opt.
36285         (Makefile.am): Arrange to compile and run test-glob-c++.
36286
36287         Tests of module 'fcntl-h' in C++ mode.
36288         * tests/test-fcntl-h-c++.cc: New file.
36289         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36290         (Depends-on): Add ansi-c++-opt.
36291         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36292         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36293         gl_MODULE_INDICATOR.
36294
36295         Tests of module 'dirent' in C++ mode.
36296         * tests/test-dirent-c++.cc: New file.
36297         * modules/dirent-tests (Files): Add it and tests/signature.h.
36298         (Depends-on): Add ansi-c++-opt.
36299         (Makefile.am): Arrange to compile and run test-dirent-c++.
36300         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36301         gl_MODULE_INDICATOR.
36302
36303         New module 'ansi-c++-opt'.
36304         * modules/ansi-c++-opt: New file.
36305         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36306
36307         Document C++ namespace mode.
36308         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36309
36310         wctype: Avoid #define replacements in C++ mode.
36311         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36312         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36313         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36314         In C++, define a namespaced alias symbol.
36315         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36316         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36317         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36318         rule.
36319
36320         wchar: Avoid #define replacements in C++ mode.
36321         * lib/wchar.in.h: Include c++defs.h.
36322         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36323         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36324         symbol.
36325         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36326         * modules/wchar (Depends-on): Add c++defs.
36327         (Makefile.am): Update wchar.h rule.
36328
36329         unistd: Avoid #define replacements in C++ mode.
36330         * lib/unistd.in.h: Include c++defs.h.
36331         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36332         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36333         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36334         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36335         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36336         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36337         symbol.
36338         (environ): Update.
36339         * modules/unistd (Depends-on): Add c++defs.
36340         (Makefile.am): Update unistd.h rule.
36341
36342         time: Avoid #define replacements in C++ mode.
36343         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36344         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36345         define a namespaced alias symbol.
36346         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36347         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36348         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36349         * modules/time (Depends-on): Add c++defs, warn-on-use.
36350         (Makefile.am): Update time.h rule.
36351         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36352         * modules/nanosleep (configure.ac): Likewise.
36353         * modules/strptime (configure.ac): Likewise.
36354         * modules/timegm (configure.ac): Likewise.
36355
36356         sys_time: Avoid #define replacements in C++ mode.
36357         * lib/sys_time.in.h: Include c++defs.h.
36358         (gettimeofday): In C++, define a namespaced alias symbol.
36359         * modules/sys_time (Depends-on): Add c++defs.
36360         (Makefile.am): Update sys/time.h rule.
36361
36362         sys_stat: Avoid #define replacements in C++ mode.
36363         * lib/sys_stat.in.h: Include c++defs.h.
36364         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36365         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36366         namespaced alias symbol.
36367         In C++, define a namespaced alias symbol.
36368         * modules/sys_stat (Depends-on): Add c++defs.
36369         (Makefile.am): Update sys/stat.h rule.
36370
36371         sys_socket: Avoid #define replacements in C++ mode.
36372         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36373         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36374         definitions also when the system has a <sys/socket.h>.
36375         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36376         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36377         In C++, define a namespaced alias symbol.
36378         * modules/sys_socket (Depends-on): Add c++defs.
36379         (Makefile.am): Update sys/socket.h rule.
36380
36381         sys_select: Avoid #define replacements in C++ mode.
36382         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36383         definitions also when the system has a <sys/select.h>.
36384         (select): In C++, define a namespaced alias symbol.
36385         * modules/sys_select (Depends-on): Add c++defs.
36386         (Makefile.am): Update sys/select.h rule.
36387
36388         sys_ioctl: Avoid #define replacements in C++ mode.
36389         * lib/sys_ioctl.in.h: Include c++defs.h.
36390         (ioctl): In C++, define a namespaced alias symbol.
36391         * modules/sys_ioctl (Depends-on): Add c++defs.
36392         (Makefile.am): Update sys/ioctl.h rule.
36393
36394         string: Avoid #define replacements in C++ mode.
36395         * lib/string.in.h: Include c++defs.h.
36396         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36397         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36398         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36399         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36400         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36401         * modules/string (Depends-on): Add c++defs.
36402         (Makefile.am): Update string.h rule.
36403
36404         stdlib: Avoid #define replacements in C++ mode.
36405         * lib/stdlib.in.h: Include c++defs.h.
36406         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36407         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36408         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36409         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36410         symbol.
36411         * modules/stdlib (Depends-on): Add c++defs.
36412         (Makefile.am): Update stdlib.h rule.
36413
36414         stdio: Avoid #define replacements in C++ mode.
36415         * lib/stdio.in.h: Include c++defs.h.
36416         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36417         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36418         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36419         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36420         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36421         namespaced alias symbol.
36422         * modules/stdio (Depends-on): Add c++defs.
36423         (Makefile.am): Update stdio.h rule.
36424
36425         spawn: Avoid #define replacements in C++ mode.
36426         * lib/spawn.in.h: Include c++defs.h.
36427         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36428         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36429         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36430         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36431         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36432         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36433         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36434         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36435         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36436         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36437         In C++, define a namespaced alias symbol.
36438         * modules/spawn (Depends-on): Add c++defs.
36439         (Makefile.am): Update spawn.h rule.
36440
36441         signal: Avoid #define replacements in C++ mode.
36442         * lib/signal.in.h: Include c++defs.h.
36443         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36444         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36445         namespaced alias symbol.
36446         * modules/signal (Depends-on): Add c++defs.
36447         (Makefile.am): Update signal.h rule.
36448
36449         search: Avoid #define replacements in C++ mode.
36450         * lib/search.in.h: Include c++defs.h.
36451         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36452         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36453         symbol.
36454         * modules/search (Depends-on): Add c++defs.
36455         (Makefile.am): Update search.h rule.
36456
36457         math: Avoid #define replacements in C++ mode.
36458         * lib/math.in.h: Include c++defs.h.
36459         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36460         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36461         trunc, truncl): In C++, define a namespaced alias symbol.
36462         * modules/math (Depends-on): Add c++defs.
36463         (Makefile.am): Update math.h rule.
36464
36465         locale: Avoid #define replacements in C++ mode.
36466         * lib/locale.in.h: Include c++defs.h.
36467         (duplocale): In C++, define a namespaced alias symbol.
36468         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36469         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36470         * modules/locale (Depends-on): Add c++defs.
36471         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36472
36473         langinfo: Avoid #define replacements in C++ mode.
36474         * lib/langinfo.in.h: Include c++defs.h.
36475         (nl_langinfo): In C++, define a namespaced alias symbol.
36476         * modules/langinfo (Depends-on): Add c++defs.
36477         (Makefile.am): Update langinfo.h rule.
36478
36479         iconv-h: Avoid #define replacements in C++ mode.
36480         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36481         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36482         symbol.
36483         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36484         whenever iconv is present.
36485         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36486         (Makefile.am): Update iconv.h rule.
36487
36488         glob: Avoid #define replacements in C++ mode.
36489         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36490         (_gl_glob_errfunc_fn): New type.
36491         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36492         symbol.
36493         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36494         (Makefile.am): Update glob.h rule.
36495
36496         fcntl-h: Avoid #define replacements in C++ mode.
36497         * lib/fcntl.in.h: Include c++defs.h.
36498         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36499         * modules/fcntl-h (Depends-on): Add c++defs.
36500         (Makefile.am): Update fcntl.h rule.
36501
36502         dirent: Avoid #define replacements in C++ mode.
36503         * lib/dirent.in.h: Include c++defs.h.
36504         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36505         namespaced alias symbol.
36506         (dirfd): Update declaration.
36507         * modules/dirent (Depends-on): Add c++defs.
36508         (Makefile.am): Update dirent.h rule.
36509
36510         ctype: Make it usable in C++ code.
36511         * lib/ctype.in.h: Include c++defs.h.
36512         (isblank): Declare as extern "C".
36513         * modules/ctype (Depends-on): Add c++defs.
36514         (Makefile.am): Update ctype.h rule.
36515
36516         New module 'c++defs'.
36517         * modules/c++defs: New file.
36518         * build-aux/c++defs.h: New file.
36519         Reported by John W. Eaton <jwe@gnu.org>.
36520
36521 2010-03-07  Bruno Haible  <bruno@clisp.org>
36522
36523         logb: Provide missing declaration for Cygwin.
36524         * lib/math.in.h (logb): New declaration.
36525         * m4/logb.m4: New file.
36526         * modules/logb (Files): Add m4/logb.m4.
36527         (Depends-on): Add math.
36528         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36529         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36531         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36532         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36533
36534 2010-03-07  Bruno Haible  <bruno@clisp.org>
36535
36536         Fix test-cond link error.
36537         * tests/test-cond.c: Include <stdio.h>.
36538
36539 2010-03-07  Bruno Haible  <bruno@clisp.org>
36540
36541         Fix test-dirent-safer link error.
36542         * modules/dirent-safer-tests (Makefile.am): Define
36543         test_dirent_safer_LDADD.
36544
36545 2010-03-07  Bruno Haible  <bruno@clisp.org>
36546
36547         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36548         among default module list.
36549
36550 2010-03-07  Bruno Haible  <bruno@clisp.org>
36551
36552         Fix link error on platforms with GNU libiconv.
36553         * modules/unistr/u8-strcoll-tests (Makefile): Define
36554         test_u8_strcoll_LDADD.
36555         * modules/unistr/u16-strcoll-tests (Makefile): Define
36556         test_u16_strcoll_LDADD.
36557         * modules/unistr/u32-strcoll-tests (Makefile): Define
36558         test_u32_strcoll_LDADD.
36559
36560 2010-03-07  Bruno Haible  <bruno@clisp.org>
36561
36562         Use POSIX declarations for socket functions.
36563         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36564         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36565         rpl_sendto): Change declaration to match POSIX.
36566         * lib/connect.c (rpl_connect): Likewise.
36567         * lib/accept.c (rpl_accept): Likewise.
36568         * lib/bind.c (rpl_bind): Likewise.
36569         * lib/getpeername.c (rpl_getpeername): Likewise.
36570         * lib/getsockname.c (rpl_getsockname): Likewise.
36571         * lib/recv.c (rpl_recv): Likewise.
36572         * lib/send.c (rpl_send): Likewise.
36573         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36574         * lib/sendto.c (rpl_sendto): Likewise.
36575
36576 2010-03-06  Bruno Haible  <bruno@clisp.org>
36577
36578         Clarify access, euidaccess, faccessat.
36579         * doc/posix-functions/faccessat.texi: Mention security problem under
36580         "Other problems", not "Portability problems".
36581         * doc/posix-functions/access.texi: Likewise. Mention a related security
36582         problem.
36583         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36584         * lib/euidaccess.c: Add comments about platforms.
36585         * lib/unistd.in.h (access, euidaccess): Add warnings.
36586
36587 2010-03-07  Bruno Haible  <bruno@clisp.org>
36588
36589         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36590         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36591         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36592         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36593         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36594         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36595         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36596         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36597         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36599         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36600         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36601         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36602         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36603         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36604         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36605         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36606         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36607         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36608         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36609         Likewise.
36610         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36611         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36612         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36613         Likewise.
36614         * tests/test-spawn.c (main): Make it work when
36615         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36616
36617 2010-03-07  Bruno Haible  <bruno@clisp.org>
36618
36619         Fix incorrect Makefile.am generation in German locale.
36620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36621         Execute sed command with character range in C locale.
36622
36623 2010-03-06  Bruno Haible  <bruno@clisp.org>
36624
36625         Tests for module 'iconv-h'.
36626         * modules/iconv-h-tests: New file.
36627         * tests/test-iconv-h.c: New file.
36628
36629         New module 'iconv-h'.
36630         * modules/iconv-h: New file.
36631         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36632         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36633         (configure.ac): Remove gl_ICONV_H.
36634         (Makefile.am): Remove rule for iconv.h.
36635
36636 2010-03-06  Bruno Haible  <bruno@clisp.org>
36637
36638         More consistent naming of *.m4 files.
36639         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36640         * modules/wctype (Files): Update.
36641
36642         More consistent naming of *.m4 files.
36643         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36644         * modules/wchar (Files): Update.
36645
36646 2010-03-06  Jim Meyering  <meyering@redhat.com>
36647
36648         euidaccess: relax license to LGPLv2+
36649         * modules/euidaccess (License): Relax to LGPLv2+.
36650
36651 2010-03-06  Bruno Haible  <bruno@clisp.org>
36652
36653         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36654         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36655         (Makefile.am): Augment lib_SOURCES instead.
36656
36657 2010-03-04  Jim Meyering  <meyering@redhat.com>
36658
36659         utime: remove obsolete module
36660         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36661         unnecessary for years, and has been marked as obsolete for 10 months.
36662         * modules/utime: Remove file.
36663         * lib/utime.c: Remove file.
36664         * m4/utime.m4: Remove file.
36665         * m4/utimes-null.m4: Remove file.
36666         * doc/posix-functions/utime.texi (utime): Remove reference to
36667         the module.  Move the sole "fixed by gnulib" item into the
36668         "problems not fixed by Gnulib" list.
36669         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36670
36671 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36672
36673         * modules/exit (License): Relax license to LGPLv2+.
36674         (Status): Mark as obsolete.
36675         * NEWS: Mention deprecated 'exit' module.
36676         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36677         of now obsolete 'exit'.
36678
36679 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36680
36681         fts-lgpl: remove unused module
36682         * modules/fts-lgpl: Remove.
36683         * MODULES.html.sh (func_all_modules): Adjust.
36684         * check-module (find_included_lib_files): Adjust.
36685         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36686
36687 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36688
36689         copy-acl: enhance Solaris ACL error handling
36690         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36691         * lib/set-mode-acl.c (qset_acl): Likewise.
36692
36693 2010-03-02  Bruno Haible  <bruno@clisp.org>
36694
36695         spawn: Don't override the system defined values on FreeBSD 8.
36696         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36697         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36698         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36699         if HAVE_POSIX_SPAWN is 1.
36700         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36701
36702 2010-03-01  Bruno Haible  <bruno@clisp.org>
36703
36704         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36705         regarding Automake.
36706
36707 2010-02-25  Bruno Haible  <bruno@clisp.org>
36708
36709         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36710         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36711         setting, not afterwards.
36712         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36713
36714 2010-02-24  Eric Blake  <eblake@redhat.com>
36715
36716         bootstrap, git-version-gen: use timestamp
36717         * build-aux/git-version-gen (scriptversion): Force UTC.
36718         * build-aux/bootstrap (scriptversion): New variable.
36719
36720         bootstrap: allow older git
36721         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36722         older than 1.6.4.  Requested by the libvirt project.
36723
36724 2010-02-23  Eric Blake  <eblake@redhat.com>
36725
36726         warn-on-use: work with old autoconf
36727         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36728         AS_VAR semantics of autoconf 2.60.
36729         Reported by Bruno Haible.
36730
36731         bootstrap: improve some comments
36732         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36733         clarification comments.
36734
36735         gettimeofday: provide correct function
36736         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36737         when replacement is declared, otherwise provide gettimeofday.
36738         Reported by Michael Goffioul.
36739
36740 2010-02-23  Jim Meyering  <meyering@redhat.com>
36741
36742         lib-ignore: relax license to "unlimited", not LGPLv2+
36743         * modules/lib-ignore (License): Relax to "unlimited".
36744
36745 2010-02-23  Jim Meyering  <meyering@redhat.com>
36746
36747         lib-ignore: relax license to LGPLv2+
36748         * modules/lib-ignore (License): Relax to LGPLv2+.
36749
36750 2010-02-22  Eric Blake  <eblake@redhat.com>
36751
36752         lseek: avoid bash 3.2 broken pipe bug
36753         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36754         warning from bash 3.2.
36755         Reported by Ben Pfaff, with analysis from Bruno Haible.
36756
36757         bootstrap: support non-FSF copyright holder
36758         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36759         bootstrap.conf override of COPYRIGHT_HOLDER.
36760         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36761
36762         bootstrap: interoperate with gettext 0.14.1
36763         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36764
36765         bootstrap: allow for alternate submodule location
36766         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36767         hardcoding submodule location.
36768         (gnulib_mk): Allow direct use of Makefile.am.
36769
36770         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36771         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36772         rather than reconfiguring where the submodule points.
36773
36774         gettimeofday: restore support for platforms that lack function
36775         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36776         replacement if function is missing.
36777         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36778         * modules/sys_time (Makefile.am): Substitute it.
36779         * lib/sys_time.in.h (gettimeofday): Check it.
36780         Reported by Michael Goffioul.
36781
36782 2010-02-21  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/stdio.in.h (obstack_printf): Fix typo.
36785
36786 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36787
36788         vc-list-files: use bzr ls's -R option
36789         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36790         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36791
36792 2010-02-21  Jim Meyering  <meyering@redhat.com>
36793
36794         init.sh: fix EXEEXT shims to work also for names like test-prog
36795         * tests/init.sh: Re-exec a better shell, when needed.
36796         If the current shell lacks support for posix $(...), an init.sh-using
36797         test will now try to find a shell that supports that.  If EXEEXT is
36798         nonempty, we also require support for hyphen-in-alias-name and shell
36799         substitutions like ${var#glob}.  Failure to find such a shell results
36800         in a skipped test.
36801
36802 2010-02-21  Bruno Haible  <bruno@clisp.org>
36803
36804         Really work around around "broken pipe" error message from bash 3.2.
36805         * gnulib-tool (func_reset_sigpipe): Remove function.
36806         (echo): In bash 3.2, define to a function that uses printf.
36807         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36808
36809 2010-02-20  Bruno Haible  <bruno@clisp.org>
36810
36811         Restore support for automake 1.9.6 with autoconf 2.61.
36812         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36813         Reported by James Youngman <jay@gnu.org>.
36814
36815 2010-02-20  Bruno Haible  <bruno@clisp.org>
36816
36817         Improve *printf warning condition.
36818         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36819         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36820         and the function is overridden due to SIGPIPE emulation.
36821
36822 2010-02-20  Bruno Haible  <bruno@clisp.org>
36823
36824         * lib/stdio.in.h: Tweak comments.
36825
36826 2010-02-19  Bruno Haible  <bruno@clisp.org>
36827
36828         Make it easier to find modules. New gnulib-tool option '--find'.
36829         * gnulib-tool: New option --find.
36830         (func_usage): Document it.
36831         (func_sanitize_modulelist): New function, extracted from
36832         func_all_modules.
36833         (func_all_modules): Invoke it.
36834         * doc/gnulib-tool.texi (Which modules?): New node.
36835
36836 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36837
36838         * lib/sys_select.in.h: Provide select replacement even if
36839         sys/select.h exists on a system, for Interix.
36840
36841 2010-02-18  Jim Meyering  <meyering@redhat.com>
36842
36843         init.sh: don't use $(...) just yet
36844         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36845         to accommodate e.g., Solaris' /bin/sh.
36846
36847 2010-02-17  Bruno Haible  <bruno@clisp.org>
36848
36849         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36850         Reported by Ludovic Courtès <ludo@gnu.org>.
36851
36852 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36853
36854         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36855         linking with -lintl.
36856
36857 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36858
36859         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36860         if not provided by the system's netdb.h.  Reported by
36861         ludo@gnu.org (Ludovic Courtès).
36862
36863 2010-02-15  Jim Meyering  <meyering@redhat.com>
36864
36865         init.sh: improve portability and efficiency
36866         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36867         "dummy" in a for loop.
36868         Use '!', not '^' to select the complement of a character set used
36869         in a "case" statement.
36870         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36871         Suggestions from Eric Blake.
36872
36873         init.sh: automatically accommodate programs with the .exe suffix
36874         Automatically arrange for an invocation of "prog" to execute the
36875         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36876         may use the simpler "prog", yet still work when built on a system
36877         that requires specifying the added suffix.
36878         Do this by constructing a function named "prog" that invokes
36879         "prog.exe" for each .exe file in selected directories.
36880         * tests/init.sh (find_exe_basenames_): New function.
36881         (create_exe_shim_functions_): New function.
36882         (path_prepend_): Use it.
36883
36884         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36885         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36886         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36887
36888 2010-02-14  Jim Meyering  <meyering@redhat.com>
36889
36890         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36891         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36892         (sc_prohibit_hash_pjw_without_use): New rule.
36893
36894         maint.mk: allow the default upload destination dir to be overridden
36895         * top/maint.mk (upload_dest_dir_): Define with a default that
36896         preserves the status quo.
36897         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36898         Reported by Peter Simons.
36899
36900         maint.mk: prohibit inclusion of "hash.h" without_use
36901         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36902
36903 2010-02-10  Jim Meyering  <meyering@redhat.com>
36904
36905         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36906         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36907
36908 2010-02-09  Eric Blake  <ebb9@byu.net>
36909         and Bruno Haible  <bruno@clisp.org>
36910
36911         obstack-printf-posix: ensure declaration
36912         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36913         extracted from gl_FUNC_OBSTACK_PRINTF.
36914         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36915         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36916         Likewise.
36917         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36918         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36919         0.
36920
36921 2010-02-08  Bruno Haible  <bruno@clisp.org>
36922
36923         gnulib-tool: Fix typo in 2010-02-07 commit.
36924         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36925         Reported by Eric Blake.
36926
36927 2010-02-07  Bruno Haible  <bruno@clisp.org>
36928
36929         gnulib-tool: Fix up caching patches.
36930         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36931         option --no-cache. Use associative arrays when supported by the shell.
36932         (sed_comments): New variable.
36933         (modcache): Renamed from do_cache.
36934         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36935         abbreviate unnecessarily.
36936         (have_associative): New variable.
36937         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36938         way also for ksh and zsh.
36939         (func_init_sed_convert_to_cache_statements): New function, extracted
36940         from func_cache_lookup_module. Add support for associative arrays.
36941         Don't set the c_MODULE_cached variable here. Ignore all lines before
36942         the first field header. Remove only the final newline, not all trailing
36943         newlines. Support empty fields correctly. Limit the use of 'eval' to
36944         assignments.
36945         (func_get_description, func_get_status, func_get_notice,
36946         func_get_applicability, func_get_filelist, func_get_dependencies,
36947         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36948         func_get_automake_snippet, func_get_include_directive,
36949         func_get_link_directive, func_get_license, func_get_maintainer):
36950         Update documentation. List the unoptimized code first. Add support for
36951         associative arrays. Limit the use of 'eval' to assignments.
36952         (func_get_applicability): Undo stylistic pessimisations.
36953         (func_get_automake_snippet, func_get_include_directive): Reduce code
36954         duplication.
36955         (func_modules_transitive_closure, func_modules_add_dummy,
36956         func_modules_notice, func_modules_to_filelist, func_add_file,
36957         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36958         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36959         func_create_testdir, func_create_megatestdir): Update documentation.
36960
36961 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36962
36963         * gnulib-tool (func_cache_lookup_module): Store the module name
36964         belonging to the cache variable; error out if two different
36965         module names map to the same cache variable name.
36966
36967 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36968
36969         gnulib-tool: Make caching optional.
36970         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36971         Update matching short versions of --no-changelog.
36972         (func_usage): Update.
36973         (sed_extract_cache_prog): Renamed from ...
36974         (sed_extract_prog): ... this; revert to old extraction script.
36975         (func_get_description, func_get_status)
36976         (func_get_notice, func_get_applicability, func_get_filelist)
36977         (func_get_dependencies, func_get_autoconf_early_snippet)
36978         (func_get_autoconf_snippet, func_get_automake_snippet)
36979         (func_get_include_directive, func_get_link_directive)
36980         (func_get_license, func_get_maintainer): If $do_cache is false,
36981         use old, non-caching extraction scripts.
36982         Suggestion by Bruno Haible.
36983
36984 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36985
36986         gnulib-tool: cache module metainformation.
36987         * gnulib-tool (sed_extract_prog): Match newline before each
36988         header, and rewrite header to a shell variable suffix.
36989         (func_cache_var, func_cache_lookup_module): New functions,
36990         to turn a module name into a cache variable prefix, and to
36991         look up and cache module metainformation.
36992         (func_get_description, func_get_status)
36993         (func_get_notice, func_get_applicability, func_get_filelist)
36994         (func_get_dependencies, func_get_autoconf_early_snippet)
36995         (func_get_autoconf_snippet, func_get_automake_snippet)
36996         (func_get_include_directive, func_get_link_directive)
36997         (func_get_license, func_get_maintainer): Use
36998         func_cache_lookup_module.
36999
37000 2010-02-07  Bruno Haible  <bruno@clisp.org>
37001
37002         fnctl: Fix missing dependency.
37003         * modules/fcntl (Depends-on): Add getdtablesize.
37004         Reported by John W. Eaton <jwe@gnu.org>.
37005
37006 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37007
37008         Argp: fix recognition of short alias options.
37009
37010         * lib/argp-parse.c (convert_options): Fix improper use of
37011         `|' between character values.
37012         * tests/test-argp.c (group1_option): New alias option
37013         --read (-r).
37014         (group1_parser): Special handling for 'r'.
37015         (test15): New test case.
37016         (test_fun): Add test15.
37017         * tests/test-argp-2.sh: Update expected --help and --usage
37018         outputs.
37019
37020 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37021
37022         * tests/test-argp.c: Fix indentation.
37023
37024 2010-02-04  Eric Blake  <ebb9@byu.net>
37025
37026         gettimeofday: expose type of second argument
37027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37028         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37029         * tests/test-gettimeofday.c: Use it to silence warning.
37030         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37031         the issue.
37032
37033 2010-02-03  Jim Meyering  <meyering@redhat.com>
37034
37035         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37036         * lib/regcomp.c (TYPE_SIGNED): Define.
37037         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37038
37039         regcomp.c: avoid a new -Wshadow warning
37040         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37041
37042 2010-02-01  Jim Meyering  <meyering@redhat.com>
37043
37044         removing useless parentheses in cpp #define directives
37045         For motivation, see commit c0221df4, "define STREQ(a,b)
37046         consistently, removing useless parentheses"
37047         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37048         * lib/mountlist.c (MNT_IGNORE): Likewise.
37049         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37050
37051 2010-02-01  Eric Blake  <ebb9@byu.net>
37052
37053         sys_time: use link-warning
37054         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37055         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37056         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37057         * modules/sys_time (Depends-on): Add warn-on-use.
37058         (Makefile.am): Always build replacement.
37059         (configure.ac): Update substitutions.
37060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37061         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37062         bother with SYS_TIME_H.
37063         * modules/gettimeofday (configure.ac): Declare indicator.
37064         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37065         in use.
37066
37067         closein-tests: silence compiler warning
37068         * tests/test-closein.c (main): Ignore fread result.
37069         * modules/closein-tests (Depends-on): Add ignore-value.
37070
37071         tests: silence warning about system return
37072         * tests/test-areadlink-with-size.c (main): Ignore system result.
37073         * tests/test-areadlink.c (main): Likewise.
37074         * tests/test-areadlinkat-with-size.c (main): Likewise.
37075         * tests/test-areadlinkat.c (main): Likewise.
37076         * tests/test-canonicalize-lgpl.c (main): Likewise.
37077         * tests/test-canonicalize.c (main): Likewise.
37078         * tests/test-chown.c (main): Likewise.
37079         * tests/test-fchownat.c (main): Likewise.
37080         * tests/test-fdutimensat.c (main): Likewise.
37081         * tests/test-fstatat.c (main): Likewise.
37082         * tests/test-futimens.c (main): Likewise.
37083         * tests/test-lchown.c (main): Likewise.
37084         * tests/test-link.c (main): Likewise.
37085         * tests/test-linkat.c (main): Likewise.
37086         * tests/test-lstat.c (main): Likewise.
37087         * tests/test-mkdir.c (main): Likewise.
37088         * tests/test-mkdirat.c (main): Likewise.
37089         * tests/test-mkfifo.c (main): Likewise.
37090         * tests/test-mkfifoat.c (main): Likewise.
37091         * tests/test-mknod.c (main): Likewise.
37092         * tests/test-readlink.c (main): Likewise.
37093         * tests/test-remove.c (main): Likewise.
37094         * tests/test-rename.c (main): Likewise.
37095         * tests/test-renameat.c (main): Likewise.
37096         * tests/test-rmdir.c (main): Likewise.
37097         * tests/test-symlink.c (main): Likewise.
37098         * tests/test-symlinkat.c (main): Likewise.
37099         * tests/test-unlink.c (main): Likewise.
37100         * tests/test-unlinkat.c (main): Likewise.
37101         * tests/test-utimens.c (main): Likewise.
37102         * tests/test-utimensat.c (main): Likewise.
37103         * modules/areadlink-tests (Depends-on): Add ignore-value.
37104         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37105         * modules/areadlinkat-tests (Depends-on): Likewise.
37106         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37107         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37108         * modules/canonicalize-tests (Depends-on): Likewise.
37109         * modules/chown-tests (Depends-on): Likewise.
37110         * modules/fdutimensat-tests (Depends-on): Likewise.
37111         * modules/futimens-tests (Depends-on): Likewise.
37112         * modules/lchown-tests (Depends-on): Likewise.
37113         * modules/link-tests (Depends-on): Likewise.
37114         * modules/linkat-tests (Depends-on): Likewise.
37115         * modules/lstat-tests (Depends-on): Likewise.
37116         * modules/mkdir-tests (Depends-on): Likewise.
37117         * modules/mkfifo-tests (Depends-on): Likewise.
37118         * modules/mkfifoat-tests (Depends-on): Likewise.
37119         * modules/mknod-tests (Depends-on): Likewise.
37120         * modules/openat-tests (Depends-on): Likewise.
37121         * modules/readlink-tests (Depends-on): Likewise.
37122         * modules/remove-tests (Depends-on): Likewise.
37123         * modules/rename-tests (Depends-on): Likewise.
37124         * modules/renameat-tests (Depends-on): Likewise.
37125         * modules/rmdir-tests (Depends-on): Likewise.
37126         * modules/symlink-tests (Depends-on): Likewise.
37127         * modules/symlinkat-tests (Depends-on): Likewise.
37128         * modules/unlink-tests (Depends-on): Likewise.
37129         * modules/utimens-tests (Depends-on): Likewise.
37130         * modules/utimensat-tests (Depends-on): Likewise.
37131
37132 2010-01-31  Bruno Haible  <bruno@clisp.org>
37133
37134         Perform the same test for many <math.h> functions.
37135         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37136         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37137         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37138         of gl_MATHFUNC.
37139         * modules/acos (configure.ac): Likewise.
37140         * modules/asin (configure.ac): Likewise.
37141         * modules/atan (configure.ac): Likewise.
37142         * modules/atan2 (configure.ac): Likewise.
37143         * modules/cbrt (configure.ac): Likewise.
37144         * modules/copysign (configure.ac): Likewise.
37145         * modules/cos (configure.ac): Likewise.
37146         * modules/cosh (configure.ac): Likewise.
37147         * modules/erf (configure.ac): Likewise.
37148         * modules/erfc (configure.ac): Likewise.
37149         * modules/exp (configure.ac): Likewise.
37150         * modules/fmod (configure.ac): Likewise.
37151         * modules/hypot (configure.ac): Likewise.
37152         * modules/j0 (configure.ac): Likewise.
37153         * modules/j1 (configure.ac): Likewise.
37154         * modules/jn (configure.ac): Likewise.
37155         * modules/lgamma (configure.ac): Likewise.
37156         * modules/log (configure.ac): Likewise.
37157         * modules/log10 (configure.ac): Likewise.
37158         * modules/log1p (configure.ac): Likewise.
37159         * modules/pow (configure.ac): Likewise.
37160         * modules/remainder (configure.ac): Likewise.
37161         * modules/sin (configure.ac): Likewise.
37162         * modules/sinh (configure.ac): Likewise.
37163         * modules/tan (configure.ac): Likewise.
37164         * modules/tanh (configure.ac): Likewise.
37165         * modules/y0 (configure.ac): Likewise.
37166         * modules/y1 (configure.ac): Likewise.
37167         * modules/yn (configure.ac): Likewise.
37168         Suggested by Paolo Bonzini.
37169
37170 2010-01-31  Bruno Haible  <bruno@clisp.org>
37171
37172         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37173
37174 2010-01-31  Bruno Haible  <bruno@clisp.org>
37175
37176         Work around getdelim() bug on FreeBSD 8.0.
37177         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37178         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37179         not work.
37180         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37181         is 1.
37182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37183         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37184         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37185         a non-zero size.
37186         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37187
37188 2010-01-31  Bruno Haible  <bruno@clisp.org>
37189
37190         Work around getline() bug on FreeBSD 8.0.
37191         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37192         and a non-zero size.
37193         * tests/test-getline.c (main): Likewise.
37194         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37195         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37196
37197 2010-01-28  Eric Blake  <ebb9@byu.net>
37198
37199         regex: fix build failure
37200         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37201         platforms.
37202
37203 2010-01-28  Jim Meyering  <meyering@redhat.com>
37204
37205         regex: do not ignore memory allocation failure
37206         * lib/regex_internal.c (create_cd_newstate): Detect
37207         re_node_set_init_copy failure.   Extracted from glibc commit
37208         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37209
37210         regex: sync more white-space changes from libc
37211         * lib/regex_internal.c: White-space only changes.
37212         * lib/regexec.c: Likewise.
37213
37214         regex: add many uses of __attribute_warn_unused_result__
37215         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37216         * lib/regexec.c: Likewise.
37217         Extracted from a messy glibc commit.
37218
37219         regcomp.c: spelling and merge-artifact from glibc
37220         * lib/regcomp.c: Merge remainder of glibc's
37221         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37222
37223         regcomp.c: sync white-space changes from glibc
37224         * lib/regcomp.c: Merge to accommodate white space
37225         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37226
37227         regcomp.c: do not ignore internal return values
37228         * lib/regcomp.c: Do not ignore internal return values.
37229         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37230         but without its white-space changes and spelling fixes.
37231
37232         regex_internal.h: define __attribute_warn_unused_result__
37233         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37234
37235         maint: add a syntax-check rule to check for vulnerable Makefile.in
37236         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37237
37238 2010-01-27  Jim Meyering  <meyering@redhat.com>
37239
37240         ncftpput-ftp: clean up spaces
37241         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37242         Remove trailing blanks.
37243
37244 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37245
37246         * build-aux/git-version-gen: Fix copyright statement.
37247         * build-aux/gnupload: Likewise.
37248         * tests/test-arcfour.c: Likewise.
37249         * tests/test-arctwo.c: Likewise.
37250         * tests/test-count-one-bits.c: Likewise.
37251         * tests/test-crc.c: Likewise.
37252         * tests/test-des.c: Likewise.
37253         * tests/test-gc-arcfour.c: Likewise.
37254         * tests/test-gc-arctwo.c: Likewise.
37255         * tests/test-gc-des.c: Likewise.
37256         * tests/test-gc-hmac-md5.c: Likewise.
37257         * tests/test-gc-hmac-sha1.c: Likewise.
37258         * tests/test-gc-md2.c: Likewise.
37259         * tests/test-gc-md4.c: Likewise.
37260         * tests/test-gc-md5.c: Likewise.
37261         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37262         * tests/test-gc-rijndael.c: Likewise.
37263         * tests/test-gc-sha1.c: Likewise.
37264         * tests/test-gc.c: Likewise.
37265         * tests/test-gethostname.c: Likewise.
37266         * tests/test-gettimeofday.c: Likewise.
37267         * tests/test-hash.c: Likewise.
37268         * tests/test-hmac-md5.c: Likewise.
37269         * tests/test-hmac-sha1.c: Likewise.
37270         * tests/test-md2.c: Likewise.
37271         * tests/test-md4.c: Likewise.
37272         * tests/test-md5.c: Likewise.
37273         * tests/test-memchr.c: Likewise.
37274         * tests/test-memchr2.c: Likewise.
37275         * tests/test-memcmp.c: Likewise.
37276         * tests/test-memmem.c: Likewise.
37277         * tests/test-memrchr.c: Likewise.
37278         * tests/test-rawmemchr.c: Likewise.
37279         * tests/test-read-file.c: Likewise.
37280         * tests/test-rijndael.c: Likewise.
37281         * tests/test-sockets.c: Likewise.
37282         * tests/test-strchrnul.c: Likewise.
37283         * tests/test-strstr.c: Likewise.
37284         * tests/test-strtod.c: Likewise.
37285         * build-aux/ncftpput-ftp: Likewise.
37286
37287 2010-01-26  Eric Blake  <ebb9@byu.net>
37288
37289         ignore-value: update recommended header name
37290         * modules/ignore-value (Include): Only use <> for headers that
37291         exist in glibc.
37292
37293 2010-01-26  Jim Meyering  <meyering@redhat.com>
37294
37295         test-userspec.c: avoid compiler warnings
37296         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37297         and "initialization discards qualifiers..." warnings.
37298         Put the first "uid" in its own scope, and make char* members "const".
37299
37300 2010-01-25  Bruno Haible  <bruno@clisp.org>
37301
37302         gnulib-tool: Make warning diagnostics consistent.
37303         * gnulib-tool (func_warning): New function.
37304         Use it everywhere where gnulib-tool produces output to stderr and it is
37305         not a fatal error.
37306
37307 2010-01-25  Bruno Haible  <bruno@clisp.org>
37308
37309         Fix test dependencies.
37310         * modules/xstrtol-tests (Depends-on): Add inttypes.
37311         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37312
37313 2010-01-25 Pádraig Brady <P@draigBrady.com>
37314
37315         syntax-check: detect incorrect boolean macro values in config.h
37316         * modules/maintainer-makefile (configure.ac): Parameterize the location
37317         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37318         The logic is from Eric Blake and the location indicated by Jim Meyering.
37319         Note the more natural CONFIG_HEADER name is prohibited by automake
37320         for backwards compatibility reasons.
37321         * top/maint.mk (sc_Wundef_boolean): New rule.
37322
37323 2010-01-25  Jim Meyering  <meyering@redhat.com>
37324
37325         bootstrap: detect MacOS 10.6's shasum, too
37326         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37327         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37328
37329 2010-01-23  Jim Meyering  <meyering@redhat.com>
37330
37331         xstrtoll: new module
37332         * modules/xstrtoll: New file.
37333         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37334         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37335         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37336         ./configure fails if you use this module and lack "long long".
37337         * modules/xstrtoll-tests: New module.
37338         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37339         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37340         new init.sh-based test framework.
37341
37342 2010-01-24  Bruno Haible  <bruno@clisp.org>
37343
37344         Tests for module 'yn'.
37345         * modules/yn-tests: New file.
37346         * tests/test-yn.c: New file.
37347
37348         Tests for module 'y1'.
37349         * modules/y1-tests: New file.
37350         * tests/test-y1.c: New file.
37351
37352         Tests for module 'y0'.
37353         * modules/y0-tests: New file.
37354         * tests/test-y0.c: New file.
37355
37356         Tests for module 'tanh'.
37357         * modules/tanh-tests: New file.
37358         * tests/test-tanh.c: New file.
37359
37360         Tests for module 'tan'.
37361         * modules/tan-tests: New file.
37362         * tests/test-tan.c: New file.
37363
37364         Tests for module 'sqrt'.
37365         * modules/sqrt-tests: New file.
37366         * tests/test-sqrt.c: New file.
37367
37368         Tests for module 'sinh'.
37369         * modules/sinh-tests: New file.
37370         * tests/test-sinh.c: New file.
37371
37372         Tests for module 'sin'.
37373         * modules/sin-tests: New file.
37374         * tests/test-sin.c: New file.
37375
37376         Tests for module 'rint'.
37377         * modules/rint-tests: New file.
37378         * tests/test-rint.c: New file.
37379
37380         Tests for module 'remainder'.
37381         * modules/remainder-tests: New file.
37382         * tests/test-remainder.c: New file.
37383
37384         Tests for module 'pow'.
37385         * modules/pow-tests: New file.
37386         * tests/test-pow.c: New file.
37387
37388         Tests for module 'nextafter'.
37389         * modules/nextafter-tests: New file.
37390         * tests/test-nextafter.c: New file.
37391
37392         Tests for module 'modf'.
37393         * modules/modf-tests: New file.
37394         * tests/test-modf.c: New file.
37395
37396         Tests for module 'logb'.
37397         * modules/logb-tests: New file.
37398         * tests/test-logb.c: New file.
37399
37400         Tests for module 'log1p'.
37401         * modules/log1p-tests: New file.
37402         * tests/test-log1p.c: New file.
37403
37404         Tests for module 'log10'.
37405         * modules/log10-tests: New file.
37406         * tests/test-log10.c: New file.
37407
37408         Tests for module 'log'.
37409         * modules/log-tests: New file.
37410         * tests/test-log.c: New file.
37411
37412         Tests for module 'lgamma'.
37413         * modules/lgamma-tests: New file.
37414         * tests/test-lgamma.c: New file.
37415
37416         Tests for module 'ldexp'.
37417         * modules/ldexp-tests: New file.
37418         * tests/test-ldexp.c: New file.
37419
37420         Tests for module 'jn'.
37421         * modules/jn-tests: New file.
37422         * tests/test-jn.c: New file.
37423
37424         Tests for module 'j1'.
37425         * modules/j1-tests: New file.
37426         * tests/test-j1.c: New file.
37427
37428         Tests for module 'j0'.
37429         * modules/j0-tests: New file.
37430         * tests/test-j0.c: New file.
37431
37432         Tests for module 'hypot'.
37433         * modules/hypot-tests: New file.
37434         * tests/test-hypot.c: New file.
37435
37436         Tests for module 'fmod'.
37437         * modules/fmod-tests: New file.
37438         * tests/test-fmod.c: New file.
37439
37440         Tests for module 'fabs'.
37441         * modules/fabs-tests: New file.
37442         * tests/test-fabs.c: New file.
37443
37444         Tests for module 'exp'.
37445         * modules/exp-tests: New file.
37446         * tests/test-exp.c: New file.
37447
37448         Tests for module 'erfc'.
37449         * modules/erfc-tests: New file.
37450         * tests/test-erfc.c: New file.
37451
37452         Tests for module 'erf'.
37453         * modules/erf-tests: New file.
37454         * tests/test-erf.c: New file.
37455
37456         Tests for module 'cosh'.
37457         * modules/cosh-tests: New file.
37458         * tests/test-cosh.c: New file.
37459
37460         Tests for module 'cos'.
37461         * modules/cos-tests: New file.
37462         * tests/test-cos.c: New file.
37463
37464         Tests for module 'copysign'.
37465         * modules/copysign-tests: New file.
37466         * tests/test-copysign.c: New file.
37467
37468         Tests for module 'cbrt'.
37469         * modules/cbrt-tests: New file.
37470         * tests/test-cbrt.c: New file.
37471
37472         Tests for module 'atan2'.
37473         * modules/atan2-tests: New file.
37474         * tests/test-atan2.c: New file.
37475
37476         Tests for module 'atan'.
37477         * modules/atan-tests: New file.
37478         * tests/test-atan.c: New file.
37479
37480         Tests for module 'asin'.
37481         * modules/asin-tests: New file.
37482         * tests/test-asin.c: New file.
37483
37484         Tests for module 'acos'.
37485         * modules/acos-tests: New file.
37486         * tests/test-acos.c: New file.
37487
37488 2010-01-24  Bruno Haible  <bruno@clisp.org>
37489
37490         Fix tests for common <math.h> functions.
37491         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37492         code snippet that references the function pointer, rather than merely
37493         calling the function. Substitute the FUNC_LIBM variable.
37494         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37495         * modules/acos (configure.ac): Likewise.
37496         * modules/asin (configure.ac): Likewise.
37497         * modules/atan (configure.ac): Likewise.
37498         * modules/atan2 (configure.ac): Likewise.
37499         * modules/cbrt (configure.ac): Likewise.
37500         * modules/copysign (configure.ac): Likewise.
37501         * modules/cos (configure.ac): Likewise.
37502         * modules/cosh (configure.ac): Likewise.
37503         * modules/erf (configure.ac): Likewise.
37504         * modules/erfc (configure.ac): Likewise.
37505         * modules/exp (configure.ac): Likewise.
37506         * modules/fabs (configure.ac): Likewise.
37507         * modules/fmod (configure.ac): Likewise.
37508         * modules/hypot (configure.ac): Likewise.
37509         * modules/j0 (configure.ac): Likewise.
37510         * modules/j1 (configure.ac): Likewise.
37511         * modules/jn (configure.ac): Likewise.
37512         * modules/ldexp (configure.ac): Likewise.
37513         * modules/lgamma (configure.ac): Likewise.
37514         * modules/log (configure.ac): Likewise.
37515         * modules/log10 (configure.ac): Likewise.
37516         * modules/log1p (configure.ac): Likewise.
37517         * modules/logb (configure.ac): Likewise.
37518         * modules/modf (configure.ac): Likewise.
37519         * modules/nextafter (configure.ac): Likewise.
37520         * modules/pow (configure.ac): Likewise.
37521         * modules/remainder (configure.ac): Likewise.
37522         * modules/rint (configure.ac): Likewise.
37523         * modules/sin (configure.ac): Likewise.
37524         * modules/sinh (configure.ac): Likewise.
37525         * modules/tan (configure.ac): Likewise.
37526         * modules/tanh (configure.ac): Likewise.
37527         * modules/y0 (configure.ac): Likewise.
37528         * modules/y1 (configure.ac): Likewise.
37529         * modules/yn (configure.ac): Likewise.
37530
37531 2010-01-24  Bruno Haible  <bruno@clisp.org>
37532
37533         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37534         * tests/test-acosl.c (x): New variable.
37535         (main): Store argument in x and fetch it from x.
37536         * tests/test-asinl.c (x): New variable.
37537         (main): Store argument in x and fetch it from x.
37538         * tests/test-atanl.c (x): New variable.
37539         (main): Store argument in x and fetch it from x.
37540         * tests/test-cosl.c (x): New variable.
37541         (main): Store argument in x and fetch it from x.
37542         * tests/test-expl.c (x): New variable.
37543         (main): Store argument in x and fetch it from x.
37544         * tests/test-logl.c (x): New variable.
37545         (main): Store argument in x and fetch it from x.
37546         * tests/test-sinl.c (x): New variable.
37547         (main): Store argument in x and fetch it from x.
37548         * tests/test-sqrtl.c (x): New variable.
37549         (main): Store argument in x and fetch it from x.
37550         * tests/test-tanl.c (x): New variable.
37551         (main): Store argument in x and fetch it from x.
37552
37553 2010-01-24  Bruno Haible  <bruno@clisp.org>
37554
37555         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37556         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37557         assignments to the initial TESTS_ENVIRONMENT.
37558         * doc/gnulib.texi (Unit test modules): Document it.
37559         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37560         TESTS_ENVIRONMENT.
37561         * modules/btowc-tests (Makefile.am): Likewise.
37562         * modules/c-stack-tests (Makefile.am): Likewise.
37563         * modules/c-strcase-tests (Makefile.am): Likewise.
37564         * modules/copy-file-tests (Makefile.am): Likewise.
37565         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37566         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37567         * modules/mbrtowc-tests (Makefile.am): Likewise.
37568         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37569         * modules/mbscasestr-tests (Makefile.am): Likewise.
37570         * modules/mbschr-tests (Makefile.am): Likewise.
37571         * modules/mbscspn-tests (Makefile.am): Likewise.
37572         * modules/mbsinit-tests (Makefile.am): Likewise.
37573         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37574         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37575         * modules/mbspbrk-tests (Makefile.am): Likewise.
37576         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37577         * modules/mbsrchr-tests (Makefile.am): Likewise.
37578         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37579         * modules/mbsspn-tests (Makefile.am): Likewise.
37580         * modules/mbsstr-tests (Makefile.am): Likewise.
37581         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37582         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37583         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37584         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37585         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37586         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37587         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37588         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37589         * modules/wcrtomb-tests (Makefile.am): Likewise.
37590         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37591         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37592         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37593         assignments from TESTS_ENVIRONMENT.
37594         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37595         augmentation.
37596         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37597         * modules/atexit-tests (Makefile.am): Likewise.
37598         * modules/binary-io-tests (Makefile.am): Likewise.
37599         * modules/closein-tests (Makefile.am): Likewise.
37600         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37601         * modules/exclude-tests (Makefile.am): Likewise.
37602         * modules/fflush-tests (Makefile.am): Likewise.
37603         * modules/fpending-tests (Makefile.am): Likewise.
37604         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37605         * modules/freadahead-tests (Makefile.am): Likewise.
37606         * modules/freadptr-tests (Makefile.am): Likewise.
37607         * modules/freadseek-tests (Makefile.am): Likewise.
37608         * modules/fseek-tests (Makefile.am): Likewise.
37609         * modules/fseeko-tests (Makefile.am): Likewise.
37610         * modules/ftell-tests (Makefile.am): Likewise.
37611         * modules/ftello-tests (Makefile.am): Likewise.
37612         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37613         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37614         * modules/lseek-tests (Makefile.am): Likewise.
37615         * modules/parse-duration-tests (Makefile.am): Likewise.
37616         * modules/perror-tests (Makefile.am): Likewise.
37617         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37618         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37619         * modules/pipe-tests (Makefile.am): Likewise.
37620         * modules/pread-tests (Makefile.am): Likewise.
37621         * modules/printf-posix-tests (Makefile.am): Likewise.
37622         * modules/select-tests (Makefile.am): Likewise.
37623         * modules/sigpipe-tests (Makefile.am): Likewise.
37624         * modules/tsearch-tests (Makefile.am): Likewise.
37625         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37626         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37627         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37628         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37629         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37630         * modules/version-etc-tests (Makefile.am): Likewise.
37631         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37632         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37633         * modules/xalloc-die-tests (Makefile.am): Likewise.
37634         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37635         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37636         * modules/xstrtol-tests (Makefile.am): Likewise.
37637         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37638         * modules/yesno-tests (Makefile.am): Likewise.
37639         Suggested by Jim Meyering.
37640
37641 2010-01-24  Bruno Haible  <bruno@clisp.org>
37642
37643         More documentation.
37644         * doc/gnulib.texi (Writing modules): New chapter.
37645         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37646         the new chapter.
37647
37648 2010-01-24  Jim Meyering  <meyering@redhat.com>
37649
37650         maint.mk: do not prepend "./" after filtering
37651         * top/maint.mk (_prepend_srcdir_prefix): New variable
37652         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37653         "./" when $(srcdir) is ".".
37654
37655         define STREQ(a,b) consistently, removing useless parentheses
37656         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37657         since the only risk is that "a" or "b" contains an unparenthesized
37658         comma, but if either did that, STREQ would have 3 or more arguments.
37659         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37660         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37661         * lib/hash-triple.c (STREQ): Likewise.
37662         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37663         * lib/getugroups.c (STREQ): Likewise.
37664
37665 2010-01-23  Jim Meyering  <meyering@redhat.com>
37666
37667         maint.mk: fix syntax-check in a non-srcdir build directory
37668         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37669         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37670
37671 2010-01-22  Jim Meyering  <meyering@redhat.com>
37672
37673         userspec: add unit tests
37674         * tests/test-userspec.c: New file.
37675         * modules/userspec-tests: Likewise.
37676
37677 2010-01-21  Jim Meyering  <meyering@redhat.com>
37678
37679         maint.mk: handle source file names containing "." robustly
37680         * top/maint.mk (_dot_escaped_srcdir): Define.
37681         (VC_LIST): Use it in LHS of sed substitution.
37682
37683 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37684
37685         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37686         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37687         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37688         from a non-srcdir build.
37689
37690 2010-01-20  Eric Blake  <ebb9@byu.net>
37691
37692         warn-on-use: use instead of link-warning
37693         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37694         * modules/unistd (Depends-on, Makefile.am): Likewise.
37695         * modules/arpa_inet (Depends-on): Replace link-warning with
37696         warn-on-use.
37697         (Makefile.am): Update rules accordingly.
37698         * modules/ctype (Depends-on, Makefile.am): Likewise.
37699         * modules/dirent (Depends-on, Makefile.am): Likewise.
37700         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37701         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37702         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37703         * modules/locale (Depends-on, Makefile.am): Likewise.
37704         * modules/math (Depends-on, Makefile.am): Likewise.
37705         * modules/search (Depends-on, Makefile.am): Likewise.
37706         * modules/signal (Depends-on, Makefile.am): Likewise.
37707         * modules/spawn (Depends-on, Makefile.am): Likewise.
37708         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37709         * modules/string (Depends-on, Makefile.am): Likewise.
37710         * modules/strings (Depends-on, Makefile.am): Likewise.
37711         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37712         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37713         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37714         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37715         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37716         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37717         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37718         * modules/wchar (Depends-on, Makefile.am): Likewise.
37719         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37720         should be poisoned.
37721         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37722         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37723         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37724         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37725         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37726         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37727         * m4/math_h.m4 (gl_MATH_H): Likewise.
37728         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37729         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37730         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37731         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37732         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37733         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37734         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37735         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37736         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37738         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37740         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37741         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37742         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37743         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37744         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37745         GL_LINK_WARNING.
37746         * lib/ctype.in.h: Likewise.
37747         * lib/dirent.in.h: Likewise.
37748         * lib/fcntl.in.h: Likewise.
37749         * lib/inttypes.in.h: Likewise.
37750         * lib/langinfo.in.h: Likewise.
37751         * lib/locale.in.h: Likewise.
37752         * lib/math.in.h: Likewise.
37753         * lib/search.in.h: Likewise.
37754         * lib/signal.in.h: Likewise.
37755         * lib/spawn.in.h: Likewise.
37756         * lib/stdio.in.h: Likewise.
37757         * lib/stdlib.in.h: Likewise.
37758         * lib/string.in.h: Likewise.
37759         * lib/strings.in.h: Likewise.
37760         * lib/sys_file.in.h: Likewise.
37761         * lib/sys_ioctl.in.h: Likewise.
37762         * lib/sys_select.in.h: Likewise.
37763         * lib/sys_socket.in.h: Likewise.
37764         * lib/sys_stat.in.h: Likewise.
37765         * lib/sys_times.in.h: Likewise.
37766         * lib/sys_utsname.in.h: Likewise.
37767         * lib/unistd.in.h: Likewise.
37768         * lib/wchar.in.h: Likewise.
37769
37770 2010-01-20  Bruno Haible  <bruno@clisp.org>
37771
37772         Avoid duplicate -lm.
37773         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37774         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37775         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37777         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37778         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37779         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37780         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37781         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37782         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37783         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37784         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37785         Reported by Paolo Bonzini.
37786
37787 2010-01-19  Bruno Haible  <bruno@clisp.org>
37788
37789         langinfo, nl_langinfo: Relicense under LGPLv2+.
37790         * modules/langinfo (License): Change to LGPLv2+.
37791         * modules/nl_langinfo (License): Likewise.
37792         Patch by David Lutterkort <lutter@redhat.com>.
37793
37794 2010-01-19  Bruno Haible  <bruno@clisp.org>
37795
37796         Avoid compilation error with cc on OSF/1 5.1.
37797         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37798         statement, not before.
37799         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37800
37801 2010-01-18  Bruno Haible  <bruno@clisp.org>
37802
37803         Avoid a link error due to the __printf__ symbol.
37804         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37805         and 2.6.x.
37806         (__format__, __printf__): Remove definitions.
37807         * lib/argp-fmtstream.h: Likewise.
37808         * lib/argp.h: Likewise.
37809         * lib/error.h: Likewise.
37810         * lib/vasnprintf.h: Likewise.
37811         * lib/xprintf.h: Likewise.
37812         * lib/xvasprintf.h: Likewise.
37813         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37814
37815 2010-01-18  Bruno Haible  <bruno@clisp.org>
37816
37817         Tests for module 'tanl'.
37818         * modules/tanl-tests: New file.
37819         * tests/test-tanl.c: New file.
37820
37821         Tests for module 'sqrtl'.
37822         * modules/sqrtl-tests: New file.
37823         * tests/test-sqrtl.c: New file.
37824
37825         Tests for module 'sinl'.
37826         * modules/sinl-tests: New file.
37827         * tests/test-sinl.c: New file.
37828
37829         Tests for module 'logl'.
37830         * modules/logl-tests: New file.
37831         * tests/test-logl.c: New file.
37832
37833         Tests for module 'expl'.
37834         * modules/expl-tests: New file.
37835         * tests/test-expl.c: New file.
37836
37837         Tests for module 'cosl'.
37838         * modules/cosl-tests: New file.
37839         * tests/test-cosl.c: New file.
37840
37841         Tests for module 'atanl'.
37842         * modules/atanl-tests: New file.
37843         * tests/test-atanl.c: New file.
37844
37845         Tests for module 'asinl'.
37846         * modules/asinl-tests: New file.
37847         * tests/test-asinl.c: New file.
37848
37849         Tests for module 'acosl'.
37850         * modules/acosl-tests: New file.
37851         * tests/test-acosl.c: New file.
37852
37853         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37854         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37855         tanl): Use the standard gnulib idiom.
37856         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37857         * lib/sinl.c: Likewise.
37858         * lib/tanl.c: Don't include trigl.c.
37859         (kernel_tanl): Make static.
37860         * lib/sincosl.c: Include trigl.h first.
37861         * lib/trigl.c: Likewise.
37862         * m4/acosl.m4: New file.
37863         * m4/asinl.m4: New file.
37864         * m4/atanl.m4: New file.
37865         * m4/cosl.m4: New file.
37866         * m4/expl.m4: New file.
37867         * m4/logl.m4: New file.
37868         * m4/sinl.m4: New file.
37869         * m4/sqrtl.m4: New file.
37870         * m4/tanl.m4: New file.
37871         * m4/mathl.m4: Remove file.
37872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37873         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37874         Don't initialize GNULIB_MATHL.
37875         * modules/acosl: New file.
37876         * modules/asinl: New file.
37877         * modules/atanl: New file.
37878         * modules/cosl: New file.
37879         * modules/expl: New file.
37880         * modules/logl: New file.
37881         * modules/sinl: New file.
37882         * modules/sqrtl: New file.
37883         * modules/tanl: New file.
37884         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37885         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37886         substitute GNULIB_MATHL.
37887         * modules/mathl: Rewritten.
37888         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37889         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37890         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37891         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37892         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37893         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37894         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37895         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37896         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37897
37898 2010-01-18  Bruno Haible  <bruno@clisp.org>
37899
37900         sqrt: Make gl_FUNC_SQRT requirable.
37901         * m4/sqrt.m4: New file.
37902         * modules/sqrt (Files): Add it.
37903         (configure.ac): Invoke gl_FUNC_SQRT.
37904
37905 2010-01-18  Bruno Haible  <bruno@clisp.org>
37906
37907         New modules for common <math.h> functions.
37908         * m4/mathfunc.m4: New file.
37909         * modules/acos: New file.
37910         * modules/asin: New file.
37911         * modules/atan: New file.
37912         * modules/atan2: New file.
37913         * modules/cbrt: New file.
37914         * modules/copysign: New file.
37915         * modules/cos: New file.
37916         * modules/cosh: New file.
37917         * modules/erf: New file.
37918         * modules/erfc: New file.
37919         * modules/exp: New file.
37920         * modules/fabs: New file.
37921         * modules/fmod: New file.
37922         * modules/hypot: New file.
37923         * modules/j0: New file.
37924         * modules/j1: New file.
37925         * modules/jn: New file.
37926         * modules/ldexp: New file.
37927         * modules/lgamma: New file.
37928         * modules/log: New file.
37929         * modules/log10: New file.
37930         * modules/log1p: New file.
37931         * modules/logb: New file.
37932         * modules/modf: New file.
37933         * modules/nextafter: New file.
37934         * modules/pow: New file.
37935         * modules/remainder: New file.
37936         * modules/rint: New file.
37937         * modules/sin: New file.
37938         * modules/sinh: New file.
37939         * modules/sqrt: New file.
37940         * modules/tan: New file.
37941         * modules/tanh: New file.
37942         * modules/y0: New file.
37943         * modules/y1: New file.
37944         * modules/yn: New file.
37945         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37946         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37947         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37948         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37949         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37950         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37951         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37952         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37953         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37954         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37955         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37956         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37957         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37958         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37959         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37960         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37961         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37962         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37963         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37964         * doc/posix-functions/log.texi: Mention the 'log' module.
37965         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37966         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37967         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37968         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37969         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37970         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37971         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37972         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37973         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37974         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37975         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37976         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37977         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37978         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37979         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37980         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37981
37982 2010-01-18  Jim Meyering  <meyering@redhat.com>
37983
37984         ignore-value: relax license to LGPLv2+
37985         * modules/ignore-value (License): Relax to LGPLv2+.
37986
37987         getdate: don't leak when TZ contains two or more '"'s
37988         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37989         double quote in TZ after the first one.
37990
37991         readtokens: do not leak internal token_lengths buffer
37992         * lib/readtokens.c (readtokens): Free the local, lengths,
37993         when the supplied "token_lengths" parameter is NULL.
37994
37995 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37996
37997         Fix a couple of missing LIBTHREAD link failures on AIX.
37998         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37999         $(LIBTHREAD).
38000         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38001
38002         Link test-poll against INET_PTON_LIB.
38003         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38004         for inet_pton on Solaris 10.
38005
38006 2010-01-17  Bruno Haible  <bruno@clisp.org>
38007
38008         unistdio/*-sprintf: Fix typo in module description.
38009         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38010         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38011         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38012         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38013         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38014         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38015         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38017
38018 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38019
38020         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38021         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38022         variables in shell case patterns, for AIX and HP-UX ksh.
38023
38024         Split large sed scripts, for HP-UX sed.
38025         * modules/stdio: Split sed scripts around 50 sed commands,
38026         to avoid HP-UX limit of 99 commands, in the near future.
38027         * modules/string: Likewise.
38028         * modules/unistd: Likewise.
38029
38030         gnulib-tool: avoid writing in the current directory.
38031         * gnulib-tool (func_emit_lib_Makefile_am)
38032         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38033         not in the current directory, so concurrent gnulib-tool
38034         instances do not interfere.
38035
38036 2010-01-16  Jim Meyering  <meyering@redhat.com>
38037
38038         doc: update users.txt
38039         * users.txt: Add grep.
38040         (diffutils, gzip): Update URLs.
38041
38042 2010-01-12  Bruno Haible  <bruno@clisp.org>
38043
38044         posix_spawn: Avoid test failure on Cygwin.
38045         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38046         characters.
38047         Reported by Simon Josefsson.
38048
38049 2010-01-12  Bruno Haible  <bruno@clisp.org>
38050
38051         * tests/test-cond.c (main): When skipping the test, show the reason.
38052
38053 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38054
38055         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38056
38057 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38058
38059         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38060         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38061
38062 2010-01-12  Eric Blake  <ebb9@byu.net>
38063
38064         build: guarantee AS_VAR_IF
38065         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38066         (gl_AS_VAR_IF): Move...
38067         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38068         Reported by Simon Josefsson.
38069
38070 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38071
38072         * lib/stdio.in.h: Fix typo.
38073
38074 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38075
38076         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38077         libgpg-error.
38078
38079 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38080
38081         * tests/test-xalloc-die.sh: Use $EXEEXT.
38082
38083 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38084             Bruno Haible  <bruno@clisp.org>
38085
38086         getlogin, getlogin_r: Avoid test failure.
38087         * tests/test-getlogin.c: Include <stdio.h>.
38088         (main): Skip the test when the function fails because stdin is not a
38089         tty.
38090         * tests/test-getlogin_r.c: Include <stdio.h>.
38091         (main): Skip the test when the function fails because stdin is not a
38092         tty.
38093
38094 2010-01-11  Eric Blake  <ebb9@byu.net>
38095
38096         tests: avoid more large file warnings
38097         * tests/test-fflush.c: Avoid warning about ftell use.
38098         * tests/test-fseek.c: Avoid warning about fseek use.
38099
38100 2010-01-10  Bruno Haible  <bruno@clisp.org>
38101
38102         nproc: Work better on Linux when /proc and /sys are not mounted.
38103         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38104         as lower bound when, on glibc/Linux systems,
38105         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38106         Suggested by Pádraig Brady <P@draigbrady.com>.
38107         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38108
38109         nproc: Refactor.
38110         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38111         extracted from num_processors.
38112         (num_processors): Call it.
38113
38114 2010-01-11  Jim Meyering  <meyering@redhat.com>
38115
38116         utimecmp: avoid new warning from upcoming gcc-4.5.0
38117         * lib/utimecmp.c (BILLION): Define using #define rather than an
38118         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38119
38120 2010-01-11  Eric Blake  <ebb9@byu.net>
38121
38122         math: add portability warnings for classification macros
38123         * modules/math (Depends-on): Add warn-on-use.
38124         (Makefile.am): Provide new substitutions.
38125         * m4/math_h.m4 (gl_MATH_H): Require inline.
38126         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38127         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38128         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38129         implement warnings.
38130
38131         unistd: warn on use of environ without module
38132         * modules/unistd (Depends-on): Add warn-on-use.
38133         (Makefile.am): Provide new substitutions.
38134         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38135         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38136
38137         stdio: warn on suspicious uses
38138         * modules/stdio (Depends-on): Add warn-on-use.
38139         (Makefile.am): Provide new substitutions.
38140         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38141         fseeko.
38142         * lib/stdio.in.h (gets): Always warn on use.
38143         (fseek, ftell): Adjust when warnings are issued, and honor
38144         _GL_NO_LARGE_FILES as a way to silence the warning.
38145         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38146         any warning about large file offsets.
38147         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38148         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38149         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38150         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38151         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38152         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38153         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38154         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38155
38156         warn-on-use: new module
38157         * modules/warn-on-use: New file.
38158         * build-aux/warn-on-use.h: Likewise.
38159         * m4/warn-on-use.m4: Likewise.
38160         * MODULES.html.sh (Support for building): Mention it.
38161
38162 2010-01-10  Bruno Haible  <bruno@clisp.org>
38163
38164         Tests for module 'unistr/u32-strdup'.
38165         * modules/unistr/u32-strdup-tests: New file.
38166         * tests/unistr/test-u32-strdup.c: New file.
38167
38168         Tests for module 'unistr/u16-strdup'.
38169         * modules/unistr/u16-strdup-tests: New file.
38170         * tests/unistr/test-u16-strdup.c: New file.
38171
38172         Tests for module 'unistr/u8-strdup'.
38173         * modules/unistr/u8-strdup-tests: New file.
38174         * tests/unistr/test-u8-strdup.c: New file.
38175         * tests/unistr/test-strdup.h: New file.
38176
38177         Tests for module 'unistr/u32-strncmp'.
38178         * modules/unistr/u32-strncmp-tests: New file.
38179         * tests/unistr/test-u32-strncmp.c: New file.
38180
38181         Tests for module 'unistr/u16-strncmp'.
38182         * modules/unistr/u16-strncmp-tests: New file.
38183         * tests/unistr/test-u16-strncmp.c: New file.
38184
38185         Tests for module 'unistr/u8-strncmp'.
38186         * modules/unistr/u8-strncmp-tests: New file.
38187         * tests/unistr/test-u8-strncmp.c: New file.
38188         * tests/unistr/test-strncmp.h: New file.
38189
38190         Tests for module 'unistr/u32-strcoll'.
38191         * modules/unistr/u32-strcoll-tests: New file.
38192         * tests/unistr/test-u32-strcoll.c: New file.
38193
38194         Tests for module 'unistr/u16-strcoll'.
38195         * modules/unistr/u16-strcoll-tests: New file.
38196         * tests/unistr/test-u16-strcoll.c: New file.
38197
38198         Tests for module 'unistr/u8-strcoll'.
38199         * modules/unistr/u8-strcoll-tests: New file.
38200         * tests/unistr/test-u8-strcoll.c: New file.
38201
38202         Tests for module 'unistr/u32-strcmp'.
38203         * modules/unistr/u32-strcmp-tests: New file.
38204         * tests/unistr/test-u32-strcmp.c: New file.
38205         * tests/unistr/test-u32-strcmp.h: New file.
38206
38207         Tests for module 'unistr/u16-strcmp'.
38208         * modules/unistr/u16-strcmp-tests: New file.
38209         * tests/unistr/test-u16-strcmp.c: New file.
38210         * tests/unistr/test-u16-strcmp.h: New file.
38211
38212         Tests for module 'unistr/u8-strcmp'.
38213         * modules/unistr/u8-strcmp-tests: New file.
38214         * tests/unistr/test-u8-strcmp.c: New file.
38215         * tests/unistr/test-u8-strcmp.h: New file.
38216         * tests/unistr/test-strcmp.h: New file.
38217
38218         Tests for module 'unistr/u32-strncat'.
38219         * modules/unistr/u32-strncat-tests: New file.
38220         * tests/unistr/test-u32-strncat.c: New file.
38221
38222         Tests for module 'unistr/u16-strncat'.
38223         * modules/unistr/u16-strncat-tests: New file.
38224         * tests/unistr/test-u16-strncat.c: New file.
38225
38226         Tests for module 'unistr/u8-strncat'.
38227         * modules/unistr/u8-strncat-tests: New file.
38228         * tests/unistr/test-u8-strncat.c: New file.
38229         * tests/unistr/test-strncat.h: New file.
38230
38231         Tests for module 'unistr/u32-strcat'.
38232         * modules/unistr/u32-strcat-tests: New file.
38233         * tests/unistr/test-u32-strcat.c: New file.
38234
38235         Tests for module 'unistr/u16-strcat'.
38236         * modules/unistr/u16-strcat-tests: New file.
38237         * tests/unistr/test-u16-strcat.c: New file.
38238
38239         Tests for module 'unistr/u8-strcat'.
38240         * modules/unistr/u8-strcat-tests: New file.
38241         * tests/unistr/test-u8-strcat.c: New file.
38242         * tests/unistr/test-strcat.h: New file.
38243
38244         Tests for module 'unistr/u32-stpncpy'.
38245         * modules/unistr/u32-stpncpy-tests: New file.
38246         * tests/unistr/test-u32-stpncpy.c: New file.
38247
38248         Tests for module 'unistr/u16-stpncpy'.
38249         * modules/unistr/u16-stpncpy-tests: New file.
38250         * tests/unistr/test-u16-stpncpy.c: New file.
38251
38252         Tests for module 'unistr/u8-stpncpy'.
38253         * modules/unistr/u8-stpncpy-tests: New file.
38254         * tests/unistr/test-u8-stpncpy.c: New file.
38255         * tests/unistr/test-stpncpy.h: New file.
38256
38257         Tests for module 'unistr/u32-strncpy'.
38258         * modules/unistr/u32-strncpy-tests: New file.
38259         * tests/unistr/test-u32-strncpy.c: New file.
38260
38261         Tests for module 'unistr/u16-strncpy'.
38262         * modules/unistr/u16-strncpy-tests: New file.
38263         * tests/unistr/test-u16-strncpy.c: New file.
38264
38265         Tests for module 'unistr/u8-strncpy'.
38266         * modules/unistr/u8-strncpy-tests: New file.
38267         * tests/unistr/test-u8-strncpy.c: New file.
38268         * tests/unistr/test-strncpy.h: New file.
38269
38270         Tests for module 'unistr/u32-stpcpy'.
38271         * modules/unistr/u32-stpcpy-tests: New file.
38272         * tests/unistr/test-u32-stpcpy.c: New file.
38273
38274         Tests for module 'unistr/u16-stpcpy'.
38275         * modules/unistr/u16-stpcpy-tests: New file.
38276         * tests/unistr/test-u16-stpcpy.c: New file.
38277
38278         Tests for module 'unistr/u8-stpcpy'.
38279         * modules/unistr/u8-stpcpy-tests: New file.
38280         * tests/unistr/test-u8-stpcpy.c: New file.
38281         * tests/unistr/test-stpcpy.h: New file.
38282
38283         Tests for module 'unistr/u32-strcpy'.
38284         * modules/unistr/u32-strcpy-tests: New file.
38285         * tests/unistr/test-u32-strcpy.c: New file.
38286
38287         Tests for module 'unistr/u16-strcpy'.
38288         * modules/unistr/u16-strcpy-tests: New file.
38289         * tests/unistr/test-u16-strcpy.c: New file.
38290
38291         Tests for module 'unistr/u8-strcpy'.
38292         * modules/unistr/u8-strcpy-tests: New file.
38293         * tests/unistr/test-u8-strcpy.c: New file.
38294         * tests/unistr/test-strcpy.h: New file.
38295
38296         Tests for module 'unistr/u32-strnlen'.
38297         * modules/unistr/u32-strnlen-tests: New file.
38298         * tests/unistr/test-u32-strnlen.c: New file.
38299
38300         Tests for module 'unistr/u16-strnlen'.
38301         * modules/unistr/u16-strnlen-tests: New file.
38302         * tests/unistr/test-u16-strnlen.c: New file.
38303
38304         Tests for module 'unistr/u8-strnlen'.
38305         * modules/unistr/u8-strnlen-tests: New file.
38306         * tests/unistr/test-u8-strnlen.c: New file.
38307         * tests/unistr/test-strnlen.h: New file.
38308
38309         Tests for module 'unistr/u32-strlen'.
38310         * modules/unistr/u32-strlen-tests: New file.
38311         * tests/unistr/test-u32-strlen.c: New file.
38312
38313         Tests for module 'unistr/u16-strlen'.
38314         * modules/unistr/u16-strlen-tests: New file.
38315         * tests/unistr/test-u16-strlen.c: New file.
38316
38317         Tests for module 'unistr/u8-strlen'.
38318         * modules/unistr/u8-strlen-tests: New file.
38319         * tests/unistr/test-u8-strlen.c: New file.
38320
38321         Tests for module 'unistr/u32-prev'.
38322         * modules/unistr/u32-prev-tests: New file.
38323         * tests/unistr/test-u32-prev.c: New file.
38324
38325         Tests for module 'unistr/u16-prev'.
38326         * modules/unistr/u16-prev-tests: New file.
38327         * tests/unistr/test-u16-prev.c: New file.
38328
38329         Tests for module 'unistr/u8-prev'.
38330         * modules/unistr/u8-prev-tests: New file.
38331         * tests/unistr/test-u8-prev.c: New file.
38332
38333         Tests for module 'unistr/u32-next'.
38334         * modules/unistr/u32-next-tests: New file.
38335         * tests/unistr/test-u32-next.c: New file.
38336
38337         Tests for module 'unistr/u16-next'.
38338         * modules/unistr/u16-next-tests: New file.
38339         * tests/unistr/test-u16-next.c: New file.
38340
38341         Tests for module 'unistr/u8-next'.
38342         * modules/unistr/u8-next-tests: New file.
38343         * tests/unistr/test-u8-next.c: New file.
38344
38345         Tests for module 'unistr/u32-strmbtouc'.
38346         * modules/unistr/u32-strmbtouc-tests: New file.
38347         * tests/unistr/test-u32-strmbtouc.c: New file.
38348
38349         Tests for module 'unistr/u16-strmbtouc'.
38350         * modules/unistr/u16-strmbtouc-tests: New file.
38351         * tests/unistr/test-u16-strmbtouc.c: New file.
38352
38353         Tests for module 'unistr/u8-strmbtouc'.
38354         * modules/unistr/u8-strmbtouc-tests: New file.
38355         * tests/unistr/test-u8-strmbtouc.c: New file.
38356
38357         Tests for module 'unistr/u32-strmblen'.
38358         * modules/unistr/u32-strmblen-tests: New file.
38359         * tests/unistr/test-u32-strmblen.c: New file.
38360
38361         Tests for module 'unistr/u16-strmblen'.
38362         * modules/unistr/u16-strmblen-tests: New file.
38363         * tests/unistr/test-u16-strmblen.c: New file.
38364
38365         Tests for module 'unistr/u8-strmblen'.
38366         * modules/unistr/u8-strmblen-tests: New file.
38367         * tests/unistr/test-u8-strmblen.c: New file.
38368
38369         Tests for module 'unistr/u32-cpy-alloc'.
38370         * modules/unistr/u32-cpy-alloc-tests: New file.
38371         * tests/unistr/test-u32-cpy-alloc.c: New file.
38372
38373         Tests for module 'unistr/u16-cpy-alloc'.
38374         * modules/unistr/u16-cpy-alloc-tests: New file.
38375         * tests/unistr/test-u16-cpy-alloc.c: New file.
38376
38377         Tests for module 'unistr/u8-cpy-alloc'.
38378         * modules/unistr/u8-cpy-alloc-tests: New file.
38379         * tests/unistr/test-u8-cpy-alloc.c: New file.
38380         * tests/unistr/test-cpy-alloc.h: New file.
38381
38382         Tests for module 'unistr/u32-mbsnlen'.
38383         * modules/unistr/u32-mbsnlen-tests: New file.
38384         * tests/unistr/test-u32-mbsnlen.c: New file.
38385
38386         Tests for module 'unistr/u16-mbsnlen'.
38387         * modules/unistr/u16-mbsnlen-tests: New file.
38388         * tests/unistr/test-u16-mbsnlen.c: New file.
38389
38390         Tests for module 'unistr/u8-mbsnlen'.
38391         * modules/unistr/u8-mbsnlen-tests: New file.
38392         * tests/unistr/test-u8-mbsnlen.c: New file.
38393
38394         Tests for module 'unistr/u32-chr'.
38395         * modules/unistr/u32-chr-tests: New file.
38396         * tests/unistr/test-u32-chr.c: New file.
38397
38398         Tests for module 'unistr/u16-chr'.
38399         * modules/unistr/u16-chr-tests: New file.
38400         * tests/unistr/test-u16-chr.c: New file.
38401
38402         Tests for module 'unistr/u8-chr'.
38403         * modules/unistr/u8-chr-tests: New file.
38404         * tests/unistr/test-u8-chr.c: New file.
38405         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38406
38407         Tests for module 'unistr/u32-cmp2'.
38408         * modules/unistr/u32-cmp2-tests: New file.
38409         * tests/unistr/test-u32-cmp2.c: New file.
38410
38411         Tests for module 'unistr/u16-cmp2'.
38412         * modules/unistr/u16-cmp2-tests: New file.
38413         * tests/unistr/test-u16-cmp2.c: New file.
38414
38415         Tests for module 'unistr/u8-cmp2'.
38416         * modules/unistr/u8-cmp2-tests: New file.
38417         * tests/unistr/test-u8-cmp2.c: New file.
38418         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38419
38420         Tests for module 'unistr/u32-cmp'.
38421         * modules/unistr/u32-cmp-tests: New file.
38422         * tests/unistr/test-u32-cmp.c: New file.
38423
38424         Tests for module 'unistr/u16-cmp'.
38425         * modules/unistr/u16-cmp-tests: New file.
38426         * tests/unistr/test-u16-cmp.c: New file.
38427
38428         Tests for module 'unistr/u8-cmp'.
38429         * modules/unistr/u8-cmp-tests: New file.
38430         * tests/unistr/test-u8-cmp.c: New file.
38431         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38432
38433         Tests for module 'unistr/u32-set'.
38434         * modules/unistr/u32-set-tests: New file.
38435         * tests/unistr/test-u32-set.c: New file.
38436
38437         Tests for module 'unistr/u16-set'.
38438         * modules/unistr/u16-set-tests: New file.
38439         * tests/unistr/test-u16-set.c: New file.
38440
38441         Tests for module 'unistr/u8-set'.
38442         * modules/unistr/u8-set-tests: New file.
38443         * tests/unistr/test-u8-set.c: New file.
38444         * tests/unistr/test-set.h: New file.
38445
38446         Tests for module 'unistr/u32-move'.
38447         * modules/unistr/u32-move-tests: New file.
38448         * tests/unistr/test-u32-move.c: New file.
38449
38450         Tests for module 'unistr/u16-move'.
38451         * modules/unistr/u16-move-tests: New file.
38452         * tests/unistr/test-u16-move.c: New file.
38453
38454         Tests for module 'unistr/u8-move'.
38455         * modules/unistr/u8-move-tests: New file.
38456         * tests/unistr/test-u8-move.c: New file.
38457         * tests/unistr/test-move.h: New file.
38458
38459         Tests for module 'unistr/u32-cpy'.
38460         * modules/unistr/u32-cpy-tests: New file.
38461         * tests/unistr/test-u32-cpy.c: New file.
38462
38463         Tests for module 'unistr/u16-cpy'.
38464         * modules/unistr/u16-cpy-tests: New file.
38465         * tests/unistr/test-u16-cpy.c: New file.
38466
38467         Tests for module 'unistr/u8-cpy'.
38468         * modules/unistr/u8-cpy-tests: New file.
38469         * tests/unistr/test-u8-cpy.c: New file.
38470         * tests/unistr/test-cpy.h: New file.
38471
38472 2010-01-09  Bruno Haible  <bruno@clisp.org>
38473
38474         Tests for module 'unistr/u32-uctomb'.
38475         * modules/unistr/u32-uctomb-tests: New file.
38476         * tests/unistr/test-u32-uctomb.c: New file.
38477
38478         Tests for module 'unistr/u16-uctomb'.
38479         * modules/unistr/u16-uctomb-tests: New file.
38480         * tests/unistr/test-u16-uctomb.c: New file.
38481
38482         Tests for module 'unistr/u8-uctomb'.
38483         * modules/unistr/u8-uctomb-tests: New file.
38484         * tests/unistr/test-u8-uctomb.c: New file.
38485
38486         Tests for module 'unistr/u32-mbtoucr'.
38487         * modules/unistr/u32-mbtoucr-tests: New file.
38488         * tests/unistr/test-u32-mbtoucr.c: New file.
38489
38490         Tests for module 'unistr/u16-mbtoucr'.
38491         * modules/unistr/u16-mbtoucr-tests: New file.
38492         * tests/unistr/test-u16-mbtoucr.c: New file.
38493
38494         Tests for module 'unistr/u8-mbtoucr'.
38495         * modules/unistr/u8-mbtoucr-tests: New file.
38496         * tests/unistr/test-u8-mbtoucr.c: New file.
38497
38498         Tests for module 'unistr/u32-mbtouc'.
38499         * modules/unistr/u32-mbtouc-tests: New file.
38500         * tests/unistr/test-u32-mbtouc.c: New file.
38501
38502         Tests for module 'unistr/u16-mbtouc'.
38503         * modules/unistr/u16-mbtouc-tests: New file.
38504         * tests/unistr/test-u16-mbtouc.c: New file.
38505
38506         Tests for module 'unistr/u8-mbtouc'.
38507         * modules/unistr/u8-mbtouc-tests: New file.
38508         * tests/unistr/test-u8-mbtouc.c: New file.
38509
38510         Tests for module 'unistr/u32-mbtouc-unsafe'.
38511         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38512         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38513         * tests/unistr/test-u32-mbtouc.h: New file.
38514
38515         Tests for module 'unistr/u16-mbtouc-unsafe'.
38516         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38517         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38518         * tests/unistr/test-u16-mbtouc.h: New file.
38519
38520         Tests for module 'unistr/u8-mbtouc-unsafe'.
38521         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38522         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38523         * tests/unistr/test-u8-mbtouc.h: New file.
38524
38525         Tests for module 'unistr/u32-mblen'.
38526         * modules/unistr/u32-mblen-tests: New file.
38527         * tests/unistr/test-u32-mblen.c: New file.
38528
38529         Tests for module 'unistr/u16-mblen'.
38530         * modules/unistr/u16-mblen-tests: New file.
38531         * tests/unistr/test-u16-mblen.c: New file.
38532
38533         Tests for module 'unistr/u8-mblen'.
38534         * modules/unistr/u8-mblen-tests: New file.
38535         * tests/unistr/test-u8-mblen.c: New file.
38536
38537         Tests for module 'unistr/u32-to-u16'.
38538         * modules/unistr/u32-to-u16-tests: New file.
38539         * tests/unistr/test-u32-to-u16.c: New file.
38540
38541         Tests for module 'unistr/u32-to-u8'.
38542         * modules/unistr/u32-to-u8-tests: New file.
38543         * tests/unistr/test-u32-to-u8.c: New file.
38544
38545         Tests for module 'unistr/u16-to-u32'.
38546         * modules/unistr/u16-to-u32-tests: New file.
38547         * tests/unistr/test-u16-to-u32.c: New file.
38548
38549         Tests for module 'unistr/u16-to-u8'.
38550         * modules/unistr/u16-to-u8-tests: New file.
38551         * tests/unistr/test-u16-to-u8.c: New file.
38552
38553         Tests for module 'unistr/u8-to-u32'.
38554         * modules/unistr/u8-to-u32-tests: New file.
38555         * tests/unistr/test-u8-to-u32.c: New file.
38556
38557         Tests for module 'unistr/u8-to-u16'.
38558         * modules/unistr/u8-to-u16-tests: New file.
38559         * tests/unistr/test-u8-to-u16.c: New file.
38560
38561         Tests for module 'unistr/u32-check'.
38562         * modules/unistr/u32-check-tests: New file.
38563         * tests/unistr/test-u32-check.c: New file.
38564
38565         Tests for module 'unistr/u16-check'.
38566         * modules/unistr/u16-check-tests: New file.
38567         * tests/unistr/test-u16-check.c: New file.
38568
38569         Tests for module 'unistr/u8-check'.
38570         * modules/unistr/u8-check-tests: New file.
38571         * tests/unistr/test-u8-check.c: New file.
38572
38573         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38574         (category_equals): New function.
38575         (main): Add more tests.
38576         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38577
38578         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38579
38580 2010-01-10  Bruno Haible  <bruno@clisp.org>
38581
38582         unistr/u*-strcoll: Try harder to distinguish different strings.
38583         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38584         compare s1 and s2 to see if they are different.
38585
38586 2010-01-10  Bruno Haible  <bruno@clisp.org>
38587
38588         unistr/u*-stpncpy: Fix the return value.
38589         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38590         description of the return value consistent with stpncpy in glibc.
38591         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38592         written non-NUL unit.
38593
38594 2010-01-10  Bruno Haible  <bruno@clisp.org>
38595
38596         unistr/u*-next: Add missing dependencies.
38597         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38598         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38599         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38600
38601 2010-01-10  Bruno Haible  <bruno@clisp.org>
38602
38603         unistr/u8-mbsnlen: Fix return value for incomplete character.
38604         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38605         u8_mblen.
38606         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38607         Remove unistr/u8-mblen.
38608         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38609         u16_mblen.
38610         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38611         Remove unistr/u16-mblen.
38612
38613 2010-01-10  Bruno Haible  <bruno@clisp.org>
38614
38615         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38616         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38617         Reported by Brian Gough <bjg@gnu.org> and
38618         Chris Clayton <chris2553@googlemail.com> via
38619         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38620
38621 2010-01-09  Bruno Haible  <bruno@clisp.org>
38622
38623         unistr/u16-to-u32: Reject invalid input.
38624         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38625         u16_mbtouc.
38626         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38627         Remove unistr/u16-mbtouc.
38628
38629         unistr/u16-to-u8: Reject invalid input.
38630         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38631         u16_mbtouc.
38632         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38633         Remove unistr/u16-mbtouc.
38634
38635         unistr/u8-to-u32: Reject invalid input.
38636         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38637         u8_mbtouc.
38638         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38639         Remove unistr/u8-mbtouc.
38640
38641         unistr/u8-to-u16: Reject invalid input.
38642         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38643         u8_mbtouc.
38644         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38645         Remove unistr/u8-mbtouc.
38646
38647 2010-01-09  Bruno Haible  <bruno@clisp.org>
38648
38649         Tests for module 'getlogin'.
38650         * modules/getlogin-tests: New file.
38651         * tests/test-getlogin.c: New file.
38652
38653         New module 'getlogin'.
38654         * lib/unistd.in.h (getlogin): New declaration.
38655         * lib/getlogin.c: New file.
38656         * m4/getlogin.m4: New file.
38657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38658         HAVE_GETLOGIN.
38659         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38660         HAVE_GETLOGIN.
38661         * modules/getlogin: New file.
38662         * doc/posix-functions/getlogin.texi: Mention the new module.
38663         Reported by John W. Eaton <jwe@gnu.org>.
38664
38665 2010-01-09  Bruno Haible  <bruno@clisp.org>
38666
38667         getlogin_r: Support for native Windows.
38668         * lib/getlogin_r.c: Include <windows.h>
38669         (getlogin_r): Implement for native Windows.
38670         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38671         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38672         via John W. Eaton <jwe@gnu.org>.
38673
38674 2010-01-09  Bruno Haible  <bruno@clisp.org>
38675
38676         getlogin_r: Small fixes.
38677         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38678         succeeds.
38679         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38680         before testing whether getlogin_r is declared. No need to set
38681         HAVE_DECL_GETLOGIN_R to 1.
38682         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38683
38684 2010-01-09  Bruno Haible  <bruno@clisp.org>
38685
38686         * lib/unistd.in.h (getlogin_r): Add comment.
38687
38688 2010-01-09  Bruno Haible  <bruno@clisp.org>
38689
38690         Tests for module 'getlogin_r'.
38691         * modules/getlogin_r-tests: New file.
38692         * tests/test-getlogin_r.c: New file.
38693
38694 2010-01-09  Jim Meyering  <meyering@redhat.com>
38695
38696         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38697         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38698         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38699
38700 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38701
38702         * lib/dup2.c (rpl_dup2): Improve comment.
38703
38704 2010-01-08  Eric Blake  <ebb9@byu.net>
38705
38706         maint.mk: allow packages to add makefile @@ exceptions
38707         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38708         (sc_makefile_check): Rename...
38709         (sc_makefile_at_at_check): ...to this, and use hook.
38710
38711         dup2: work around mingw bug
38712         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38713         Reported by Simon Josefsson.
38714
38715 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38716
38717         glob: Fix C++ compilation.
38718         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38719         C++.
38720
38721 2010-01-07  Bruno Haible  <bruno@clisp.org>
38722
38723         Fix indentation of wctype.in.h, broken since 2007-01-06.
38724         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38725
38726 2010-01-07  Bruno Haible  <bruno@clisp.org>
38727
38728         mbslen: Avoid collision with system function.
38729         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38730         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38731         * m4/mbslen.m4: New file.
38732         * modules/mbslen (Files): Add it.
38733         (configure.ac): Invoke gl_MBSLEN.
38734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38735         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38736         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38737         via Ian Beckwith <ianb@erislabs.net>.
38738
38739 2010-01-07  Bruno Haible  <bruno@clisp.org>
38740
38741         dirent: Document the last fix.
38742         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38743
38744 2010-01-07  Bruno Haible  <bruno@clisp.org>
38745
38746         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38747         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38748         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38749         va_list are defined.
38750         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38751         Reported by Eric Blake.
38752
38753 2010-01-07  Bruno Haible  <bruno@clisp.org>
38754
38755         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38756         * modules/xlist (Depends-on): Add 'list',
38757         * modules/xoset (Depends-on): Add 'oset'.
38758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38759
38760 2010-01-07  Bruno Haible  <bruno@clisp.org>
38761
38762         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38763         * doc/posix-functions/strncasecmp.texi: Likewise.
38764
38765 2010-01-07  Bruno Haible  <bruno@clisp.org>
38766
38767         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38768
38769 2010-01-07  John W. Eaton  <jwe@octave.org>
38770
38771         wctype: allow C++ use
38772         * lib/wctype.in.h: Add extern "C" block for C++.
38773
38774 2010-01-06  Eric Blake  <ebb9@byu.net>
38775
38776         maint.mk: detect incorrect GFDL usage
38777         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38778
38779 2010-01-06  Jim Meyering  <meyering@redhat.com>
38780         and Eric Blake  <ebb9@byu.net>
38781
38782         maint.mk: ignore multi-line copyright in NEWS
38783         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38784
38785 2010-01-06  Eric Blake  <ebb9@byu.net>
38786
38787         select: add missing dependency
38788         * modules/select-tests (Depends-on): Move sockets dependency...
38789         * modules/select (Depends-on): ...here.
38790         Reported by Ian Beckwith.
38791
38792         doc: regenerate INSTALL
38793         * doc/INSTALL: Reflect recent autoconf update.
38794         * doc/INSTALL.ISO: Likewise.
38795         * doc/INSTALL.UTF-8: Likewise.
38796
38797         pread: fix compilation on glibc
38798         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38799         Reported by Ralf Wildenhues.
38800
38801         dirent: fix test failure
38802         * lib/dirent.in.h (includes): Guarantee ino_t.
38803         Reported by Ralf Wildenhues.
38804
38805 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38806
38807         linkat, renameat: avoid bad free
38808         * lib/at-func2.c (at_func2): Fix typo.
38809         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38810
38811 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38812
38813         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38814         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38815         to avoid failure of symlink test later.
38816
38817 2010-01-06  Eric Blake  <ebb9@byu.net>
38818
38819         stdio, unistd: guarantee ssize_t
38820         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38821         2008 are exposed when needed.
38822         * lib/stdio.in.h (includes): Likewise.
38823         Reported by Ralf Wildenhues.
38824
38825 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38826
38827         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38828         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38829         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38830
38831 2010-01-06  Jim Meyering  <meyering@redhat.com>
38832
38833         readtokens: this module *does* require xalloc.h
38834         It uses only functions that were omitted by the old syntax-check rule.
38835         * lib/readtokens.c: Include "xalloc.h" once again.
38836         * modules/readtokens (Depends-on): Add xalloc.
38837         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38838
38839 2010-01-05  Eric Blake  <ebb9@byu.net>
38840
38841         maint: support 'make announcement' from a VPATH build
38842         * top/maint.mk (announcement): Look for correct NEWS file.
38843
38844 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38845
38846         utimens (fdutimens): ignore a negative FD, per contract
38847         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38848         when we have a valid file descriptor.  Otherwise, using a brand
38849         new glibc (with just-patched futimens that now fails with EBADF)
38850         would cause this function to fail with ENOSYS.
38851         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38852         See also http://bugzilla.redhat.com/552320.
38853
38854 2010-01-05  Eric Blake  <ebb9@byu.net>
38855
38856         strcase: document what it provides
38857         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38858         gnulib module.
38859         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38860         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38861
38862 2010-01-05  Jim Meyering  <meyering@redhat.com>
38863
38864         maint: remove useless inclusions of "xalloc.h"
38865         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38866         * lib/readtokens.c: Likewise.
38867         * lib/same.c: Likewise.
38868         * modules/getloadavg (Depends-on): Remove xalloc.
38869         * modules/readtokens: Likewise.
38870         * modules/same: Likewise.
38871
38872         maint.mk: include 4 more function names in alloca.h-checking regexp
38873         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38874         regexp.  Before, we would give a false-positive (saying alloca.h
38875         is included unnecessarily) when the only uses involved omitted symbols.
38876
38877         xalloc.h: use consistent formatting
38878         * lib/xalloc.h: Move declarations to start in the first column.
38879
38880 2010-01-05  Eric Blake  <ebb9@byu.net>
38881
38882         mkdir: avoid xalloc
38883         * lib/mkdir.c (includes): Drop unused header.
38884         Reported by John W. Eaton.
38885
38886 2010-01-04  Jim Meyering  <meyering@redhat.com>
38887
38888         nl_langinfo: avoid configure-time syntax error
38889         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38890         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38891         the empty string.  Don't let that provoke a shell syntax error.
38892
38893         regcomp, regexec, fnmatch: avoid array bounds read error
38894         * lib/regcomp.c (build_equiv_class): From glibc:
38895         Use only the low 24 bits of a findidx return value as an index
38896         into the weights array.  Patch by Ulrich Drepper:
38897         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38898         * lib/regexec.c (check_node_accept_bytes): Likewise.
38899         * lib/fnmatch_loop.c (FCT): Likewise.
38900
38901         regcomp: skip collseq lookup when there are no rules
38902         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38903         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38904
38905         regcomp: recognize ill-formed { } expressions
38906         * lib/regcomp.c (parse_dup_op): From glibc:
38907         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38908
38909         regcomp: fix typo in comment
38910         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38911         s/satisfy/satisfies/.
38912
38913         regcomp: sync from glibc: remove dead store
38914         * lib/regcomp.c (duplicate_node_closure): Remove useless
38915         search_duplicated_node call and dead store.
38916
38917         regcomp: sync from glibc; always use nl_langinfo
38918         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38919         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38920         * modules/regex (Depends-on): Add nl_langinfo.
38921
38922 2010-01-04  Eric Blake  <ebb9@byu.net>
38923
38924         fdopendir: fix configure test
38925         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38926
38927 2010-01-01  Bruno Haible  <bruno@clisp.org>
38928
38929         wchar: Remove unused configure check.
38930         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38931
38932 2010-01-01  Eric Blake  <ebb9@byu.net>
38933
38934         headers: make check of system header explicit
38935         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38936         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38937         ourselves.
38938         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38940         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38941         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38942         internals.
38943         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38944         missing.
38945         Suggested by Bruno Haible.
38946
38947 2010-01-01  Jim Meyering  <meyering@redhat.com>
38948
38949         ChangeLog: tweak to eliminate unnecessary copyright line
38950         * ChangeLog: Remove a copyright line that was mistakenly updated
38951         by today's update-copyright run.  Reported by Eric Blake.
38952
38953         test-update-copyright: don't let envvar setting cause test failure
38954         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38955
38956 2010-01-01  Bruno Haible  <bruno@clisp.org>
38957
38958         localename: Avoid gcc warning.
38959         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38960         function if it is not used.
38961
38962 2010-01-01  Jim Meyering  <meyering@redhat.com>
38963
38964         update nearly all FSF copyright year lists to include 2010
38965         Use the same procedure as for 2009, outlined in
38966         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38967
38968         version-etc: set COPYRIGHT_YEAR to 2010
38969         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38970
38971 2009-12-31  Eric Blake  <ebb9@byu.net>
38972
38973         doc: correct availability of cygwin 1.5.x getopt
38974         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38975         variables.
38976         * doc/posix-functions/opterr.texi (opterr): Likewise.
38977         * doc/posix-functions/optind.texi (optind): Likewise.
38978         * doc/posix-functions/optopt.texi (optopt): Likewise.
38979         * doc/posix-functions/tzname.texi (tzname): Likewise.
38980
38981         openat: update maintainer
38982         * modules/openat (Maintainer): Add myself.
38983
38984         utimens: avoid shadowing warning
38985         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38986         buffers into one, to avoid shadowing, as well as avoiding a
38987         redundant stat.
38988         Reported by Jim Meyering.
38989
38990         test-dup2: avoid compiler warning
38991         * tests/test-dup2.c (is_inheritable): Only define if used.
38992
38993 2010-01-01  Bruno Haible  <bruno@clisp.org>
38994
38995         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38996         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38997         defined, use wctomb instead of wcrtomb.
38998
38999 2010-01-01  Bruno Haible  <bruno@clisp.org>
39000
39001         iconv: Reject native Solaris iconv.
39002         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39003         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39004
39005 2009-12-31  Bruno Haible  <bruno@clisp.org>
39006
39007         * tests/test-signal.c (main): Remove test of 'SIG'.
39008
39009 2009-12-31  Bruno Haible  <bruno@clisp.org>
39010
39011         spawn: Fix incomplete fix.
39012         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39013         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39014         warnings for GNULIB_POSIXCHECK again.
39015         Reported by Eric Blake.
39016
39017 2009-12-31  Bruno Haible  <bruno@clisp.org>
39018
39019         Avoid namespace pollution on glibc systems.
39020         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39021         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39022         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39023         glibc systems.
39024
39025 2009-12-31  Bruno Haible  <bruno@clisp.org>
39026
39027         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39028         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39029         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39030         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39031         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39032         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39033         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39034
39035 2009-12-31  Bruno Haible  <bruno@clisp.org>
39036
39037         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39038         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39039         afterwards.
39040
39041 2009-12-31  Bruno Haible  <bruno@clisp.org>
39042
39043         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39044         SYS_UTSNAME_H.
39045
39046 2009-12-31  Bruno Haible  <bruno@clisp.org>
39047
39048         spawn: Fix misapplied patch.
39049         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39050         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39051         warnings for GNULIB_POSIXCHECK.
39052
39053 2009-12-31  Bruno Haible  <bruno@clisp.org>
39054
39055         times: Update after sys_times changed.
39056         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39057         * modules/times (Files): Add it.
39058         (configure.ac): Invoke gl_FUNC_TIMES.
39059
39060 2009-12-31  Bruno Haible  <bruno@clisp.org>
39061
39062         Use AC_C_INLINE where necessary.
39063         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39064         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39066         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39067         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39068         * m4/mbiter.m4 (gl_MBITER): Likewise.
39069         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39070         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39071         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39072         * modules/u64 (configure.ac): Likewise.
39073
39074 2009-12-31  Bruno Haible  <bruno@clisp.org>
39075
39076         Use AC_C_INLINE instead of module 'inline' where possible.
39077         * modules/inline (Description): Clarify purpose.
39078         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39079         * modules/count-one-bits (Depends-on): Remove inline.
39080         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39081         * modules/openat (Depends-on): Remove inline.
39082         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39083         instead of depending on module 'inline'.
39084         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39085         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39086         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39087         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39088         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39089         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39090         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39091         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39092         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39093         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39094         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39095         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39096         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39097         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39098         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39099         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39100         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39101         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39102         Likewise.
39103         * modules/unictype/property-ascii-hex-digit (Depends-on,
39104         configure.ac): Likewise.
39105         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39106         configure.ac): Likewise.
39107         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39108         configure.ac): Likewise.
39109         * modules/unictype/property-bidi-block-separator (Depends-on,
39110         configure.ac): Likewise.
39111         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39112         configure.ac): Likewise.
39113         * modules/unictype/property-bidi-common-separator (Depends-on,
39114         configure.ac): Likewise.
39115         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39116         Likewise.
39117         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39118         configure.ac): Likewise.
39119         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39120         configure.ac): Likewise.
39121         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39122         configure.ac): Likewise.
39123         * modules/unictype/property-bidi-european-digit (Depends-on,
39124         configure.ac): Likewise.
39125         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39126         configure.ac): Likewise.
39127         * modules/unictype/property-bidi-left-to-right (Depends-on,
39128         configure.ac): Likewise.
39129         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39130         configure.ac): Likewise.
39131         * modules/unictype/property-bidi-other-neutral (Depends-on,
39132         configure.ac): Likewise.
39133         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39134         Likewise.
39135         * modules/unictype/property-bidi-segment-separator (Depends-on,
39136         configure.ac): Likewise.
39137         * modules/unictype/property-bidi-whitespace (Depends-on,
39138         configure.ac): Likewise.
39139         * modules/unictype/property-combining (Depends-on, configure.ac):
39140         Likewise.
39141         * modules/unictype/property-composite (Depends-on, configure.ac):
39142         Likewise.
39143         * modules/unictype/property-currency-symbol (Depends-on,
39144         configure.ac): Likewise.
39145         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39146         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39147         Likewise.
39148         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39149         configure.ac): Likewise.
39150         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39151         Likewise.
39152         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39153         Likewise.
39154         * modules/unictype/property-extender (Depends-on, configure.ac):
39155         Likewise.
39156         * modules/unictype/property-format-control (Depends-on, configure.ac):
39157         Likewise.
39158         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39159         Likewise.
39160         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39161         Likewise.
39162         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39163         Likewise.
39164         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39165         Likewise.
39166         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39167         Likewise.
39168         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39169         Likewise.
39170         * modules/unictype/property-id-start (Depends-on, configure.ac):
39171         Likewise.
39172         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39173         Likewise.
39174         * modules/unictype/property-ids-binary-operator (Depends-on,
39175         configure.ac): Likewise.
39176         * modules/unictype/property-ids-trinary-operator (Depends-on,
39177         configure.ac): Likewise.
39178         * modules/unictype/property-ignorable-control (Depends-on,
39179         configure.ac): Likewise.
39180         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39181         Likewise.
39182         * modules/unictype/property-join-control (Depends-on, configure.ac):
39183         Likewise.
39184         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39185         Likewise.
39186         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39187         Likewise.
39188         * modules/unictype/property-logical-order-exception (Depends-on,
39189         configure.ac): Likewise.
39190         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39191         Likewise.
39192         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39193         * modules/unictype/property-non-break (Depends-on, configure.ac):
39194         Likewise.
39195         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39196         Likewise.
39197         * modules/unictype/property-numeric (Depends-on, configure.ac):
39198         Likewise.
39199         * modules/unictype/property-other-alphabetic (Depends-on,
39200         configure.ac): Likewise.
39201         * modules/unictype/property-other-default-ignorable-code-point
39202         (Depends-on, configure.ac): Likewise.
39203         * modules/unictype/property-other-grapheme-extend (Depends-on,
39204         configure.ac): Likewise.
39205         * modules/unictype/property-other-id-continue (Depends-on,
39206         configure.ac): Likewise.
39207         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39208         Likewise.
39209         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39210         Likewise.
39211         * modules/unictype/property-other-math (Depends-on, configure.ac):
39212         Likewise.
39213         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39214         Likewise.
39215         * modules/unictype/property-paired-punctuation (Depends-on,
39216         configure.ac): Likewise.
39217         * modules/unictype/property-paragraph-separator (Depends-on,
39218         configure.ac): Likewise.
39219         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39220         Likewise.
39221         * modules/unictype/property-pattern-white-space (Depends-on,
39222         configure.ac): Likewise.
39223         * modules/unictype/property-private-use (Depends-on, configure.ac):
39224         Likewise.
39225         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39226         Likewise.
39227         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39228         Likewise.
39229         * modules/unictype/property-radical (Depends-on, configure.ac):
39230         Likewise.
39231         * modules/unictype/property-sentence-terminal (Depends-on,
39232         configure.ac): Likewise.
39233         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39234         Likewise.
39235         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39236         * modules/unictype/property-terminal-punctuation (Depends-on,
39237         configure.ac): Likewise.
39238         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39239         Likewise.
39240         * modules/unictype/property-unassigned-code-value (Depends-on,
39241         configure.ac): Likewise.
39242         * modules/unictype/property-unified-ideograph (Depends-on,
39243         configure.ac): Likewise.
39244         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39245         Likewise.
39246         * modules/unictype/property-variation-selector (Depends-on,
39247         configure.ac): Likewise.
39248         * modules/unictype/property-white-space (Depends-on, configure.ac):
39249         Likewise.
39250         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39251         Likewise.
39252         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39253         Likewise.
39254         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39255         Likewise.
39256         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39257         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39258         Likewise.
39259
39260 2009-12-31  Bruno Haible  <bruno@clisp.org>
39261
39262         Remove unnecessary AC_C_INLINE invocation.
39263         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39264         since 2009-08-21.
39265
39266 2009-12-31  Jim Meyering  <meyering@redhat.com>
39267
39268         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39269         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39270         With this change, we can all remove the gpg_key_ID = ... definition
39271         from our respective cfg.mk files.
39272
39273         maint.mk: create announcement template in ~/, not in /tmp
39274         * top/maint.mk (emit_upload_commands): Adjust.
39275         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39276         Remove temporary file, .ci-msg.
39277
39278 2009-12-31  Eric Blake  <ebb9@byu.net>
39279
39280         link-warning: always build headers with link warnings
39281         * modules/arpa_inet (Makefile.am): Always build replacement
39282         header.
39283         * modules/ctype (Makefile.am): Likewise.
39284         * modules/dirent (Makefile.am): Likewise.
39285         * modules/inttypes (Makefile.am): Likewise.
39286         * modules/langinfo (Makefile.am): Likewise.
39287         * modules/locale (Makefile.am): Likewise.
39288         * modules/spawn (Makefile.am): Likewise.
39289         * modules/sys_file (Makefile.am): Likewise.
39290         * modules/sys_ioctl (Makefile.am): Likewise.
39291         * modules/sys_select (Makefile.am): Likewise.
39292         * modules/sys_socket (Makefile.am): Likewise.
39293         * modules/sys_times (Makefile.am): Likewise.
39294         * modules/sys_utsname (Makefile.am): Likewise.
39295         * modules/sys_wait (Makefile.am): Likewise.
39296         * modules/wchar (Makefile.am): Likewise.
39297         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39298         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39299         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39300         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39301         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39302         Likewise.
39303         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39304         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39305         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39306         Likewise.
39307         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39308         Likewise.
39309         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39311         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39313         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39314         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39315         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39316         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39317         (gl_WCHAR_H_DEFAULTS): Likewise.
39318
39319 2009-12-31  Eric Blake  <ebb9@byu.net>
39320
39321         signal, spawn: use link warnings
39322         * lib/signal.in.h (sigset_t): Make unconditional.
39323         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39324         (sigpending, sigprocmask, sigaction): Add link warnings.
39325         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39326         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39327         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39328         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39329         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39330         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39331         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39332         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39333         (posix_spawn_file_actions_destroy)
39334         (posix_spawn_file_actions_addopen)
39335         (posix_spawn_file_actions_addclose)
39336         (posix_spawn_file_actions_adddup2): Likewise.
39337         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39338         * tests/test-signal.c (main): Enhance test.
39339
39340         spawn: improve wrapper support
39341         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39342         (gl_SPAWN_H_DEFAULTS): New defaults.
39343         * modules/spawn (Makefile.am): Substitute them.
39344         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39345         Only declare if missing or broken.
39346
39347         sys_times, sys_utsname: use include_next
39348         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39349         header.
39350         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39351         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39352         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39353         * modules/sys_times (Depends-on): Add include_next.
39354         (Makefile.am): Substitute additional values.
39355         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39356         * lib/sys_times.in.h (includes): Include native header, if
39357         available.
39358         * lib/sys_utsname.in.h (includes): Likewise.
39359         * tests/test-sys_times.c (main): Enhance test.
39360
39361         fdutimensat: revert prior patch
39362         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39363         utimens.h.
39364         Reported by Bruno Haible.
39365
39366 2009-12-30  Eric Blake  <ebb9@byu.net>
39367
39368         sys_wait: drop link-warning dependency
39369         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39370         link-warning efforts.
39371         * lib/sys_wait.in.h: Likewise.
39372
39373         fdutimensat: remove bogus dependency
39374         * modules/fdutimensat (Depends-on): Drop inline.
39375
39376         unistd: fix typo
39377         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39378
39379 2009-12-30  Bruno Haible  <bruno@clisp.org>
39380
39381         Fix compilation error with Solaris cc.
39382         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39383         * lib/unicase/u16-is-invariant.c: Likewise.
39384         * lib/unicase/u32-is-invariant.c: Likewise.
39385         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39386
39387 2009-12-30  Bruno Haible  <bruno@clisp.org>
39388
39389         Fix test crash.
39390         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39391         locales.
39392         Reported by Simon Josefsson <simon@josefsson.org>.
39393
39394 2009-12-30  Bruno Haible  <bruno@clisp.org>
39395
39396         Fix compilation error on most platforms.
39397         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39398         Reported by Simon Josefsson <simon@josefsson.org>
39399         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39400
39401 2009-12-30  Eric Blake  <ebb9@byu.net>
39402
39403         futimens, utimensat: work around ntfs-3g bug
39404         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39405         a ctime bug is present, and expand workaround to cover ntfs-3g.
39406         * lib/utimens.c (fdutimens, lutimens): Likewise.
39407         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39408         (validate_timespec): Adjust return value.
39409         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39410         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39411         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39412
39413 2009-12-29  Eric Blake  <ebb9@byu.net>
39414
39415         link-warning: make usage consistent
39416         * modules/ctype (Depends-on): Add link-warning.
39417         (Makefile.am): Update rules accordingly.
39418         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39419         * modules/locale (Depends-on, Makefile.am): Likewise.
39420         * modules/sys_file (Makefile.am): Likewise.
39421         * modules/getopt-posix (Makefile.am): Delete unused link warning
39422         efforts.
39423         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39424         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39425         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39426         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39427
39428         stdio: remove unused variables
39429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39431         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39432
39433         tests: test more substitute headers
39434         * modules/ctype-tests: New file.
39435         * modules/dirent-tests: Likewise.
39436         * modules/spawn-tests: Likewise.
39437         * modules/sys_file-tests: Likewise.
39438         * modules/sys_ioctl-tests: Likewise.
39439         * modules/sys_wait-tests: Likewise.
39440         * tests/test-ctype.c: Likewise.
39441         * tests/test-dirent.c: Likewise.
39442         * tests/test-spawn.c: Likewise.
39443         * tests/test-sys_file.c: Likewise.
39444         * tests/test-sys_ioctl.c: Likewise.
39445         * tests/test-sys_wait.c: Likewise.
39446         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39447         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39448         whether or not flock is in use.
39449
39450         tests: remove License section from module
39451         * modules/arpa_inet-tests: Remove unneeded section.
39452         * modules/byteswap-tests: Likewise.
39453         * modules/ceilf-tests: Likewise.
39454         * modules/ceill-tests: Likewise.
39455         * modules/crypto/des-tests: Likewise.
39456         * modules/crypto/gc-arcfour-tests: Likewise.
39457         * modules/crypto/gc-arctwo-tests: Likewise.
39458         * modules/crypto/gc-des-tests: Likewise.
39459         * modules/crypto/gc-hmac-md5-tests: Likewise.
39460         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39461         * modules/crypto/gc-md2-tests: Likewise.
39462         * modules/crypto/gc-md4-tests: Likewise.
39463         * modules/crypto/gc-md5-tests: Likewise.
39464         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39465         * modules/crypto/gc-rijndael-tests: Likewise.
39466         * modules/crypto/gc-sha1-tests: Likewise.
39467         * modules/crypto/gc-tests: Likewise.
39468         * modules/crypto/md2-tests: Likewise.
39469         * modules/crypto/md4-tests: Likewise.
39470         * modules/fcntl-h-tests: Likewise.
39471         * modules/floorf-tests: Likewise.
39472         * modules/floorl-tests: Likewise.
39473         * modules/frexp-nolibm-tests: Likewise.
39474         * modules/frexp-tests: Likewise.
39475         * modules/frexpl-nolibm-tests: Likewise.
39476         * modules/frexpl-tests: Likewise.
39477         * modules/getaddrinfo-tests: Likewise.
39478         * modules/inttypes-tests: Likewise.
39479         * modules/isfinite-tests: Likewise.
39480         * modules/isinf-tests: Likewise.
39481         * modules/ldexpl-tests: Likewise.
39482         * modules/locale-tests: Likewise.
39483         * modules/math-tests: Likewise.
39484         * modules/netdb-tests: Likewise.
39485         * modules/netinet_in-tests: Likewise.
39486         * modules/printf-frexp-tests: Likewise.
39487         * modules/printf-frexpl-tests: Likewise.
39488         * modules/priv-set-tests: Likewise.
39489         * modules/random_r-tests: Likewise.
39490         * modules/round-tests: Likewise.
39491         * modules/roundf-tests: Likewise.
39492         * modules/roundl-tests: Likewise.
39493         * modules/search-tests: Likewise.
39494         * modules/select-tests: Likewise.
39495         * modules/signal-tests: Likewise.
39496         * modules/stdbool-tests: Likewise.
39497         * modules/stddef-tests: Likewise.
39498         * modules/stdint-tests: Likewise.
39499         * modules/stdio-tests: Likewise.
39500         * modules/stdlib-tests: Likewise.
39501         * modules/string-tests: Likewise.
39502         * modules/strings-tests: Likewise.
39503         * modules/sys_select-tests: Likewise.
39504         * modules/sys_socket-tests: Likewise.
39505         * modules/sys_stat-tests: Likewise.
39506         * modules/sys_time-tests: Likewise.
39507         * modules/sys_utsname-tests: Likewise.
39508         * modules/sysexits-tests: Likewise.
39509         * modules/time-tests: Likewise.
39510         * modules/trunc-tests: Likewise.
39511         * modules/truncf-tests: Likewise.
39512         * modules/truncl-tests: Likewise.
39513         * modules/tsearch-tests: Likewise.
39514         * modules/unistd-tests: Likewise.
39515         * modules/wchar-tests: Likewise.
39516         * modules/wctype-tests: Likewise.
39517
39518         tests: fix license on several tests
39519         * tests/test-des.c: Update to GPLv3+.
39520         * tests/test-flock.c: Likewise.
39521         * tests/test-fsync.c: Likewise.
39522         * tests/test-futimens.h: Likewise.
39523         * tests/test-gc-arcfour.c: Likewise.
39524         * tests/test-gc-arctwo.c: Likewise.
39525         * tests/test-gc-des.c: Likewise.
39526         * tests/test-gc-hmac-md5.c: Likewise.
39527         * tests/test-gc-hmac-sha1.c: Likewise.
39528         * tests/test-gc-md2.c: Likewise.
39529         * tests/test-gc-md4.c: Likewise.
39530         * tests/test-gc-md5.c: Likewise.
39531         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39532         * tests/test-gc-rijndael.c: Likewise.
39533         * tests/test-gc-sha1.c: Likewise.
39534         * tests/test-gc.c: Likewise.
39535         * tests/test-getcwd.c: Likewise.
39536         * tests/test-link.c: Likewise.
39537         * tests/test-link.h: Likewise.
39538         * tests/test-lutimens.h: Likewise.
39539         * tests/test-md2.c: Likewise.
39540         * tests/test-md4.c: Likewise.
39541         * tests/test-mkdir.h: Likewise.
39542         * tests/test-rename.c: Likewise.
39543         * tests/test-rename.h: Likewise.
39544         * tests/test-safe-alloc.c: Likewise.
39545         * tests/test-utimens-common.h: Likewise.
39546         * tests/test-utimens.h: Likewise.
39547
39548         maint: sync license texts
39549         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39550         * doc/gpl-3.0.texi: Revert copyright year update.
39551         * doc/lgpl-3.0.texi: Likewise.
39552
39553 2009-12-29  Jim Meyering  <meyering@redhat.com>
39554
39555         update nearly all FSF copyright year lists to include 2009
39556         The files named by the following are exempted:
39557             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39558               test -f "$dst" && { echo "$dst"; continue; }
39559               test -d "$dst" || continue
39560               echo "$dst"/$(basename "$src")
39561             done > exempt
39562             git ls-files tests/unictype >> exempt
39563         In the remaining files, convert to all-interval notation if
39564         - there is already at least one year interval like 2000-2003
39565         - the file is maintained by me
39566         - the file is in lib/uni*/, where that style already prevails
39567         Otherwise, use update-copyright's default.
39568
39569 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39570         and Eric Blake  <ebb9@byu.net>
39571
39572         tests: don't require debug system() to pass
39573         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39574         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39575         * tests/test-unlink.h (test_unlink_func): Likewise.
39576         * tests/test-fstatat.c (main): ...into callers.
39577         * tests/test-lstat.c (main): Likewise.
39578         * tests/test-rmdir.c (main): Likewise.
39579         * tests/test-unlink.c (main): Likewise.
39580         * tests/test-unlinkat.c (main): Likewise.
39581         * tests/test-areadlink-with-size.c (main): Don't require a
39582         debug-only system call to pass, aiding cross-testing to mingw.
39583         * tests/test-areadlink.c (main): Likewise.
39584         * tests/test-areadlinkat-with-size.c (main): Likewise.
39585         * tests/test-areadlinkat.c (main): Likewise.
39586         * tests/test-canonicalize-lgpl.c (main): Likewise.
39587         * tests/test-canonicalize.c (main): Likewise.
39588         * tests/test-chown.c (main): Likewise.
39589         * tests/test-fchownat.c (main): Likewise.
39590         * tests/test-lchown.c (main): Likewise.
39591         * tests/test-fdutimensat.c (main): Likewise.
39592         * tests/test-futimens.c (main): Likewise.
39593         * tests/test-link.c (main): Likewise.
39594         * tests/test-linkat.c (main): Likewise.
39595         * tests/test-mkdir.c (main): Likewise.
39596         * tests/test-mkdirat.c (main): Likewise.
39597         * tests/test-mkfifo.c (main): Likewise.
39598         * tests/test-mkfifoat.c (main): Likewise.
39599         * tests/test-mknod.c (main): Likewise.
39600         * tests/test-readlink.c (main): Likewise.
39601         * tests/test-remove.c (main): Likewise.
39602         * tests/test-rename.c (main): Likewise.
39603         * tests/test-renameat.c (main): Likewise.
39604         * tests/test-symlink.c (main): Likewise.
39605         * tests/test-symlinkat.c (main): Likewise.
39606         * tests/test-utimens.c (main): Likewise.
39607         * tests/test-utimensat.c (main): Likewise.
39608
39609 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39610
39611         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39612         on $(UNUSED_PARAMETER_H) to avoid build failure.
39613
39614 2009-12-28  Jim Meyering  <meyering@redhat.com>
39615
39616         update-copyright: you may specify a max. line length other than 72
39617         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39618
39619         maint: use consistent FSF copyright line syntax
39620         * lib/posixtm.c: Add missing comma in FSF copyright line.
39621         * lib/posixtm.h: Likewise.
39622         * lib/getugroups.c: Add missing ", Inc.".
39623
39624         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39625         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39626         FSF copyright line.  Remove trailing blanks.
39627
39628 2009-12-28  Eric Blake  <ebb9@byu.net>
39629
39630         test-dup2: reduce dependencies
39631         * modules/cloexec (Configure.ac): Set witness.
39632         * modules/dup2-tests (Depends-on): Drop cloexec.
39633         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39634         not present.
39635         Suggested by Bruno Haible.
39636
39637 2009-12-26  Bruno Haible  <bruno@clisp.org>
39638
39639         Remove an unneeded dependency.
39640         * modules/fseterr (Depends-on): Remove dup2.
39641
39642 2009-12-26  Eric Blake  <ebb9@byu.net>
39643
39644         tests: use macros.h in more places
39645         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39646         (ASSERT_STREAM): Provide default of stderr.
39647         * tests/test-dirent-safer.c: Include macros.h, using alternate
39648         stream for assertions.
39649         * tests/test-dup-safer.c: Likewise.
39650         * tests/test-freopen-safer.c: Likewise.
39651         * tests/test-getopt.c: Likewise.
39652         * tests/test-openat-safer.c: Likewise.
39653         * tests/test-pipe.c: Likewise.
39654         * tests/test-popen-safer.c: Likewise.
39655         * modules/dirent-safer-tests (Files): Include macros.h.
39656         * modules/unistd-safer-tests (Files): Likewise.
39657         * modules/freopen-safer-tests (Files): Likewise.
39658         * modules/getopt-posix-tests (Files): Likewise.
39659         * modules/openat-safer-tests (Files): Likewise.
39660         * modules/pipe-tests (Files): Likewise.
39661
39662 2009-12-26  Bruno Haible  <bruno@clisp.org>
39663
39664         javacomp: Portability fix.
39665         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39666         that it also works on Solaris.
39667
39668 2009-12-26  Bruno Haible  <bruno@clisp.org>
39669
39670         localename: Fix storage allocation of gl_locale_name_thread's result.
39671         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39672         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39673         all platforms that have 'uselocale'.
39674         (gl_locale_name_thread_unsafe): New function, extracted from
39675         gl_locale_name_thread.
39676         (gl_locale_name_thread): Call struniq on all platforms that have
39677         'uselocale'.
39678         * tests/test-localename.c (test_locale_name_thread): Check that the
39679         resulting strings are permanently allocated.
39680         * modules/localename-tests (Depends-on): Add strdup.
39681
39682 2009-12-26  Bruno Haible  <bruno@clisp.org>
39683
39684         * tests/test-localename.c (categories): Fill in the strings.
39685
39686 2009-12-26  Jim Meyering  <meyering@redhat.com>
39687
39688         isdir: complete the removal of m4/isdir.m4
39689         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39690
39691         isdir: clean up, since at least grep still uses it
39692         * lib/isdir.c: Include "isdir.h".
39693         (S_ISDIR): Remove now-unneeded definition.
39694         * modules/isdir (Files): Add lib/isdir.h.
39695         * lib/isdir.h: New file, with declaration.
39696         * m4/isdir.m4: Remove file -- unneeded.
39697
39698 2009-12-25  Bruno Haible  <bruno@clisp.org>
39699
39700         selinux-h: Make generated .h files standalone.
39701         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39702         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39703         * lib/se-selinux.in.h: Likewise.
39704         * modules/selinux-h (Depends-on): Add unused-parameter.
39705         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39706         selinux/selinux.h and selinux/context.h.
39707         Suggested by Eric Blake.
39708
39709 2009-12-25  Bruno Haible  <bruno@clisp.org>
39710
39711         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39712         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39713         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39714         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39715         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39716
39717 2009-12-24  Bruno Haible  <bruno@clisp.org>
39718
39719         openat: Fix warning.
39720         * lib/openat-proc.c: Include <unistd.h>.
39721
39722 2009-12-24  Bruno Haible  <bruno@clisp.org>
39723
39724         New module 'unused-parameter'.
39725         * build-aux/unused-parameter.h: New file, extracted from earlier
39726         gnulib-common.m4.
39727         * modules/unused-parameter: New file.
39728         * lib/unistr.h: Include unused-parameter.h.
39729         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39730         _GL_UNUSED.
39731         * modules/unistr/base (Depends-on): Add unused-parameter.
39732
39733 2009-12-24  Bruno Haible  <bruno@clisp.org>
39734
39735         Add missing dependencies to 'extensions' module.
39736         * m4/extensions.m4: Add comment.
39737         * modules/accept4 (Depends-on): Add extensions.
39738         * modules/dup3 (Depends-on): Likewise.
39739         * modules/fcntl (Depends-on): Likewise.
39740         * modules/futimens (Depends-on): Likewise.
39741         * modules/mknod (Depends-on): Likewise.
39742         * modules/pipe2 (Depends-on): Likewise.
39743         * modules/stat-time (Depends-on): Likewise.
39744         * modules/strcasestr-simple (Depends-on): Likewise.
39745         * modules/strsignal (Depends-on): Likewise.
39746         * modules/utimensat (Depends-on): Likewise.
39747         * modules/localcharset (Depends-on): Likewise. Needed because of
39748         gl_FCNTL_O_FLAGS.
39749         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39750         AC_TYPE_MBSTATE_T.
39751         * modules/wcsnrtombs (Depends-on): Likewise.
39752         * modules/wcsrtombs (Depends-on): Likewise.
39753
39754 2009-12-24  Bruno Haible  <bruno@clisp.org>
39755
39756         binary-io: Avoid gcc warning due to SET_BINARY.
39757         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39758         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39759
39760 2009-12-24  Bruno Haible  <bruno@clisp.org>
39761
39762         Avoid future namespace pollution on glibc systems.
39763         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39764         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39765         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39766         glibc systems.
39767
39768 2009-12-24  Bruno Haible  <bruno@clisp.org>
39769
39770         Refactor common macros used in tests.
39771         * tests/macros.h: New file.
39772         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39773         and/or <stdlib.h>, if appropriate.
39774         (ASSERT, SIZEOF): Remove macros.
39775         * tests/test-areadlink-with-size.c: Likewise.
39776         * tests/test-areadlinkat.c: Likewise.
39777         * tests/test-areadlinkat-with-size.c: Likewise.
39778         * tests/test-argmatch.c: Likewise.
39779         * tests/test-argv-iter.c: Likewise.
39780         * tests/test-array-mergesort.c: Likewise.
39781         * tests/test-array_list.c: Likewise.
39782         * tests/test-array_oset.c: Likewise.
39783         * tests/test-avltree_list.c: Likewise.
39784         * tests/test-avltree_oset.c: Likewise.
39785         * tests/test-avltreehash_list.c: Likewise.
39786         * tests/test-base64.c: Likewise.
39787         * tests/test-binary-io.c: Likewise.
39788         * tests/test-bitrotate.c: Likewise.
39789         * tests/test-btowc.c: Likewise.
39790         * tests/test-byteswap.c: Likewise.
39791         * tests/test-c-ctype.c: Likewise.
39792         * tests/test-c-stack.c: Likewise.
39793         * tests/test-c-strcasecmp.c: Likewise.
39794         * tests/test-c-strcasestr.c: Likewise.
39795         * tests/test-c-strncasecmp.c: Likewise.
39796         * tests/test-c-strstr.c: Likewise.
39797         * tests/test-canonicalize-lgpl.c: Likewise.
39798         * tests/test-canonicalize.c: Likewise.
39799         * tests/test-carray_list.c: Likewise.
39800         * tests/test-ceilf1.c: Likewise.
39801         * tests/test-ceilf2.c: Likewise.
39802         * tests/test-ceill.c: Likewise.
39803         * tests/test-chown.c: Likewise.
39804         * tests/test-cloexec.c: Likewise.
39805         * tests/test-copy-acl.c: Likewise.
39806         * tests/test-copy-file.c: Likewise.
39807         * tests/test-count-one-bits.c: Likewise.
39808         * tests/test-dprintf-posix.c: Likewise.
39809         * tests/test-dup2.c: Likewise.
39810         * tests/test-dup3.c: Likewise.
39811         * tests/test-duplocale.c: Likewise.
39812         * tests/test-fbufmode.c: Likewise.
39813         * tests/test-fchdir.c: Likewise.
39814         * tests/test-fchownat.c: Likewise.
39815         * tests/test-fcntl-safer.c: Likewise.
39816         * tests/test-fcntl.c: Likewise.
39817         * tests/test-fdopendir.c: Likewise.
39818         * tests/test-fdutimensat.c: Likewise.
39819         * tests/test-fflush2.c: Likewise.
39820         * tests/test-file-has-acl.c: Likewise.
39821         * tests/test-filevercmp.c: Likewise.
39822         * tests/test-flock.c: Likewise.
39823         * tests/test-floorf1.c: Likewise.
39824         * tests/test-floorf2.c: Likewise.
39825         * tests/test-floorl.c: Likewise.
39826         * tests/test-fnmatch.c: Likewise.
39827         * tests/test-fopen.h: Likewise.
39828         * tests/test-fpending.c: Likewise.
39829         * tests/test-fprintf-posix.c: Likewise.
39830         * tests/test-fpurge.c: Likewise.
39831         * tests/test-freadable.c: Likewise.
39832         * tests/test-freadahead.c: Likewise.
39833         * tests/test-freading.c: Likewise.
39834         * tests/test-freadptr.c: Likewise.
39835         * tests/test-freadptr2.c: Likewise.
39836         * tests/test-freadseek.c: Likewise.
39837         * tests/test-freopen.c: Likewise.
39838         * tests/test-frexp.c: Likewise.
39839         * tests/test-frexpl.c: Likewise.
39840         * tests/test-fseek.c: Likewise.
39841         * tests/test-fseeko.c: Likewise.
39842         * tests/test-fstatat.c: Likewise.
39843         * tests/test-fstrcmp.c: Likewise.
39844         * tests/test-fsync.c: Likewise.
39845         * tests/test-ftell.c: Likewise.
39846         * tests/test-ftello.c: Likewise.
39847         * tests/test-func.c: Likewise.
39848         * tests/test-futimens.c: Likewise.
39849         * tests/test-fwritable.c: Likewise.
39850         * tests/test-fwriting.c: Likewise.
39851         * tests/test-getcwd.c: Likewise.
39852         * tests/test-getdate.c: Likewise.
39853         * tests/test-getdelim.c: Likewise.
39854         * tests/test-getdtablesize.c: Likewise.
39855         * tests/test-getgroups.c: Likewise.
39856         * tests/test-getline.c: Likewise.
39857         * tests/test-getndelim2.c: Likewise.
39858         * tests/test-glob.c: Likewise.
39859         * tests/test-hash.c: Likewise.
39860         * tests/test-i-ring.c: Likewise.
39861         * tests/test-iconv-utf.c: Likewise.
39862         * tests/test-iconv.c: Likewise.
39863         * tests/test-idpriv-drop.c: Likewise.
39864         * tests/test-idpriv-droptemp.c: Likewise.
39865         * tests/test-inet_ntop.c: Likewise.
39866         * tests/test-inet_pton.c: Likewise.
39867         * tests/test-isblank.c: Likewise.
39868         * tests/test-isfinite.c: Likewise.
39869         * tests/test-isinf.c: Likewise.
39870         * tests/test-isnan.c: Likewise.
39871         * tests/test-isnand.h: Likewise.
39872         * tests/test-isnanf.h: Likewise.
39873         * tests/test-isnanl.h: Likewise.
39874         * tests/test-lchown.c: Likewise.
39875         * tests/test-ldexpl.c: Likewise.
39876         * tests/test-link.c: Likewise.
39877         * tests/test-linkat.c: Likewise.
39878         * tests/test-linked_list.c: Likewise.
39879         * tests/test-linkedhash_list.c: Likewise.
39880         * tests/test-localename.c: Likewise.
39881         * tests/test-lseek.c: Likewise.
39882         * tests/test-lstat.c: Likewise.
39883         * tests/test-mbmemcasecmp.c: Likewise.
39884         * tests/test-mbmemcasecoll.c: Likewise.
39885         * tests/test-mbrtowc.c: Likewise.
39886         * tests/test-mbscasecmp.c: Likewise.
39887         * tests/test-mbscasestr1.c: Likewise.
39888         * tests/test-mbscasestr2.c: Likewise.
39889         * tests/test-mbscasestr3.c: Likewise.
39890         * tests/test-mbscasestr4.c: Likewise.
39891         * tests/test-mbschr.c: Likewise.
39892         * tests/test-mbscspn.c: Likewise.
39893         * tests/test-mbsinit.c: Likewise.
39894         * tests/test-mbsncasecmp.c: Likewise.
39895         * tests/test-mbsnrtowcs.c: Likewise.
39896         * tests/test-mbspbrk.c: Likewise.
39897         * tests/test-mbspcasecmp.c: Likewise.
39898         * tests/test-mbsrchr.c: Likewise.
39899         * tests/test-mbsrtowcs.c: Likewise.
39900         * tests/test-mbsspn.c: Likewise.
39901         * tests/test-mbsstr1.c: Likewise.
39902         * tests/test-mbsstr2.c: Likewise.
39903         * tests/test-mbsstr3.c: Likewise.
39904         * tests/test-memchr.c: Likewise.
39905         * tests/test-memchr2.c: Likewise.
39906         * tests/test-memcmp.c: Likewise.
39907         * tests/test-memmem.c: Likewise.
39908         * tests/test-memrchr.c: Likewise.
39909         * tests/test-mkdir.c: Likewise.
39910         * tests/test-mkdirat.c: Likewise.
39911         * tests/test-mkfifo.c: Likewise.
39912         * tests/test-mkfifoat.c: Likewise.
39913         * tests/test-mknod.c: Likewise.
39914         * tests/test-nanosleep.c: Likewise.
39915         * tests/test-nl_langinfo.c: Likewise.
39916         * tests/test-obstack-printf.c: Likewise.
39917         * tests/test-open.c: Likewise.
39918         * tests/test-openat.c: Likewise.
39919         * tests/test-pipe-filter-gi1.c: Likewise.
39920         * tests/test-pipe-filter-gi2-main.c: Likewise.
39921         * tests/test-pipe-filter-ii1.c: Likewise.
39922         * tests/test-pipe-filter-ii2-main.c: Likewise.
39923         * tests/test-pipe2.c: Likewise.
39924         * tests/test-popen.h: Likewise.
39925         * tests/test-posixtm.c: Likewise.
39926         * tests/test-pread.c: Likewise.
39927         * tests/test-printf-frexp.c: Likewise.
39928         * tests/test-printf-frexpl.c: Likewise.
39929         * tests/test-printf-posix.c: Likewise.
39930         * tests/test-priv-set.c: Likewise.
39931         * tests/test-quotearg.c: Likewise.
39932         * tests/test-random_r.c: Likewise.
39933         * tests/test-rawmemchr.c: Likewise.
39934         * tests/test-rbtree_list.c: Likewise.
39935         * tests/test-rbtree_oset.c: Likewise.
39936         * tests/test-rbtreehash_list.c: Likewise.
39937         * tests/test-readlink.c: Likewise.
39938         * tests/test-remove.c: Likewise.
39939         * tests/test-rename.c: Likewise.
39940         * tests/test-renameat.c: Likewise.
39941         * tests/test-rmdir.c: Likewise.
39942         * tests/test-round1.c: Likewise.
39943         * tests/test-roundf1.c: Likewise.
39944         * tests/test-roundl.c: Likewise.
39945         * tests/test-safe-alloc.c: Likewise.
39946         * tests/test-sameacls.c: Likewise.
39947         * tests/test-set-mode-acl.c: Likewise.
39948         * tests/test-setenv.c: Likewise.
39949         * tests/test-sigaction.c: Likewise.
39950         * tests/test-signbit.c: Likewise.
39951         * tests/test-sleep.c: Likewise.
39952         * tests/test-snprintf-posix.c: Likewise.
39953         * tests/test-snprintf.c: Likewise.
39954         * tests/test-sprintf-posix.c: Likewise.
39955         * tests/test-stat-time.c: Likewise.
39956         * tests/test-stat.c: Likewise.
39957         * tests/test-strcasestr.c: Likewise.
39958         * tests/test-strchrnul.c: Likewise.
39959         * tests/test-strerror.c: Likewise.
39960         * tests/test-striconv.c: Likewise.
39961         * tests/test-striconveh.c: Likewise.
39962         * tests/test-striconveha.c: Likewise.
39963         * tests/test-strsignal.c: Likewise.
39964         * tests/test-strstr.c: Likewise.
39965         * tests/test-strtod.c: Likewise.
39966         * tests/test-strverscmp.c: Likewise.
39967         * tests/test-symlink.c: Likewise.
39968         * tests/test-symlinkat.c: Likewise.
39969         * tests/test-trunc1.c: Likewise.
39970         * tests/test-trunc2.c: Likewise.
39971         * tests/test-truncf1.c: Likewise.
39972         * tests/test-truncf2.c: Likewise.
39973         * tests/test-truncl.c: Likewise.
39974         * tests/test-uname.c: Likewise.
39975         * tests/test-unlink.c: Likewise.
39976         * tests/test-unlinkat.c: Likewise.
39977         * tests/test-unsetenv.c: Likewise.
39978         * tests/test-usleep.c: Likewise.
39979         * tests/test-utimens.c: Likewise.
39980         * tests/test-utimensat.c: Likewise.
39981         * tests/test-vasnprintf-posix.c: Likewise.
39982         * tests/test-vasnprintf-posix2.c: Likewise.
39983         * tests/test-vasnprintf.c: Likewise.
39984         * tests/test-vasprintf-posix.c: Likewise.
39985         * tests/test-vasprintf.c: Likewise.
39986         * tests/test-vdprintf-posix.c: Likewise.
39987         * tests/test-vfprintf-posix.c: Likewise.
39988         * tests/test-vprintf-posix.c: Likewise.
39989         * tests/test-vsnprintf-posix.c: Likewise.
39990         * tests/test-vsnprintf.c: Likewise.
39991         * tests/test-vsprintf-posix.c: Likewise.
39992         * tests/test-wcrtomb.c: Likewise.
39993         * tests/test-wcsnrtombs.c: Likewise.
39994         * tests/test-wcsrtombs.c: Likewise.
39995         * tests/test-wctype.c: Likewise.
39996         * tests/test-wcwidth.c: Likewise.
39997         * tests/test-xfprintf-posix.c: Likewise.
39998         * tests/test-xmemdup0.c: Likewise.
39999         * tests/test-xprintf-posix.c: Likewise.
40000         * tests/test-xvasprintf.c: Likewise.
40001         * tests/unicase/test-locale-language.c: Likewise.
40002         * tests/unicase/test-mapping-part1.h: Likewise.
40003         * tests/unicase/test-predicate-part1.h: Likewise.
40004         * tests/unicase/test-u8-casecmp.c: Likewise.
40005         * tests/unicase/test-u8-casecoll.c: Likewise.
40006         * tests/unicase/test-u8-casefold.c: Likewise.
40007         * tests/unicase/test-u8-is-cased.c: Likewise.
40008         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40009         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40010         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40011         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40012         * tests/unicase/test-u8-tolower.c: Likewise.
40013         * tests/unicase/test-u8-totitle.c: Likewise.
40014         * tests/unicase/test-u8-toupper.c: Likewise.
40015         * tests/unicase/test-u16-casecmp.c: Likewise.
40016         * tests/unicase/test-u16-casecoll.c: Likewise.
40017         * tests/unicase/test-u16-casefold.c: Likewise.
40018         * tests/unicase/test-u16-is-cased.c: Likewise.
40019         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40020         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40021         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40022         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40023         * tests/unicase/test-u16-tolower.c: Likewise.
40024         * tests/unicase/test-u16-totitle.c: Likewise.
40025         * tests/unicase/test-u16-toupper.c: Likewise.
40026         * tests/unicase/test-u32-casecmp.c: Likewise.
40027         * tests/unicase/test-u32-casecoll.c: Likewise.
40028         * tests/unicase/test-u32-casefold.c: Likewise.
40029         * tests/unicase/test-u32-is-cased.c: Likewise.
40030         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40031         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40032         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40033         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40034         * tests/unicase/test-u32-tolower.c: Likewise.
40035         * tests/unicase/test-u32-totitle.c: Likewise.
40036         * tests/unicase/test-u32-toupper.c: Likewise.
40037         * tests/unicase/test-ulc-casecmp.c: Likewise.
40038         * tests/unicase/test-ulc-casecoll.c: Likewise.
40039         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40040         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40041         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40042         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40043         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40044         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40045         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40046         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40047         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40048         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40049         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40050         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40051         * tests/unictype/test-bidi_byname.c: Likewise.
40052         * tests/unictype/test-bidi_name.c: Likewise.
40053         * tests/unictype/test-bidi_of.c: Likewise.
40054         * tests/unictype/test-bidi_test.c: Likewise.
40055         * tests/unictype/test-block_list.c: Likewise.
40056         * tests/unictype/test-block_of.c: Likewise.
40057         * tests/unictype/test-block_test.c: Likewise.
40058         * tests/unictype/test-categ_and.c: Likewise.
40059         * tests/unictype/test-categ_and_not.c: Likewise.
40060         * tests/unictype/test-categ_byname.c: Likewise.
40061         * tests/unictype/test-categ_name.c: Likewise.
40062         * tests/unictype/test-categ_none.c: Likewise.
40063         * tests/unictype/test-categ_of.c: Likewise.
40064         * tests/unictype/test-categ_or.c: Likewise.
40065         * tests/unictype/test-categ_test_withtable.c: Likewise.
40066         * tests/unictype/test-combining.c: Likewise.
40067         * tests/unictype/test-decdigit.c: Likewise.
40068         * tests/unictype/test-digit.c: Likewise.
40069         * tests/unictype/test-mirror.c: Likewise.
40070         * tests/unictype/test-numeric.c: Likewise.
40071         * tests/unictype/test-pr_byname.c: Likewise.
40072         * tests/unictype/test-pr_test.c: Likewise.
40073         * tests/unictype/test-predicate-part1.h: Likewise.
40074         * tests/unictype/test-scripts.c: Likewise.
40075         * tests/unictype/test-sy_c_ident.c: Likewise.
40076         * tests/unictype/test-sy_java_ident.c: Likewise.
40077         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40078         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40079         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40080         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40081         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40082         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40083         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40084         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40085         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40086         * tests/uninorm/test-compat-decomposition.c: Likewise.
40087         * tests/uninorm/test-composition.c: Likewise.
40088         * tests/uninorm/test-decomposing-form.c: Likewise.
40089         * tests/uninorm/test-decomposition.c: Likewise.
40090         * tests/uninorm/test-u8-nfc.c: Likewise.
40091         * tests/uninorm/test-u8-nfd.c: Likewise.
40092         * tests/uninorm/test-u8-nfkc.c: Likewise.
40093         * tests/uninorm/test-u8-nfkd.c: Likewise.
40094         * tests/uninorm/test-u8-normcmp.c: Likewise.
40095         * tests/uninorm/test-u8-normcoll.c: Likewise.
40096         * tests/uninorm/test-u16-nfc.c: Likewise.
40097         * tests/uninorm/test-u16-nfd.c: Likewise.
40098         * tests/uninorm/test-u16-nfkc.c: Likewise.
40099         * tests/uninorm/test-u16-nfkd.c: Likewise.
40100         * tests/uninorm/test-u16-normcmp.c: Likewise.
40101         * tests/uninorm/test-u16-normcoll.c: Likewise.
40102         * tests/uninorm/test-u32-nfc.c: Likewise.
40103         * tests/uninorm/test-u32-nfd.c: Likewise.
40104         * tests/uninorm/test-u32-nfkc.c: Likewise.
40105         * tests/uninorm/test-u32-nfkd.c: Likewise.
40106         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40107         * tests/uninorm/test-u32-normcmp.c: Likewise.
40108         * tests/uninorm/test-u32-normcoll.c: Likewise.
40109         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40110         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40111         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40112         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40113         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40114         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40115         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40116         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40117         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40118         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40119         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40120         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40121         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40122         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40123         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40124         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40125         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40126         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40127         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40128         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40129         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40130         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40131         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40132         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40133         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40134         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40135         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40136         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40137         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40138         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40139         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40140         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40141         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40142         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40143         * tests/uniwidth/test-u8-width.c: Likewise.
40144         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40145         * tests/uniwidth/test-u16-width.c: Likewise.
40146         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40147         * tests/uniwidth/test-u32-width.c: Likewise.
40148         * tests/uniwidth/test-uc_width.c: Likewise.
40149         * tests/uniwidth/test-uc_width2.c: Likewise.
40150         * modules/acl-tests (Files): Add tests/macros.h.
40151         * modules/areadlink-tests (Files): Likewise.
40152         * modules/areadlink-with-size-tests (Files): Likewise.
40153         * modules/areadlinkat-tests (Files): Likewise.
40154         * modules/areadlinkat-with-size-tests (Files): Likewise.
40155         * modules/argmatch-tests (Files): Likewise.
40156         * modules/argv-iter-tests (Files): Likewise.
40157         * modules/array-list-tests (Files): Likewise.
40158         * modules/array-mergesort-tests (Files): Likewise.
40159         * modules/array-oset-tests (Files): Likewise.
40160         * modules/avltree-list-tests (Files): Likewise.
40161         * modules/avltree-oset-tests (Files): Likewise.
40162         * modules/avltreehash-list-tests (Files): Likewise.
40163         * modules/base64-tests (Files): Likewise.
40164         * modules/binary-io-tests (Files): Likewise.
40165         * modules/bitrotate-tests (Files): Likewise.
40166         * modules/btowc-tests (Files): Likewise.
40167         * modules/byteswap-tests (Files): Likewise.
40168         * modules/c-ctype-tests (Files): Likewise.
40169         * modules/c-stack-tests (Files): Likewise.
40170         * modules/c-strcase-tests (Files): Likewise.
40171         * modules/c-strcasestr-tests (Files): Likewise.
40172         * modules/c-strstr-tests (Files): Likewise.
40173         * modules/canonicalize-lgpl-tests (Files): Likewise.
40174         * modules/canonicalize-tests (Files): Likewise.
40175         * modules/carray-list-tests (Files): Likewise.
40176         * modules/ceilf-tests (Files): Likewise.
40177         * modules/ceill-tests (Files): Likewise.
40178         * modules/chown-tests (Files): Likewise.
40179         * modules/cloexec-tests (Files): Likewise.
40180         * modules/copy-file-tests (Files): Likewise.
40181         * modules/count-one-bits-tests (Files): Likewise.
40182         * modules/dprintf-posix-tests (Files): Likewise.
40183         * modules/dup2-tests (Files): Likewise.
40184         * modules/dup3-tests (Files): Likewise.
40185         * modules/duplocale-tests (Files): Likewise.
40186         * modules/fbufmode-tests (Files): Likewise.
40187         * modules/fchdir-tests (Files): Likewise.
40188         * modules/fcntl-safer-tests (Files): Likewise.
40189         * modules/fcntl-tests (Files): Likewise.
40190         * modules/fdopendir-tests (Files): Likewise.
40191         * modules/fdutimensat-tests (Files): Likewise.
40192         * modules/fflush-tests (Files): Likewise.
40193         * modules/filevercmp-tests (Files): Likewise.
40194         * modules/flock-tests (Files): Likewise.
40195         * modules/floorf-tests (Files): Likewise.
40196         * modules/floorl-tests (Files): Likewise.
40197         * modules/fnmatch-tests (Files): Likewise.
40198         * modules/fopen-safer-tests (Files): Likewise.
40199         * modules/fopen-tests (Files): Likewise.
40200         * modules/fpending-tests (Files): Likewise.
40201         * modules/fprintf-posix-tests (Files): Likewise.
40202         * modules/fpurge-tests (Files): Likewise.
40203         * modules/freadable-tests (Files): Likewise.
40204         * modules/freadahead-tests (Files): Likewise.
40205         * modules/freading-tests (Files): Likewise.
40206         * modules/freadptr-tests (Files): Likewise.
40207         * modules/freadseek-tests (Files): Likewise.
40208         * modules/freopen-tests (Files): Likewise.
40209         * modules/frexp-nolibm-tests (Files): Likewise.
40210         * modules/frexp-tests (Files): Likewise.
40211         * modules/frexpl-nolibm-tests (Files): Likewise.
40212         * modules/frexpl-tests (Files): Likewise.
40213         * modules/fseek-tests (Files): Likewise.
40214         * modules/fseeko-tests (Files): Likewise.
40215         * modules/fstrcmp-tests (Files): Likewise.
40216         * modules/fsync-tests (Files): Likewise.
40217         * modules/ftell-tests (Files): Likewise.
40218         * modules/ftello-tests (Files): Likewise.
40219         * modules/func-tests (Files): Likewise.
40220         * modules/futimens-tests (Files): Likewise.
40221         * modules/fwritable-tests (Files): Likewise.
40222         * modules/fwriting-tests (Files): Likewise.
40223         * modules/getcwd-tests (Files): Likewise.
40224         * modules/getdate-tests (Files): Likewise.
40225         * modules/getdelim-tests (Files): Likewise.
40226         * modules/getdtablesize-tests (Files): Likewise.
40227         * modules/getgroups-tests (Files): Likewise.
40228         * modules/getline-tests (Files): Likewise.
40229         * modules/getndelim2-tests (Files): Likewise.
40230         * modules/glob-tests (Files): Likewise.
40231         * modules/hash-tests (Files): Likewise.
40232         * modules/i-ring-tests (Files): Likewise.
40233         * modules/iconv-tests (Files): Likewise.
40234         * modules/iconv_open-utf-tests (Files): Likewise.
40235         * modules/idpriv-drop-tests (Files): Likewise.
40236         * modules/idpriv-droptemp-tests (Files): Likewise.
40237         * modules/inet_ntop-tests (Files): Likewise.
40238         * modules/inet_pton-tests (Files): Likewise.
40239         * modules/isblank-tests (Files): Likewise.
40240         * modules/isfinite-tests (Files): Likewise.
40241         * modules/isinf-tests (Files): Likewise.
40242         * modules/isnan-tests (Files): Likewise.
40243         * modules/isnand-nolibm-tests (Files): Likewise.
40244         * modules/isnand-tests (Files): Likewise.
40245         * modules/isnanf-nolibm-tests (Files): Likewise.
40246         * modules/isnanf-tests (Files): Likewise.
40247         * modules/isnanl-nolibm-tests (Files): Likewise.
40248         * modules/isnanl-tests (Files): Likewise.
40249         * modules/lchown-tests (Files): Likewise.
40250         * modules/ldexpl-tests (Files): Likewise.
40251         * modules/link-tests (Files): Likewise.
40252         * modules/linkat-tests (Files): Likewise.
40253         * modules/linked-list-tests (Files): Likewise.
40254         * modules/linkedhash-list-tests (Files): Likewise.
40255         * modules/localename-tests (Files): Likewise.
40256         * modules/lseek-tests (Files): Likewise.
40257         * modules/lstat-tests (Files): Likewise.
40258         * modules/mbmemcasecmp-tests (Files): Likewise.
40259         * modules/mbmemcasecoll-tests (Files): Likewise.
40260         * modules/mbrtowc-tests (Files): Likewise.
40261         * modules/mbscasecmp-tests (Files): Likewise.
40262         * modules/mbscasestr-tests (Files): Likewise.
40263         * modules/mbschr-tests (Files): Likewise.
40264         * modules/mbscspn-tests (Files): Likewise.
40265         * modules/mbsinit-tests (Files): Likewise.
40266         * modules/mbsncasecmp-tests (Files): Likewise.
40267         * modules/mbsnrtowcs-tests (Files): Likewise.
40268         * modules/mbspbrk-tests (Files): Likewise.
40269         * modules/mbspcasecmp-tests (Files): Likewise.
40270         * modules/mbsrchr-tests (Files): Likewise.
40271         * modules/mbsrtowcs-tests (Files): Likewise.
40272         * modules/mbsspn-tests (Files): Likewise.
40273         * modules/mbsstr-tests (Files): Likewise.
40274         * modules/memchr-tests (Files): Likewise.
40275         * modules/memchr2-tests (Files): Likewise.
40276         * modules/memcmp-tests (Files): Likewise.
40277         * modules/memmem-tests (Files): Likewise.
40278         * modules/memrchr-tests (Files): Likewise.
40279         * modules/mkdir-tests (Files): Likewise.
40280         * modules/mkfifo-tests (Files): Likewise.
40281         * modules/mkfifoat-tests (Files): Likewise.
40282         * modules/mknod-tests (Files): Likewise.
40283         * modules/nanosleep-tests (Files): Likewise.
40284         * modules/nl_langinfo-tests (Files): Likewise.
40285         * modules/obstack-printf-tests (Files): Likewise.
40286         * modules/open-tests (Files): Likewise.
40287         * modules/openat-tests (Files): Likewise.
40288         * modules/pipe-filter-gi-tests (Files): Likewise.
40289         * modules/pipe-filter-ii-tests (Files): Likewise.
40290         * modules/pipe2-tests (Files): Likewise.
40291         * modules/popen-safer-tests (Files): Likewise.
40292         * modules/popen-tests (Files): Likewise.
40293         * modules/posixtm-tests (Files): Likewise.
40294         * modules/pread-tests (Files): Likewise.
40295         * modules/printf-frexp-tests (Files): Likewise.
40296         * modules/printf-frexpl-tests (Files): Likewise.
40297         * modules/printf-posix-tests (Files): Likewise.
40298         * modules/priv-set-tests (Files): Likewise.
40299         * modules/quotearg-tests (Files): Likewise.
40300         * modules/random_r-tests (Files): Likewise.
40301         * modules/rawmemchr-tests (Files): Likewise.
40302         * modules/rbtree-list-tests (Files): Likewise.
40303         * modules/rbtree-oset-tests (Files): Likewise.
40304         * modules/rbtreehash-list-tests (Files): Likewise.
40305         * modules/readlink-tests (Files): Likewise.
40306         * modules/remove-tests (Files): Likewise.
40307         * modules/rename-tests (Files): Likewise.
40308         * modules/renameat-tests (Files): Likewise.
40309         * modules/rmdir-tests (Files): Likewise.
40310         * modules/round-tests (Files): Likewise.
40311         * modules/roundf-tests (Files): Likewise.
40312         * modules/roundl-tests (Files): Likewise.
40313         * modules/safe-alloc-tests (Files): Likewise.
40314         * modules/setenv-tests (Files): Likewise.
40315         * modules/sigaction-tests (Files): Likewise.
40316         * modules/signbit-tests (Files): Likewise.
40317         * modules/sleep-tests (Files): Likewise.
40318         * modules/snprintf-posix-tests (Files): Likewise.
40319         * modules/snprintf-tests (Files): Likewise.
40320         * modules/sprintf-posix-tests (Files): Likewise.
40321         * modules/stat-tests (Files): Likewise.
40322         * modules/stat-time-tests (Files): Likewise.
40323         * modules/strcasestr-tests (Files): Likewise.
40324         * modules/strchrnul-tests (Files): Likewise.
40325         * modules/strerror-tests (Files): Likewise.
40326         * modules/striconv-tests (Files): Likewise.
40327         * modules/striconveh-tests (Files): Likewise.
40328         * modules/striconveha-tests (Files): Likewise.
40329         * modules/strsignal-tests (Files): Likewise.
40330         * modules/strstr-tests (Files): Likewise.
40331         * modules/strtod-tests (Files): Likewise.
40332         * modules/strverscmp-tests (Files): Likewise.
40333         * modules/symlink-tests (Files): Likewise.
40334         * modules/symlinkat-tests (Files): Likewise.
40335         * modules/trunc-tests (Files): Likewise.
40336         * modules/truncf-tests (Files): Likewise.
40337         * modules/truncl-tests (Files): Likewise.
40338         * modules/uname-tests (Files): Likewise.
40339         * modules/unicase/cased-tests (Files): Likewise.
40340         * modules/unicase/ignorable-tests (Files): Likewise.
40341         * modules/unicase/locale-language-tests (Files): Likewise.
40342         * modules/unicase/tolower-tests (Files): Likewise.
40343         * modules/unicase/totitle-tests (Files): Likewise.
40344         * modules/unicase/toupper-tests (Files): Likewise.
40345         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40346         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40347         * modules/unicase/u8-casefold-tests (Files): Likewise.
40348         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40349         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40350         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40351         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40352         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40353         * modules/unicase/u8-tolower-tests (Files): Likewise.
40354         * modules/unicase/u8-totitle-tests (Files): Likewise.
40355         * modules/unicase/u8-toupper-tests (Files): Likewise.
40356         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40357         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40358         * modules/unicase/u16-casefold-tests (Files): Likewise.
40359         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40360         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40361         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40362         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40363         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40364         * modules/unicase/u16-tolower-tests (Files): Likewise.
40365         * modules/unicase/u16-totitle-tests (Files): Likewise.
40366         * modules/unicase/u16-toupper-tests (Files): Likewise.
40367         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40368         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40369         * modules/unicase/u32-casefold-tests (Files): Likewise.
40370         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40371         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40372         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40373         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40374         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40375         * modules/unicase/u32-tolower-tests (Files): Likewise.
40376         * modules/unicase/u32-totitle-tests (Files): Likewise.
40377         * modules/unicase/u32-toupper-tests (Files): Likewise.
40378         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40379         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40380         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40381         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40382         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40383         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40384         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40385         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40386         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40387         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40388         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40389         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40390         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40391         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40392         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40393         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40394         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40395         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40396         * modules/unictype/block-list-tests (Files): Likewise.
40397         * modules/unictype/block-of-tests (Files): Likewise.
40398         * modules/unictype/block-test-tests (Files): Likewise.
40399         * modules/unictype/category-C-tests (Files): Likewise.
40400         * modules/unictype/category-Cc-tests (Files): Likewise.
40401         * modules/unictype/category-Cf-tests (Files): Likewise.
40402         * modules/unictype/category-Cn-tests (Files): Likewise.
40403         * modules/unictype/category-Co-tests (Files): Likewise.
40404         * modules/unictype/category-Cs-tests (Files): Likewise.
40405         * modules/unictype/category-L-tests (Files): Likewise.
40406         * modules/unictype/category-Ll-tests (Files): Likewise.
40407         * modules/unictype/category-Lm-tests (Files): Likewise.
40408         * modules/unictype/category-Lo-tests (Files): Likewise.
40409         * modules/unictype/category-Lt-tests (Files): Likewise.
40410         * modules/unictype/category-Lu-tests (Files): Likewise.
40411         * modules/unictype/category-M-tests (Files): Likewise.
40412         * modules/unictype/category-Mc-tests (Files): Likewise.
40413         * modules/unictype/category-Me-tests (Files): Likewise.
40414         * modules/unictype/category-Mn-tests (Files): Likewise.
40415         * modules/unictype/category-N-tests (Files): Likewise.
40416         * modules/unictype/category-Nd-tests (Files): Likewise.
40417         * modules/unictype/category-Nl-tests (Files): Likewise.
40418         * modules/unictype/category-No-tests (Files): Likewise.
40419         * modules/unictype/category-P-tests (Files): Likewise.
40420         * modules/unictype/category-Pc-tests (Files): Likewise.
40421         * modules/unictype/category-Pd-tests (Files): Likewise.
40422         * modules/unictype/category-Pe-tests (Files): Likewise.
40423         * modules/unictype/category-Pf-tests (Files): Likewise.
40424         * modules/unictype/category-Pi-tests (Files): Likewise.
40425         * modules/unictype/category-Po-tests (Files): Likewise.
40426         * modules/unictype/category-Ps-tests (Files): Likewise.
40427         * modules/unictype/category-S-tests (Files): Likewise.
40428         * modules/unictype/category-Sc-tests (Files): Likewise.
40429         * modules/unictype/category-Sk-tests (Files): Likewise.
40430         * modules/unictype/category-Sm-tests (Files): Likewise.
40431         * modules/unictype/category-So-tests (Files): Likewise.
40432         * modules/unictype/category-Z-tests (Files): Likewise.
40433         * modules/unictype/category-Zl-tests (Files): Likewise.
40434         * modules/unictype/category-Zp-tests (Files): Likewise.
40435         * modules/unictype/category-Zs-tests (Files): Likewise.
40436         * modules/unictype/category-and-not-tests (Files): Likewise.
40437         * modules/unictype/category-and-tests (Files): Likewise.
40438         * modules/unictype/category-byname-tests (Files): Likewise.
40439         * modules/unictype/category-name-tests (Files): Likewise.
40440         * modules/unictype/category-none-tests (Files): Likewise.
40441         * modules/unictype/category-of-tests (Files): Likewise.
40442         * modules/unictype/category-or-tests (Files): Likewise.
40443         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40444         * modules/unictype/combining-class-tests (Files): Likewise.
40445         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40446         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40447         * modules/unictype/ctype-blank-tests (Files): Likewise.
40448         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40449         * modules/unictype/ctype-digit-tests (Files): Likewise.
40450         * modules/unictype/ctype-graph-tests (Files): Likewise.
40451         * modules/unictype/ctype-lower-tests (Files): Likewise.
40452         * modules/unictype/ctype-print-tests (Files): Likewise.
40453         * modules/unictype/ctype-punct-tests (Files): Likewise.
40454         * modules/unictype/ctype-space-tests (Files): Likewise.
40455         * modules/unictype/ctype-upper-tests (Files): Likewise.
40456         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40457         * modules/unictype/decimal-digit-tests (Files): Likewise.
40458         * modules/unictype/digit-tests (Files): Likewise.
40459         * modules/unictype/mirror-tests (Files): Likewise.
40460         * modules/unictype/numeric-tests (Files): Likewise.
40461         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40462         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40463         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40464         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40465         Likewise.
40466         * modules/unictype/property-bidi-block-separator-tests (Files):
40467         Likewise.
40468         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40469         Likewise.
40470         * modules/unictype/property-bidi-common-separator-tests (Files):
40471         Likewise.
40472         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40473         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40474         Likewise.
40475         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40476         Likewise.
40477         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40478         Likewise.
40479         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40480         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40481         Likewise.
40482         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40483         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40484         Likewise.
40485         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40486         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40487         * modules/unictype/property-bidi-segment-separator-tests (Files):
40488         Likewise.
40489         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40490         * modules/unictype/property-byname-tests (Files): Likewise.
40491         * modules/unictype/property-combining-tests (Files): Likewise.
40492         * modules/unictype/property-composite-tests (Files): Likewise.
40493         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40494         * modules/unictype/property-dash-tests (Files): Likewise.
40495         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40496         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40497         Likewise.
40498         * modules/unictype/property-deprecated-tests (Files): Likewise.
40499         * modules/unictype/property-diacritic-tests (Files): Likewise.
40500         * modules/unictype/property-extender-tests (Files): Likewise.
40501         * modules/unictype/property-format-control-tests (Files): Likewise.
40502         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40503         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40504         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40505         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40506         * modules/unictype/property-hyphen-tests (Files): Likewise.
40507         * modules/unictype/property-id-continue-tests (Files): Likewise.
40508         * modules/unictype/property-id-start-tests (Files): Likewise.
40509         * modules/unictype/property-ideographic-tests (Files): Likewise.
40510         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40511         * modules/unictype/property-ids-trinary-operator-tests (Files):
40512         Likewise.
40513         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40514         * modules/unictype/property-iso-control-tests (Files): Likewise.
40515         * modules/unictype/property-join-control-tests (Files): Likewise.
40516         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40517         * modules/unictype/property-line-separator-tests (Files): Likewise.
40518         * modules/unictype/property-logical-order-exception-tests (Files):
40519         Likewise.
40520         * modules/unictype/property-lowercase-tests (Files): Likewise.
40521         * modules/unictype/property-math-tests (Files): Likewise.
40522         * modules/unictype/property-non-break-tests (Files): Likewise.
40523         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40524         * modules/unictype/property-numeric-tests (Files): Likewise.
40525         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40526         * modules/unictype/property-other-default-ignorable-code-point-tests
40527         (Files): Likewise.
40528         * modules/unictype/property-other-grapheme-extend-tests (Files):
40529         Likewise.
40530         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40531         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40532         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40533         * modules/unictype/property-other-math-tests (Files): Likewise.
40534         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40535         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40536         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40537         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40538         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40539         * modules/unictype/property-private-use-tests (Files): Likewise.
40540         * modules/unictype/property-punctuation-tests (Files): Likewise.
40541         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40542         * modules/unictype/property-radical-tests (Files): Likewise.
40543         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40544         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40545         * modules/unictype/property-space-tests (Files): Likewise.
40546         * modules/unictype/property-terminal-punctuation-tests (Files):
40547         Likewise.
40548         * modules/unictype/property-test-tests (Files): Likewise.
40549         * modules/unictype/property-titlecase-tests (Files): Likewise.
40550         * modules/unictype/property-unassigned-code-value-tests (Files):
40551         Likewise.
40552         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40553         * modules/unictype/property-uppercase-tests (Files): Likewise.
40554         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40555         * modules/unictype/property-white-space-tests (Files): Likewise.
40556         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40557         * modules/unictype/property-xid-start-tests (Files): Likewise.
40558         * modules/unictype/property-zero-width-tests (Files): Likewise.
40559         * modules/unictype/scripts-tests (Files): Likewise.
40560         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40561         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40562         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40563         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40564         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40565         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40566         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40567         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40568         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40569         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40570         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40571         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40572         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40573         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40574         * modules/uninorm/composition-tests (Files): Likewise.
40575         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40576         * modules/uninorm/decomposition-tests (Files): Likewise.
40577         * modules/uninorm/filter-tests (Files): Likewise.
40578         * modules/uninorm/nfc-tests (Files): Likewise.
40579         * modules/uninorm/nfd-tests (Files): Likewise.
40580         * modules/uninorm/nfkc-tests (Files): Likewise.
40581         * modules/uninorm/nfkd-tests (Files): Likewise.
40582         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40583         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40584         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40585         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40586         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40587         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40588         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40589         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40590         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40591         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40592         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40593         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40594         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40595         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40596         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40597         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40598         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40599         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40600         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40601         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40602         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40603         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40604         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40605         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40606         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40607         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40608         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40609         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40610         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40611         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40612         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40613         * modules/uniwidth/u8-width-tests (Files): Likewise.
40614         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40615         * modules/uniwidth/u16-width-tests (Files): Likewise.
40616         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40617         * modules/uniwidth/u32-width-tests (Files): Likewise.
40618         * modules/uniwidth/width-tests (Files): Likewise.
40619         * modules/unlink-tests (Files): Likewise.
40620         * modules/unsetenv-tests (Files): Likewise.
40621         * modules/usleep-tests (Files): Likewise.
40622         * modules/utimens-tests (Files): Likewise.
40623         * modules/utimensat-tests (Files): Likewise.
40624         * modules/vasnprintf-posix-tests (Files): Likewise.
40625         * modules/vasnprintf-tests (Files): Likewise.
40626         * modules/vasprintf-posix-tests (Files): Likewise.
40627         * modules/vasprintf-tests (Files): Likewise.
40628         * modules/vdprintf-posix-tests (Files): Likewise.
40629         * modules/vfprintf-posix-tests (Files): Likewise.
40630         * modules/vprintf-posix-tests (Files): Likewise.
40631         * modules/vsnprintf-posix-tests (Files): Likewise.
40632         * modules/vsnprintf-tests (Files): Likewise.
40633         * modules/vsprintf-posix-tests (Files): Likewise.
40634         * modules/wcrtomb-tests (Files): Likewise.
40635         * modules/wcsnrtombs-tests (Files): Likewise.
40636         * modules/wcsrtombs-tests (Files): Likewise.
40637         * modules/wctype-tests (Files): Likewise.
40638         * modules/wcwidth-tests (Files): Likewise.
40639         * modules/xmemdup0-tests (Files): Likewise.
40640         * modules/xprintf-posix-tests (Files): Likewise.
40641         * modules/xvasprintf-tests (Files): Likewise.
40642
40643 2009-12-24  Eric Blake  <ebb9@byu.net>
40644
40645         test-nanosleep: fix typo
40646         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40647         patch.
40648         Reported by Bruno Haible.
40649
40650 2009-12-24  Bruno Haible  <bruno@clisp.org>
40651
40652         Reduce namespace pollution on glibc systems.
40653         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40654         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40655         systems.
40656         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40657         <getopt.h> on glibc systems.
40658         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40659         systems.
40660         * lib/fcntl.c: Include <unistd.h> here instead.
40661
40662 2009-12-24  Bruno Haible  <bruno@clisp.org>
40663
40664         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40665
40666 2009-12-24  Eric Blake  <ebb9@byu.net>
40667
40668         tests: add signature checks
40669         * tests/signature.h (SIGNATURE_CHECK): New file.
40670         * modules/atexit-tests (Files): Use it.
40671         * modules/btowc-tests (Files): Likewise.
40672         * modules/canonicalize-lgpl-tests (Files): Likewise.
40673         * modules/ceilf-tests (Files): Likewise.
40674         * modules/ceill-tests (Files): Likewise.
40675         * modules/chown-tests (Files): Likewise.
40676         * modules/dprintf-posix-tests (Files): Likewise.
40677         * modules/dup2-tests (Files): Likewise.
40678         * modules/dup3-tests (Files): Likewise.
40679         * modules/duplocale-tests (Files): Likewise.
40680         * modules/fchdir-tests (Files): Likewise.
40681         * modules/fcntl-tests (Files): Likewise.
40682         * modules/fdopendir-tests (Files): Likewise.
40683         * modules/fflush-tests (Files): Likewise.
40684         * modules/flock-tests (Files): Likewise.
40685         * modules/floorf-tests (Files): Likewise.
40686         * modules/floorl-tests (Files): Likewise.
40687         * modules/fnmatch-tests (Files): Likewise.
40688         * modules/fopen-tests (Files): Likewise.
40689         * modules/fprintf-posix-tests (Files): Likewise.
40690         * modules/freopen-tests (Files): Likewise.
40691         * modules/frexp-nolibm-tests (Files): Likewise.
40692         * modules/frexp-tests (Files): Likewise.
40693         * modules/frexpl-nolibm-tests (Files): Likewise.
40694         * modules/frexpl-tests (Files): Likewise.
40695         * modules/fseek-tests (Files): Likewise.
40696         * modules/fseeko-tests (Files): Likewise.
40697         * modules/fsync-tests (Files): Likewise.
40698         * modules/ftell-tests (Files): Likewise.
40699         * modules/ftello-tests (Files): Likewise.
40700         * modules/futimens-tests (Files): Likewise.
40701         * modules/getaddrinfo-tests (Files): Likewise.
40702         * modules/getcwd-tests (Files): Likewise.
40703         * modules/getdelim-tests (Files): Likewise.
40704         * modules/getdtablesize-tests (Files): Likewise.
40705         * modules/getgroups-tests (Files): Likewise.
40706         * modules/gethostname-tests (Files): Likewise.
40707         * modules/getline-tests (Files): Likewise.
40708         * modules/getopt-posix-tests (Files): Likewise.
40709         * modules/gettimeofday-tests (Files): Likewise.
40710         * modules/glob-tests (Files): Likewise.
40711         * modules/iconv-tests (Files): Likewise.
40712         * modules/inet_ntop-tests (Files): Likewise.
40713         * modules/inet_pton-tests (Files): Likewise.
40714         * modules/isblank-tests (Files): Likewise.
40715         * modules/lchown-tests (Files): Likewise.
40716         * modules/ldexpl-tests (Files): Likewise.
40717         * modules/link-tests (Files): Likewise.
40718         * modules/linkat-tests (Files): Likewise.
40719         * modules/lseek-tests (Files): Likewise.
40720         * modules/lstat-tests (Files): Likewise.
40721         * modules/mbrtowc-tests (Files): Likewise.
40722         * modules/mbsinit-tests (Files): Likewise.
40723         * modules/mbsnrtowcs-tests (Files): Likewise.
40724         * modules/mbsrtowcs-tests (Files): Likewise.
40725         * modules/memchr-tests (Files): Likewise.
40726         * modules/memcmp-tests (Files): Likewise.
40727         * modules/memmem-tests (Files): Likewise.
40728         * modules/memrchr-tests (Files): Likewise.
40729         * modules/mkdir-tests (Files): Likewise.
40730         * modules/mkfifo-tests (Files): Likewise.
40731         * modules/mkfifoat-tests (Files): Likewise.
40732         * modules/mknod-tests (Files): Likewise.
40733         * modules/nanosleep-tests (Files): Likewise.
40734         * modules/nl_langinfo-tests (Files): Likewise.
40735         * modules/obstack-printf-tests (Files): Likewise.
40736         * modules/open-tests (Files): Likewise.
40737         * modules/openat-tests (Files): Likewise.
40738         * modules/perror-tests (Files): Likewise.
40739         * modules/pipe2-tests (Files): Likewise.
40740         * modules/poll-tests (Files): Likewise.
40741         * modules/popen-tests (Files): Likewise.
40742         * modules/posix_spawn-tests (Files): Likewise.
40743         * modules/posix_spawnp-tests (Files): Likewise.
40744         * modules/pread-tests (Files): Likewise.
40745         * modules/printf-posix-tests (Files): Likewise.
40746         * modules/pty-tests (Files): Likewise.
40747         * modules/random_r-tests (Files): Likewise.
40748         * modules/rawmemchr-tests (Files): Likewise.
40749         * modules/readlink-tests (Files): Likewise.
40750         * modules/remove-tests (Files): Likewise.
40751         * modules/rename-tests (Files): Likewise.
40752         * modules/renameat-tests (Files): Likewise.
40753         * modules/rmdir-tests (Files): Likewise.
40754         * modules/round-tests (Files): Likewise.
40755         * modules/roundf-tests (Files): Likewise.
40756         * modules/roundl-tests (Files): Likewise.
40757         * modules/select-tests (Files): Likewise.
40758         * modules/setenv-tests (Files): Likewise.
40759         * modules/sigaction-tests (Files): Likewise.
40760         * modules/sleep-tests (Files): Likewise.
40761         * modules/snprintf-posix-tests (Files): Likewise.
40762         * modules/snprintf-tests (Files): Likewise.
40763         * modules/sprintf-posix-tests (Files): Likewise.
40764         * modules/stat-tests (Files): Likewise.
40765         * modules/strcasestr-tests (Files): Likewise.
40766         * modules/strchrnul-tests (Files): Likewise.
40767         * modules/strerror-tests (Files): Likewise.
40768         * modules/strsignal-tests (Files): Likewise.
40769         * modules/strstr-tests (Files): Likewise.
40770         * modules/strtod-tests (Files): Likewise.
40771         * modules/strverscmp-tests (Files): Likewise.
40772         * modules/symlink-tests (Files): Likewise.
40773         * modules/symlinkat-tests (Files): Likewise.
40774         * modules/times-tests (Files): Likewise.
40775         * modules/trunc-tests (Files): Likewise.
40776         * modules/truncf-tests (Files): Likewise.
40777         * modules/truncl-tests (Files): Likewise.
40778         * modules/tsearch-tests (Files): Likewise.
40779         * modules/uname-tests (Files): Likewise.
40780         * modules/unlink-tests (Files): Likewise.
40781         * modules/unsetenv-tests (Files): Likewise.
40782         * modules/usleep-tests (Files): Likewise.
40783         * modules/utimensat-tests (Files): Likewise.
40784         * modules/vasprintf-tests (Files): Likewise.
40785         * modules/vdprintf-posix-tests (Files): Likewise.
40786         * modules/vfprintf-posix-tests (Files): Likewise.
40787         * modules/vprintf-posix-tests (Files): Likewise.
40788         * modules/vsnprintf-posix-tests (Files): Likewise.
40789         * modules/vsnprintf-tests (Files): Likewise.
40790         * modules/vsprintf-posix-tests (Files): Likewise.
40791         * modules/wcrtomb-tests (Files): Likewise.
40792         * modules/wcsnrtombs-tests (Files): Likewise.
40793         * modules/wcsrtombs-tests (Files): Likewise.
40794         * modules/wcwidth-tests (Files): Likewise.
40795         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40796         * tests/test-isinf.c (isinf): Likewise.
40797         * tests/test-isnan.c (isnan): Likewise.
40798         * tests/test-signbit.c (signbit): Likewise.
40799         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40800         declaration, either as macro or with correct signature.
40801         (select): Ensure function under test is declared with correct
40802         signature in correct header.
40803         * tests/test-atexit.c (atexit): Likewise.
40804         * tests/test-btowc.c (btowc): Likewise.
40805         * tests/test-canonicalize-lgpl.c (realpath)
40806         (canonicalize_file_name): Likewise.
40807         * tests/test-ceilf1.c (ceilf): Likewise.
40808         * tests/test-ceill.c (ceill): Likewise.
40809         * tests/test-chown.c (chown): Likewise.
40810         * tests/test-dprintf-posix.c (dprintf): Likewise.
40811         * tests/test-dup2.c (dup2): Likewise.
40812         * tests/test-dup3.c (dup3): Likewise.
40813         * tests/test-duplocale.c (duplocale): Likewise.
40814         * tests/test-fchdir.c (fchdir): Likewise.
40815         * tests/test-fchownat.c (fchownat): Likewise.
40816         * tests/test-fcntl.c (fcntl): Likewise.
40817         * tests/test-fdopendir.c (fdopendir): Likewise.
40818         * tests/test-fflush.c (fflush): Likewise.
40819         * tests/test-flock.c (flock): Likewise.
40820         * tests/test-floorf1.c (floorf): Likewise.
40821         * tests/test-floorl.c (floorl): Likewise.
40822         * tests/test-fnmatch.c (fnmatch): Likewise.
40823         * tests/test-fopen.c (fopen): Likewise.
40824         * tests/test-fprintf-posix.c (fprintf): Likewise.
40825         * tests/test-freopen.c (freopen): Likewise.
40826         * tests/test-frexp.c (frexp): Likewise.
40827         * tests/test-frexpl.c (frexpl): Likewise.
40828         * tests/test-fseek.c (fseek): Likewise.
40829         * tests/test-fseeko.c (fseeko): Likewise.
40830         * tests/test-fstatat.c (fstatat): Likewise.
40831         * tests/test-fsync.c (fsync): Likewise.
40832         * tests/test-ftell.c (ftell): Likewise.
40833         * tests/test-ftello.c (ftello): Likewise.
40834         * tests/test-futimens.c (futimens): Likewise.
40835         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40836         (gai_strerror): Likewise.
40837         * tests/test-getcwd.c (getcwd): Likewise.
40838         * tests/test-getdelim.c (getdelim): Likewise.
40839         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40840         * tests/test-getgroups.c (getgroups): Likewise.
40841         * tests/test-gethostname.c (gethostname): Likewise.
40842         * tests/test-getline.c (getline): Likewise.
40843         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40844         Likewise.
40845         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40846         * tests/test-glob.c (glob, globfree): Likewise.
40847         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40848         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40849         * tests/test-inet_pton.c (inet_pton): Likewise.
40850         * tests/test-isblank.c (isblank): Likewise.
40851         * tests/test-lchown.c (lchown): Likewise.
40852         * tests/test-ldexpl.c (ldexpl): Likewise.
40853         * tests/test-link.c (link): Likewise.
40854         * tests/test-linkat.c (linkat): Likewise.
40855         * tests/test-lseek.c (lseek): Likewise.
40856         * tests/test-lstat.c (lstat): Likewise.
40857         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40858         * tests/test-mbsinit.c (mbsinit): Likewise.
40859         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40860         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40861         * tests/test-memchr.c (memchr): Likewise.
40862         * tests/test-memcmp.c (memcmp): Likewise.
40863         * tests/test-memmem.c (memmem): Likewise.
40864         * tests/test-memrchr.c (memrchr): Likewise.
40865         * tests/test-mkdir.c (mkdir): Likewise.
40866         * tests/test-mkdirat.c (mkdirat): Likewise.
40867         * tests/test-mkfifo.c (mkfifo): Likewise.
40868         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40869         * tests/test-mknod.c (mknod): Likewise.
40870         * tests/test-nanosleep.c (nanosleep): Likewise.
40871         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40872         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40873         Likewise.
40874         * tests/test-open.c (open): Likewise.
40875         * tests/test-openat.c (openat): Likewise.
40876         * tests/test-perror.c (perror): Likewise.
40877         * tests/test-pipe2.c (pipe2): Likewise.
40878         * tests/test-poll.c (poll): Likewise.
40879         * tests/test-popen.c (popen, pclose): Likewise.
40880         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40881         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40882         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40883         (posix_spawn_file_actions_destroy)
40884         (posix_spawn_file_actions_addclose)
40885         (posix_spawn_file_actions_addopen)
40886         (posix_spawn_file_actions_adddup2): Likewise.
40887         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40888         * tests/test-pread.c (pread): Likewise.
40889         * tests/test-printf-posix.c (printf): Likewise.
40890         * tests/test-pty.c (openpty, forkpty): Likewise.
40891         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40892         (random_r): Likewise.
40893         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40894         * tests/test-readlink.c (readlink): Likewise.
40895         * tests/test-remove.c (remove): Likewise.
40896         * tests/test-rename.c (rename): Likewise.
40897         * tests/test-renameat.c (renameat): Likewise.
40898         * tests/test-rmdir.c (rmdir): Likewise.
40899         * tests/test-round1.c (round): Likewise.
40900         * tests/test-roundf1.c (roundf): Likewise.
40901         * tests/test-roundl.c (roundl): Likewise.
40902         * tests/test-setenv.c (setenv): Likewise.
40903         * tests/test-sigaction.c (sigaction): Likewise.
40904         * tests/test-sleep.c (sleep): Likewise.
40905         * tests/test-snprintf.c (snprintf): Likewise.
40906         * tests/test-sprintf-posix.c (sprintf): Likewise.
40907         * tests/test-stat.c (stat): Likewise.
40908         * tests/test-stpncpy.c (stpncpy): Likewise.
40909         * tests/test-strcasestr.c (strcasestr): Likewise.
40910         * tests/test-strchrnul.c (strchrnul): Likewise.
40911         * tests/test-strerror.c (strerror): Likewise.
40912         * tests/test-strsignal.c (strsignal): Likewise.
40913         * tests/test-strstr.c (strstr): Likewise.
40914         * tests/test-strtod.c (strtod): Likewise.
40915         * tests/test-strverscmp.c (strverscmp): Likewise.
40916         * tests/test-symlink.c (symlink): Likewise.
40917         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40918         * tests/test-times.c (times): Likewise.
40919         * tests/test-trunc1.c (trunc): Likewise.
40920         * tests/test-truncf1.c (truncf): Likewise.
40921         * tests/test-truncl.c (truncl): Likewise.
40922         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40923         Likewise.
40924         * tests/test-uname.c (uname): Likewise.
40925         * tests/test-unlink.c (unlink): Likewise.
40926         * tests/test-unlinkat.c (unlinkat): Likewise.
40927         * tests/test-unsetenv.c (unsetenv): Likewise.
40928         * tests/test-usleep.c (usleep): Likewise.
40929         * tests/test-utimensat.c (utimensat): Likewise.
40930         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40931         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40932         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40933         * tests/test-vprintf-posix.c (vprintf): Likewise.
40934         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40935         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40936         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40937         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40938         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40939         * tests/test-wcwidth.c (wcwidth): Likewise.
40940
40941         build: pull in conditional headers during GNULIB_POSIXCHECK
40942         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40943         definitions from any conditionally-included headers.
40944         * lib/stdlib.in.h (includes): Likewise.
40945         * lib/unistd.in.h (includes): Likewise.
40946
40947 2009-12-24  Bruno Haible  <bruno@clisp.org>
40948
40949         * tests/test-argv-iter.c: Include header file being tested immediately
40950         after config.h.
40951         * tests/test-base64.c: Likewise.
40952         * tests/test-flock.c: Likewise.
40953         * tests/test-fsync.c: Likewise.
40954         * tests/test-getdate.c: Likewise.
40955         * tests/test-getndelim2.c: Likewise.
40956         * tests/test-isfinite.c: Likewise.
40957         * tests/test-isinf.c: Likewise.
40958         * tests/test-strerror.c: Likewise.
40959         * tests/test-strsignal.c: Likewise.
40960
40961 2009-12-23  Eric Blake  <ebb9@byu.net>
40962
40963         unistd: work around cygwin bug
40964         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40965         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40966         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40967
40968 2009-12-23  Bruno Haible  <bruno@clisp.org>
40969
40970         localename: More tests.
40971         * tests/test-localename.c (SIZEOF): New macro.
40972         (categories): New variable.
40973         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40974         test_locale_name_default): Add test w.r.t. thread locale.
40975         (test_locale_name_thread): New function.
40976         (main): Invoke it.
40977
40978         localename: Make aware of thread locale.
40979         * lib/localename.h (gl_locale_name_thread): New declaration.
40980         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40981         behaviour with respect to thread locale.
40982         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40983         <langinfo.h>, glthread/lock.h.
40984         (SIZE_BITS): New macro.
40985         (string_hash): New function.
40986         (struct hash_node): New type.
40987         (HASH_TABLE_SIZE): New macro.
40988         (struniq_hash_table, struniq_lock): New variables.
40989         (struniq): New function.
40990         (gl_locale_name_thread): New function.
40991         (gl_locale_name): Invoke it.
40992         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40993         * modules/localename (Depends-on): Add lock.
40994         Reported by Mike Gran <spk121@yahoo.com>.
40995
40996 2009-12-23  Eric Blake  <ebb9@byu.net>
40997
40998         va-args: new module
40999         * modules/va-args: New file.
41000         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41001         * MODULES.html.sh (Core language properties): Mention it.
41002
41003         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41004         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41005         named alias for __attribute__((__unused__)).
41006         * lib/chown.c: Update client.
41007         * lib/fchmodat.c: Likewise.
41008         * lib/fts.c: Likewise.
41009         * lib/getdate.y: Likewise.
41010         * lib/getgroups.c: Likewise.
41011         * lib/getopt.c: Likewise.
41012         * lib/getugroups.c: Likewise.
41013         * lib/mkdir.c: Likewise.
41014         * lib/mkfifo.c: Likewise.
41015         * lib/mkfifoat.c: Likewise.
41016         * lib/mknod.c: Likewise.
41017         * lib/mknodat.c: Likewise.
41018         * lib/readlink.c: Likewise.
41019         * lib/se-context.in.h: Likewise.
41020         * lib/se-selinux.in.h: Likewise.
41021         * lib/sockets.c: Likewise.
41022         * lib/symlink.c: Likewise.
41023         * lib/symlinkat.c: Likewise.
41024         * lib/unicodeio.c: Likewise.
41025         * lib/unistr.h: Likewise.
41026         * tests/test-areadlink.c: Likewise.
41027         * tests/test-areadlinkat.c: Likewise.
41028         * tests/test-filenamecat.c: Likewise.
41029         * tests/test-fseeko.c: Likewise.
41030         * tests/test-ftello.c: Likewise.
41031         * tests/test-getdate.c: Likewise.
41032         * tests/test-getgroups.c: Likewise.
41033         * tests/test-gethostname.c: Likewise.
41034         * tests/test-quotearg.c: Likewise.
41035         * tests/test-version-etc.c: Likewise.
41036         * tests/test-xalloc-die.c: Likewise.
41037         * tests/test-xfprintf-posix.c: Likewise.
41038         * tests/test-xprintf-posix.c: Likewise.
41039         * tests/test-xvasprintf.c: Likewise.
41040
41041         tests: avoid compiler warnings
41042         * tests/test-fcntl.c (main): Delete unused parameters.
41043         * tests/test-freopen-safer.c (main): Likewise.
41044         * tests/test-xalloc-die.c (main): Mark unused parameters.
41045         * tests/test-fseeko.c (main): Likewise.
41046         * tests/test-ftello.c (main): Likewise.
41047         * tests/test-nanosleep.c (main): Avoid declaration warning.
41048         * tests/test-sleep.c (main): Likewise.
41049         * tests/test-unsetenv.c (main): Silence warning about string
41050         literal.
41051         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41052
41053 2009-12-23  Bruno Haible  <bruno@clisp.org>
41054
41055         * tests/test-localename.c (test_locale_name): New function, extracted
41056         from main. Also test mixed situations.
41057         (test_locale_name_posix, test_locale_name_environ,
41058         test_locale_name_default): New functions.
41059         (main): Invoke them all.
41060         * modules/localename-tests (configure.ac): Test for newlocale.
41061
41062 2009-12-23  Bruno Haible  <bruno@clisp.org>
41063
41064         unistd: Ensure getcwd gets declared before being overridden.
41065         * lib/unistd.in.h: Conditionally include <io.h>.
41066
41067 2009-12-22  Bruno Haible  <bruno@clisp.org>
41068
41069         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41070         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41071         (gl_WCHAR_H): Invoke it.
41072         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41073         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41074         Reported by Karl Berry <karl@freefriends.org>.
41075
41076 2009-12-22  Eric Blake  <ebb9@byu.net>
41077
41078         math, unistd: avoid redundant includes
41079         * lib/math.in.h (isnan): No need to re-include <math.h>.
41080         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41081
41082         getsubopt: work around cygwin bug
41083         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41084         avoid conflicting with system getsubopt.
41085         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41086         bug.
41087
41088         getopt: synchronize from glibc
41089         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41090         parameter order.  Adjust all callers.
41091         (_getopt_internal_r, main): Adjust quoting in error messages.
41092         Drop considerations for outdated POSIX 1003.2 error message.
41093         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41094         callers.
41095         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41096
41097         test-getopt: test stderr behavior
41098         * modules/getopt-posix-tests (Depends-on): Add dup2.
41099         * tests/test-getopt.c (ASSERT): Avoid stderr.
41100         (main): Move stderr to a temporary file.
41101         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41102         Instead, add parameter to inform caller if output occurred.
41103         (test_getopt): Adjust all existing tests to expect silence, and
41104         add new tests of leading ":".
41105         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41106         glibc shortcomings with leading "-:" or "+:" in optstring.
41107         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41108         Likewise.
41109         * doc/posix-functions/getopt.texi (getopt): Likewise.
41110
41111         test-getopt: enhance test
41112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41113         supports optind=0.
41114         * tests/test-getopt.c (OPTIND_MIN): Move...
41115         * tests/test-getopt.h (OPTIND_MIN): ...here.
41116         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41117         Require that optind=0 works, since modern BSD supports it in
41118         addition to optreset, and since coreutils expects it.
41119         (test_getopt_long_only): New test.
41120         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41121         glibc shortcomings with 'W;', and enforcement of optind=0.
41122         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41123         Likewise.
41124
41125 2009-12-21  Bruno Haible  <bruno@clisp.org>
41126
41127         localename: Improvements for MacOS X and Cygwin.
41128         * lib/localename.h (gl_locale_name_environ): New declaration.
41129         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41130         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41131         (gl_locale_name_posix): Invoke it.
41132         (gl_locale_name_default): Add comments. Use Windows native API also on
41133         Cygwin.
41134
41135 2009-12-21  Bruno Haible  <bruno@clisp.org>
41136
41137         Update list of Win32 locale ids.
41138         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41139         (LANG_SAMI): Renamed from LANG_SAAMI.
41140         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41141         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41142         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41143         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41144         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41145         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41146         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41147         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41148         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41149         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41150         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41151         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41152         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41153         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41154         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41155         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41156         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41157         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41158         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41159         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41160         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41161         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41162         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41163         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41164         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41165         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41166         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41167         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41168         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41169         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41170         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41171         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41172         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41173         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41174         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41175         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41176         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41177         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41178         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41179         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41180         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41181         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41182         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41183         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41184         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41185         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41186         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41187         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41188         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41189         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41190         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41191         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41192         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41193         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41194         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41195         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41196         Add more languages and countries for Sami, Sorbian. Add more countries
41197         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41198         for Pashto. Change country for Syriac, Tswana.
41199
41200 2009-12-21  Eric Blake  <ebb9@byu.net>
41201
41202         test-utimens: avoid spurious failure
41203         * tests/test-chown.h (nap): Factor...
41204         * tests/nap.h: ...into new file.
41205         * tests/test-lchown.h (nap): Avoid duplication.
41206         * tests/test-utimens-common.h (nap): Use shared implementation,
41207         necessary on file systems with 1-second resolution.
41208         * modules/chown-tests (Files): Include new file.
41209         * modules/fdutimensat-tests (Files): Likewise.
41210         * modules/futimens-tests (Files): Likewise.
41211         * modules/lchown-tests (Files): Likewise.
41212         * modules/openat-tests (Files): Likewise.
41213         * modules/utimens-tests (Files): Likewise.
41214         * modules/utimensat-tests (Files): Likewise.
41215
41216 2009-12-19  Eric Blake  <ebb9@byu.net>
41217
41218         futimens, utimensat: work around Linux bug
41219         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41220         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41221         * lib/utimensat.c (rpl_utimensat): Work around it.
41222         * lib/futimens.c (rpl_futimens): Adjust comment.
41223
41224         utimens: work around Linux ctime bug
41225         * lib/utimens.c (detect_ctime_bug): New helper function.
41226         (update_timespec): Differentiate between workaround needed for
41227         this bug vs. what is needed for systems that lack utimensat.
41228         (fdutimens, lutimens): Work around bug.
41229
41230         utimens: check for ctime update
41231         * tests/test-utimens-common.h (check_ctime): Define.
41232         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41233         * tests/test-futimens.h (test_futimens): Likewise.
41234         * tests/test-lutimens.h (test_lutimens): Likewise.
41235         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41236         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41237
41238 2009-12-19  Bruno Haible  <bruno@clisp.org>
41239
41240         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41241         * tests/test-dprintf-posix2.sh: New file.
41242         * tests/test-dprintf-posix2.c: New file.
41243         * modules/dprintf-posix-tests (Files): Add them.
41244         (configure.ac): Check for getrlimit and setrlimit.
41245         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41246
41247 2009-12-19  Bruno Haible  <bruno@clisp.org>
41248
41249         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41250         * tests/test-fprintf-posix3.sh: New file.
41251         * tests/test-fprintf-posix3.c: New file.
41252         * modules/fprintf-posix-tests (Files): Add them.
41253         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41254
41255 2009-12-19  Eric Blake  <ebb9@byu.net>
41256
41257         dirfd: fix prototype
41258         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41259         * lib/dirfd.c (dirfd): Likewise.
41260
41261         canonicalize: reduce memory usage
41262         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41263         allocation to size.
41264         Reported by Solar Designer <solar@openwall.com>.
41265
41266 2009-12-19  Bruno Haible  <bruno@clisp.org>
41267
41268         New module attribute 'Applicability'.
41269         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41270         * gnulib-tool: New option --extract-applicability.
41271         (func_usage): Document it.
41272         (sed_extract_prog): Recognize it.
41273         (func_get_applicability): New function.
41274         (func_import): Generalize handling of 'link-warning' module.
41275         * modules/link-warning (Applicability): New section.
41276         * modules/arg-nonnull (Applicability): New section.
41277         Repoted by Simon Josefsson <simon@josefsson.org>.
41278
41279 2009-12-19  Bruno Haible  <bruno@clisp.org>
41280
41281         fflush: tweak
41282         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41283         * lib/fseeko.c (rpl_fseeko): Likewise.
41284
41285 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41286
41287         * lib/gl_list.h: Fix typo in comment.
41288
41289 2009-12-16  Eric Blake  <ebb9@byu.net>
41290
41291         fcntl: use to simplify other modules
41292         * modules/cloexec (Depends-on): Add fcntl.
41293         * modules/fchdir (Depends-on): Likewise.
41294         * modules/fd-safer-flag (Depends-on): Likewise.
41295         * modules/unistd-safer (Depends-on): Likewise.
41296         * modules/dup3 (configure.ac): Set module indicator.
41297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41298         missing.
41299         * lib/fchdir.c (_gl_register_dup): Fix comment.
41300         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41301         * lib/dup-safer.c (dup_safer): Likewise.
41302         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41303         * lib/dup3.c (dup3): Likewise.
41304         * tests/test-fchdir.c (main): Enhance test.
41305         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
41306
41307         fcntl: port portions of fcntl to mingw
41308         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41309         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41310         replacement for mingw.
41311         * modules/fcntl (Description): Update.
41312         (Depends-on): Add dup2.
41313         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41314         * modules/fcntl-h (Makefile.am): Substitute it.
41315         * lib/fcntl.in.h (fcntl): Update declaration.
41316         (F_DUPFD, F_GETFD): New macros, when needed.
41317         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41318         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41319         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41320         we now guarantee.
41321
41322         fcntl: work around cygwin bug in F_DUPFD
41323         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41324         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41325         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41326         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41327         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41328
41329         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41330         * modules/fcntl (Files): List new files.
41331         (configure.ac): Run a test.
41332         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41333         * lib/fcntl.c (rpl_fcntl): Likewise.
41334         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41335         (gl_FCNTL_H): Always replace fcntl.h.
41336         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41337         * lib/fcntl.in.h (fcntl): Declare replacement.
41338         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41339         needed, plus a witness.
41340         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41341         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41342         * tests/test-fcntl.c: New file.
41343         * modules/fcntl-tests: Likewise.
41344
41345         binary-io: avoid potential compilation warning
41346         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41347         directives.
41348
41349         fflush: avoid compilation error on NetBSD
41350         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41351         between off_t and fpos_t, since the latter is sometimes a struct.
41352         * lib/fseeko.c (rpl_fseeko): Likewise.
41353         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41354
41355 2009-12-15  Eric Blake  <ebb9@byu.net>
41356
41357         fcntl-h, stdio, sys_ioctl: fix declarations
41358         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41359         function must not take arguments.
41360         * lib/sys_ioctl.in.h (ioctl): Likewise.
41361         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41362         (open): Add a link warning.
41363
41364 2009-12-15  Jim Meyering  <meyering@redhat.com>
41365
41366         areadlink, areadlink-with-size: relax license to LGPLv2+
41367         * modules/areadlink (License): Relax to LGPLv2+.
41368         * modules/areadlink-with-size (License): Likewise.
41369
41370 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41371             Bruno Haible  <bruno@clisp.org>
41372
41373         *printf: Fix memory leak.
41374         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41375         * lib/vfprintf.c (vfprintf): Likewise.
41376         * lib/dprintf.c (dprintf): Likewise.
41377         * lib/vdprintf.c (vdprintf): Likewise.
41378
41379 2009-12-14  Eric Blake  <ebb9@byu.net>
41380
41381         accept4: adjust module dependencies
41382         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41383
41384         utimens: one more try at avoiding compiler warning
41385         * lib/utimens.c (lutimens): Lower scope of result.
41386
41387 2009-12-13  Bruno Haible  <bruno@clisp.org>
41388
41389         Move the malloc checking from module 'list' to new module 'xlist'.
41390         * modules/xlist: New file.
41391         * lib/gl_xlist.h: New file.
41392         * lib/gl_xlist.c: New file.
41393         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41394         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41395         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41396         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41397         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41398         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41399         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41400         gl_sortedlist_nx_add): New declarations.
41401         (struct gl_list_implementation): Rename and change methods accordingly.
41402         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41403         (gl_list_nx_create): Renamed from gl_list_create.
41404         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41405         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41406         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41407         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41408         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41409         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41410         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41411         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41412         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41413         gl_list_create_empty.
41414         (gl_list_nx_create): Renamed from gl_list_create.
41415         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41416         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41417         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41418         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41419         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41420         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41421         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41422         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41423         * lib/gl_array_list.c: Don't include xalloc.h.
41424         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41425         NULL upon out-of-memory.
41426         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41427         out-of-memory.
41428         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41429         Change return type to 'int'.
41430         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41431         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41432         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41433         upon out-of-memory.
41434         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41435         upon out-of-memory.
41436         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41437         upon out-of-memory.
41438         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41439         upon out-of-memory.
41440         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41441         out-of-memory.
41442         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41443         Update.
41444         (gl_array_list_implementation): Update.
41445         * lib/gl_carray_list.c: Don't include xalloc.h.
41446         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41447         Return NULL upon out-of-memory.
41448         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41449         out-of-memory.
41450         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41451         Change return type to 'int'.
41452         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41453         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41454         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41455         upon out-of-memory.
41456         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41457         upon out-of-memory.
41458         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41459         out-of-memory.
41460         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41461         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41462         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41463         Update.
41464         (gl_carray_list_implementation): Update.
41465         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41466         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41467         gl_linked_create_empty. Return NULL upon out-of-memory.
41468         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41469         out-of-memory.
41470         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41471         Change return type to 'int'. Return -1 upon out-of-memory.
41472         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41473         out-of-memory.
41474         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41475         upon out-of-memory.
41476         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41477         upon out-of-memory.
41478         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41479         NULL upon out-of-memory.
41480         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41481         upon out-of-memory.
41482         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41483         out-of-memory.
41484         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41485         Update.
41486         * lib/gl_linked_list.c: Don't include xalloc.h.
41487         (gl_linked_list_implementation): Update.
41488         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41489         (add_to_bucket): Change return type to 'int'.
41490         (gl_linkedhash_list_implementation): Update.
41491         * lib/gl_anytree_list1.h (free_subtree): New function.
41492         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41493         gl_tree_create_empty. Return NULL upon out-of-memory.
41494         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41495         Change return type to 'int'. Return -1 upon out-of-memory.
41496         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41497         out-of-memory.
41498         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41499         (gl_tree_remove_node): New function, moved here from
41500         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41501         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41502         Update.
41503         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41504         malloc, not xmalloc. Return NULL upon out-of-memory.
41505         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41506         out-of-memory.
41507         (gl_tree_remove_node_from_tree): New function, extracted from
41508         gl_tree_remove_node.
41509         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41510         upon out-of-memory.
41511         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41512         out-of-memory.
41513         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41514         upon out-of-memory.
41515         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41516         upon out-of-memory.
41517         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41518         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41519         not xmalloc. Return NULL upon out-of-memory.
41520         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41521         out-of-memory.
41522         (gl_tree_remove_node_from_tree): New function, extracted from
41523         gl_tree_remove_node.
41524         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41525         upon out-of-memory.
41526         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41527         out-of-memory.
41528         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41529         upon out-of-memory.
41530         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41531         upon out-of-memory.
41532         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41533         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41534         gl_anytree_list1.h before gl_anyavltree_list2.h.
41535         (gl_avltree_list_implementation): Update.
41536         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41537         gl_anytree_list1.h before gl_anyavltree_list2.h.
41538         (gl_rbtree_list_implementation): Update.
41539         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41540         Change return type to 'int'. Return -1 upon out-of-memory. Use
41541         __builtin_expect.
41542         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41543         (gl_avltreehash_list_implementation): Update.
41544         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41545         (gl_rbtreehash_list_implementation): Update.
41546         * modules/array-list (Depends-on): Remove xalloc.
41547         * modules/carray-list (Depends-on): Likewise.
41548         * modules/linked-list (Depends-on): Likewise.
41549         * modules/linkedhash-list (Depends-on): Likewise.
41550         * modules/avltree-list (Depends-on): Likewise.
41551         * modules/rbtree-list (Depends-on): Likewise.
41552         * modules/avltreehash-list (Depends-on): Likewise.
41553         * modules/rbtreehash-list (Depends-on): Likewise.
41554
41555         * modules/xsublist: New file.
41556         * lib/gl_xsublist.h: New file.
41557         * lib/gl_xsublist.c: New file.
41558         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41559         (gl_sublist_nx_create): New declaration.
41560         * lib/gl_sublist.c: Don't include xalloc.h.
41561         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41562         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41563         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41564         Change return type to 'int'. Return -1 upon out-of-memory.
41565         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41566         upon out-of-memory.
41567         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41568         NULL upon out-of-memory.
41569         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41570         upon out-of-memory.
41571         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41572         NULL upon out-of-memory.
41573         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41574         NULL upon out-of-memory.
41575         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41576         upon out-of-memory.
41577         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41578         (gl_sublist_list_implementation): Update.
41579         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41580         upon out-of-memory.
41581         * modules/sublist (Depends-on): Remove xalloc.
41582
41583         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41584         * tests/test-carray_list.c: Likewise.
41585         * tests/test-linked_list.c: Likewise.
41586         * tests/test-linkedhash_list.c: Likewise.
41587         * tests/test-avltree_list.c: Likewise.
41588         * tests/test-rbtree_list.c: Likewise.
41589         * tests/test-avltreehash_list.c: Likewise.
41590         * tests/test-rbtreehash_list.c: Likewise.
41591         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41592         * modules/carray-list-tests (Makefile.am): Likewise.
41593         * modules/linked-list-tests (Makefile.am): Likewise.
41594         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41595         * modules/avltree-list-tests (Makefile.am): Likewise.
41596         * modules/rbtree-list-tests (Makefile.am): Likewise.
41597         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41598         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41599
41600         * NEWS: Mention the changes.
41601
41602         * lib/clean-temp.c: Include gl_xlist.h.
41603         * modules/clean-temp (Depends-on): Add xlist.
41604
41605         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41606         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41607
41608         * tests/test-array_oset.c: Include gl_xlist.h.
41609         * modules/array-oset-tests (Depends-on): Add xlist.
41610
41611         Reported by José E. Marchesi <jemarch@gnu.org>.
41612
41613 2009-12-13  Bruno Haible  <bruno@clisp.org>
41614
41615         Move the malloc checking from module 'oset' to new module 'xoset'.
41616         * modules/xoset: New file.
41617         * lib/gl_xoset.h: New file.
41618         * lib/gl_xoset.c: New file.
41619         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41620         declarations.
41621         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41622         (struct gl_oset_implementation): Rename and change methods accordingly.
41623         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41624         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41625         'int'. Mark as __warn_unused_result__.
41626         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41627         gl_oset_create_empty.
41628         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41629         'int'.
41630         * lib/gl_array_oset.c: Don't include xalloc.h.
41631         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41632         malloc, not xmalloc.
41633         (grow): Change return type to 'int'. Don't call xalloc_die.
41634         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41635         to 'int'.
41636         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41637         'int'.
41638         (gl_array_oset_implementation): Update.
41639         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41640         gl_tree_create_empty.
41641         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41642         'int'.
41643         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41644         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41645         xmalloc.
41646         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41647         not xmalloc.
41648         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41649         xmalloc.
41650         (gl_avltree_oset_implementation): Update.
41651         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41652         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41653         xmalloc.
41654         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41655         not xmalloc.
41656         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41657         xmalloc.
41658         (gl_rbtree_oset_implementation): Update.
41659         * modules/array-oset (Depends-on): Remove xalloc.
41660         * modules/avltree-oset (Depends-on): Likewise.
41661         * modules/rbtree-oset (Depends-on): Likewise.
41662         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41663         * tests/test-avltree_oset.c: Likewise.
41664         * tests/test-rbtree_oset.c: Likewise.
41665         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41666         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41667         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41668         * NEWS: Mention the change.
41669
41670 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41671
41672         maint.mk: allow a project to override release-prep commands
41673         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41674         commands into a new rule.
41675         (release-prep): New rule.
41676         (release-prep-hook): New overridable variable.
41677
41678 2009-12-13  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41681
41682 2009-12-13  Jim Meyering  <meyering@redhat.com>
41683
41684         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41685         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41686
41687 2009-12-12  Bruno Haible  <bruno@clisp.org>
41688
41689         duplocale: Tweak.
41690         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41691
41692 2009-12-12  Karl Berry  <karl@gnu.org>
41693
41694         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41695
41696 2009-12-12  Bruno Haible  <bruno@clisp.org>
41697
41698         * m4/po.m4: Undo incorrect untabification.
41699
41700 2009-12-12  Bruno Haible  <bruno@clisp.org>
41701
41702         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41703         * modules/c-strtod (Depends-on): Add locale.
41704         * modules/c-strtold (Depends-on): Likewise.
41705
41706 2009-12-12  Bruno Haible  <bruno@clisp.org>
41707
41708         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41709
41710 2009-12-11  Eric Blake  <ebb9@byu.net>
41711
41712         setenv: relax requirement in light of POSIX ruling
41713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41714         not NULL.
41715         * tests/test-setenv.c (main): Relax test.
41716         * tests/test-unsetenv.c (main): Likewise.
41717         * doc/posix-functions/setenv.texi (setenv): Document this.
41718         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41719
41720 2009-12-11  Bruno Haible  <bruno@clisp.org>
41721
41722         New module 'fd-safer-flag'.
41723         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41724         * lib/dup-safer.c (dup_safer_flag): Remove function.
41725         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41726         * lib/fd-safer.c (fd_safer_flag): Remove function.
41727         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41728         * modules/cloexec (configure.ac): Drop indicator macro.
41729         * modules/fd-safer-flag: New file.
41730         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41731         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41732         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41733
41734 2009-12-11  Bruno Haible  <bruno@clisp.org>
41735
41736         Tests for module 'nl_langinfo'.
41737         * modules/nl_langinfo-tests: New file.
41738         * tests/test-nl_langinfo.sh: New file.
41739         * tests/test-nl_langinfo.c: New file.
41740
41741         New module 'nl_langinfo'.
41742         * lib/nl_langinfo.c: New file.
41743         * m4/nl_langinfo.m4: New file.
41744         * modules/nl_langinfo: New file.
41745         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41746
41747 2009-12-11  Bruno Haible  <bruno@clisp.org>
41748
41749         Tests for module 'langinfo'.
41750         * modules/langinfo-tests: New file.
41751         * tests/test-langinfo.c: New file.
41752
41753         New module 'langinfo'.
41754         * lib/langinfo.in.h: New file.
41755         * m4/langinfo_h.m4: New file.
41756         * modules/langinfo: New file.
41757         * doc/posix-headers/langinfo.texi: Mention the new module.
41758
41759 2009-12-11  Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/config.charset: Untabify.
41762
41763 2009-12-11  Bruno Haible  <bruno@clisp.org>
41764
41765         * modules/unistd-safer (configure.ac): Drop indicator macro.
41766
41767 2009-12-11  Bruno Haible  <bruno@clisp.org>
41768
41769         Move pipe2-safer code to its own file.
41770         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41771         * lib/pipe-safer.c (pipe2_safer): Remove function.
41772         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41773         (Makefile.am): Add it to lib_SOURCES.
41774
41775 2009-12-10  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41778
41779 2009-12-10  Bruno Haible  <bruno@clisp.org>
41780
41781         Declare which arguments expect non-NULL values, for GCC and clang.
41782         * build-aux/arg-nonnull.h: New file.
41783         * modules/arg-nonnull: New file.
41784         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41785         (inet_ntop, inet_pton): Use it.
41786         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41787         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41788         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41789         (open, openat): Use it.
41790         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41791         (fnmatch): Use it.
41792         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41793         (getopt, getopt_long, getopt_long_only): Use it.
41794         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41795         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41796         Use it.
41797         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41798         (iconv_open): Use it.
41799         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41800         (strtoimax, strtoumax): Use it.
41801         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41802         (duplocale): Use it.
41803         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41804         (frexp, frexpl): Use it.
41805         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41806         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41807         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41808         (tsearch, tfind, tdelete, twalk): Use it.
41809         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41810         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41811         sigpending): Use it.
41812         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41813         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41814         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41815         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41816         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41817         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41818         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41819         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41820         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41821         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41822         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41823         Use it.
41824         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41825         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41826         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41827         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41828         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41829         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41830         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41831         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41832         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41833         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41834         strtoull, unsetenv): Use it.
41835         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41836         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41837         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41838         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41839         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41840         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41841         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41842         (strcasecmp, strncasecmp): Use it.
41843         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41844         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41845         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41846         rpl_setsockopt): Use it.
41847         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41848         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41849         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41850         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41851         (gettimeofday): Use it.
41852         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41853         (times): Use it.
41854         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41855         (uname): Use it.
41856         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41857         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41858         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41859         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41860         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41861         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41862         unlinkat, write): Use it.
41863         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41864         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41865         * lib/argv-iter.h: Include arg-nonnull.h.
41866         (_ATTRIBUTE_NONNULL_): Remove macro.
41867         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41868         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41869         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41870         optimization.
41871         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41872         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41873         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41874         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41875         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41876         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41877         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41878         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41879         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41880         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41881         * modules/dirent (Depends-on): Add arg-nonnull.
41882         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41883         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41884         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41885         * modules/fnmatch (Depends-on): Add arg-nonnull.
41886         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41887         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41888         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41889         * modules/glob (Depends-on): Add arg-nonnull.
41890         (Makefile.am): Insert arg-nonnull.h into glob.h.
41891         * modules/iconv_open (Depends-on): Add arg-nonnull.
41892         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41893         * modules/inttypes (Depends-on): Add arg-nonnull.
41894         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41895         * modules/locale (Depends-on): Add arg-nonnull.
41896         (Makefile.am): Insert arg-nonnull.h into locale.h.
41897         * modules/math (Depends-on): Add arg-nonnull.
41898         (Makefile.am): Insert arg-nonnull.h into math.h.
41899         * modules/netdb (Depends-on): Add arg-nonnull.
41900         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41901         * modules/search (Depends-on): Add arg-nonnull.
41902         (Makefile.am): Insert arg-nonnull.h into search.h.
41903         * modules/signal (Depends-on): Add arg-nonnull.
41904         (Makefile.am): Insert arg-nonnull.h into signal.h.
41905         * modules/spawn (Depends-on): Add arg-nonnull.
41906         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41907         * modules/stdio (Depends-on): Add arg-nonnull.
41908         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41909         * modules/stdlib (Depends-on): Add arg-nonnull.
41910         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41911         * modules/string (Depends-on): Add arg-nonnull.
41912         (Makefile.am): Insert arg-nonnull.h into string.h.
41913         * modules/strings (Depends-on): Add arg-nonnull.
41914         (Makefile.am): Insert arg-nonnull.h into strings.h.
41915         * modules/sys_socket (Depends-on): Add arg-nonnull.
41916         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41917         * modules/sys_stat (Depends-on): Add arg-nonnull.
41918         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41919         * modules/sys_time (Depends-on): Add arg-nonnull.
41920         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41921         * modules/sys_times (Depends-on): Add arg-nonnull.
41922         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41923         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41924         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41925         * modules/time (Depends-on): Add arg-nonnull.
41926         (Makefile.am): Insert arg-nonnull.h into time.h.
41927         * modules/unistd (Depends-on): Add arg-nonnull.
41928         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41929         * modules/wchar (Depends-on): Add arg-nonnull.
41930         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41931         * modules/argv-iter (Depends-on): Add arg-nonnull.
41932         * tests/test-canonicalize.c (null_ptr): New function.
41933         (main): Use it.
41934         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41935         (main): Use it.
41936         * tests/test-memmem.c (null_ptr): New function.
41937         (main): Use it.
41938         Reported by Jim Meyering.
41939
41940 2009-12-10  Bruno Haible  <bruno@clisp.org>
41941
41942         Use spaces for indentation, not tabs.
41943         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41944         * m4/*.m4: Untabify.
41945         * build-aux/*.h: Untabify.
41946         * tests/**/*.[hc]: Untabify.
41947         * README: New section "Indent with spaces, not TABs", based on
41948         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41949         * NEWS: Mention the change.
41950
41951 2009-12-10  Bruno Haible  <bruno@clisp.org>
41952
41953         pty test: Fix link error.
41954         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41955         test_pty_LDADD.
41956
41957 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41958
41959         * modules/pty: New file.
41960         * modules/pty-tests: New file.
41961         * m4/pty.m4: New file.
41962         * tests/test-pty.c: New file.
41963         * doc/glibc-headers/pty.texi: Modified.
41964         * doc/glibc-functions/forkpty.texi: Modified.
41965         * doc/glibc-functions/openpty.texi: Modified.
41966
41967 2009-12-10  Bruno Haible  <bruno@clisp.org>
41968
41969         Avoid syntax error in C++ mode.
41970         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41971
41972 2009-12-10  Bruno Haible  <bruno@clisp.org>
41973
41974         Use sed with option -e.
41975         * gnulib-tool (func_version, func_emit_copyright_notice,
41976         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41977         option -e to sed.
41978         * modules/link-warning (Makefile.am): Likewise.
41979
41980 2009-12-10  Jim Meyering  <meyering@redhat.com>
41981
41982         mgetgroups: do not write bytes beyond end of malloc'd buffer
41983         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41984         username, we call getgroups with a one-element-shorter buffer,
41985         but still told it the length was original, max_n_groups.
41986
41987 2009-12-09  Eric Blake  <ebb9@byu.net>
41988
41989         cloexec: relax license
41990         * modules/cloexec (Maintainer): Add myself.
41991         (License): Use LGPL, not GPL.
41992
41993         link-warning: optimize generation
41994         * modules/link-warning (Makefile.am): Reduce process usage.
41995
41996 2009-12-09  Bruno Haible  <bruno@clisp.org>
41997
41998         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41999         workaround was added on 2009-11-17.
42000
42001 2009-12-09  Jim Meyering  <meyering@redhat.com>
42002             Bruno Haible  <bruno@clisp.org>
42003
42004         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42005         * modules/link-warning (Makefile.am): Make the comment-removing sed
42006         command more robust in the face of bootstrap-prepended comment lines.
42007
42008 2009-12-09  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42011         most one group.
42012
42013 2009-12-09  Simon Josefsson <simon@josefsson.org>
42014             Bruno Haible  <bruno@clisp.org>
42015
42016         * build-aux/link-warning.h: Add copyright notice.
42017         * modules/link-warning (Makefile.am): Generate link-warning.h from
42018         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42019         * NEWS: Mention change in link-warning module.
42020         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42021         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42022         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42023         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42024         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42025         * modules/math (Makefile.am): Add dependency to math.h.
42026         * modules/search (Makefile.am): Add dependency to search.h.
42027         * modules/signal (Makefile.am): Add dependency to signal.h.
42028         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42029         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42030         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42031         * modules/string (Makefile.am): Add dependency to string.h.
42032         * modules/strings (Makefile.am): Add dependency to strings.h.
42033         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42034         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42035         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42036         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42037         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42038         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42039         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42040         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42041         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42042
42043 2009-12-09  Bruno Haible  <bruno@clisp.org>
42044
42045         fchdir: Optimize away rpl_fstat when possible.
42046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42047         REPLACE_OPEN_DIRECTORY.
42048         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42049
42050 2009-12-09  Bruno Haible  <bruno@clisp.org>
42051
42052         * lib/fchdir.c: Update comment.
42053
42054 2009-12-09  Bruno Haible  <bruno@clisp.org>
42055
42056         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42057
42058 2009-12-08  Eric Blake  <ebb9@byu.net>
42059
42060         fchdir: avoid memory leak on re-registration.
42061         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42062
42063 2009-12-08  Jim Meyering  <meyering@redhat.com>
42064
42065         init.sh: avoid Solaris 10 /bin/sh portability problem
42066         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42067         sourced script:
42068           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42069           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42070           bar
42071         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42072         and two tests used that idiom.
42073         * tests/init.sh: Update suggested usage comments.
42074         (path_prepend_): New function, to be used in place
42075         of the --src-path=DIR option.
42076         (setup_): Move PATH-prepending code into path_prepend_.
42077         * tests/test-pread.sh: Adapt to new usage.
42078         * tests/test-xalloc-die.sh: Likewise.
42079
42080 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42081
42082         * doc/gnulib.texi (Glibc pty.h): Add.
42083         * doc/glibc-functions/forkpty.texi: Add.
42084         * doc/glibc-functions/openpty.texi: Add.
42085         Suggested by Bruno Haible.
42086
42087 2009-12-08  Eric Blake  <ebb9@byu.net>
42088
42089         fchdir: fix logic bugs
42090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42091         * tests/test-fchdir.c (main): Enhance test.
42092         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42093         is in use.
42094
42095         dup2: fix logic bugs
42096         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42097         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42098         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42099         exists.
42100         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42101
42102 2009-12-07  Eric Blake  <ebb9@byu.net>
42103
42104         unlink: fix m4 detection
42105         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42106
42107         unistd-safer: add unit test
42108         * modules/unistd-safer-tests: New file.
42109         * tests/test-dup-safer.c: Likewise.
42110         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42111         * tests/test-dup2.c (setmode): Likewise.
42112         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42113
42114         cloexec: preserve text vs. binary across dup_cloexec
42115         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42116         mode.
42117         * modules/dup2-tests (Depends-on): Add binary-io.
42118         * modules/cloexec-tests (Depends-on): Likewise.
42119         * tests/test-dup2.c (setmode, is_mode): New helpers.
42120         (main): Add tests that translation mode is preserved.
42121         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42122         Reported by Bruno Haible.
42123
42124         mgetgroups: reduce duplicate listings
42125         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42126         resulting array.
42127         * tests/test-chown.h (test_chown): Simplify client.
42128         * tests/test-lchown.h (test_lchown): Likewise.
42129
42130 2009-12-06  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42133         value.
42134
42135 2009-12-06  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/progname.c: Include stdio.h, stdlib.h.
42138         (set_program_name): Reject a NULL argument.
42139
42140 2009-12-05  Eric Blake  <ebb9@byu.net>
42141
42142         pipe2-safer: new module
42143         * modules/pipe2-safer: New file.
42144         * lib/unistd-safer.h (pipe2_safer): New prototype.
42145         * lib/unistd--.h (pipe2): New wrapper.
42146         * lib/pipe-safer.c (pipe2_safer): New function.
42147         * modules/pipe (Depends-on): Add pipe2-safer.
42148         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42149
42150         stdlib-safer: preserve cloexec flag for mkostemp[s]
42151         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42152         fd_safer_flag.
42153
42154         unistd-safer: allow preservation of cloexec status via flag
42155         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42156         prototypes.
42157         * lib/dup-safer.c (dup_safer_flag): New function.
42158         * lib/fd-safer.c (fd_safer_flag): Likewise.
42159         * modules/cloexec (configure.ac): Set witness.
42160
42161         test-dup2: enhance test
42162         * modules/dup2-tests (Depends-on): Add cloexec.
42163         * tests/test-dup2.c (main): Enhance test.
42164
42165         cloexec: add dup_cloexec
42166         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42167         header and comments.
42168         * lib/cloexec.c (set_cloexec_flag): Add comments.
42169         (dup_cloexec): New function, with mingw implementation borrowed
42170         from...
42171         * lib/w32spawn.h (dup_noinherit): ...here.
42172         * modules/execute (Depends-on): Add cloexec.
42173         * modules/pipe (Depends-on): Likewise.
42174         * modules/cloexec (Depends-on): Add dup2.
42175         * modules/cloexec-tests (Files): New file.
42176         * tests/test-cloexec.c: Likewise.
42177
42178         test-xalloc-die: fix test for mingw
42179         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42180         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42181         directory and .exe suffix off argv[0] output.
42182
42183         test-fseeko: fix test for mingw
42184         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42185         than undefining fseek, so test will pass on mingw.
42186
42187 2009-12-05  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/progname.h (set_program_name): Clarify specification.
42190         * lib/progname.c (set_program_name): Likewise.
42191         Reported by Jim Meyering.
42192
42193 2009-12-05  Jim Meyering  <meyering@redhat.com>
42194
42195         maint.mk: backslash-escape parens in default regexp
42196         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42197         backslash-escape the literal parentheses.
42198
42199         maint.mk: news-date-check: use grep -E
42200         * top/maint.mk (today): Define a Make variable, not a...
42201         (news-date-check): ...shell variable.
42202         (news-date-regexp): Use the Make variable.
42203         Use grep's -E option.  Change the failing diagnostic to mention
42204         the variable, $(news-date-regexp).
42205
42206 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42207
42208         maintainer-makefile: allow customization of NEWS entry format
42209         * top/maint.mk (news-date-regexp): New overridable variable.
42210         (news-date-check): Use it.
42211
42212 2009-12-04  Eric Blake  <ebb9@byu.net>
42213
42214         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42215         * lib/mgetgroups.h (xgetgroups): New prototype.
42216         * lib/mgetgroups.c (xgetgroups): New wrapper.
42217         (mgetgroups): Handle ENOSYS.
42218         * modules/mgetgroups (Depends-on): Add realloc.
42219         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42220
42221         mgetgroups: avoid argument promotion issues with -1
42222         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42223         for invalid gid_t.
42224         * tests/test-chown.h (getegid, test_chown): Likewise.
42225         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42226
42227 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42228
42229         exclude: Fix header file problems.
42230         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42231
42232 2009-12-01  Jim Meyering  <meyering@redhat.com>
42233
42234         fts: fts_open: do not let an empty string cause immediate failure
42235         This is required in support of GNU rm, for which the command
42236         "rm A '' B" must process and remove both A and B, in spite of
42237         the empty string argument.
42238         * lib/fts.c (fts_open): Do not let the presence of an empty string
42239         cause fts_open to fail immediately.  Most fts-using tools must be
42240         able to process all arguments, in order, and can be expected to
42241         diagnose such arguments themselves.
42242
42243 2009-11-30  Eric Blake  <ebb9@byu.net>
42244
42245         utimens: fix compilation error
42246         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42247         Declare variable at right scope.
42248
42249 2009-11-29  Jim Meyering  <meyering@redhat.com>
42250
42251         bootstrap: handle perl-5.11's changed --version output
42252         * build-aux/bootstrap (get_version): Handle perl separately,
42253         since perl-5.11's --version output is different.
42254
42255 2009-11-28  Jim Meyering  <meyering@redhat.com>
42256
42257         userspec: depend on the inttostr module, too
42258         * modules/userspec (Depends-on): Add inttostr.
42259
42260         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42261         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42262         number of MAXUID when it evaluates to (uid_t) -1.
42263         Likewise for group ID.  Reported by Matt McCutchen in
42264         <http://savannah.gnu.org/bugs/?28113>
42265
42266         userspec: reformat to use spaces, not TABs
42267         * lib/userspec.c: Expand TABs to spaces.
42268         Add Emacs' "indent-tabs-mode: nil" hint.
42269
42270 2009-11-27  Eric Blake  <ebb9@byu.net>
42271
42272         getopt-gnu: flush out another BSD bug
42273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42274         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42275         flush out BSD bug.
42276         * tests/test-getopt.h (test_getopt): End lists with NULL.
42277         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42278         (test_getopt_long_posix): Enhance test.
42279         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42280         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42281         getopt-gnu.
42282         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42283         Likewise.
42284
42285 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42286
42287         * modules/idpriv-droptemp-tests (Notice): Fix text.
42288
42289 2009-11-27  Jim Meyering  <meyering@redhat.com>
42290
42291         test-xalloc-die: avoid spurious failure due to libtool argv difference
42292         In a libtool-enabled project, this test would fail due to a difference
42293         in the emitted program name, e.g.,
42294         -test-xalloc-die: memory exhausted
42295         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42296         Use program to avoid that.
42297         * modules/xalloc-die-tests (Depends-on): Add progname.
42298         * tests/test-xalloc-die.c: Include progname.h".
42299         (program_name): Remove decl.
42300         (main): Call set_program_name.
42301         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42302
42303 2009-11-26  Richard Jones  <rjones@redhat.com>
42304
42305         w32sock: leave win32 error in place.
42306         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42307
42308 2009-11-26  Eric Blake  <ebb9@byu.net>
42309
42310         init.sh: suggest to use skip_ and fail_ functions in comments
42311         * tests/init.sh: Add a sentence.
42312
42313 2009-11-25  Bruno Haible  <bruno@clisp.org>
42314
42315         init.sh: add documentation in comments
42316         * tests/init.sh: Add some developer and user documentation.
42317
42318 2009-11-26  Jim Meyering  <meyering@redhat.com>
42319
42320         init.sh: accommodate even those who specify bogus srcdir manually
42321         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42322         configure-time tests to be sanitized, so that there is no need to
42323         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42324         (with no double quotes) suffices.  However, since tests may be
42325         invoked manually, and since you may explicitly set srcdir to the
42326         name of a directory containing spaces, do quote its uses here.
42327         * tests/test-pread.sh: Likewise.
42328         Suggested by Bruno Haible.
42329
42330         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42331         * tests/test-pread.sh: Write no data into the pipe, because
42332         test-pread actually reads none.  This avoids a diagnostic,
42333         "bash: echo: write error: Broken pipe", that arises in the unusual
42334         event something is ignoring SIGPIPE, and might be interpreted
42335         as some sort of failure.  Reported by Bruno Haible.
42336
42337 2009-11-25  Jim Meyering  <meyering@redhat.com>
42338
42339         test-pread: cover failure with ESPIPE and EINVAL
42340         * tests/test-pread.c (main): Test for failure, too.
42341         * tests/test-pread.sh: Invoke with stdin on a pipe.
42342         Suggested by Eric Blake.
42343
42344         pread: improvement and fix
42345         * modules/pread (Depends-on): Depend on lseek, for portability to
42346         e.g., mingw.  Suggested by Eric Blake.
42347         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42348
42349         unistd.in.h: correct declaration of pread
42350         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42351         Reported by Richard W.M. Jones.
42352
42353         test-pread.sh: distribute the test script
42354         * modules/pread-tests (Files): Include test-pread.sh.
42355
42356         test-pread.sh: clean up
42357         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42358         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42359         That is unnecessary, since it's always ".".
42360         Suggestion from Eric Blake.
42361
42362         test-pread.sh: make executable
42363         * tests/test-pread.sh: Set executable bit.
42364         Reported by Eric Blake.
42365
42366         correct typo in test-pread.sh
42367         * tests/test-pread.sh: Add #! line.
42368
42369         test pread
42370         * tests/test-pread.c: New file.
42371         * tests/test-pread.sh: Likewise.
42372         * modules/pread-tests: Likewise.
42373
42374         pread: new module
42375         * modules/pread: New file.
42376         * lib/unistd.in.h (pread): Define/declare.
42377         * lib/pread.c (pread): New file.
42378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42379         * modules/unistd (Makefile.am): Substitute witnesses.
42380         * doc/posix-functions/pread.texi (pread): Update.
42381         * MODULES.html.sh: Add pread.
42382
42383 2009-11-25  Jim Meyering  <meyering@redhat.com>
42384
42385         tests/init.sh: new file to be used via most *.sh tests
42386         * tests/init.sh: New file.
42387
42388 2009-11-25  Eric Blake  <ebb9@byu.net>
42389
42390         utimens: work around older Linux failure with symlinks
42391         * lib/utimens.c (lutimensat_works_really): New variable.
42392         (fdutimens, lutimens): Use it to manage kernels that support
42393         nanosecond times on files, but not on symlinks.
42394         Reported by OndÅ™ej Vašík.
42395
42396         utimes: fix configure grammar
42397         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42398
42399 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42400
42401         regex: Fix fastmap for multibyte character ranges.
42402         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42403         characters when a multibyte character range is included.
42404
42405 2009-11-22  Andy Wingo  <wingo@pobox.com>
42406
42407         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42408         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42409
42410 2009-11-24  Bruno Haible  <bruno@clisp.org>
42411
42412         doc: Most *_l functions exist in MacOS X 10.5.
42413         * doc/posix-functions/duplocale.texi: Update platforms list.
42414         * doc/posix-functions/freelocale.texi: Likewise.
42415         * doc/posix-functions/newlocale.texi: Likewise.
42416         * doc/posix-functions/uselocale.texi: Likewise.
42417         * doc/posix-functions/isalnum_l.texi: Likewise.
42418         * doc/posix-functions/isalpha_l.texi: Likewise.
42419         * doc/posix-functions/isblank_l.texi: Likewise.
42420         * doc/posix-functions/iscntrl_l.texi: Likewise.
42421         * doc/posix-functions/isdigit_l.texi: Likewise.
42422         * doc/posix-functions/isgraph_l.texi: Likewise.
42423         * doc/posix-functions/islower_l.texi: Likewise.
42424         * doc/posix-functions/isprint_l.texi: Likewise.
42425         * doc/posix-functions/ispunct_l.texi: Likewise.
42426         * doc/posix-functions/isspace_l.texi: Likewise.
42427         * doc/posix-functions/isupper_l.texi: Likewise.
42428         * doc/posix-functions/iswalnum_l.texi: Likewise.
42429         * doc/posix-functions/iswalpha_l.texi: Likewise.
42430         * doc/posix-functions/iswblank_l.texi: Likewise.
42431         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42432         * doc/posix-functions/iswctype_l.texi: Likewise.
42433         * doc/posix-functions/iswdigit_l.texi: Likewise.
42434         * doc/posix-functions/iswgraph_l.texi: Likewise.
42435         * doc/posix-functions/iswlower_l.texi: Likewise.
42436         * doc/posix-functions/iswprint_l.texi: Likewise.
42437         * doc/posix-functions/iswpunct_l.texi: Likewise.
42438         * doc/posix-functions/iswspace_l.texi: Likewise.
42439         * doc/posix-functions/iswupper_l.texi: Likewise.
42440         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42441         * doc/posix-functions/isxdigit_l.texi: Likewise.
42442         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42443         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42444         * doc/posix-functions/strcoll_l.texi: Likewise.
42445         * doc/posix-functions/strfmon_l.texi: Likewise.
42446         * doc/posix-functions/strftime_l.texi: Likewise.
42447         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42448         * doc/posix-functions/strxfrm_l.texi: Likewise.
42449         * doc/posix-functions/tolower_l.texi: Likewise.
42450         * doc/posix-functions/toupper_l.texi: Likewise.
42451         * doc/posix-functions/towctrans_l.texi: Likewise.
42452         * doc/posix-functions/towlower_l.texi: Likewise.
42453         * doc/posix-functions/towupper_l.texi: Likewise.
42454         * doc/posix-functions/wcscoll_l.texi: Likewise.
42455         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42456         * doc/posix-functions/wctrans_l.texi: Likewise.
42457         * doc/posix-functions/wctype_l.texi: Likewise.
42458         * doc/glibc-functions/strptime_l.texi: Likewise.
42459         * doc/glibc-functions/strtod_l.texi: Likewise.
42460         * doc/glibc-functions/strtof_l.texi: Likewise.
42461         * doc/glibc-functions/strtol_l.texi: Likewise.
42462         * doc/glibc-functions/strtold_l.texi: Likewise.
42463         * doc/glibc-functions/strtoll_l.texi: Likewise.
42464         * doc/glibc-functions/strtoul_l.texi: Likewise.
42465         * doc/glibc-functions/strtoull_l.texi: Likewise.
42466         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42467         * doc/glibc-functions/wcstod_l.texi: Likewise.
42468         * doc/glibc-functions/wcstof_l.texi: Likewise.
42469         * doc/glibc-functions/wcstol_l.texi: Likewise.
42470         * doc/glibc-functions/wcstold_l.texi: Likewise.
42471         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42472         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42473         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42474
42475 2009-11-24  Bruno Haible  <bruno@clisp.org>
42476
42477         duplocale: Fix logic bug.
42478         * lib/duplocale.c: Don't include <langinfo.h>.
42479         (_NL_LOCALE_NAME): Remove macro.
42480         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42481         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42482
42483 2009-11-23  Jim Meyering  <meyering@redhat.com>
42484
42485         test-update-copyright: don't hard-code /usr/bin/perl
42486         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42487         perl to print the current year.  Gilles Espinasse reported that
42488         the replaced use of perl was hard-coded as /usr/bin/perl.
42489
42490 2009-11-23  Bruno Haible  <bruno@clisp.org>
42491
42492         duplocale: Add support for glibc 2.3.x.
42493         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42494
42495 2009-11-22  Bruno Haible  <bruno@clisp.org>
42496
42497         vasnprintf: Tiny optimization.
42498         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42499         MacOS X.
42500
42501 2009-11-22  Bruno Haible  <bruno@clisp.org>
42502
42503         Tests for module 'duplocale'.
42504         * modules/duplocale-tests: New file.
42505         * tests/test-duplocale.c: New file.
42506
42507         New module 'duplocale'.
42508         * m4/duplocale.m4: New file.
42509         * lib/locale.in.h (duplocale): New declaration.
42510         * lib/duplocale.c: New file.
42511         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42512         gl_LOCALE_H_DEFAULTS): New macros.
42513         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42514         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42515         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42516         REPLACE_DUPLOCALE.
42517         * modules/duplocale: New file.
42518         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42519
42520 2009-11-22  Bruno Haible  <bruno@clisp.org>
42521
42522         * modules/locale-tests (configure.ac): Test for newlocale function.
42523         * tests/test-locale.c: When the system has extended locale functions,
42524         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42525
42526         locale: Make locale_t available when possible.
42527         * lib/locale.in.h: Include <xlocale.h> when it exists.
42528         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42529         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42530         * modules/locale (Depends-on): Add extensions.
42531         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42532         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42533
42534 2009-11-22  Bruno Haible  <bruno@clisp.org>
42535
42536         Add comments.
42537         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42538         invocation.
42539         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42540         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42541         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42542
42543 2009-11-22  Bruno Haible  <bruno@clisp.org>
42544
42545         error: account for the possibility of freopen (stdout).
42546         * lib/error.c: Include <unistd.h>.
42547         (flush_stdout): New function, extracted from error and error_at_line.
42548         Determine stdout's fd dynamically.
42549         (error, error_at_line): Invoke flush_stdout.
42550         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42551         * modules/error (Depends-on): Add unistd.
42552
42553 2009-11-22  Bruno Haible  <bruno@clisp.org>
42554
42555         diffseq: Add comment.
42556         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42557
42558 2009-11-22  Jim Meyering  <meyering@redhat.com>
42559
42560         c-stack: avoid defining an unused static function
42561         * lib/c-stack.c (find_stack_direction): Do not define this function
42562         when it will not be used.
42563
42564         diffseq: avoid spurious gcc warnings
42565         * lib/diffseq.h (IF_LINT2): Define.
42566         (compareseq): Use it to initialize two members of "part".
42567         This avoids two used-uninitialized warnings.
42568
42569 2009-11-21  Jim Meyering  <meyering@redhat.com>
42570
42571         c-stack: avoid "ignoring return value of `write'" warning
42572         * lib/c-stack.c: Include "ignore-value.h".
42573         (die): Explicitly ignore each write return value.
42574         * modules/c-stack (Depends-on): Add ignore-value.
42575
42576 2009-11-21  Bruno Haible  <bruno@clisp.org>
42577
42578         diffseq: reduce scope of variable 'best'.
42579         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42580         variable, earlier used for two different purposes.
42581
42582 2009-11-21  Jim Meyering  <meyering@redhat.com>
42583
42584         diffseq: remove useless assignment to "best"
42585         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42586         assignment.  At that point "best" is already guaranteed to be zero.
42587
42588 2009-11-20  Eric Blake  <ebb9@byu.net>
42589
42590         build: mention ftp redirector in release announcements
42591         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42592         values that used to come from cfg.mk; mention FTP redirect URL.
42593         * build-aux/announce-gen: Mention the mirror list.
42594         Suggested by Karl Berry.
42595
42596         nanosleep: improve port to mingw
42597         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42599         LIB_NANOSLEEP, but only when needed.
42600         * modules/select (Link): Document LIBSOCKET.
42601         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42602         enough.
42603
42604         nanosleep: work around cygwin bug
42605         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42606         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42607         bug.
42608         (getnow): Delete, not needed.
42609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42610         LIB_CLOCK_GETTIME.
42611         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42612         clock-time, gettime.
42613         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42614         bug.
42615         * modules/nanosleep-tests: New test.
42616         * tests/test-nanosleep.c: New file.
42617
42618         sleep: work around cygwin bug
42619         * lib/sleep.c (rpl_sleep): Work around the bug.
42620         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42621         (gl_PREREQ_SLEEP): Delete unused macro.
42622         * modules/sleep (Depends-on): Add verify.
42623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42624         * modules/unistd (Makefile.am): Substitute witness.
42625         * lib/unistd.in.h (sleep): Update prototype.
42626         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42627         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42628         * modules/sleep-tests (Depends-on): Check for alarm.
42629
42630 2009-11-20  Jim Meyering  <meyering@redhat.com>
42631
42632         maint.mk: improve sc_prohibit_magic_number_exit
42633         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42634         so it does not match uses like System.exit(1).
42635         Add comments showing how to correct all offenders.
42636
42637 2009-11-19  Eric Blake  <ebb9@byu.net>
42638
42639         xalloc-die-tests: add missing library
42640         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42641
42642         test-xvasprintf: silence compiler warnings
42643         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42644         empty string from gcc.
42645
42646 2009-11-19  Jim Meyering  <meyering@redhat.com>
42647
42648         xfreopen: new module, from coreutils
42649         * modules/xfreopen: New module.
42650         * lib/xfreopen.c: New file.
42651         * lib/xfreopen.h: New file.
42652         * MODULES.html.sh (File stream based Input/Output"): Add it.
42653
42654 2009-11-19  Eric Blake  <ebb9@byu.net>
42655
42656         manywarnings: depend on warnings
42657         * modules/manywarnings (Depends-on): Add warnings.
42658
42659         build: avoid compiler warnings
42660         * lib/select.c (rpl_select): Delete unused variable.
42661         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42662
42663 2009-11-18  Eric Blake  <ebb9@byu.net>
42664
42665         tests: avoid false negative with --with-packager
42666         * tests/test-version-etc.sh: Discard packager information.
42667         * tests/test-argp-version-etc-1.sh: Likewise.
42668         Reported by Mike Frysinger.
42669
42670         utimens: fix regression on Solaris
42671         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42672         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42673         can only change fd timestamps via futimesat.  Instead, use an
42674         additional witness macro to avoid BSD bug.
42675         Reported by Jim Meyering.
42676
42677 2009-11-17  Eric Blake  <ebb9@byu.net>
42678
42679         usleep: use it to simplify tests
42680         * modules/stat-time-tests (Depends-on): Add usleep.
42681         (configure.ac): Drop usleep check.
42682         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42683         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42684         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42685         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42686         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42687         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42688         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42689         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42690         Likewise.
42691         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42692         * tests/test-lchown.h (nap): Likewise.
42693         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42694         * tests/test-stat-time.c (nap): Likewise.
42695         * tests/test-utimens-common.h (nap): Update comments.
42696
42697         usleep: new module
42698         * modules/usleep: New file.
42699         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42700         * lib/usleep.c (usleep): Likewise.
42701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42702         * modules/unistd (Makefile.am): Substitute witnesses.
42703         * lib/unistd.in.h (usleep): Add declaration.
42704         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42705         * MODULES.html.sh (Date and time): Likewise.
42706         * modules/usleep-tests (Depends-on): New test.
42707         * tests/test-usleep.c: New file.
42708
42709         chown: work around OpenBSD bug
42710         * lib/chown.c (rpl_chown): Work around the bug.
42711         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42712         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42713         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42714         * modules/chown (Depends-on): Add stdbool.
42715         * modules/lchown (Depends-on): Likewise.
42716         * doc/posix-functions/chown.texi (chown): Document the bug.
42717         * doc/posix-functions/lchown.texi (lchown): Likewise.
42718         * tests/test-lchown.h (test_chown): Relax test.
42719
42720         mkstemp: avoid conflict with C++ keyword template
42721         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42722         * lib/mkostemp.c (mkostemp): Likewise.
42723         * lib/mkostemps.c (mkostemps): Likewise.
42724         * lib/mkstemp.c (mkstemp): Likewise.
42725         * lib/mkstemps.c (mkstemps): Likewise.
42726
42727         xalloc-die-tests: optimize
42728         * tests/test-xalloc-die.sh: Reduce number of processes.
42729
42730 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42731
42732         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42733         patch from ludo@gnu.org (Ludovic Courtès).
42734
42735 2009-11-17  Jim Meyering  <meyering@redhat.com>
42736
42737         version-etc: use proper license string
42738         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42739         * modules/version-etc-fsf: Likewise.
42740
42741 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42742
42743         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42744         printed to stdout.  Deal with EOL differences.
42745
42746 2009-11-17  Eric Blake  <ebb9@byu.net>
42747
42748         unsetenv: work around Solaris bug
42749         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42750         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42751         Reported by Jim Meyering.
42752
42753         vasnprintf: avoid compiler warnings
42754         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42755         variables.
42756         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42757
42758 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42759
42760         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42761         settings since xalloc-die is no longer the self test,
42762         xalloc-die.sh is.
42763
42764 2009-11-17  Jim Meyering  <meyering@redhat.com>
42765
42766         test-xalloc-die.sh: make the code agree with the commit log
42767         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42768         at the end, just in case you happen to have a test-xalloc-die
42769         program in some other PATH directory.
42770
42771         test-xalloc-die.sh: fix a portability bug
42772         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42773         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42774         Otherwise, argv[0] (as often seen in diagnostics) would be too
42775         system-dependent, sometimes with, and sometimes without the leading "./".
42776
42777         version-etc-fsf: relax license to LGPLv3+
42778         * modules/version-etc-fsf (License): Relax license.
42779
42780 2009-11-16  Eric Blake  <ebb9@byu.net>
42781
42782         xalloc-die-tests: avoid printing null pointer
42783         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42784         shell script.
42785         * tests/test-xalloc-die.c (program_name): Declare.
42786         * tests/test-xalloc-die.sh (tmpfiles): New file.
42787
42788         setenv, unsetenv: work around various bugs
42789         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42790         (setenv) [HAVE_SETENV]: Work around bugs.
42791         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42792         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42793         for bugs.
42794         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42795         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42797         * modules/stdlib (Makefile.am): Update substitutions.
42798         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42799         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42800         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42801         * modules/setenv-tests: New test.
42802         * modules/unsetenv-tests: Likewise.
42803         * tests/test-setenv.c: New file.
42804         * tests/test-unsetenv.c: Likewise.
42805
42806 2009-11-16  Jim Meyering  <meyering@redhat.com>
42807
42808         version-etc: relax license to LGPLv3+
42809         * modules/version-etc (License): Relax license.
42810
42811         better AC_REQUIRE expanded-before-required-warning avoidance
42812         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42813         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42814         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42815         which is no longer needed.
42816
42817 2009-11-16  Eric Blake  <ebb9@byu.net>
42818
42819         test-freading: clean up temporary file
42820         * tests/test-freading.c (main): Remove file on success, and use
42821         ASSERT more liberally.
42822         Reported by Jim Meyering.
42823
42824 2009-11-16  Jim Meyering  <meyering@redhat.com>
42825
42826         avoid new AC_REQUIRE expanded-before-required warnings
42827         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42828         merely using it.
42829         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42830         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42831
42832 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42833
42834         * tests/test-xalloc-die.c: New file.
42835         * modules/xalloc-die-tests: New file.
42836         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42837         XFAIL_TESTS so it can be appended by modules.
42838
42839 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42840
42841         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42842         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42843
42844 2009-11-14  Eric Blake  <ebb9@byu.net>
42845
42846         fnmatch: avoid compiler warning
42847         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42848         to silence compiler warning about mismatch signedness in ?:.
42849         Reported by Robert Millan.
42850
42851         intprops: add double-inclusion guard
42852         * lib/intprops.h: Allow idempotent includes.
42853         Suggested by Bruce Korb.
42854
42855         openat: detect Solaris fchownat bug
42856         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42857         penalizing glibc chownat when only lchownat is broken.
42858         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42859         trailing slash bugs.
42860         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42861         * modules/openat-tests (Files): Include more files.
42862         (Depends-on): Add mgetgroups, sleep, stat-time.
42863         (configure.ac): Add additional checks.
42864         (Makefile.am): Build new test.
42865         * tests/test-fchownat.c: New file.
42866
42867         lchown: detect Solaris and FreeBSD bug
42868         * lib/lchown.c (rpl_lchown): Work around bug.
42869         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42871         * modules/unistd (Makefile.am): Populate it.
42872         * lib/unistd.in.h (lchown): Update declaration.
42873         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42874         * modules/lchown-tests: New file.
42875         * tests/test-lchown.h (test_lchown): Likewise.
42876         * tests/test-lchown.c (main): Likewise.
42877
42878         chown: detect Solaris and FreeBSD bug
42879         * lib/chown.c (rpl_chown): Work around bug.
42880         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42881         (gl_PREREQ_CHOWN): Delete.
42882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42883         * modules/unistd (Makefile.am): Populate it.
42884         * lib/unistd.in.h (chown): Update declaration.
42885         * lib/lchown.c (chown): Update client.
42886         * modules/lchown (Depends-on): Add lstat.
42887         * doc/posix-functions/chown.texi (chown): Document the bug.
42888         * doc/posix-functions/getgroups.texi (getgroups): Document
42889         getgroups pitfall.
42890         * modules/chown-tests: New file.
42891         * tests/test-chown.h (test_chown): Likewise.
42892         * tests/test-chown.c (main): Likewise.
42893
42894 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42895
42896         gnulib-tool: correctly detect absence of m4 directories
42897         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42898
42899 2009-11-14  Jim Meyering  <meyering@redhat.com>
42900
42901         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42902         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42903
42904 2009-11-14  John W. Eaton  <jwe@gnu.org>
42905
42906         strftime.h: wrap function declaration in extern "C" block
42907         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42908
42909 2009-11-13  Eric Blake  <ebb9@byu.net>
42910
42911         getgroups: avoid compiler warning
42912         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42913
42914         getgroups: work around FreeBSD bug
42915         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42916         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42917         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42918         * tests/test-getgroups.c (main): Fix buffer overrun.
42919
42920         getgroups: avoid compilation failure
42921         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42922         * modules/getgroups (Depends-on): Add stdint.
42923
42924 2009-11-13  Jim Meyering  <meyering@redhat.com>
42925
42926         test-getgroups: avoid compilation failure
42927         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42928
42929 2009-11-13  Eric Blake  <ebb9@byu.net>
42930
42931         mgetgroups: new module, taken from coreutils
42932         * modules/mgetgroups: New file.
42933         * lib/mgetgroups.h: Likewise.
42934         * lib/mgetgroups.c (mgetgroups): Likewise.
42935         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42936         * MODULES.html.sh (Users and groups): Mention it.
42937
42938         getgroups: don't expose GETGROUPS_T to user
42939         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42940         an element at a time if GETGROUPS_T is wrong size.
42941         * lib/getugroups.h (getugroups): Change signature.
42942         * lib/unistd.in.h (getgroups): Likewise.
42943         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42944         signature needs fixing.
42945         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42946         AC_TYPE_GETGROUPS.
42947         * modules/group-member (Depends-on): Add getgroups.
42948         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42949         (group_member): Rely on getgroups replacement.
42950         * lib/getugroups.c (getugroups): Use gid_t.
42951         * tests/test-getgroups.c (main): Likewise.
42952         * NEWS: Mention the signature change.
42953         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42954         problem with signature.
42955         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42956         GETGROUPS_T is still useful for setgroups.
42957
42958         getgroups, getugroups: provide stubs for mingw
42959         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42960         * lib/getugroups.c (getugroups): Likewise.
42961         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42962         function.  Modernize replacement scheme.
42963         (gl_PREREQ_GETGROUPS): Delete.
42964         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42965         * modules/getgroups (configure.ac): Declare witness.
42966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42967         * modules/unistd (Depends-on): Substitute witness.
42968         * lib/unistd.in.h (getgroups): Declare replacement.
42969
42970         getgroups: avoid calling exit
42971         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42972         drop xalloc.
42973         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42974         dependencies.
42975         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42976         exiting, in the rare case of malloc failure.
42977
42978         getgroups: fix logic error
42979         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42980         has more than 20 groups.
42981         * modules/getgroups-tests: New test.
42982         * tests/test-getgroups.c: New file.
42983
42984 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42985
42986         * tests/test-base64.c: Improve.
42987
42988 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42989
42990         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42991         Blake <ebb9@byu.net>.
42992
42993 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42994
42995         * tests/test-xvasprintf.c: Add %s%s related checks.
42996
42997 2009-11-12  Eric Blake  <ebb9@byu.net>
42998
42999         version-etc: match standards.texi style
43000         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43001         and use <> only for URLs.
43002
43003 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43004
43005         fts: do not fail on a submount during traversal
43006         * lib/fts.c (fts_build): Read the stat info again after opening
43007         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43008         Original report at http://bugzilla.redhat.com/501848.
43009
43010 2009-11-12  Jim Meyering  <meyering@redhat.com>
43011
43012         bootstrap: sync from coreutils
43013         * build-aux/bootstrap (bootstrap_epilogue): New function.
43014         Use git_modules_config in one more place.  This make bootstrap's
43015         --gnulib-srcdir option more useful for testing.
43016
43017         bootstrap: generalize autoheader check
43018         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43019         AC_CONFIG_HEADERS.
43020
43021 2009-11-11  Eric Blake  <ebb9@byu.net>
43022
43023         mkfifoat: use new modules for Solaris and BSD bugs
43024         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43025         * lib/mkfifoat.c (mknodat): Split...
43026         * lib/mknodat.c (mknodat): ...into new file.
43027         * modules/mkfifoat (Files): Ship new file.
43028         (Depends-on): Add mkfifo, mknod.
43029         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43030         (Depends-on): Add symlink.
43031         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43032         redundant with test_mkfifo.h.
43033         (do_mkfifoat, do_mknodat): New helpers.
43034
43035         mknod: new module
43036         * modules/mknod: New file.
43037         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43038         * lib/mknod.c (mknod): Likewise.
43039         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43040         defaults.
43041         * modules/sys_stat (Makefile.am): Substitute them.
43042         * lib/sys_stat.in.h (mknod): Declare replacement.
43043         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43044         Document it.
43045         * doc/posix-functions/mknod.texi (mknod): Likewise.
43046         * modules/mknod-tests: New test.
43047         * tests/test-mknod.c: Likewise.
43048
43049         mkfifo: new module
43050         * modules/mkfifo: New file.
43051         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43052         * lib/mkfifo.c (mkfifo): Likewise.
43053         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43054         defaults.
43055         * modules/sys_stat (Makefile.am): Substitute them.
43056         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43057         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43058         Document it.
43059         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43060         * modules/mkfifo-tests: New test.
43061         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43062         from test-mkfifoat.c.
43063         * tests/test-mkfifo.c: New file.
43064
43065         readlink: detect FreeBSD bug
43066         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43067         slash on symlink.
43068         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43069         * tests/test-readlink.h (test_readlink): Enhance test.
43070
43071         symlink: detect FreeBSD bug
43072         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43073         slash on symlink.
43074         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43075         * tests/test-symlink.h (test_symlink): Enhance test.
43076
43077 2009-11-10  Eric Blake  <ebb9@byu.net>
43078
43079         link: detect FreeBSD bug
43080         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43081         symlink.
43082         * doc/posix-functions/link.texi (link): Document the bug.
43083         * tests/test-link.h (test_link): Enhance test.
43084         * tests/test-linkat.c (main): Update caller.
43085
43086         unlink, remove: detect FreeBSD bug
43087         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43088         slash on symlink.
43089         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43090         * doc/posix-functions/remove.texi (remove): Likewise.
43091         * tests/test-unlink.h (test_unlink): Enhance test.
43092         * tests/test-remove.c (main): Likewise.
43093
43094 2009-11-09  Eric Blake  <ebb9@byu.net>
43095
43096         rename: detect FreeBSD bug
43097         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43098         slash on symlink.
43099         * modules/renameat-tests (Depends-on): Add filenamecat.
43100         * tests/test-rename.h (test_rename): Allow one more errno.
43101         * tests/test-renameat.c (main): Likewise.
43102         * doc/posix-functions/rename.texi (rename): Document the bug.
43103
43104         open: detect FreeBSD bug
43105         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43106         symlink.
43107         * doc/posix-functions/open.texi (open): Document the bug.
43108         * doc/posix-functions/utimes.texi (utimes): Likewise.
43109         * tests/test-open.h (test_open): Add parameters, and test symlink
43110         handling.
43111         * tests/test-open.c (main): Adjust caller.
43112         * tests/test-fcntl-safer.c (main): Likewise.
43113         * modules/open-tests (Depends-on): Add stdbool, symlink.
43114         * modules/fcntl-safer-tests (Depends-on): Likewise.
43115         * tests/test-openat.c (main): Add test-open tests.
43116
43117         stat: detect FreeBSD bug
43118         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43119         symlink.
43120         * doc/posix-functions/stat.texi (stat): Document the bug.
43121         * tests/test-stat.h (test_stat_func): Add argument.
43122         * tests/test-stat.c (main): Adjust caller.
43123         * tests/test-fstatat.c (main): Likewise.
43124         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43125         Reported by Jim Meyering.
43126
43127 2009-11-09  James Youngman  <jay@gnu.org>
43128
43129         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43130         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43131
43132 2009-11-08  Jim Meyering  <meyering@redhat.com>
43133
43134         utimens: remove invalid futimesat call
43135         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43136         It used the file descriptor of the target file as the DIR_FD
43137         parameter and NULL as the file name.  That caused failure with
43138         errno == EFAULT on FreeBSD-8.0-rc2
43139
43140 2009-11-07  Eric Blake  <ebb9@byu.net>
43141
43142         fflush, freadseek: use fseeko, not fseek
43143         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43144         (clear_ungetc_buffer): Avoid potential problems on large files.
43145         * lib/freadseek.c (freadseek): Likewise.
43146         * modules/freadseek (Depends-on): Add fseeko.
43147         * modules/fseek (configure.ac): Set a witness.
43148         * tests/test-fflush.c (main): Use fseeko.
43149         * tests/test-fpurge.c (fseek): Disable link warning.
43150         * tests/test-freadable.c (fseek): Likewise.
43151         * tests/test-freading.c (fseek): Likewise.
43152         * tests/test-fseeko.c (fseek): Likewise.
43153         * tests/test-ftell.c (fseek): Likewise.
43154         * tests/test-ftello.c (fseek): Likewise.
43155         * tests/test-fwritable.c (fseek): Likewise.
43156         * tests/test-fwriting.c (fseek): Likewise.
43157
43158 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43159
43160         * modules/memchr (Depends-on): Drop getpagesize dependency.
43161
43162 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43163
43164         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43165         Reported by Ludovic Courtès.
43166         * build-aux/pmccabe2html: Improve example usage.
43167         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43168
43169 2009-11-06  Jim Meyering  <meyering@redhat.com>
43170
43171         do-release-commit-and-tag: New module.
43172         Automate the release-commit and tag process.
43173         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43174         * modules/do-release-commit-and-tag: New file.
43175         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43176
43177 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43178
43179         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43180         because test-select.c uses inet_pton.
43181
43182 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43183
43184         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43185         GETADDRINFO_LIB.  Bump serial number.
43186         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43187         Suggested by Eric Blake <ebb9@byu.net>.
43188
43189 2009-11-05  Eric Blake  <ebb9@byu.net>
43190
43191         strtod: detect darwin bug
43192         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43193         Reported by Leo Davis.
43194
43195         freopen-safer: new module
43196         * modules/freopen-safer: New module.
43197         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43198         * lib/freopen-safer.c (freopen_safer): New file.
43199         * lib/stdio-safer.h (freopen_safer): New declaration.
43200         * lib/stdio--.h (freopen): New override.
43201         * MODULES.html.sh (File stream based Input/Output): Mention it.
43202         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43203         freopen-safer module.
43204         * doc/posix-functions/stderr.texi (stderr): Likewise.
43205         * doc/posix-functions/stdin.texi (stdin): Likewise.
43206         * doc/posix-functions/stdout.texi (stdout): Likewise.
43207         * modules/freopen-safer-tests: New test.
43208         * tests/test-reopen-safer.c: New file.
43209
43210 2009-11-05  Jim Meyering  <meyering@redhat.com>
43211
43212         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43213         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43214
43215 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43216
43217         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43218
43219 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43220
43221         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43222
43223 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43224
43225         Fix link error.
43226         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43227         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43228
43229 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43230
43231         * tests/test-func.c: Also test value of __func__.
43232
43233 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43234
43235         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43236         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43237
43238 2009-11-05  Bruno Haible  <bruno@clisp.org>
43239
43240         Fix link error.
43241         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43242         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43243         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43244
43245 2009-11-05  Bruno Haible  <bruno@clisp.org>
43246
43247         Tests for module 'inet_pton'.
43248         * modules/inet_pton-tests: New file.
43249         * tests/test-inet_pton.c: New file.
43250
43251 2009-11-05  Bruno Haible  <bruno@clisp.org>
43252
43253         Tests for module 'inet_ntop'.
43254         * modules/inet_ntop-tests: New file.
43255         * tests/test-inet_ntop.c: New file.
43256
43257 2009-11-04  Eric Blake  <ebb9@byu.net>
43258
43259         stdlib-safer: wrap all mkstemp variants
43260         * modules/mkostemp (configure.ac): Set witness.
43261         * modules/mkostemps (configure.ac): Likewise.
43262         * modules/mkstemps (configure.ac): Likewise.
43263         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43264         (mkstemps_safer): Wrap more functions.
43265         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43266         wrapping.
43267         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43268         (mkstemps_safer): Implement the wrappers.
43269
43270         mkstemps, mkostemps: new modules
43271         * modules/mkostemps: New module.
43272         * modules/mkstemps: Likewise.
43273         * lib/mkostemps.c (mkostemps): New file.
43274         * lib/mkstemps.c (mkstemps): Likewise.
43275         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43276         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43278         * modules/stdlib (Makefile.am): Substitute them.
43279         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43280         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43281         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43282         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43283         * MODULES.html.sh (File system functions): Mention them.
43284
43285         tempname: resync from glibc
43286         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43287         same values for __GT_FILE as glibc.  Abort even when assertions
43288         are disabled.
43289         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43290         match its value otherwise.  Allow idempotent inclusion.
43291         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43292         * lib/mkostemp.c (mkostemp): Likewise.
43293         * lib/mkstemp.c (mkstemp): Likewise.
43294         * lib/tmpfile.c (tmpfile): Likewise.
43295         * NEWS: Document this.
43296
43297         utimens: fix use of futimens on older Linux
43298         * lib/utimens.c (fdutimens): Use updated, rather than original,
43299         timespec to avoid bug in older Linux kernel.
43300         Reported by Simon Josefsson.
43301
43302 2009-11-04  Bruno Haible  <bruno@clisp.org>
43303
43304         Make num_processors more flexible and consistent.
43305         * lib/nproc.h (enum nproc_query): New type.
43306         (num_processors): Add a 'query' argument.
43307         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43308         (num_processors): Add a 'query' argument. Test the value of the
43309         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43310         mingw, count the number of CPUs available for the current process.
43311         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43312         Check for sched_getaffinity and sched_getaffinity_np.
43313         * modules/nproc (Depends-on): Add c-ctype, extensions.
43314         * NEWS: Mention the change.
43315
43316 2009-11-03  Bruno Haible  <bruno@clisp.org>
43317
43318         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43319
43320 2009-11-03  Jim Meyering  <meyering@redhat.com>
43321
43322         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43323         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43324         if it is defined.
43325
43326 2009-11-02  Eric Blake  <ebb9@byu.net>
43327
43328         mktime, timegm: share common declaration
43329         * lib/mktime-internal.h: New file.
43330         * lib/mktime.c: Use it rather than open-coding a declaration.
43331         * lib/timegm.c: Likewise.
43332         * modules/mktime (Files): Ship it.
43333         * modules/timegm (Files): Likewise.
43334         Suggested by Bruno Haible.
43335
43336         test-update-copyright: update test to match script changes
43337         * tests/test-update-copyright.sh: Avoid hard-coding perl
43338         location.  Don't update *.bak created by earlier runs.
43339
43340 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43341             Simon Josefsson  <simon@josefsson.org>
43342             Bruno Haible  <bruno@clisp.org>
43343
43344         Fix link error on Solaris 8.
43345         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43346         also in libnsl. Define also INET_PTON_LIB.
43347         * modules/inet_pton (Link): New section.
43348
43349 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43350             Bruno Haible  <bruno@clisp.org>
43351
43352         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43353         * modules/inet_ntop (Link): New section.
43354         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43355
43356 2009-11-02  Eric Blake  <ebb9@byu.net>
43357
43358         maint: avoid compiler warnings in m4 macros
43359         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43360         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43361
43362 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43363
43364         * m4/pmccabe2html.m4: Remove file.
43365         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43366         function.  Change maintainer.
43367         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43368         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43369         Courtès).
43370
43371 2009-10-31  Eric Blake  <ebb9@byu.net>
43372
43373         fseeko: fix m4 regression
43374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43375         regression from 2009-10-27.
43376         Reported by Ralf Wildenhues.
43377
43378 2009-10-31  Jim Meyering  <meyering@redhat.com>
43379
43380         inttostr: aesthetics and improved (compile-time) safety
43381         Define inttype_is_signed rather than inttype_is_unsigned,
43382         since the sole use is via "#if inttype_is_signed".
43383         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43384         inttype_is_unsigned.
43385         * lib/offtostr.c (inttype_is_signed): Likewise.
43386         * lib/uinttostr.c (inttype_is_signed): Likewise.
43387         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43388         * lib/inttostr.c (inttostr): Use verify to cross-check the
43389         inttype_is_signed value and the signedness of the actual type.
43390         * modules/inttostr (Depends-on): Add verify.
43391
43392 2009-10-30  Eric Blake  <ebb9@byu.net>
43393
43394         build: avoid compiler warnings
43395         * lib/fchmodat.c (lchmod): Mark unused variables.
43396         * lib/getopt.c (_getopt_initialize): Likewise.
43397         * lib/mktime.c (__mktime_internal): Provide prototype.
43398         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43399         older gcc that do not understand #pragma GCC diagnostic.
43400         * lib/uinttostr.c (inttype_is_unsigned): Define.
43401         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43402
43403 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43404
43405         stat: fix compilation on AIX
43406         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43407         only see struct stat64.
43408
43409 2009-10-30  Eric Blake  <ebb9@byu.net>
43410
43411         exclude: make more robust
43412         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43413         rather than masking a coding bug.
43414         Suggested by Bruno Haible.
43415
43416 2009-10-30  Jim Meyering  <meyering@redhat.com>
43417
43418         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43419         Rather than putting #!/usr/bin/perl on the first line,
43420         start with a variant of what's recommended by "man perlrun" that
43421         invokes the first "perl" program from your shell's search path.
43422         * build-aux/gitlog-to-changelog: Replace #!... as above.
43423         Add a "Local Variables" perl mode setting.
43424         Prompted by a patch from Ludovic Courtès.
43425         Improved by Eric Blake.
43426         * build-aux/useless-if-before-free: Likewise.
43427         * build-aux/announce-gen: Likewise.
43428         * build-aux/update-copyright: Likewise.
43429
43430 2009-10-29  Eric Blake  <ebb9@byu.net>
43431
43432         filenamecat-lgpl: adjust clients
43433         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43434         filenamecat.
43435         * modules/renameat (Depends-on): Likewise.
43436
43437         filenamecat: split into filenamecat-lgpl
43438         * modules/filenamecat-lgpl: New module.
43439         * modules/filenamecat (Files): Move library-safe files into
43440         filenamecat-lgpl.
43441         (Depends-on): Add filenamecat-lgpl.
43442         (configure.ac): Declare witness.
43443         * lib/filenamecat.h (file_name_concat): Only declare when using
43444         GPL module.
43445         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43446         Move...
43447         * lib/filenamecat-lgpl.c: ...into new file.
43448         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43449         (gl_FILE_NAME_CONCAT): Use it.
43450         * MODULES.html.sh (File system functions): Mention new module.
43451
43452         argp: avoid memory leak
43453         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43454         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43455         base_name, since the latter malloc()s and can call exit().
43456         Leak introduced 2006-07-03.
43457
43458         dirname-lgpl: adjust clients that don't need full dirname
43459         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43460         * modules/filenamecat (Depends-on): Likewise.
43461         * modules/linkat (Depends-on): Likewise.
43462         * modules/mkancesdirs (Depends-on): Likewise.
43463         * modules/mkdir (Depends-on): Likewise.
43464         * modules/openat (Depends-on): Likewise.
43465         * modules/savewd (Depends-on): Likewise.
43466         * modules/rename (Depends-on): Likewise.
43467         (License): Relax license.
43468         * modules/mkdir-tests (Depends-on): Drop progname.
43469         (Makefile.am): Delete unneeded LDADD.
43470         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43471
43472         dirname: split into dirname-lgpl
43473         * modules/dirname-lgpl: New module.
43474         * modules/dirname (Files): Move library-safe files into
43475         dirname-lgpl.
43476         (Depends-on): Add dirname-lgpl.
43477         (configure.ac): Declare witness.
43478         * modules/double-slash-root (License): Relax license.
43479         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43480         module.
43481         * lib/dirname.c (dir_len, mdir_name): Move...
43482         * lib/dirname-lgpl.c: ...into new file.
43483         * lib/basename.c (last_component, base_len): Move...
43484         * lib/basename-lgpl.c: ...into new file.
43485         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43486         (gl_DIRNAME): Use it.
43487         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43488         Mention new module.
43489         * modules/dirname-tests (Depends-on): Add progname.
43490         * tests/test-dirname.c (program_name): Delete.
43491
43492         mkdir: make safe for libraries
43493         * modules/mkdir (Depends-on): Drop xalloc.
43494         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43495         exit.
43496
43497         tests: avoid some compiler warnings
43498         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43499         literals.
43500         * tests/test-memchr.c (main): Avoid type mismatch.
43501         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43502         * tests/test-base64.c (main): Likewise.
43503         * tests/test-getdelim.c (main): Likewise.
43504         * tests/test-gethostname.c (main): Likewise.
43505         * tests/test-getline.c (main): Likewise.
43506         * tests/test-netinet_in.c (main): Likewise.
43507         * tests/test-select.c (open_server_socket, main): Likewise.
43508         * tests/test-select-stdin.c (main): Likewise.
43509         * tests/test-sockets.c (main): Likewise.
43510         * tests/test-strsignal.c (main): Likewise.
43511         * tests/test-sys_select.c (main): Likewise.
43512         * tests/test-sys_socket.c (main): Likewise.
43513         * tests/test-u64.c (main): Likewise.
43514         * tests/test-xfprintf-posix.c (main): Likewise.
43515         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43516
43517         sockets: avoid compiler warning
43518         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43519
43520         maint: detect usage(1) and other suspicious exits
43521         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43522
43523 2009-10-29  Jim Meyering  <meyering@redhat.com>
43524
43525         timespec: long-to-int truncation could make timespec_cmp malfunction
43526         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43527         a multiple of 2^32 nanoseconds as no difference.
43528
43529 2009-10-28  Jim Meyering  <meyering@redhat.com>
43530
43531         fprintftime: wrap macro code argument in "do {...} while(0)"
43532         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43533         cpy macro must be a statement that can be followed by a semicolon.
43534         Now that the else clause contains a comment and is hence longer
43535         than one line, I require curly braces.  That in turn requires
43536         that we wrap this code block in the standard do...while(0).
43537
43538         fprintftime: remove stray semicolon from previous change
43539         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43540
43541         fprintftime: avoid a warning about ignored fwrite return value
43542         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43543         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43544         that is unsafe.
43545         * modules/fprintftime (Depends-on): Add ignore-value.
43546
43547         exclude: avoid an unwarranted warning
43548         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43549
43550 2009-10-27  Eric Blake  <ebb9@byu.net>
43551
43552         fseek: avoid compilation failure when fflush is replaced
43553         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43554         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43555         module is in use.
43556         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43557         module is not in use; since REPLACE_FSEEK worked otherwise.
43558         (GNULIB_FTELLO): Likewise for ftell.
43559         Reported by Ian Beckwith and others.
43560
43561 2009-10-27  Bruno Haible  <bruno@clisp.org>
43562
43563         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43564         Reported by Jim Meyering.
43565
43566 2009-10-27  Jim Meyering  <jim@meyering.net>
43567             Bruno Haible  <bruno@clisp.org>
43568
43569         Avoid warning despite dropping the return value of fwrite.
43570         * lib/unicodeio.c: Include ignore-value.h.
43571         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43572         * modules/unicodeio (Depends-on): Add ignore-value.
43573
43574 2009-10-26  Eric Blake  <ebb9@byu.net>
43575
43576         areadlinkat: fix fallback path
43577         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43578         pointer and zero.
43579
43580 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43581
43582         Use a better IO block size for modern systems
43583         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43584         * lib/md2.c: Likewise.
43585         * lib/md4.c: Likewise.
43586         * lib/md5.c: Likewise.
43587         * lib/sha1.c: Likewise.
43588         * lib/sha256.c: Likewise.
43589         * lib/sha512.c: Likewise.
43590
43591 2009-10-22  Eric Blake  <ebb9@byu.net>
43592
43593         tests: avoid several compiler warnings
43594         * tests/test-getcwd.c (main): Avoid buffer underflow.
43595         * tests/test-getdate.c (main): String literals are not safe with
43596         putenv, so use setenv.  Declare unused argument.
43597         * modules/getdate-tests (Depends-on): Add setenv.
43598         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43599         problems with string literals in char *.
43600         * tests/test-hash.c (main): Avoid shadowing declaration.
43601         (insert_new): Treat string literals as char const *.
43602         * tests/test-getopt.h (test_getopt): Likewise.
43603         (getopt_loop): Alter types to minimize casting elsewhere.
43604         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43605         (test_getopt_long_posix): Likewise.
43606         (do_getopt_long): Add wrapper to minimize casting.
43607         * tests/test-atexit.c (clear_temp_file): Use void.
43608         * tests/test-areadlink-with-size.c (main): Declare unused
43609         arguments.
43610         * tests/test-areadlink.c (main): Likewise.
43611         * tests/test-areadlinkat-with-size.c (main): Likewise.
43612         * tests/test-areadlinkat.c (main): Likewise.
43613         * tests/test-canonicalize-lgpl.c (main): Likewise.
43614         * tests/test-canonicalize.c (main): Likewise.
43615         * tests/test-dirent-safer.c (main): Likewise.
43616         * tests/test-dirname.c (main): Likewise.
43617         * tests/test-dup2.c (main): Likewise.
43618         * tests/test-fchdir.c (main): Likewise.
43619         * tests/test-fcntl-h.c (main): Likewise.
43620         * tests/test-fcntl-safer.c (main): Likewise.
43621         * tests/test-fdopendir.c (main): Likewise.
43622         * tests/test-fdutimensat.c (main): Likewise.
43623         * tests/test-fflush.c (main): Likewise.
43624         * tests/test-filenamecat.c (main): Likewise.
43625         * tests/test-filevercmp.c (main): Likewise.
43626         * tests/test-fopen-safer.c (main): Likewise.
43627         * tests/test-fopen.c (main): Likewise.
43628         * tests/test-fpending.c (main): Likewise.
43629         * tests/test-fpurge.c (main): Likewise.
43630         * tests/test-freading.c (main): Likewise.
43631         * tests/test-fstatat.c (main): Likewise.
43632         * tests/test-fsync.c (main): Likewise.
43633         * tests/test-futimens.c (main): Likewise.
43634         * tests/test-getndelim2.c (main): Likewise.
43635         * tests/test-gettimeofday.c (main): Likewise.
43636         * tests/test-getopt.c (main): Likewise.
43637         * tests/test-i-ring.c (main): Likewise.
43638         * tests/test-inttypes.c (main): Likewise.
43639         * tests/test-link.c (main): Likewise.
43640         * tests/test-lstat.c (main): Likewise.
43641         * tests/test-math.c (main): Likewise.
43642         * tests/test-md5.c (main): Likewise.
43643         * tests/test-memchr2.c (main): Likewise.
43644         * tests/test-memrchr.c (main): Likewise.
43645         * tests/test-mkdir.c (main): Likewise.
43646         * tests/test-mkdirat.c (main): Likewise.
43647         * tests/test-mkfifoat.c (main): Likewise.
43648         * tests/test-open.c (main): Likewise.
43649         * tests/test-openat-safer.c (main): Likewise.
43650         * tests/test-openat.c (main): Likewise.
43651         * tests/test-quotearg.c (main): Likewise.
43652         * tests/test-rawmemchr.c (main): Likewise.
43653         * tests/test-readlink.c (main): Likewise.
43654         * tests/test-remove.c (main): Likewise.
43655         * tests/test-rename.c (main): Likewise.
43656         * tests/test-renameat.c (main): Likewise.
43657         * tests/test-rmdir.c (main): Likewise.
43658         * tests/test-sha1.c (main): Likewise.
43659         * tests/test-signal.c (main): Likewise.
43660         * tests/test-sigaction.c (main): Likewise.
43661         * tests/test-stat.c (main): Likewise.
43662         * tests/test-stat-time.c (main): Likewise.
43663         * tests/test-stddef.c (main): Likewise.
43664         * tests/test-stdint.c (main): Likewise.
43665         * tests/test-stdio.c (main): Likewise.
43666         * tests/test-stdlib.c (main): Likewise.
43667         * tests/test-strchrnul.c (main): Likewise.
43668         * tests/test-strerror.c (main): Likewise.
43669         * tests/test-string.c (main): Likewise.
43670         * tests/test-strtod.c (main): Likewise.
43671         * tests/test-strverscmp.c (main): Likewise.
43672         * tests/test-symlink.c (main): Likewise.
43673         * tests/test-symlinkat.c (main): Likewise.
43674         * tests/test-sys_stat.c (main): Likewise.
43675         * tests/test-sys_time.c (main): Likewise.
43676         * tests/test-time.c (main): Likewise.
43677         * tests/test-unistd.c (main): Likewise.
43678         * tests/test-unlink.c (main): Likewise.
43679         * tests/test-unlinkat.c (main): Likewise.
43680         * tests/test-utimens.c (main): Likewise.
43681         * tests/test-utimensat.c (main): Likewise.
43682         * tests/test-version-etc.c (main): Likewise.
43683         * tests/test-wchar.c (main): Likewise.
43684         * tests/test-wctype.c (main): Likewise.
43685         * tests/test-xprintf-posix.c (main): Likewise.
43686         * tests/test-posixtm.c (main): Likewise.
43687         (STREQ): Delete unused macro.
43688         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43689         shadowed variables.
43690         * tests/test-memchr.c (main): Likewise.
43691
43692 2009-10-21  Eric Blake  <ebb9@byu.net>
43693
43694         areadlinkat: avoid failure on older glibc
43695         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43696         rather than mis-comparing 0 against FUNC_RESULT of char*.
43697
43698 2009-10-21  Bruno Haible  <bruno@clisp.org>
43699
43700         * modules/stpncpy (License): Relicense under LGPLv2+.
43701         Reported by David Lutterkort <lutter@redhat.com>.
43702
43703 2009-10-20  Eric Blake  <ebb9@byu.net>
43704
43705         utimensat: work around Solaris 9 bug
43706         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43707         has trailing slash bugs.
43708         * tests/test-lutimens.h (test_lutimens): Enhance test.
43709         * tests/test-utimens.h (test_utimens): Likewise.
43710         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43711         * doc/posix-functions/utimes.texi (utimes): Likewise.
43712         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43713         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43714         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43715         * doc/posix-functions/futimens.texi (futimens): Likewise.
43716
43717         fdutimensat: new module
43718         * modules/fdutimensat: New file.
43719         * lib/fdutimensat.c (fdutimensat): Likewise.
43720         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43721         * MODULES.html.sh (File system functions): Mention module.
43722         * modules/fdutimensat-tests: New test.
43723         * tests/test-fdutimensat.c: Likewise.
43724
43725         doc: regenerate INSTALL
43726         * doc/INSTALL: Reflect recent autoconf update.
43727         * doc/INSTALL.ISO: Likewise.
43728         * doc/INSTALL.UTF-8: Likewise.
43729
43730 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43731
43732         acl: warn if ACL support is not detected
43733         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43734
43735 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43736
43737         * lib/nproc.h: Add extern "C" block for C++.
43738
43739 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43740             Bruno Haible  <bruno@clisp.org>
43741
43742         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43743         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43744         * doc/posix-functions/isalpha.texi: Likewise.
43745         * doc/posix-functions/isblank.texi: Likewise.
43746         * doc/posix-functions/iscntrl.texi: Likewise.
43747         * doc/posix-functions/isdigit.texi: Likewise.
43748         * doc/posix-functions/isgraph.texi: Likewise.
43749         * doc/posix-functions/islower.texi: Likewise.
43750         * doc/posix-functions/isprint.texi: Likewise.
43751         * doc/posix-functions/ispunct.texi: Likewise.
43752         * doc/posix-functions/isspace.texi: Likewise.
43753         * doc/posix-functions/isupper.texi: Likewise.
43754         * doc/posix-functions/isxdigit.texi: Likewise.
43755
43756 2009-10-18  Bruno Haible  <bruno@clisp.org>
43757
43758         Tests for module 'isblank'.
43759         * modules/isblank-tests: New file.
43760         * tests/test-isblank.c: New file.
43761
43762         New module 'isblank'.
43763         * lib/isblank.c: New file.
43764         * m4/isblank.m4: New file.
43765         * modules/isblank: New file.
43766         * doc/posix-functions/isblank.texi: Mention the new module.
43767
43768 2009-10-18  Bruno Haible  <bruno@clisp.org>
43769
43770         New module 'ctype'.
43771         * lib/ctype.in.h: New file.
43772         * m4/ctype.m4: New file.
43773         * modules/ctype: New file.
43774         * doc/posix-headers/ctype.texi: Mention the new module.
43775
43776 2009-10-18  Jim Meyering  <meyering@redhat.com>
43777
43778         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43779         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43780         right after its initialization, rather than farther down.
43781         Keeping these in close proximity makes it easier to ensure
43782         that each such variable is initialized.  E.g.,
43783
43784             LIB_CLOCK_GETTIME=
43785             AC_SUBST([LIB_CLOCK_GETTIME])
43786
43787         This change also increments these serial numbers.
43788         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43789         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43791
43792 2009-10-18  Bruno Haible  <bruno@clisp.org>
43793
43794         Don't let environment variables perturb build.
43795         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43796         (gl_PREREQ_GETHRXTIME): ... not here.
43797
43798 2009-10-18  Bruno Haible  <bruno@clisp.org>
43799
43800         Avoid symlink attack in localcharset module.
43801         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43802         (O_NOFOLLOW): Define fallback.
43803         (get_charset_aliases): Don't open the file if it is a symbolic link.
43804         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43805         gl_FCNTL_H.
43806         (gl_FCNTL_H): Require it.
43807         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43808         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43809         Reported by Fergal Glynn <fglynn@veracode.com>.
43810
43811 2009-10-18  Bruno Haible  <bruno@clisp.org>
43812
43813         Implement nproc for mingw.
43814         * lib/nproc.c: Include <windows.h>
43815         (num_processors): On native Windows platforms, try GetSystemInfo.
43816
43817 2009-10-18  Bruno Haible  <bruno@clisp.org>
43818
43819         Implement nproc for IRIX.
43820         * lib/nproc.c: Include <sys/sysmp.h>.
43821         (num_processors): On IRIX systems, try sysmp.
43822         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43823
43824 2009-10-18  Bruno Haible  <bruno@clisp.org>
43825
43826         Implement nproc for HP-UX.
43827         * lib/nproc.c: Include <sys/pstat.h>
43828         (num_processors): On HP-UX systems, try pstat_getdynamic.
43829         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43830         pstat_getdynamic.
43831
43832 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43833             Bruno Haible  <bruno@clisp.org>
43834
43835         Implement nproc for NetBSD, OpenBSD.
43836         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43837         (ARRAY_SIZE): New macro.
43838         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43839         * m4/nproc.m4: New file.
43840         * modules/nproc (Files): Add m4/nproc.m4.
43841         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43842         (Makefile.am): Instead, augment lib_SOURCES.
43843
43844 2009-10-18  Bruno Haible  <bruno@clisp.org>
43845
43846         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43847         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43848         sys/param.h.
43849
43850 2009-10-16  Eric Blake  <ebb9@byu.net>
43851
43852         utimensat: new module
43853         * modules/utimensat: New file.
43854         * lib/utimensat.c (utimensat): Likewise.
43855         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43856         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43857         so we can work around Linux bugs.
43858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43859         * modules/sys_stat (Makefile.am): Substitute them.
43860         * lib/sys_stat.in.h (utimensat): Declare it.
43861         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43862         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43863         * modules/utimensat-tests: New test.
43864         * tests/test-utimensat.c: Likewise.
43865
43866         utimens: let lutimens work on non-symlinks
43867         * lib/utimens.c (lutimens): Fall back to utimens rather than
43868         failing with ENOSYS, when file is not a symlink.
43869         (utimens): Reduce redirection.
43870         * tests/test-lutimens.h (test_lutimens): Update test to cover
43871         non-symlinks.
43872         * tests/test-utimens.h (test_utimens): Update test to cover
43873         symlinks.
43874         * tests/test-utimens.c (main): Update caller.
43875
43876         utimens: cache whether utimensat syscall works
43877         * lib/utimens.c (utimensat_works_really): New cache variable.
43878         (fdutimens, lutimens): Use it to avoid failing syscall.
43879
43880         test-stat-time, test-utimens: improve portability
43881         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43882         ext4 on alpha, and for cygwin.
43883         * tests/test-utimens-common.h: New file.
43884         (nap): Factor delays into single function.
43885         * tests/test-lutimens.h (test_lutimens): Use new header.
43886         * tests/test-futimens.h (test_futimens): Likewise.
43887         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43888         timestamps to occur from same machine, as was done previously for
43889         test_utimens.
43890         * modules/utimens-tests (Files): Ship new file.
43891         * modules/futimens-tests (Files): Likewise.
43892         Reported in part by Jim Meyering.
43893
43894         sys_stat: sort replacement declarations
43895         * lib/sys_stat.in.h: Sort declarations.
43896         * lib/futimens.c (futimens): Fix typo.
43897
43898 2009-10-15  Jim Meyering  <meyering@redhat.com>
43899
43900         don't let environment settings perturb build
43901         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43902         could cause a configure-time and/or build-time malfunction.
43903         Typically, a configure-time function-in-library test is performed
43904         via code like this:
43905
43906           LIB_VAR=
43907           AC_SUBST([LIB_VAR])
43908           prefix_saved_LIBS=$LIBS
43909             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43910                        [test "$ac_cv_search_FUNC" = "none required" ||
43911                         LIB_VAR=$ac_cv_search_FUNC])
43912           LIBS=$prefix_saved_LIBS
43913
43914         However, in each of the files affected by this change, the LIB_VAR=
43915         initialization was omitted.  Thus, when set in the environment, its
43916         value would propagate into generated Makefiles when FUNC is not found
43917         in LIB_NAME.
43918         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43919         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43921
43922 2009-10-14  Eric Blake  <ebb9@byu.net>
43923
43924         fchdir: avoid infinite recursion in mingw
43925         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43926         recursing.
43927
43928         test-stat-time: port to mingw
43929         * tests/test-stat-time.c (force_unlink): Return a value.
43930         (test_ctime) [W32]: Fix compilation error.
43931         (nap): Don't call usleep with too large an argument.  Use
43932         force_unlink.
43933         * doc/pastposix-functions/usleep.texi (usleep): Document the
43934         portability issue.
43935
43936 2009-10-13  Jim Meyering  <meyering@redhat.com>
43937
43938         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43939         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43940         * modules/pipe-filter-ii: Likewise.
43941         * modules/sys_socket-tests: Likewise.
43942         * modules/tsearch-tests: Likewise.
43943         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43944         (check): Depend on it.
43945
43946 2009-10-12  Eric Blake  <ebb9@byu.net>
43947
43948         utimens-tests: port to NFS file systems
43949         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43950         comparisons to avoid spurious failures from timestamp drift
43951         between NFS machines.
43952
43953 2009-10-12  Eric Blake  <ebb9@byu.net>
43954
43955         stat-time-tests: minor cleanups
43956         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43957         * tests/test-stat-time.c (nap): Separate assignment from call.
43958         Suggested by Paolo Bonzini and Bruno Haible.
43959
43960         sys_stat: guarantee struct timespec
43961         * lib/sys_stat.in.h (includes): Always include <time.h>
43962         * modules/sys_stat (Depends-on): Add time.
43963         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43964         mode_t permission values.
43965         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43966         get at subsecond timestamps.
43967
43968 2009-10-10  Eric Blake  <ebb9@byu.net>
43969
43970         futimens: new module
43971         * modules/futimens: New file.
43972         * lib/futimens.c (futimens): Likewise.
43973         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43974         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43975         we can work around Linux bugs.
43976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43977         * modules/sys_stat (Makefile.am): Substitute them.
43978         * lib/sys_stat.in.h (futimens): Declare it.
43979         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43980         * doc/posix-functions/futimens.texi (futimens): Likewise.
43981         * modules/futimens-tests: New test.
43982         * tests/test-futimens.c: Likewise.
43983
43984         utimens: introduce fdutimens
43985         * lib/utimens.h (fdutimens): New prototype.
43986         * lib/utimens.c (gl_futimens): Move guts...
43987         (fdutimens): ...to new interface.
43988         * tests/test-utimens.c (do_fdutimens): Use it.
43989
43990         utimens: add UTIME_NOW and UTIME_OMIT support
43991         * lib/utimens.c (validate_timespec, update_timespec): New helper
43992         functions.
43993         (gl_futimens, lutimens): Use them.
43994         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43995         stdbool, sys_stat.
43996         (Link): Mention resulting library dependency.
43997         * modules/utimecmp (Link): Likewise.
43998         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43999         (Makefile.am): Pick up library dependency.
44000         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44001         definition.
44002         * tests/test-sys_stat.c: Test the definitions.
44003         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44004         * NEWS: Document library dependency.
44005
44006         utimecmp: support symlink timestamps
44007         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44008         hashing when possible.  Use pathconf when available.
44009         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44010         * modules/utimecmp (Depends-on): Add lstat.
44011
44012         utimens: add lutimens interface
44013         * lib/utimens.c (lutimens): New function.
44014         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44015         * lib/utimens.h (lutimens): Declare new interface.
44016         * tests/test-utimens.c (main): Enhance test.
44017         * tests/test-lutimens.h (test_lutimens): New file.
44018         * modules/utimens-tests (Files): Distribute it.
44019         (Depends-on): Add symlink.
44020         (configure.ac): Check for usleep.
44021
44022         utimens: validate futimens usage
44023         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44024         fewer syscalls on failure later on.  Avoid compiler warning on
44025         mingw.
44026         * modules/utimens (Depends-on): Add dup2.
44027
44028         utimens: add test
44029         * modules/utimens-tests: New test.
44030         * tests/test-utimens.h: New file.
44031         * tests/test-futimens.h: Likewise.
44032         * tests/test-utimens.c: Likewise.
44033
44034         doc: mention timestamp portability issues
44035         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44036         instead.
44037         * doc/posix-functions/utime.texi (utime): Likewise.
44038         * doc/posix-functions/utimes.texi (utimes): Likewise.
44039         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44040         instead.
44041         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44042         module.
44043         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44044         Mention weakness with symlink timestamps.
44045         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44046         to utimensat/futimens instead.
44047         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44048
44049         test-dup2: enhance test
44050         * tests/test-dup2.c (main): Also check AT_FDCWD.
44051
44052         test-stat-time: avoid more spurious failures
44053         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44054         xfs; and avoid race if the two timestamps cross quantization edge.
44055
44056         relocatable: prefer 'file system' over 'filesystem'
44057         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44058         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44059         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44060         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44061         * lib/relocatable.c (compute_curr_prefix): Likewise.
44062
44063 2009-10-10  Jim Meyering  <meyering@redhat.com>
44064
44065         stat-time-tests: check for the usleep function
44066         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44067
44068 2009-10-10  Bruno Haible  <bruno@clisp.org>
44069
44070         * modules/xnanosleep: Put the Link section after the Include section.
44071
44072 2009-10-09  Eric Blake  <ebb9@byu.net>
44073
44074         dup2: work around FreeBSD 6.1 bug
44075         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44076         * doc/posix-functions/dup2.texi (dup2): Document it.
44077         Reported by Nelson H. F. Beebe and Jim Meyering.
44078
44079         test-stat-time: port to buggy NFS clients
44080         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44081         (test_ctime): Also skip test if mtime and ctime are skewed.
44082
44083         maint: prefer 'file system' over 'filesystem'
44084         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44085         * doc/posix-functions/lstat.texi (lstat): Likewise.
44086         * lib/file-has-acl.c (file_has_acl): Likewise.
44087         * lib/fwriteerror.c [TEST]: Likewise.
44088         * tests/test-areadlink.h (test_areadlink): Likewise.
44089         * tests/test-areadlinkat-with-size.c (main): Likewise.
44090         * tests/test-areadlinkat.c (main): Likewise.
44091         * tests/test-canonicalize-lgpl.c (main): Likewise.
44092         * tests/test-canonicalize.c (main): Likewise.
44093         * tests/test-fstatat.c (main): Likewise.
44094         * tests/test-linkat.c (main): Likewise.
44095         * tests/test-lstat.h (test_lstat_func): Likewise.
44096         * tests/test-mkdir.h (test_mkdir): Likewise.
44097         * tests/test-readlink.h (test_readlink): Likewise.
44098         * tests/test-remove.c (main): Likewise.
44099         * tests/test-rename.h (test_rename): Likewise.
44100         * tests/test-renameat.c (main): Likewise.
44101         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44102         * tests/test-symlink.h (test_symlink): Likewise.
44103         * tests/test-symlinkat.c (main): Likewise.
44104         * tests/test-unlink.h (test_unlink_func): Likewise.
44105         * tests/test-unlinkat.c (main): Likewise.
44106
44107         maint: make realtime library usage explicit
44108         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44109         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44110         * modules/settime (Link): Likewise.
44111         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44112
44113         test-stat-time: speed up execution
44114         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44115         warning on mingw.
44116         (nap): New helper function.
44117         (prepare_test): Use it to reduce sleep time.
44118         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44119         execution.
44120         * modules/stat-time-tests (configure.ac): Check for usleep.
44121
44122 2009-10-09  Jim Meyering  <meyering@redhat.com>
44123
44124         selinux-h: always use getfilecon wrappers
44125         * lib/getfilecon.c: New file.
44126         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44127         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44128         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44129         (fgetfilecon): Provide a stub.
44130         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44131         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44132         file unconditionally.
44133         When <selinux/selinux.h> is found, arrange to use wrappers.
44134         * modules/selinux-h (Files): Add getfilecon.c.
44135         (Makefile.am): Substitute include-next-related bits
44136         into the now-always-generated selinux/selinux.h file.
44137         * doc/glibc-functions/lgetfilecon.texi: New file.
44138         * doc/glibc-functions/fgetfilecon.texi: New file.
44139         * doc/glibc-functions/getfilecon.texi: New file.
44140         * doc/glibc-functions/getfilecon-desc.texi: New file.
44141         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44142         which to pull in the new files.
44143         * MODULES.html.sh (Misc): Add selinux-h.
44144
44145 2009-10-08  Jim Meyering  <meyering@redhat.com>
44146
44147         unistd: fix comment typo
44148         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44149
44150 2009-10-08  Eric Blake  <ebb9@byu.net>
44151
44152         areadlink: use SIZE_MAX consistently
44153         * modules/areadlink (Depends-on): Add stdint.
44154         * modules/areadlink-with-size (Depends-on): Likewise.
44155         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44156         gives NULL; drop sys/types, since unistd gives size_t; and add
44157         stdint for SIZE_MAX.
44158         (SIZE_MAX): Rely on headers.
44159         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44160         and add stdint.
44161         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44162         (SIZE_MAX): Likewise.
44163         (INITIAL_BUF_SIZE): Turn into enum.
44164         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44165
44166 2009-10-08  Jim Meyering  <meyering@redhat.com>
44167
44168         areadlinkat: avoid compilation failure
44169         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44170         Fix typo in comment.
44171
44172 2009-10-07  Eric Blake  <ebb9@byu.net>
44173
44174         areadlinkat-with-size: new module
44175         * modules/areadlinkat-with-size: New module.
44176         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44177         * lib/areadlink.h (areadlinkat): Declare it.
44178         * MODULES.html.sh (File system functions): Mention it.
44179         * modules/areadlinkat-with-size-tests: New test.
44180         * tests/test-areadlinkat-with-size.c: New file.
44181
44182         xreadlinkat: new module
44183         * modules/xreadlinkat: New module.
44184         * lib/xreadlinkat.c (xreadlinkat): New file.
44185         * lib/xreadlink.h (xreadlinkat): Declare it.
44186         * MODULES.html.sh (File system functions): Mention it.
44187
44188         areadlinkat: new module
44189         * lib/at-func.c (FUNC_FAIL): New define.
44190         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44191         * modules/areadlinkat: New module.
44192         * lib/linkat.c (areadlinkat): Move...
44193         * lib/areadlinkat.c (areadlinkat): ...to new file.
44194         * lib/areadlink.h (areadlinkat): Declare it.
44195         * modules/linkat (Depends-on): Add areadlinkat.
44196         * MODULES.html.sh (File system functions): Mention it.
44197         * modules/areadlinkat-tests: New test.
44198         * tests/test-areadlinkat.c: New file.
44199
44200         areadlink, areadlink-with-size: add tests
44201         * modules/areadlink-tests: New test.
44202         * modules/areadlink-with-size-tests: Likewise.
44203         * tests/test-areadlink.h: New file.
44204         * tests/test-areadlink.c: Likewise.
44205         * tests/test-areadlink-with-size.c: Likewise.
44206
44207         maint: minor cleanups
44208         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44209         _UNUSED_PARAMETER_ instead.
44210         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44211         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44212         * modules/linkat-tests (Files): Distribute test-link.h.
44213
44214         openat, utimens: whitespace cleanup
44215         * lib/openat.c: Prefer space throughout, rather than mix of 8
44216         spaces vs. tabs.
44217         * lib/at-func.c: Likewise.
44218         * lib/utimens.c: Likewise.
44219
44220         openat: avoid using wrong fd
44221         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44222         working directory chooses same fd.
44223         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44224
44225         mkdir, mkdirat: fix cygwin 1.5.x bug
44226         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44227         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44228         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44229         bug.
44230         (gl_PREREQ_MKDIR): Delete unused macro.
44231         * modules/mkdir (Files): Track file rename.
44232         (configure.ac): Update macro name.
44233         * modules/openat (Depends-on): Add mkdir.
44234         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44235
44236         mkdir, mkdirat: add tests
44237         * modules/mkdir-tests: New test.
44238         * tests/test-mkdir.h: New file.
44239         * tests/test-mkdir.c: Likewise.
44240         * tests/test-mkdirat.c: Likewise.
44241         * modules/openat-tests (Files): Add new files.
44242         (Makefile.am): Run new test.
44243
44244 2009-10-06  Eric Blake  <ebb9@byu.net>
44245
44246         doc: tweak *at function documentation
44247         * doc/posix-functions/faccessat.texi (faccessat): Mention
44248         known issue with replacement.
44249         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44250         * doc/posix-functions/linkat.texi (linkat): Likewise.
44251         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44252         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44253         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44254         * doc/posix-functions/renameat.texi (renameat): Likewise.
44255         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44256
44257         openat: fix GNU/Hurd bug in unlinkat
44258         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44259         broken.
44260         * doc/posix-functions/unlink.texi (unlink): Document this.
44261         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44262
44263         fdopendir: fix GNU/Hurd bug
44264         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44265         allowing non-directory fds.
44266         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44267         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44268         * modules/dirent (Makefile.am): Substitute it.
44269         * lib/dirent.in.h (fdopendir): Declare replacement.
44270         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44271         * tests/test-fdopendir.c (main): Test something other than
44272         /dev/null, since on Hurd that behaves like a directory.
44273
44274         test-symlink: port to GNU/Hurd
44275         * tests/test-symlink.h (test_symlink): Relax expected errno.
44276
44277         doc: tweak more cygwin information
44278         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44279         now compatible with glibc.
44280         * doc/posix-functions/getopt.texi (getopt): Likewise.
44281
44282         getopt-gnu: add another test
44283         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44284         guarantee behavior relied on by m4.
44285         * tests/test-getopt.c (main): Use it.
44286         * modules/getopt-posix-tests (Depends-on): Add setenv.
44287         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44288
44289         getopt: fix compilation on darwin
44290         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44291         include.
44292         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44293         Reported by Ludovic Courtès.
44294
44295 2009-10-06  Bruno Haible  <bruno@clisp.org>
44296
44297         * modules/size_max (Description): Discourage its use.
44298         Reported by Simon Josefsson.
44299
44300 2009-10-06  Jim Meyering  <meyering@redhat.com>
44301
44302         linkat: avoid compilation failure
44303         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44304
44305 2009-10-05  Eric Blake  <ebb9@byu.net>
44306
44307         linkat: support Linux 2.6.17
44308         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44309         linkat on Linux, but allow cache variable override.
44310         * lib/linkat.c (rpl_linkat): Define override.
44311         * modules/linkat (Depends-on): Add symlinkat.
44312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44313         * modules/unistd (Makefile.am): Substitute it.
44314         * lib/unistd.in.h (linkat): Declare replacement.
44315         Reported by Pádraig Brady.
44316
44317         quotearg: port test to systems with C.UTF-8 locale
44318         * tests/test-quotearg.c (struct result_strings): Add another
44319         member, differentiating between C.ASCII and C.UTF-8 handling.
44320         (compare_strings): Add parameter.
44321         (main): Adjust all callers.
44322
44323         getopt: avoid clash with FreeBSD _getopt_internal
44324         * lib/getopt.in.h (_getopt_internal): Override the name.
44325         * lib/getopt_int.h (includes): Pick up any overrides.
44326         Reported by Reuben Thomas.
44327
44328         hash: allow C89 compilation
44329         * lib/hash.c (check_tuning): Move declaration before statement.
44330         Reported by Reuben Thomas.
44331
44332 2009-10-05  Karl Berry  <karl@gnu.org>
44333
44334         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44335
44336 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44337             Bruno Haible  <bruno@clisp.org>
44338
44339         * lib/uname.c (uname): Use a table-driven algorithm to compute
44340         Windows NT versions.
44341
44342 2009-10-04  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44345         program_invocation_short_name.
44346         * modules/progname (configure.ac): Test for presence of
44347         program_invocation_short_name.
44348         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44349
44350 2009-10-04  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/progname.c (set_program_name): Fix comment.
44353         Reported by Jim Meyering.
44354
44355 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44356             Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/uname.c: Include <string.h>.
44359         (uname): Do only one call to GetVersionEx in the common case.
44360
44361 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44362             Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44365         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44366         (uname): Add support for Windows CE and various non-x86 CPU types.
44367
44368 2009-10-03  Bruno Haible  <bruno@clisp.org>
44369
44370         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44371         invocation to tests/configure.ac.
44372         Reported by Ian Beckwith <ianb@erislabs.net>.
44373
44374 2009-10-02  Eric Blake  <ebb9@byu.net>
44375
44376         fchdir: avoid compiler warning
44377         * lib/fchdir.c (canonicalize_file_name)
44378         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44379
44380         test-open: support mingw errno values
44381         * tests/test-open.h (test_open): Relax test.
44382         * tests/test-fopen.h (test_fopen): Likewise.
44383         * tests/test-openat-safer.c (main): Likewise.
44384
44385         open: fix opening directory on mingw
44386         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44387
44388         test-open: on GNU/Hurd, /dev/null is a directory
44389         * tests/test-fopen.h (main): Rename...
44390         (test_fopen): ...to this.  Use a guaranteed non-directory when
44391         confirming open behavior on trailing slash.
44392         * tests/test-openat-safer.c (main): Likewise.
44393         * tests/test-open.h (main): Likewise....
44394         (test_open): ...to this.
44395         * tests/test-fopen.c (main): Adjust caller.
44396         * tests/test-fopen-safer.c (main): Likewise.
44397         * tests/test-open.c (main): Likewise.
44398         * tests/test-fcntl-safer.c (main): Likewise.
44399         Reported by Samuel Thibault.
44400
44401         rename, fchdir: don't ignore chdir failure
44402         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44403         * lib/rename.c (rpl_rename) [W32]: Likewise.
44404         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44405         an empty destination directory if source cannot be renamed,
44406         although there is still possibility for failure.
44407         * doc/posix-functions/rename.texi (rename): Document the race.
44408         Reported by Jim Meyering.
44409
44410         maint: cleanup whitespace in recent commits
44411         * lib/rename.c (rpl_rename): Remove tabs.
44412         * tests/test-link.h (test_link): Likewise.
44413         * lib/fchdir.c (get_name): Likewise.
44414         Reported by Jim Meyering.
44415
44416 2009-10-02  Ben Pfaff  <blp@gnu.org>
44417
44418         relocatable-prog-wrapper: Add missing dependency on
44419         double-slash-root.
44420         * modules/relocatable-prog-wrapper: Add dependency.
44421         Reported by Ian Beckwith <ianb@erislabs.net>.
44422
44423 2009-10-02  Eric Blake  <ebb9@byu.net>
44424
44425         renameat: fix Solaris bugs
44426         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44427         needed fixing.
44428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44429         * modules/stdio (Makefile.am): Substitute it.
44430         * lib/stdio.in.h (renameat): Declare replacement.
44431         * lib/renameat.c (rpl_renameat): Implement fix.
44432
44433         renameat: new module
44434         * modules/renameat: New file.
44435         * lib/renameat.c (renameat): Likewise.
44436         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44438         * modules/stdio (Makefile.am): Substitute them.
44439         * lib/stdio.in.h (renameat): Declare it.
44440         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44441         * doc/posix-functions/renameat.texi (renameat): Likewise.
44442         * modules/renameat-tests: New test.
44443         * tests/test-renameat.c: Likewise.
44444
44445         rename: fix mingw bugs
44446         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44447         directory overwrite bugs.
44448
44449         rename: fix another cygwin 1.5 bug
44450         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44451         checks.
44452         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44453         unnecessary cygwin workarounds.  Also work around bug with moving
44454         full directory onto an empty one.
44455         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44456
44457         rename-dest-slash: merge into rename module
44458         * modules/rename-dest-slash (Status): Mark obsolete.
44459         (Depends-on): Add rename.
44460         (Files): Let rename do it all.
44461         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44462         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44463         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44464         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44465         * lib/rename.c (rpl_rename): Update comments.
44466
44467         rename: fix cygwin 1.5.x bugs
44468         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44469         * lib/rename.c (rpl_rename): Work around them.
44470         * modules/rename (Depends-on): Add same-inode.
44471
44472         rename: fix Solaris 10 bug
44473         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44474         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44475         was the only bug.
44476
44477         rename: fix Solaris 9 bug
44478         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44479         on non-directory.  Avoid calling exit.
44480         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44481         strdup.
44482         * modules/rename-tests (Depends-on): Drop lstat.
44483         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44484         (gl_PREREQ_RENAME): Delete unused macro.
44485
44486         rename-dest-slash: fix NetBSD bug
44487         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44488         links.
44489         * modules/rename-dest-slash (Depends-on): Add same-inode.
44490
44491         rename-tests: new test, exposes several platform bugs
44492         * modules/rename-tests: New file.
44493         * tests/test-rename.h: Likewise.
44494         * tests/test-rename.c: Likewise.
44495         * doc/posix-functions/rename.texi (rename): Improve documentation,
44496         including bugs that will eventually be fixed in gnulib.
44497
44498 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44499
44500         * lib/uname.c: Include <stdlib.h>
44501         (uname): Assume version info is available.
44502
44503 2009-10-02  Jim Meyering  <meyering@redhat.com>
44504
44505         gnu-web-doc-update: correct --help output
44506         * build-aux/gnu-web-doc-update: Make --help output relevant.
44507
44508         gnu-web-doc-update: add standard options
44509         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44510
44511         gnu-web-doc-update: New module.
44512         Use this script to automatically update the on-line web documentation
44513         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44514         * modules/gnu-web-doc-update: New file, from coreutils.
44515         * build-aux/gnu-web-doc-update: New script.
44516
44517 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44518
44519         link: LoadLibrary is not needed.
44520         * lib/link.c: Use GetModuleHandle.
44521
44522 2009-10-01  Eric Blake  <ebb9@byu.net>
44523
44524         getopt: bump serial number
44525         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44526         change.
44527
44528         tests: tighten link, rmdir, and remove tests
44529         * tests/test-link.h (includes): No need to use <config.h> here.
44530         Clean up if directory hard link was created, otherwise test for
44531         trailing '.'.
44532         * tests/test-linkat.c (main): Simplify.
44533         * tests/test-remove.c (main): Enhance test for trailing '.'.
44534         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44535
44536 2009-10-01  Jim Meyering  <meyering@redhat.com>
44537
44538         maint.mk: requiring "make major" was annoying, for a "minor" release.
44539         What is intended is "stable", to contrast with alpha and beta,
44540         so require "make stable", not "make major".
44541         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44542         (get_tool_versions): Likewise.
44543         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44544
44545 2009-09-30  Ben Pfaff  <blp@gnu.org>
44546
44547         Fix broken build of replacement for Windows tmpfile().
44548         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44549         flags argument added along with the 'mkostemp' module.
44550
44551 2009-09-28  Bruno Haible  <bruno@clisp.org>
44552
44553         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44554         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44555         to 'remove_elt'.
44556         (gl_list_remove): Update.
44557         * lib/gl_list.c (gl_list_remove): Update.
44558         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44559         to 'remove_elt'.
44560         (gl_oset_remove): Update.
44561         * lib/gl_list.c (gl_oset_remove): Update.
44562         Reported by Eric Blake.
44563
44564 2009-09-28  Eric Blake  <ebb9@byu.net>
44565
44566         doc: mention yet more cygwin 1.7 status
44567         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44568         cygwin.
44569         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44570         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44571
44572         argp: fix test failure
44573         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44574         that are not upper-case.  Pass correct range to tolower.
44575
44576 2009-09-27  Jim Meyering  <meyering@redhat.com>
44577
44578         test-yesno: work around sparc-dash here-document infelicity
44579         Without this change, the literal \177 byte in a here document
44580         would make dash 0.5.5.1-3 access uninitialized memory.
44581         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44582         Instead, use a marker, "@", and filter through tr to create the desired
44583         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44584
44585 2009-09-27  Bruno Haible  <bruno@clisp.org>
44586
44587         Disable untested support for new flavours of ACLs on AIX.
44588         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44589         progress.
44590         * lib/set-mode-acl.c (qset_acl): Likewise.
44591
44592 2008-12-07  Bruno Haible  <bruno@clisp.org>
44593
44594         Add support for new flavours of ACLs on AIX. (Untested.)
44595         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44596         (file_has_acl): Add support for newer AIX.
44597         * lib/set-mode-acl.c (qset_acl): Likewise.
44598         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44599         Rainer Tammer <tammer@tammer.net>.
44600
44601 2009-09-26  Eric Blake  <ebb9@byu.net>
44602
44603         argp: fix compilation of getopt
44604         * lib/getopt.in.h (includes): Use different guard than glibc.
44605         Reported by Sergey Poznyakoff.
44606
44607         doc: mention more cygwin 1.7 status
44608         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44609         bug.
44610         * doc/posix-functions/execl.texi (execl): Likewise.
44611         * doc/posix-functions/execle.texi (execle): Likewise.
44612         * doc/posix-functions/execlp.texi (execlp): Likewise.
44613         * doc/posix-functions/execv.texi (execv): Likewise.
44614         * doc/posix-functions/execve.texi (execve): Likewise.
44615         * doc/posix-functions/execvp.texi (execvp): Likewise.
44616         * doc/glibc-functions/canonicalize_file_name.texi
44617         (canonicalize_file_name): Cygwin 1.7 now provides this.
44618         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44619         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44620         on AT_SYMLINK_NOFOLLOW.
44621
44622 2009-09-24  Eric Blake  <ebb9@byu.net>
44623
44624         test-linkat: make test more robust
44625         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44626
44627         getopt: fix inclusion guards for cygwin
44628         * modules/getopt-posix (Depends-on): Add include-next.
44629         (Makefile.am): Substitute more items in replacement header.
44630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44631         <getopt.h>.
44632         * lib/getopt.in.h (includes): Use split inclusion guard, and
44633         prefer <getopt.h> over include <unistd.h> when one is present.
44634         (option): Also override name of 'struct option'.
44635
44636         same-inode: revert prior change; it is not yet ready
44637         * NEWS: Undo mention of this change.
44638         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44639         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44640         * lib/cycle-check.c (cycle_check): Likewise.
44641         * lib/same.c (same_name): Likewise.
44642         * lib/at-func2.c (at_func2): Likewise.
44643
44644 2009-09-23  Eric Blake  <ebb9@byu.net>
44645
44646         linkat: new module
44647         * modules/linkat: New file.
44648         * lib/at-func2.c (at_func2): Likewise.
44649         * lib/linkat.c (linkat): Likewise.
44650         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44651         * lib/openat-priv.h (at_func2): Add declaration.
44652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44653         * modules/unistd (Makefile.am): Substitute them.
44654         * lib/unistd.in.h (linkat): Declare it.
44655         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44656         * doc/posix-functions/linkat.texi (linkat): Likewise.
44657         * doc/posix-functions/link.texi (link): Tweak wording.
44658         * tests/test-link.c (main): Move guts...
44659         * tests/test-link.h (test_link): ...into new file.
44660         * modules/linkat-tests: New test.
44661         * tests/test-linkat.c: Likewise.
44662         * modules/link-tests (Files): Ship new file.
44663         (Depends-on): Add stdbool.
44664
44665         dirname: add library-safe mdir_name
44666         * lib/dirname.h (mdir_name): New prototype.
44667         * lib/dirname.c (dir_name): Move guts...
44668         (mdir_name): ...to new function that avoids xalloc_die.
44669
44670         fchdir: another mingw fix
44671         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44672         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44673         on mingw (where it has not yet been ported), and make it optional
44674         elsewhere.
44675         (_gl_register_fd): Use it.
44676
44677         same-inode: make SAME_INODE tri-state, to port to mingw
44678         * NEWS: Mention this change.
44679         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44680         st_ino always being 0.
44681         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44682         * lib/cycle-check.c (cycle_check): Likewise.
44683         * lib/same.c (same_name): Likewise.
44684
44685         lstat: avoid mingw compilation error
44686         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44687         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44688         lstat ourselves.
44689         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44690         was adequate.
44691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44692         the checks for lstat.
44693         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44694
44695         link: fix test failure on Solaris 9
44696         * lib/link.c (rpl_link): Don't assume link will catch bogus
44697         trailing slash on source.
44698
44699         test-symlinkat: enhance test
44700         * tests/test-readlink.c (main): Move guts...
44701         * tests/test-readlink.h (test_readlink): ...into new file.
44702         * tests/test-symlink.c (main): Move guts...
44703         * tests/test-symlink.h (test_symlink): ...into new file.
44704         * tests/test-symlinkat.c (main): Use new files for further
44705         coverage.
44706         (do_symlink, do_readlink): New helper functions.
44707         * modules/symlink-tests (Files): Ship new file.
44708         (Depends-on): Add stdbool.
44709         * modules/readlink-tests (Files): Ship new file.
44710         (Depends-on): Add stdbool.
44711         * modules/symlinkat-tests (Files): Use new files.
44712
44713 2009-09-23  Eric Blake  <ebb9@byu.net>
44714
44715         readlink: document portability issue with symlink length
44716         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44717         systems have bogus st_size on symlinks, and mention the
44718         areadlink-with-size module.
44719         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44720         * doc/posix-functions/readlink.texi (readlink): Mention the
44721         areadlink module, and ERANGE failure.
44722         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44723         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44724
44725         readlink: fix Solaris 9 bug with trailing slash
44726         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44727         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44728         * doc/posix-functions/readlink.texi (readlink): Document this.
44729         * modules/readlink-tests: New test.
44730         * tests/test-readlink.c: Likewise.
44731
44732         readlink: fix cygwin 1.5.x bug with return type
44733         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44734         * lib/unistd.in.h (readlink): Use ssize_t.
44735         * lib/readlink.c (readlink): Likewise.
44736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44737         * modules/unistd (Makefile.am): Substitute it.
44738         * lib/unistd.in.h (readlink): Declare replacement.
44739         * doc/posix-functions/readlink.texi (readlink): Document this.
44740
44741         symlink: use throughout gnulib
44742         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44743         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44744         symlink is not used.
44745         * modules/symlinkat (Depends-on): Add symlink.
44746         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44747         * modules/canonicalize-tests (Depends-on): Likewise.
44748         * modules/lstat-tests (Depends-on): Likewise.
44749         * modules/openat-tests (Depends-on): Likewise.
44750         * modules/remove-tests (Depends-on): Likewise.
44751         * modules/rmdir-tests (Depends-on): Likewise.
44752         * modules/unlink-tests (Depends-on): Likewise.
44753         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44754         * tests/test-canonicalize.c (symlink): Likewise.
44755         * tests/test-fstatat.c (symlink): Likewise.
44756         * tests/test-lstat.c (symlink): Likewise.
44757         * tests/test-remove.c (symlink): Likewise.
44758         * tests/test-rmdir.c (symlink): Likewise.
44759         * tests/test-unlink.c (symlink): Likewise.
44760         * tests/test-unlinkat.c (symlink): Likewise.
44761
44762         symlink: new module, for Solaris 9 bug
44763         * modules/symlink: New file.
44764         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44765         * lib/symlink.c: Likewise.
44766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44767         * modules/unistd (Makefile.am): Substitute them.
44768         * lib/unistd.in.h (symlink): Declare replacement.
44769         * MODULES.html.sh (File system functions): Mention it.
44770         * doc/posix-functions/symlink.texi (symlink): Likewise.
44771         * modules/symlink-tests: New test.
44772         * tests/test-symlink.c: Likewise.
44773
44774 2009-09-23  Bruno Haible  <bruno@clisp.org>
44775
44776         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44777         when needed.
44778         Test case: gnulib-tool --import --with-tests atexit inttypes.
44779         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44780
44781 2009-09-23  Bruno Haible  <bruno@clisp.org>
44782
44783         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44784         subcommand, not in a subshell.
44785
44786 2009-09-22  Eric Blake  <ebb9@byu.net>
44787
44788         unistd: sort replacement declarations
44789         * lib/unistd.in.h: Sort declarations.
44790
44791         open, openat: minor optimization
44792         * lib/open.c (open): If open succeeded, len is non-zero.
44793         * lib/openat.c (rpl_openat): Likewise.
44794
44795         link-follow: ensure correct result
44796         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44797         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44798         distinguish between possible failures.
44799
44800 2009-09-21  Eric Blake  <ebb9@byu.net>
44801
44802         fts: avoid compiler warning
44803         * lib/fts.c (dirent_inode_sort_may_be_useful)
44804         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44805
44806 2009-09-19  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/progreloc.c (canonicalize_file_name): New declaration.
44809
44810 2009-09-19  Eric Blake  <ebb9@byu.net>
44811
44812         link: fix quoting
44813         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44814
44815         openat: fix openat bugs on Solaris 9
44816         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44817         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44818         * modules/openat (Depends-on): Add open.
44819         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44820         * modules/fcntl-h (Makefile.am): Substitute it.
44821         * lib/fcntl.in.h (openat): Declare replacement.
44822         * doc/posix-functions/openat.texi (openat): Document this.
44823
44824         openat: move fstatat and unlinkat into correct files
44825         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44826         compiled.
44827         * lib/openat.c (fstatat, unlinkat): Move...
44828         * lib/fstatat.c (fstatat): ...into correct files.
44829         * lib/unlinkat.c (unlinkat): Likewise.
44830
44831         openat: fix unlinkat bugs on Solaris 9
44832         * lib/unlinkat.c (unlinkat): New file.
44833         * modules/openat (Depends-on): Add unlink.
44834         (Files): Distribute it.
44835         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44836         trailing slash behavior is broken.
44837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44838         * modules/unistd (Makefile.am): Substitute it.
44839         * lib/unistd.in.h (unlinkat): Declare replacement.
44840         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44841
44842         openat: fix fstatat bugs on Solaris 9
44843         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44844         stat.
44845         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44846
44847         test-unlinkat: enhance test, to expose Solaris 9 bug
44848         * tests/test-unlink.c (main): Factor guts...
44849         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44850         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44851         * tests/test-rmdir.c (main): Adjust caller.
44852         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44853         (unlinker): New helper function.
44854         (rmdirat): Enhance check.
44855         * modules/rmdir-tests (Depends-on): Add stdbool.
44856         * modules/unlink-tests (Depends-on): Likewise.
44857         (Files): Add test-unlink.h.
44858         * modules/openat-tests (Files): Likewise.
44859         (Depends-on): Add unlinkdir.
44860
44861         test-fstatat: new test, to expose Solaris 9 bugs
44862         * tests/test-stat.c (main): Factor guts...
44863         * tests/test-stat.h (test_stat_func): ...into new file.
44864         * tests/test-lstat.c (main): Factor guts...
44865         * tests/test-lstat.h (test_lstat_func): ...into new file.
44866         * tests/test-fstatat.c: New file.
44867         * modules/stat-tests (Files): Add test-stat.h.
44868         * modules/lstat-tests (Files): Add test-lstat.h.
44869         (Depends-on): Add stdbool.
44870         * modules/openat-tests (Depends-on): Add pathmax.
44871         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44872         (Makefile.am): Run new test.
44873
44874         remove: new module, for mingw and Solaris 9 bugs
44875         * modules/remove: New file.
44876         * lib/remove.c: Likewise.
44877         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44879         * modules/stdio (Makefile.am): Use them.
44880         * lib/stdio.in.h (remove): Declare replacement.
44881         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44882         * doc/posix-functions/remove.texi (remove): Likewise.
44883         * modules/remove-tests: New test.
44884         * tests/test-remove.c: Likewise.
44885
44886         unlink: new module, for Solaris 9 bug
44887         * modules/unlink: New file.
44888         * lib/unlink.c: Likewise.
44889         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44891         * modules/unistd (Makefile.am): Use them.
44892         * lib/unistd.in.h (stat): Declare replacement.
44893         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44894         * doc/posix-functions/unlink.texi (unlink): Likewise.
44895         * modules/unlink-tests: New test.
44896         * tests/test-unlink.c: Likewise.
44897
44898         lstat: fix Solaris 9 bug
44899         * lib/lstat.c (lstat): Also check for trailing slash on
44900         non-symlink, non-directories.  Use stat module to simplify logic.
44901         * doc/posix-functions/lstat.texi (lstat): Document it.
44902         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44903         (configure.ac): Check for symlink.
44904         * tests/test-lstat.c (main): Add more tests.
44905
44906         stat: add as dependency to other modules
44907         * modules/chown (Depends-on): Add stat.
44908         * modules/euidaccess (Depends-on): Likewise.
44909         * modules/fchdir (Depends-on): Likewise.
44910         * modules/isdir (Depends-on): Likewise.
44911         * modules/link (Depends-on): Likewise.
44912         * modules/lstat (Depends-on): Likewise.
44913         * modules/mkdir-p (Depends-on): Likewise.
44914         * modules/modechange (Depends-on): Likewise.
44915         * modules/open (Depends-on): Likewise.
44916         * modules/readlink (Depends-on): Likewise.
44917         * modules/same (Depends-on): Likewise.
44918
44919         stat: fix Solaris 9 bug
44920         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44921         slash.
44922         * lib/stat.c (rpl_stat): Work around it.
44923         * doc/posix-functions/stat.texi (stat): Update documentation.
44924
44925         stat: new module, for mingw bug
44926         * modules/stat: New file.
44927         * lib/stat.c: Likewise.
44928         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44930         * modules/sys_stat (Makefile.am): Use them.
44931         * lib/sys_stat.in.h (stat): Declare replacement.
44932         * lib/openat.c (fstatat): Deal with lstat and stat being function
44933         macros.
44934         * modules/openat (Depends-on): Add inline.
44935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44936         * doc/posix-functions/stat.texi (stat): Likewise.
44937         * modules/stat-tests: New test.
44938         * tests/test-stat.c: Likewise.
44939
44940 2009-09-19  Jim Meyering  <meyering@redhat.com>
44941
44942         syntax-check: detect unnecessary inclusion of canonicalize.h
44943         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44944
44945 2009-09-19  Eric Blake  <ebb9@byu.net>
44946
44947         canonicalize-lgpl: adjust clients to use correct header
44948         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44949         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44950         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44951         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44952         * lib/progreloc.c (includes): Likewise.
44953
44954 2009-09-19  Jim Meyering  <meyering@redhat.com>
44955
44956         test-posixtm.c: correct a comment
44957         * tests/test-posixtm.c: Correct first-line comment.
44958         Spotted by Eric Blake.
44959
44960 2009-09-16  Jim Meyering  <meyering@redhat.com>
44961
44962         posixtm-tests: make T const-correct; add a test case
44963         * tests/test-posixtm.c (T): Declare const.
44964         Add a test for -(2^31+1).
44965         Remove useless can-succeed-only-in-2002 test.
44966
44967         posixtm-tests: adjust the sole failing test
44968         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44969         expected output matches what mktime now produces.  Cross-checked via
44970         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44971
44972         posixtm: move #ifdef'd tests into a new module
44973         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44974         * tests/test-posixtm.c: ... this new file.
44975         * modules/posixtm-tests: New module.
44976
44977 2009-09-19  Eric Blake  <ebb9@byu.net>
44978
44979         openat: simplify use of at-func.c
44980         * lib/at-func.c (includes): Include prerequisites here, to
44981         simplify requirements on client files.
44982         * lib/openat-priv.h: Add double-inclusion guard.
44983         * lib/faccessat.c (includes): Simplify.
44984         * lib/fchmodat.c (includes): Likewise.
44985         * lib/fchownat.c (includes): Likewise.
44986         * lib/mkdirat.c (includes): Likewise.
44987         * lib/mkfifoat.c (includes): Likewise.
44988         * lib/symlinkat.c (includes): Likewise.
44989
44990         openat: allow return of fd 0
44991         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44992         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44993         unistd-safer.
44994         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44995         <fcntl.h>; this module does not leak fds.
44996         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44997         must be allowed to return 0, leaving openat_safer to add the
44998         safety.
44999         (openat_permissive): Avoid writing to just-opened fd 2 if
45000         restoring the current directory fails.
45001         * lib/openat-die.c (openat_restore_fail): Add comment.
45002         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45003         (save_cwd): Guarantee safe fd, but without use of open_safer.
45004         * tests/test-openat.c: New test.
45005         * modules/openat-tests (Files, Makefile.am): Distribute and build
45006         new file.
45007
45008         relocatable-prog-wrapper: fix build
45009         * modules/relocatable-prog-wrapper (Files): Update name of
45010         canonicalize m4 file, broken on 2009-09-17.
45011         Reported by emad hajjar <aleppos@hotmail.com>.
45012
45013 2009-09-19  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45016         * lib/safe-alloc.c: Likewise.
45017         Reported by Ian Beckwith <ianb@erislabs.net>.
45018
45019 2009-09-18  Bruno Haible  <bruno@clisp.org>
45020
45021         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45022         Reported by <erobles@sensacd.com.mx>.
45023
45024 2009-09-17  Eric Blake  <ebb9@byu.net>
45025
45026         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45027         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45028         slashes when checking if last component is missing.
45029         * tests/test-canonicalize.c (main): Test this.
45030
45031         canonicalize, canonicalize-lgpl: honor // if distinct from /
45032         * modules/canonicalize (Files): Add double-slash-root.m4.
45033         * modules/canonicalize-lgpl (Files): Likewise.
45034         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45035         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45036         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45037         fallback definition.
45038         (canonicalize_filename_mode): Use it to protect //.
45039         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45040         (__realpath): Likewise.
45041         * tests/test-canonicalize.c (main): Test this.
45042         * tests/test-canonicalize-lgpl.c (main): Likewise.
45043         * modules/canonicalize-tests (Depends-on): Add same-inode.
45044         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45045
45046         canonicalize-lgpl: fix glibc bug with trailing slash
45047         * m4/canonicalize-lgpl.m4: Move contents...
45048         * m4/canonicalize.m4: ...here.
45049         (gl_CANONICALIZE_LGPL): Factor realpath check...
45050         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45051         glibc 2.3.5 bug, fixed 2005-04-27.
45052         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45053         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45054         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45055         * modules/canonicalize-lgpl (Files): Manage file rename.
45056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45057         * modules/stdlib (Makefile.am): Substitute witness.
45058         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45059         is needed.
45060         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45061         replacement is required.
45062         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45063         * doc/glibc-functions/canonicalize_file_name.texi
45064         (canonicalize_file_name): Document this.
45065         * doc/posix-functions/realpath.texi (realpath): Likewise.
45066
45067         canonicalize-lgpl: reject non-directory with trailing slash
45068         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45069         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45070         catches failures in glibc 2.3.5.
45071         * tests/test-canonicalize.c (main): Likewise.
45072
45073         canonicalize-lgpl: use native realpath if it works
45074         * lib/canonicalize-lgpl.c (realpath): Guard with
45075         FUNC_REALPATH_WORKS.
45076         * lib/stdlib.in.h (realpath): Make declaration optional based on
45077         HAVE_REALPATH.
45078         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45079         native realpath works.
45080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45081         * modules/stdlib (Makefile.am): Substitute witness.
45082
45083         canonicalize, canonicalize-lgpl: use <stdlib.h>
45084         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45085         (Include): Mention <stdlib.h>.
45086         (configure.ac): Mention functions we provide.
45087         * modules/canonicalize (configure.ac): Likewise.
45088         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45089         realpath if canonicalize_file_name is missing.
45090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45091         * modules/stdlib (Makefile.am): Substitute witnesses.
45092         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45093         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45094         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45095         * NEWS: Document this.
45096         * doc/glibc-functions/canonicalize_file_name.texi
45097         (canonicalize_file_name): Likewise.
45098         * doc/posix-functions/realpath.texi (realpath): Likewise.
45099         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45100
45101         test-canonicalize: consolidate into single C program
45102         * tests/test-canonicalize.sh: Delete; move setup into...
45103         * tests/test-canonicalize.c (main): ...the program, making it
45104         easier to run in debugger.  Add some tests.
45105         * modules/canonicalize-tests (Files): Remove unused file.
45106         (Depends-on): Add progname.
45107         (configure.ac, Makefile.am): Simplify.
45108
45109         test-canonicalize-lgpl: consolidate into single C program
45110         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45111         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45112         easier to run in debugger.  Add some tests.
45113         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45114         (configure.ac, Makefile.am): Simplify.
45115
45116         canonicalize: avoid resolvepath
45117         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45118         unnecessary checks.
45119         * lib/canonicalize.c (includes): Simplify.
45120         (canonicalize_file_name): Drop resolvepath implementation.
45121         * modules/canonicalize (Depends-on): Drop filenamecat.
45122
45123         canonicalize: don't lose errno
45124         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45125         over calls to free.
45126
45127         canonicalize: simplify errno handling
45128         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45129         assignment.
45130
45131         canonicalize, canonicalize-lgpl: update module dependencies
45132         * modules/canonicalize (Depends-on): Add extensions, lstat,
45133         pathmax, stdlib.
45134         (Files): Drop pathmax.h.
45135         (configure.ac): Adjust macro name.
45136         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45137         lstat, stdlib, sys_stat.
45138         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45139         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45140         extensions.
45141         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45142         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45143         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45144         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45145         declaration, if available.
45146         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45147         we can rely on the readlink module.
45148         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45149         (includes): Use <unistd.h> unconditionally.
45150
45151 2009-09-17  Eric Blake  <ebb9@byu.net>
45152
45153         maint: make Include sections of modules consistent
45154         * modules/alloca: Use only header name; no need to list #include.
45155         * modules/alloca-opt: Likewise.
45156         * modules/arpa_inet: Likewise.
45157         * modules/canon-host: Likewise.
45158         * modules/configmake: Likewise.
45159         * modules/dirent: Likewise.
45160         * modules/eealloc: Likewise.
45161         * modules/environ: Likewise.
45162         * modules/fchdir: Likewise.
45163         * modules/fcntl: Likewise.
45164         * modules/fcntl-h: Likewise.
45165         * modules/gethrxtime: Likewise.
45166         * modules/gettime: Likewise.
45167         * modules/ignore-value: Likewise.
45168         * modules/inet_ntop: Likewise.
45169         * modules/inet_pton: Likewise.
45170         * modules/inttypes: Likewise.
45171         * modules/isnand-nolibm: Likewise.
45172         * modules/isnanf-nolibm: Likewise.
45173         * modules/mbchar: Likewise.
45174         * modules/mbfile: Likewise.
45175         * modules/mbiter: Likewise.
45176         * modules/mbuiter: Likewise.
45177         * modules/netdb: Likewise.
45178         * modules/netinet_in: Likewise.
45179         * modules/nproc: Likewise.
45180         * modules/pagealign_alloc: Likewise.
45181         * modules/poll: Likewise.
45182         * modules/printf-frexp: Likewise.
45183         * modules/pthread: Likewise.
45184         * modules/putenv: Likewise.
45185         * modules/random_r: Likewise.
45186         * modules/relocatable-prog: Likewise.
45187         * modules/search: Likewise.
45188         * modules/select: Likewise.
45189         * modules/selinux-h: Likewise.
45190         * modules/settime: Likewise.
45191         * modules/signal: Likewise.
45192         * modules/size_max: Likewise.
45193         * modules/socklen: Likewise.
45194         * modules/ssize_t: Likewise.
45195         * modules/stdarg: Likewise.
45196         * modules/stdbool: Likewise.
45197         * modules/stddef: Likewise.
45198         * modules/stdint: Likewise.
45199         * modules/stdio: Likewise.
45200         * modules/stdlib: Likewise.
45201         * modules/string: Likewise.
45202         * modules/strings: Likewise.
45203         * modules/sys_file: Likewise.
45204         * modules/sys_ioctl: Likewise.
45205         * modules/sys_select: Likewise.
45206         * modules/sys_socket: Likewise.
45207         * modules/sys_stat: Likewise.
45208         * modules/sys_time: Likewise.
45209         * modules/sys_times: Likewise.
45210         * modules/sys_utsname: Likewise.
45211         * modules/sys_wait: Likewise.
45212         * modules/sysexits: Likewise.
45213         * modules/time: Likewise.
45214         * modules/times: Likewise.
45215         * modules/tmpfile: Likewise.
45216         * modules/trim: Likewise.
45217         * modules/unistd: Likewise.
45218         * modules/wchar: Likewise.
45219         * modules/wctype: Likewise.
45220
45221 2009-09-17  Bruno Haible  <bruno@clisp.org>
45222
45223         Make getdate.y compile on QNX and NetBSD 5 / i386.
45224         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45225         TIME_T_FITS_IN_LONG_INT.
45226         * lib/getdate.y (long_time_t): New type.
45227         (relative_time): Change type of 'seconds' field to long_time_t.
45228         (get_date): Update types of local variables. Check against overflow
45229         during conversion from long_time_t to time_t.
45230         Reported by Matt Kraai <kraai@ftbfs.org>
45231         and Hasso Tepper <hasso@netbsd.org>.
45232
45233 2009-09-17  Bruno Haible  <bruno@clisp.org>
45234
45235         * modules/COPYING: Update copyright years.
45236         * modules/README: Likeiwse.
45237         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45238         Reported by Ian Beckwith <ianb@erislabs.net>.
45239
45240 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45241
45242         * users.txt: Update references for gnuit package.
45243
45244 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45245
45246         * m4/getdelim.m4: Fix typo in copyright line.
45247
45248 2009-09-17  Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/atoll.c: Use the standard header with GPL copyright.
45251         * lib/argz.in.h: Likewise.
45252         * lib/glob.c: Likewise.
45253         * lib/glob-libc.h: Likewise.
45254         * lib/random_r.c: Likewise.
45255         * lib/siglist.h: Likewise.
45256         * lib/strsignal.c: Likewise.
45257         Reported by Ian Beckwith <ianb@erislabs.net>.
45258
45259 2009-09-17  Eric Blake  <ebb9@byu.net>
45260
45261         rmdir: ensure correct dependency order
45262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45263
45264 2009-09-17  Bruno Haible  <bruno@clisp.org>
45265
45266         Disable assertion that fails on NetBSD 5 / i386.
45267         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45268         Reported by Sam Steingold <sds@gnu.org>
45269         and Hasso Tepper <hasso@netbsd.org>.
45270
45271 2009-09-16  Eric Blake  <ebb9@byu.net>
45272
45273         unlinkdir: port to mingw
45274         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45275         on which no one can unlink a directory.
45276
45277         stdlib: sort witness names
45278         * modules/stdlib (Makefile.am): Sort replacements.
45279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45280         * lib/stdlib.in.h: Likewise.
45281
45282         parse-duration-tests: avoid link failure
45283         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45284         LIBINTL.
45285         Reported by Tom G. Christensen.
45286
45287         openat-tests: ensure unlinkat behaves like rmdir
45288         * tests/test-rmdir.c (main): Factor guts...
45289         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45290         * modules/rmdir-tests (Files): Ship new file.
45291         * modules/openat-tests: New test.
45292         * tests/test-unlinkat.c: Likewise.
45293
45294         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45295         * modules/rmdir-errno (Status, Notice): Now obsolete.
45296
45297         rmdir: work around cygwin 1.5.x and mingw bugs
45298         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45299         * lib/rmdir.c (rmdir): Work around it.
45300         * modules/rmdir (Status, Notice): No longer obsolete.
45301         (Files): Add dos.m4.
45302         (Depends-on): Add unistd.
45303         (configure.ac): Set witnesses.
45304         (License): Relax to LGPLv2+.
45305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45306         * modules/unistd (Makefile.am): Substitute witnesses.
45307         * lib/unistd.in.h (rmdir): Declare replacement.
45308         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45309         * modules/rmdir-tests: New tests.
45310         * tests/test-rmdir.c: Likewise.
45311
45312 2009-09-15  Eric Blake  <ebb9@byu.net>
45313
45314         fchdir: improve use of replacement functions
45315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45317         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45318         REPLACE_CLOSEDIR.
45319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45320         * modules/sys_stat (Makefile.am): Substitute correct witness.
45321         * modules/dirent (Makefile.am): Likewise.
45322         * modules/unistd (Makefile.am): Likewise.
45323         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45324         * lib/unistd.in.h (dup): Likewise.
45325         * lib/sys_stat.in.h (fstat): Likewise.
45326
45327         maint: ignore gnulib-tool temp files
45328         * .gitignore: Ignore files created during gnulib-tool --test.
45329
45330 2009-09-13  Jim Meyering  <meyering@redhat.com>
45331
45332         posixtm: don't reject a time that specify "60" as the number of seconds
45333         * lib/posixtm.c (posixtime): The code to reject invalid dates
45334         would also reject a time specified with the .60 suffix.
45335         But POSIX allows that, in order to accommodate leap seconds.
45336         So don't reject it.
45337         (main): Adjust tests accordingly.
45338         * modules/posixtm (Depends-on): Add stpcpy.
45339
45340 2009-09-11  Jim Meyering  <meyering@redhat.com>
45341
45342         announce-gen: include [$release_type] in emitted Subject:
45343         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45344         e.g., [stable] in the emitted Subject: line.
45345
45346 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45347
45348         Remove obsolete macros from several modules.
45349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45350         obsolete Autoconf macros with their modern counterparts.
45351         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45352         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45354         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45355         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45356         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45358         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45359         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45360         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45361         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45363         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45364         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45365         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45366         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45367         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45368         * m4/time_r.m4 (gl_TIME_R): Likewise.
45369         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45370         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45371         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45372
45373         Fix copyright header in build-aux scripts.
45374         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45375         recommendation.
45376         * build-aux/ncftpput-ftp: Likewise.
45377         * build-aux/update-copyright: Likewise.
45378
45379 2009-09-09  Eric Blake  <ebb9@byu.net>
45380
45381         test-link: allow Linux choice of errno
45382         * tests/test-link.c (main): Relax test for alternate error.
45383
45384         strndup: fix improper m4 caching
45385         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45386         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45387         (gl_PREREQ_STRNDUP): Delete.
45388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45389         * modules/string (Makefile.am): Substitute it.
45390         * lib/string.in.h (strndup): Modernize prototype.
45391
45392         getcwd: port to mingw
45393         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45394         different from the POSIX assumptions made throughout the getcwd
45395         module; fortunately, the mingw getcwd does not need replacement.
45396         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45397         * modules/getcwd-tests: New test.
45398         * tests/test-getcwd.c: Likewise.
45399
45400         link: fix platform bugs
45401         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45402         * lib/link.c (link): Work around them.  Fix related mingw bug.
45403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45404         * modules/unistd (Makefile.am): Substitute it.
45405         * lib/unistd.in.h (link): Declare replacement.
45406         * doc/posix-functions/link.texi (link): Document this.
45407         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45408
45409         test-link: consolidate into single C program, test more cases
45410         * tests/test-link.sh: Delete.
45411         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45412         at least Cygwin and Solaris.
45413         * modules/link-tests (Files): Remove unused file.
45414         (Depends-on): Add errno, sys_stat.
45415         (Makefile.am): Simplify.
45416
45417 2009-09-08  Bruno Haible  <bruno@clisp.org>
45418
45419         Work around towlower, towupper bug on mingw.
45420         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45421         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45422         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45423         * doc/posix-functions/towupper.texi: Likewise.
45424         Reported by Eric Blake.
45425
45426 2009-09-08  Jim Meyering  <meyering@redhat.com>
45427
45428         build: don't try to run autoheader if we don't use it
45429         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45430         is not used in configure.ac.
45431
45432 2009-09-08  Eric Blake  <ebb9@byu.net>
45433
45434         euidaccess: fix compilation error
45435         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45436
45437         rawmemchr: relax license
45438         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45439         okay.
45440         Reported by Jim Meyering.
45441
45442         mkfifoat: new module
45443         * modules/mkfifoat: New file.
45444         * lib/mkfifoat.c: Likewise.
45445         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45446         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45447         * modules/sys_stat (Makefile.am): Use them.
45448         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45449         * MODULES.html.sh (File system functions): Mention module.
45450         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45451         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45452         * modules/mkfifoat-tests: New test.
45453         * tests/test-mkfifoat.c: Likewise.
45454
45455         strchrnul: relax license
45456         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45457         okay.
45458         Reported by Jim Meyering.
45459
45460 2009-09-08  Eric Blake  <ebb9@byu.net>
45461
45462         fstatat: fix compilation on Solaris
45463         * lib/fstatat.c (includes): Add fcntl.h.
45464         Reported by Pádraig Brady.
45465
45466 2009-09-07  Eric Blake  <ebb9@byu.net>
45467
45468         rename: modernize replacement
45469         * modules/rename (Depends-on): Add stdio.
45470         (configure.ac): Declare witness.
45471         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45472         stdio take care of replacement.
45473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45474         * modules/stdio (Makefile.am): Substitute them.
45475         * lib/stdio.in.h (rename): Declare replacement.
45476         * lib/rename.c (includes): Allow cross-compilation to non-windows
45477         machines.
45478         * doc/posix-functions/rename.texi (rename): Improve
45479         documentation.
45480
45481         stdio: sort witness names
45482         * modules/stdio (Makefile.am): Sort replacements.
45483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45484         * lib/stdio.in.h: Likewise.
45485
45486         getcwd: minor cleanups
45487         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45488         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45489
45490         openat: provide more convenience names
45491         * modules/faccessat (configure.ac): Add C witness.
45492         * lib/unistd.in.h (readlinkat): Fix typo.
45493         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45494         convenience wrappers.
45495         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45496         wrappers in syntax checks.
45497
45498 2009-09-06  Eric Blake  <ebb9@byu.net>
45499
45500         doc: fix comments in recent patches
45501         * lib/faccessat.c: Mention correct function.
45502         * lib/fchmodat.c: Likewise.
45503         * lib/fchownat.c: Likewise.
45504         * lib/symlinkat.c: Likewise.
45505         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45506         constants.
45507
45508         faccessat, symlinkat: continue cleanup of previous patch
45509         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45510         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45511         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45513         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45514         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45515         set.
45516
45517 2009-09-06  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45520         (fstatat): Declare if GNULIB_FSTATAT is set.
45521         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45522         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45523         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45524         * modules/fcntl-h (Files): Remove m4/openat.m4.
45525         * modules/sys_stat (Files): Remove m4/openat.m4.
45526         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45527         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45528         * modules/unistd (Files): Remove m4/openat.m4.
45529         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45530         GNULIB_OPENAT.
45531         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45532         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45534         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45535         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45536         gl_OPENAT_DEFAULTS.
45537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45538         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45539         Don't require gl_OPENAT_DEFAULTS.
45540         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45541         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45542         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45543         (gl_OPENAT_DEFAULTS): Remove macro.
45544
45545 2009-09-06  Bruno Haible  <bruno@clisp.org>
45546
45547         * modules/openat (configure.ac): Remove unneeded witness.
45548
45549 2009-09-06  Bruno Haible  <bruno@clisp.org>
45550
45551         Set errno to ENOSYS when a function is entirely unsupported.
45552         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45553         EOPNOTSUPP.
45554         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45555         * modules/chown (Depends-on): Remove errno.
45556
45557 2009-09-06  Bruno Haible  <bruno@clisp.org>
45558
45559         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45560
45561 2009-09-06  Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45564
45565 2009-09-06  Ben Pfaff  <blp@gnu.org>
45566             Bruno Haible  <bruno@clisp.org>
45567
45568         Work around a glibc bug in strtok_r.
45569         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45570         Undefine if UNDEFINE_STRTOK_R is set.
45571         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45573         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45574         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45575         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45576         UNDEFINE_STRTOK_R.
45577         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45578
45579 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45580
45581         exclude: minor fix
45582         * lib/exclude.c: Include wctype.h
45583
45584 2009-09-06  Akim Demaille  <demaille@gostai.com>
45585
45586         bootstrap: improve error message
45587         * build-aux/bootstrap (find_tool): Upon failure, report the list
45588         of candidates.
45589         Honor the initial value of the envvar.
45590
45591 2009-09-05  Eric Blake  <ebb9@byu.net>
45592
45593         symlinkat: new module
45594         * modules/symlinkat: New file.
45595         * lib/symlinkat.c: Likewise.
45596         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45598         * modules/unistd (Makefile.am): Use them.
45599         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45600         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45601         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45602         * MODULES.html.sh (File system functions): Mention module.
45603         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45604         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45605         * modules/symlinkat-tests: New test.
45606         * tests/test-symlinkat.c: Likewise.
45607
45608         test-openat-safer: add more checks
45609         * tests/test-openat-safer.c (main): Check more code paths.
45610
45611 2009-09-05  Jim Meyering  <meyering@redhat.com>
45612
45613         syntax-check: detect unnecessary inclusion of openat.h
45614         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45615
45616 2009-09-05  Bruno Haible  <bruno@clisp.org>
45617
45618         Support towlower, towupper.
45619         * doc/posix-functions/towlower.texi: Mention module wctype.
45620         * doc/posix-functions/towupper.texi: Likewise.
45621         * lib/wctype.in.h (towlower, towupper): New functions.
45622         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45623         (ASSERT): New macro.
45624         (e): New variable.
45625         (main): Test also towlower, towupper. Test WEOF argument.
45626         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45627
45628 2009-09-05  Bruno Haible  <bruno@clisp.org>
45629
45630         Fix conversion behaviour when the input is invalid.
45631         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45632         mark occurring in first pass of indirect conversion.
45633         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45634         input.
45635         Found by clang's static analyzer.
45636
45637 2009-09-05  Bruno Haible  <bruno@clisp.org>
45638
45639         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45640         where direct conversion is possible.
45641
45642 2009-09-04  Eric Blake  <ebb9@byu.net>
45643
45644         openat: fail with ENOENT on empty name
45645         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45646         buffer.
45647
45648         link-follow: fix logic bug in prior patch
45649         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45650         reversed sense of yes and no in prior patch.  Avoid confusing
45651         compilation failure with desired semantics.
45652
45653         link-follow: accommodate mingw and cross-compilation
45654         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45655         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45656         cross-compilation results to -1, to make linkat easier to
45657         implement when cross-compiling.  Trivially support mingw.
45658         * modules/link-follow (configure.ac): Call new name.
45659         * NEWS: Mention this.
45660
45661 2009-09-03  Eric Blake  <ebb9@byu.net>
45662
45663         faccessat: compile replacement
45664         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45665         needed.
45666
45667         fts: fix compilation error
45668         * lib/fts.c (includes): Re-add "openat.h", for
45669         openat_needs_fchdir.
45670
45671         faccessat: new module
45672         * modules/faccessat: New file.
45673         * lib/faccessat.c: Likewise.
45674         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45676         * modules/unistd (Makefile.am): Use it.
45677         * lib/unistd.in.h (faccessat): Declare it.
45678         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45679         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45680         * MODULES.html.sh (File system functions): Mention it.
45681         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45682         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45683
45684         euidaccess: prefer POSIX over non-standard implementation
45685         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45686         * lib/euidaccess.c (euidaccess): Use it if available.
45687
45688         openat: make template easier to use
45689         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45690         AT_FUNC_F2 to be undefined.
45691         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45692         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45693         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45694         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45695         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45696         Likewise.
45697         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45698         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45699         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45700         Likewise.
45701
45702         openat: declare in POSIX headers
45703         * NEWS: Mention this.
45704         * modules/openat (configure.ac): Declare witnesses.
45705         (Depends-on): Add fcntl-h, sys_stat, unistd.
45706         (Include): Mention correct headers.
45707         * modules/fcntl-h (Depends-on): Add link-warning.
45708         (Files): Add openat.m4.
45709         (Makefile.am): Substitute witnesses.
45710         * modules/sys_stat (Files, Makefile.am): Likewise.
45711         * modules/unistd (Files, Makefile.am): Likewise.
45712         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45713         (gl_OPENAT_DEFAULTS): New macro.
45714         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45716         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45717         (SYS_STAT_H): Remove unused variable.
45718         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45719         * lib/fcntl--.h (includes): Remove unneeded header.
45720         * lib/openat-safer.c (includes): Likewise.
45721         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45722         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45723         appropriate headers.
45724         (__OPENAT_PREFIX): Delete.
45725         * lib/fcntl.in.h (openat): Provide declaration.
45726         (AT_FDCWD): Fix Solaris bug.
45727         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45728         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45729         * lib/fchmodat.c (includes):  Adjust to find declaration.
45730         * lib/fchownat.c (includes): Likewise.
45731         * lib/mkdirat.c (includes): Likewise.
45732         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45733         still visible.
45734
45735 2009-09-02  Eric Blake  <ebb9@byu.net>
45736
45737         errno: use consistently
45738         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45739         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45740         * lib/canonicalize.c (ELOOP): Likewise.
45741         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45742         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45743         * lib/lchown.c (EOPNOTSUPP): Likewise.
45744         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45745         * lib/savewd.c (ESTALE): Likewise.
45746         * lib/settime.c (ENOSYS): Likewise.
45747         * lib/utimens.c (ENOSYS): Likewise.
45748         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45749         * lib/chdir-safer.c (ELOOP): Likewise.
45750         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45751         * modules/c-stack (Depends-on): Add errno.
45752         * modules/canonicalize (Depends-on): Likewise.
45753         * modules/chdir-safer (Depends-on): Likewise.
45754         * modules/fdopendir (Depends-on): Likewise.
45755         * modules/inet_ntop (Depends-on): Likewise.
45756         * modules/inet_pton (Depends-on): Likewise.
45757         * modules/lchown (Depends-on): Likewise.
45758         * modules/openat (Depends-on): Likewise.
45759         * modules/savewd (Depends-on): Likewise.
45760         * modules/settime (Depends-on): Likewise.
45761         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45762
45763         fts: avoid leaking fds
45764         * modules/fts (Depends-on): Add cloexec.
45765         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45766         flag.
45767
45768         fts: make directory fds more robust
45769         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45770         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45771
45772         backupfile, chdir-long, fts, savedir: make safer
45773         * lib/backupfile.c (includes): Use "dirent--.h", since
45774         numbered_backup can write to stderr during readdir.
45775         * lib/savedir.c (includes): Likewise.
45776         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45777         emulation can write to stderr on failure.
45778         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45779         * lib/getcwd.c: Document why opendir_safer is unused.
45780         * lib/glob.c: Likewise.
45781         * lib/scandir.c: Likewise.
45782         * lib/openat-proc.c: Likewise, for open_safer.
45783         * modules/backupfile (Depends-on): Add dirent-safer.
45784         * modules/savedir (Depends-on): Likewise.
45785         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45786         * modules/chdir-long (Depends-on): Add openat-safer.
45787
45788         openat-safer: new module
45789         * modules/openat-safer: New file.
45790         * lib/openat-safer.c: Likewise.
45791         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45792         * lib/fcntl-safer.h (openat_safer): Declare.
45793         * lib/fcntl--.h (openat): Override.
45794         * MODULES.html.sh (File descriptor based I/O): Mention it.
45795         * lib/openat.h: Add double-inclusion guards.
45796         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45797         "fcntl--.h", so we can implement openat.
45798         * modules/openat-safer-tests: New test.
45799         * tests/test-openat-safer.c: New file.
45800
45801         dirent-safer: new module
45802         * modules/dirent-safer: New file.
45803         * lib/dirent--.h: Likewise.
45804         * lib/dirent-safer.h: Likewise.
45805         * lib/opendir-safer.c: Likewise.
45806         * m4/dirent-safer.m4: Likewise.
45807         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45808         * modules/dirent-safer-tests: New test.
45809         * tests/test-dirent-safer.c: New file.
45810         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45811
45812         fdopendir: optimize on mingw
45813         * lib/unistd.in.h (_gl_directory_name): New prototype.
45814         * lib/fchdir.c (_gl_directory_name): Implement it.
45815         (fchdir): Use it to simplify implementation.
45816         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45817         fchdir, when available, to avoid calling [f]chdir().
45818
45819         fdopendir: split into its own module
45820         * lib/openat.c (fdopendir): Move...
45821         * lib/fdopendir.c: ...into new file.
45822         * modules/fdopendir: New module.
45823         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45824         * modules/openat (Depends-on): Add fdopendir.
45825         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45826         fdopendir here.
45827         * modules/savedir (Depends-on): Only need fdopendir, not full
45828         openat.
45829         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45830         * lib/openat.h (fdopendir): Drop prototype.
45831         * lib/dirent.in.h (fdopendir): Provide prototype.
45832         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45833         * modules/dirent (Makefile.am): Substitute them.
45834         * MODULES.html.sh (File system functions): Mention it.
45835         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45836         * modules/fdopendir-tests: New file.
45837         * tests/test-fdopendir.c: Likewise.
45838
45839         fchdir: use more consistent macro convention
45840         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45841         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45842         REPLACE_FCHDIR, rather than relying on config.h macros.
45843         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45844         inside a single make-time REPLACE_FCHDIR block, rather than using
45845         the config.h FCHDIR_REPLACEMENT.
45846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45847         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45848         Manage fstat replacement.
45849         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45850         REPLACE_FCHDIR.
45851         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45852         (Makefile.am): Substitute REPLACE_FCHDIR.
45853         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45854         FCHDIR_REPLACEMENT.
45855         * lib/dup-safer.c (dup_safer): Likewise.
45856         * lib/dup2.c (rpl_dup2): Likewise.
45857         * lib/dup3.c (rpl_dup3): Likewise.
45858         * lib/open.c (rpl_open): Likewise.
45859
45860         fchdir: simplify error handling, and support dup3
45861         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45862         stdbool, malloc-posix, realloc-posix.
45863         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45864         (ensure_dirs_slot): Return false on allocation failure.
45865         (rpl_dup2): Delete.
45866         (_gl_register_dup): New function.
45867         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45868         (_gl_register_fd): Close fd on allocation failure.
45869         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45870         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45871         prototype.
45872         (rpl_dup2_fchdir): Delete prototype.
45873         * lib/open.c (open): Update caller.
45874         * lib/dup2.c (dup2): Track fchdir metadata.
45875         * lib/dup3.c (dup3): Likewise.
45876         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45878
45879 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45880
45881         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45882         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45883         don't pass arguments to AC_OUTPUT.
45884
45885 2009-09-02  Bruno Haible  <bruno@clisp.org>
45886
45887         * modules/mkdtemp (License): Relicense under LGPLv2+.
45888         Reported by Paolo Bonzini.
45889
45890 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45891
45892         Replace uses of obsolete autoconf macros in Jim's modules.
45893         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45894         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45895         can evoke a warning from autoconf when run with -Wobsolete
45896         enabled.  They were declared obsolete for good reasons (see
45897         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45898         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45899         should not continue using the deprecated macros.
45900         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45901         obsolete Autoconf macros with modern counterparts.
45902         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45903         * m4/dos.m4 (gl_AC_DOS): Likewise.
45904         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45906         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45907         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45908         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45910         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45911         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45912         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45913         Likewise.
45914         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45915         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45916         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45917         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45918         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45919         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45920
45921 2009-09-01  Eric Blake  <ebb9@byu.net>
45922
45923         fchdir: fix off-by-one bug in previous patch
45924         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45925         (_gl_unregister_fd): Delete useless if.
45926
45927 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45928
45929         maint.mk: sort the list of syntax-check rules
45930         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45931         easier to get a sense of progress when the rules are run sequentially
45932         and take a long time.
45933
45934 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45935
45936         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45937         * modules/netinet_in: Likewise.
45938         * modules/sys_file: Likewise.
45939         * modules/sys_ioctl: Likewise.
45940         * modules/sys_select: Likewise.
45941         * modules/sys_socket: Likewise.
45942         * modules/sys_stat: Likewise.
45943         * modules/sys_time: Likewise.
45944         * modules/sys_times: Likewise.
45945         * modules/sys_utsname: Likewise.
45946         * modules/sys_wait: Likewise.
45947
45948 2009-09-01  Jim Meyering  <meyering@redhat.com>
45949
45950         fts: help ensure that return values are not ignored
45951         * lib/fts_.h (__GNUC_PREREQ): Define.
45952         (__attribute_warn_unused_result__): Define.
45953         (fts_children, fts_close, fts_open, fts_read): Declare with
45954         __attribute_warn_unused_result__.
45955
45956         fts: fts_close now fails also when closing a dir file descriptor fails
45957         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45958         and propagate to caller, along with errno.
45959
45960         announce-gen: correct formatting in --help output
45961         * build-aux/announce-gen (usage): Move the one-line description in
45962         --help output "up", to where it belongs, just after Usage:.
45963
45964 2009-08-31  Eric Blake  <ebb9@byu.net>
45965
45966         fchdir: port to mingw
45967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45968         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45969         opened, then use a substitute.
45970         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45971         replacement.
45972         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45973         (_gl_register_fd): No need to check stat if open already filters
45974         all directories.
45975         (fchdir): Fix error condition to match POSIX.
45976         * modules/fchdir (Depends-on): Add sys_stat.
45977         * doc/posix-functions/open.texi (open): Document the limitation.
45978         * modules/fchdir-tests: New file.
45979         * tests/test-fchdir.c: Likewise.
45980
45981         canonicalize: allow cross-testing from cygwin to mingw
45982         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45983         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45984         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45985         Likewise.
45986         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45987         target does not support symlinks.
45988         * tests/test-canonicalize-lgpl.sh: Likewise.
45989
45990         chown: avoid compilation warning on mingw
45991         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45992         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45993         mingw.
45994         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45995         * modules/chown (Depends-on): Add errno.
45996
45997 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45998
45999         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46000         command.
46001
46002 2009-08-31  Jim Meyering  <meyering@redhat.com>
46003
46004         canonicalize: remove useless initialization
46005         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46006         initialization of local, "end".
46007
46008 2009-08-30  Bruno Haible  <bruno@clisp.org>
46009
46010         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46011         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46012         ENOSYS.
46013
46014 2009-08-30  Bruno Haible  <bruno@clisp.org>
46015
46016         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46017         /usr/xpg4/bin/tr when it exists.
46018         * tests/test-pipe-filter-gi1.sh: Likewise.
46019
46020 2009-08-30  Bruno Haible  <bruno@clisp.org>
46021
46022         Work around deficient /usr/bin/id program on Solaris.
46023         * tests/test-file-has-acl.sh (ID): New variable.
46024         * tests/test-set-mode-acl.sh (ID): Likewise.
46025         * tests/test-copy-acl.sh (ID): Likewise.
46026         * tests/test-copy-file.sh (ID): Likewise.
46027
46028 2009-08-30  Bruno Haible  <bruno@clisp.org>
46029
46030         New module 'xstriconveh'.
46031         * lib/xstriconveh.h: New file.
46032         * lib/xstriconveh.c: New file.
46033         * modules/xstriconveh: New file.
46034
46035 2009-08-30  Bruno Haible  <bruno@clisp.org>
46036
46037         Make it easier to use mem_cd_iconveh.
46038         * lib/striconveh.h (iconveh_t): New type.
46039         (iconveh_open, iconveh_close): New declarations.
46040         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46041         with a single 'const iconveh_t *' argument.
46042         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46043         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46044         with a single 'const iconveh_t *' argument.
46045         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46046         * tests/test-striconveh.c (main): Update.
46047         * NEWS: Mention the change.
46048
46049 2009-08-30  Bruno Haible  <bruno@clisp.org>
46050
46051         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46052         problem.
46053
46054 2009-08-30  Bruno Haible  <bruno@clisp.org>
46055
46056         Work around iconv_open problem on Solaris.
46057         * lib/iconv_open-solaris.gperf: New file.
46058         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46059         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46060         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46061         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46062         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46063         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46064
46065 2009-08-29  Jim Meyering  <meyering@redhat.com>
46066
46067         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46068         * top/maint.mk (cvs-check): Remove target; it was just an alias
46069         to the better-named vc-diff-check.
46070         (maintainer-distcheck): Remove rule.  It was used only from
46071         the (alpha/beta/major) target, and all of its commands but one
46072         were coreutils-specific.
46073         (vc-dist): Remove rule.
46074         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46075         Run vc-diff-check, not vc-dist.
46076         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46077
46078 2009-08-27  Bruno Haible  <bruno@clisp.org>
46079
46080         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46081         of 0.
46082
46083 2009-08-27  Bruno Haible  <bruno@clisp.org>
46084
46085         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46086         compilers.
46087         * doc/func.texi: Document the SunPRO C bug.
46088
46089 2009-08-27  Bruno Haible  <bruno@clisp.org>
46090
46091         Fix link error on Solaris.
46092         * tests/test-parse-duration.c (xstrdup): Remove function.
46093
46094 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46095
46096         ignore-value: handle pointer types, too
46097         * lib/ignore-value.h (__attribute__): Remove definition.
46098         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46099         of a more concise and more-often effective "(void) i" statement.
46100         (ignore_ptr): New function to suppress warnings from functions that
46101         return pointers, and to make it explicit that one function doesn't
46102         handle all cases.
46103
46104 2009-08-25  Bruno Haible  <bruno@clisp.org>
46105
46106         dup2: work around a Linux bug.
46107         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46108         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46109         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46110         Reported by Simon Josefsson.
46111
46112 2009-08-25  Jim Meyering  <meyering@redhat.com>
46113
46114         libguestfs uses gnulib
46115         * users.txt: Add libguestfs.
46116
46117 2009-08-24  Eric Blake  <ebb9@byu.net>
46118
46119         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46120         * lib/pipe2.c (includes): Add binary-io.h.
46121         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46122
46123 2009-08-24  Bruno Haible  <bruno@clisp.org>
46124
46125         Tolerate declared but missing accept4 syscall.
46126         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46127         available.
46128         * lib/sys_socket.in.h (accept4): If the function is already present,
46129         override it.
46130         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46131         * modules/accept4 (Makefile.am): Compile accept4.c always.
46132         Reported by Paolo Bonzini and Eric Blake.
46133
46134 2009-08-23  Bruno Haible  <bruno@clisp.org>
46135
46136         New module 'accept4'.
46137         * lib/sys_socket.in.h (accept4): New declaration.
46138         * lib/accept4.c: New file.
46139         * m4/accept4.m4: New file.
46140         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46141         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46142         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46143         HAVE_ACCEPT4.
46144         * modules/accept4: New file.
46145         * doc/glibc-functions/accept4.texi: Mention the new module.
46146
46147 2009-08-24  Jim Meyering  <meyering@redhat.com>
46148
46149         progname: also set global program_invocation_name, when possible
46150         Before this change, a libtool-enabled program that calls glibc's
46151         error function would report the program name as
46152         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46153         * modules/progname (configure.ac): Check for a declaration of
46154         program_invocation_name.
46155         * lib/progname.c:  Include <errno.h>.
46156         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46157         Set program_invocation_name.
46158
46159 2009-08-23  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/dup3.c: Include <string.h>.
46162
46163 2009-08-23  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46166         * lib/pipe2.c (pipe2): Likewise.
46167         Suggested by Eric Blake.
46168
46169 2009-08-23  Bruno Haible  <bruno@clisp.org>
46170
46171         Tolerate declared but missing dup3 syscall.
46172         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46173         * lib/unistd.in.h (dup3): If the function is already present,
46174         override it.
46175         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46176         * modules/dup3 (Makefile.am): Compile dup3.c always.
46177         Reported by Paolo Bonzini.
46178
46179 2009-08-23  Bruno Haible  <bruno@clisp.org>
46180
46181         Tolerate declared but missing pipe2 syscall.
46182         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46183         available.
46184         * lib/unistd.in.h (pipe2): If the function is already present,
46185         override it.
46186         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46187         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46188         Reported by Paolo Bonzini.
46189
46190 2009-08-23  Bruno Haible  <bruno@clisp.org>
46191
46192         * lib/pipe2.c (pipe2): Move #ifs inside function.
46193
46194 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46195
46196         quotearg: document limitations of quote_these_too
46197         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46198         those limitations are created.
46199         * lib/quotearg.h (set_char_quoting): Document that digits and
46200         letters that are special after backslash are not permitted.
46201         (quotearg_char): Cross-reference set_char_quoting documentation.
46202
46203 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46204
46205         quotearg: implement custom_quoting_style
46206         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46207         right_quote fields.
46208         (set_custom_quoting): New public function.
46209         (quotearg_buffer_restyled): Add left_quote and right_quote
46210         arguments, handle them very much like locale quoting, and update
46211         all uses.
46212         (quotearg_n_custom): New public function.
46213         (quotearg_n_custom_mem): New public function.
46214         (quotearg_custom): New public function.
46215         (quotearg_custom_mem): New public function.
46216         * lib/quotearg.h: Prototype and document new public functions.
46217         (enum quoting_style): For escape_quoting_style and
46218         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46219         ignored even though they're otherwise like c_quoting_style.
46220         Add custom_quoting_style member and document with comparison to
46221         clocale_quoting_style.
46222         * tests/test-quotearg.c (custom_quotes): New array.
46223         (custom_results): New array.
46224         (main): Extend to test custom quoting.
46225
46226 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46227
46228         quotearg: fix right quote escaping when it's in quote_these_too
46229         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46230         quote, be sure to prepend only one backslash.
46231         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46232         (main): Test it.
46233
46234 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46235
46236         quotearg-tests: test escaping of embedded locale quotes
46237         * tests/test-quotearg.c (struct result_strings): Add member for
46238         new input.
46239         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46240         (inputs): Add new input.
46241         (results_g): Add expected results.
46242         (flag_results): Likewise.
46243         (locale_results): Likewise.
46244         (compare_strings): Check those.
46245
46246 2009-08-23  Bruno Haible  <bruno@clisp.org>
46247
46248         Tests for module 'dup3'.
46249         * modules/dup3-tests: New file.
46250         * tests/test-dup3.c: New file.
46251
46252         New module 'dup3'.
46253         * lib/unistd.in.h (dup3): New declaration.
46254         * lib/dup3.c: New file.
46255         * m4/dup3.m4: New file.
46256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46257         HAVE_DUP3.
46258         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46259         * modules/dup3: New file.
46260         * doc/glibc-functions/dup3.texi: Mention the new module.
46261
46262 2009-08-23  Bruno Haible  <bruno@clisp.org>
46263
46264         Tweak the dup2 test.
46265         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46266         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46267         the test file is still empty. Fix argument order of lseek.
46268
46269 2009-08-23  Bruno Haible  <bruno@clisp.org>
46270
46271         Avoid test link errors when the modules getopt-gnu, gettext are used.
46272         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46274
46275 2009-08-23  Bruno Haible  <bruno@clisp.org>
46276
46277         Fix getdtablesize() on mingw.
46278         * lib/getdtablesize.c (getdtablesize): Implement differently.
46279         * lib/unistd.in.h (getdtablesize): Improve comment.
46280
46281 2009-08-23  Bruno Haible  <bruno@clisp.org>
46282
46283         New module 'mkostemp'.
46284         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46285         * lib/stdlib.in.h (mksotemp): New declaration.
46286         * lib/mkostemp.c: New file, from glibc with modifications.
46287         * lib/tempname.h (GT_FILE): Remove outdated comment.
46288         (gen_tempname): Add flags argument.
46289         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46290         (__GT_FILE): Map to 1.
46291         (small_open, large_open): Remove macros.
46292         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46293         * lib/mkstemp.c (mkstemp): Update.
46294         * lib/mkdtemp.c (mkdtemp): Likewise.
46295         * m4/mkostemp.m4: New file.
46296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46297         HAVE_MKOSTEMP.
46298         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46299         HAVE_MKOSTEMP.
46300         * modules/mkostemp: New file, based on modules/mkstemp.
46301         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46302         * NEWS: Mention the change.
46303
46304 2009-08-23  Bruno Haible  <bruno@clisp.org>
46305
46306         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46307         Reported by Eric Blake.
46308
46309 2009-08-23  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46312         Reported by Eric Blake.
46313
46314 2009-08-23  Bruno Haible  <bruno@clisp.org>
46315
46316         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46317         * modules/pipe2 (Depends-on): Likewise.
46318
46319 2009-08-23  Eric Blake  <ebb9@byu.net>
46320
46321         fcntl-h: add O_TTY_INIT support
46322         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46323         * tests/test-fcntl-h.c (o): Test it.
46324         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46325
46326         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46327         * modules/fcntl: Move <fcntl.h> header replacement...
46328         * modules/fcntl-h: ...to new name, so as not to collide with
46329         like-named function.
46330         * tests/test-fcntl.c: Rename...
46331         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46332         * modules/fcntl-tests: Rename...
46333         * modules/fcntl-h-tests: ...to this.  Update test file name.
46334         * modules/chdir-long (Depends-on): Update clients.
46335         * modules/chdir-safer (Depends-on): Likewise.
46336         * modules/fcntl-safer (Depends-on): Likewise.
46337         * modules/fts (Depends-on): Likewise.
46338         * modules/mkancesdirs (Depends-on): Likewise.
46339         * modules/mkdir-p (Depends-on): Likewise.
46340         * modules/open (Depends-on): Likewise.
46341         * modules/savewd (Depends-on): Likewise.
46342         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46343         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46344
46345 2009-08-22  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/binary-io (License): Relicense under LGPL.
46348         * modules/pipe2 (License): Likewise.
46349
46350 2009-08-22  Bruno Haible  <bruno@clisp.org>
46351
46352         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46353         return value.
46354         * lib/pipe-filter-gi.c (filter_init): Likewise.
46355         Reported by Eric Blake.
46356
46357 2009-08-22  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46360         * modules/pipe (Depends-on): Add pipe2.
46361
46362 2009-08-22  Bruno Haible  <bruno@clisp.org>
46363
46364         Tests for module 'pipe2'.
46365         * modules/pipe2-tests: New file.
46366         * tests/test-pipe2.c: New file.
46367
46368         New module 'pipe2'.
46369         * lib/unistd.in.h (pipe2): New declaration.
46370         * lib/pipe2.c: New file.
46371         * m4/pipe2.m4: New file.
46372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46373         HAVE_PIPE2.
46374         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46375         * modules/pipe2: New file.
46376         * doc/glibc-functions/pipe2.texi: Mention the new module.
46377
46378 2009-08-22  Bruno Haible  <bruno@clisp.org>
46379
46380         Reference some new glibc functions.
46381         * doc/glibc-functions/accept4.texi: New file.
46382         * doc/glibc-functions/dup3.texi: New file.
46383         * doc/glibc-functions/mkostemp.texi: New file.
46384         * doc/glibc-functions/pipe2.texi: New file.
46385         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46386         (Glibc sys/socket.h): Refer to accept4.
46387         (Glibc unistd.h): Refer to dup3, pipe2.
46388         Reported by Eric Blake.
46389
46390 2009-08-22  Jim Meyering  <meyering@redhat.com>
46391             Bruno Haible  <bruno@clisp.org>
46392
46393         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46394         This makes it so packages using automake-1.11's silent-rules option
46395         can print e.g., a single "GEN    configmake.h" line, rather than
46396         the 30+ statements that perform the job.  If you want to see the
46397         actual commands, you can still run "make V=1".
46398         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46399         so that make output is abbreviated when those variables are defined
46400         appropriately.
46401         * modules/argz: Likewise.
46402         * modules/arpa_inet: Likewise.
46403         * modules/byteswap: Likewise.
46404         * modules/configmake: Likewise.
46405         * modules/dirent: Likewise.
46406         * modules/errno: Likewise.
46407         * modules/fcntl: Likewise.
46408         * modules/float: Likewise.
46409         * modules/fnmatch: Likewise.
46410         * modules/getopt-posix: Likewise.
46411         * modules/glob: Likewise.
46412         * modules/iconv_open: Likewise.
46413         * modules/inttypes: Likewise.
46414         * modules/localcharset: Likewise.
46415         * modules/locale: Likewise.
46416         * modules/math: Likewise.
46417         * modules/netdb: Likewise.
46418         * modules/netinet_in: Likewise.
46419         * modules/poll: Likewise.
46420         * modules/posix_spawnp-tests: Likewise.
46421         * modules/sched: Likewise.
46422         * modules/search: Likewise.
46423         * modules/selinux-h: Likewise.
46424         * modules/signal: Likewise.
46425         * modules/spawn: Likewise.
46426         * modules/stdarg: Likewise.
46427         * modules/stdbool: Likewise.
46428         * modules/stddef: Likewise.
46429         * modules/stdint: Likewise.
46430         * modules/stdio: Likewise.
46431         * modules/stdlib: Likewise.
46432         * modules/string: Likewise.
46433         * modules/strings: Likewise.
46434         * modules/sys_file: Likewise.
46435         * modules/sys_ioctl: Likewise.
46436         * modules/sys_select: Likewise.
46437         * modules/sys_socket: Likewise.
46438         * modules/sys_stat: Likewise.
46439         * modules/sys_time: Likewise.
46440         * modules/sys_times: Likewise.
46441         * modules/sys_utsname: Likewise.
46442         * modules/sys_wait: Likewise.
46443         * modules/sysexits: Likewise.
46444         * modules/time: Likewise.
46445         * modules/unistd: Likewise.
46446         * modules/wchar: Likewise.
46447         * modules/wctype: Likewise.
46448
46449 2009-08-22  Jim Meyering  <meyering@redhat.com>
46450
46451         announce-gen: detect write failure
46452         * build-aux/announce-gen: Add Coda at end.
46453         Remove equivalent-but-more-verbose block at top.
46454
46455 2009-08-19  Akim Demaille  <demaille@gostai.com>
46456
46457         bootstrap: --help to stdout.
46458         * bootstrap (usage): Don't send --help to stderr.
46459         Use a here doc instead of a long string.
46460
46461 2009-08-21  Eric Blake  <ebb9@byu.net>
46462
46463         test-popen-safer: split from test-popen
46464         * tests/test-popen.c (main): Move...
46465         * tests/test-popen.h: ...into new file.
46466         * tests/test-popen-safer2.c: New file.
46467         * modules/popen-tests (Files): Add test-popen.h.
46468         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46469         Suggested by Bruno Haible.
46470
46471         test-fcntl-safer: split from test-open
46472         * tests/test-open.c (main): Move...
46473         * tests/test-open.h: ...into new file.
46474         * tests/test-fcntl-safer.c: New file.
46475         * modules/open-tests (Files): Add test-open.h.
46476         * modules/fcntl-safer-tests: New file.
46477         Suggested by Bruno Haible.
46478
46479         test-fopen-safer: split from test-fopen
46480         * tests/test-fopen.c (main): Move...
46481         * tests/test-fopen.h: ...into new file.
46482         * tests/test-fopen-safer.c: New file.
46483         * modules/fopen-tests (Files): Add test-fopen.h.
46484         * modules/fopen-safer-tests: New file.
46485         Suggested by Bruno Haible.
46486
46487 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46488
46489         popen-safer: test O_CLOEXEC at run-time.
46490         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46491
46492 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46493
46494         fcntl: move more flags to the header
46495         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46496         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46497         * lib/fcntl.in.h: Do both things here.
46498
46499 2009-08-21  Jim Meyering  <meyering@redhat.com>
46500
46501         consistently remove $@-t before redirecting to it
46502         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46503         * modules/alloca-opt: Likewise.
46504         * modules/byteswap: Likewise.
46505         * modules/fnmatch: Likewise.
46506         * modules/getopt-posix: Likewise.
46507         * modules/glob: Likewise.
46508         * modules/poll: Likewise.
46509         * modules/posix_spawnp-tests: Likewise.
46510         * modules/sys_socket: Likewise.
46511         * modules/sysexits: Likewise.
46512
46513 2009-08-21  Eric Blake  <ebb9@byu.net>
46514
46515         popen: simplify access to original popen
46516         * lib/popen.c (rpl_popen): No need to worry about popen being a
46517         macro.
46518         Reported by Bruno Haible.
46519
46520 2009-08-20  Eric Blake  <ebb9@byu.net>
46521
46522         build: avoid some compiler warnings
46523         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46524         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46525         type.
46526         (new_exclude_segment, excluded_file_pattern_p)
46527         (excluded_file_name_p): Reduce scope.
46528         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46529         old-style declaration.
46530
46531 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46532
46533         * tests/test-exclude1.sh: Handle Windows EOL.
46534         * tests/test-exclude2.sh: Likewise.
46535         * tests/test-exclude3.sh: Likewise.
46536         * tests/test-exclude4.sh: Likewise.
46537         * tests/test-exclude5.sh: Likewise.
46538         * tests/test-exclude6.sh: Likewise.
46539         * tests/test-exclude7.sh: Likewise.
46540
46541 2009-08-19  Akim Demaille  <demaille@gostai.com>
46542
46543         bootstrap: find sha1sum when named gsha1sum.
46544         * bootstrap (find_tool): New.
46545         ($SHA1SUM): New.
46546         Use it.
46547
46548 2009-08-20  Jim Meyering  <meyering@redhat.com>
46549
46550         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46551         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46552         expression that converts "." in a file name to "\." in the resulting
46553         regexp.  Start with a dummy statement, so that prior shell variable
46554         definitions are expanded portably.  Reported by Simon Josefsson.
46555
46556 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46557
46558         Fix polling for writeability of a screen buffer.
46559         * lib/poll.c: Distinguish input and screen buffers for the
46560         Win32 implementation.
46561         * lib/select.c: Likewise.
46562
46563 2009-08-19  Eric Blake  <ebb9@byu.net>
46564
46565         popen-safer: prevent popen from clobbering std descriptors
46566         * modules/popen-safer: New file.
46567         * lib/popen-safer.c: Likewise.
46568         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46569         * lib/stdio--.h (popen): Provide override.
46570         * lib/stdio-safer.h (popen_safer): Provide declaration.
46571         * tests/test-popen.c (includes): Partially test this.
46572         * modules/popen-safer-tests: New file, for more tests.
46573         * tests/test-popen-safer.c: Likewise.
46574         * MODULES.html.sh (file stream based Input/Output): Mention it.
46575
46576         tests: test some of the *-safer modules
46577         * modules/fopen-safer (Depends-on): Add fopen.
46578         * modules/fcntl-safer (Depends-on): Add fcntl.
46579         * modules/stdlib-safer (Depends-on): Add stdlib.
46580         (configure.ac): Set indicator.
46581         * modules/unistd-safer (configure.ac): Likewise.
46582         * modules/tmpfile-safer (configure.ac): Likewise.
46583         (Depends-on): Add tmpfile.
46584         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46585         active.
46586         * tests/test-fopen.c (includes): Test safer versions when they are
46587         in use.
46588         * tests/test-open.c (includes): Likewise.
46589
46590         popen: fix cygwin 1.5 bug when stdin closed
46591         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46592         * modules/popen: New file.
46593         * modules/popen-tests: Likewise.
46594         * tests/test-popen.c: Likewise.
46595         * m4/popen.m4: Likewise.
46596         * lib/popen.c: Likewise.
46597         * lib/stdio.in.h (popen): New declaration.
46598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46599         * modules/stdio (Makefile.am): Likewise.
46600         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46601
46602 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46603
46604         maint.mk: give full control over update-copyright exclusions
46605         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46606         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46607         (update-copyright): Don't force inclusion of top-level
46608         ChangeLog.  Don't force exclusion of all COPYING files, but make
46609         them the default exclusion instead.
46610
46611 2009-08-16  Bruno Haible  <bruno@clisp.org>
46612
46613         Fix test failures on Solaris 10.
46614         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46615         tests when Solaris iconv() is used.
46616         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46617         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46618         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46619         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46620         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46621
46622 2009-08-16  Bruno Haible  <bruno@clisp.org>
46623
46624         Fix test failures on Solaris 10.
46625         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46626         'tr' program and pass it as first argument.
46627         * tests/test-pipe-filter-gi1.sh: Likewise.
46628         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46629         program as first argument.
46630         * tests/test-pipe-filter-gi1.c (main): Likewise.
46631
46632 2009-08-16  Eric Blake  <ebb9@byu.net>
46633
46634         fpurge: fix previous commits
46635         * modules/fpurge (Makefile.am): Make replacement conditional,
46636         partially reverting 2007-04-29 change; missed in previous
46637         attempt.
46638         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46639         is missing.
46640
46641 2009-08-16  Bruno Haible  <bruno@clisp.org>
46642
46643         Clarify fpurge's effect on the file position.
46644         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46645         * tests/test-fpurge.c (main): Make a second pass for checking the file
46646         position.
46647
46648 2009-08-16  Bruno Haible  <bruno@clisp.org>
46649
46650         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46651         declaration of fpurge is missing.
46652         * tests/test-fpurge.c (main): Check that the file has not more contents
46653         than expected. Close the file before removing it.
46654
46655 2009-08-15  Eric Blake  <ebb9@byu.net>
46656
46657         fpurge: don't wrap working cygwin implementation
46658         * lib/fpurge.c (fpurge): Fix comment typo.
46659         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46660         1.7 to avoid replacement.
46661         * tests/test-fpurge.c (main): Enhance test.
46662
46663 2009-08-15  Eric Blake  <ebb9@byu.net>
46664         and Jim Meyering  <meyering@redhat.com>
46665
46666         test-update-copyright: skip if perl is insufficient
46667         * tests/test-update-copyright.sh: Failure to run maintainer tool
46668         should not cause testsuite failure on cygwin 1.5.
46669
46670 2009-08-14  Eric Blake  <ebb9@byu.net>
46671
46672         doc: mention more functions added in cygwin 1.7.0
46673         * doc/posix-headers/limits.texi (limits.h): Update for recent
46674         cygwin additions.
46675         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46676         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46677         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46678         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46679         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46680
46681 2009-08-14  Eric Blake  <ebb9@byu.net>
46682
46683         maint.mk: simplify update-copyright rule
46684         * top/maint.mk (update-copyright-local): Delete, and document how
46685         to do it in cfg.mk instead.
46686         (update-copyright-exclude-regexp): Delete, and document how to do
46687         it in .x-update-copyright instead.
46688         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46689         exclude ChangeLog.
46690
46691 2009-08-14  Bruno Haible  <bruno@clisp.org>
46692
46693         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46694
46695 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46696
46697         maint.mk: support update-copyright-env
46698         * top/maint.mk (update-copyright-env): Define place-holder.
46699         (update-copyright): Expand $(update-copyright-env) before
46700         invoking update-copyright.
46701
46702 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46703
46704         update-copyright: implement forced reformatting
46705         * build-aux/update-copyright: Implement and document
46706         UPDATE_COPYRIGHT_FORCE.
46707         * tests/test-update-copyright.sh: Test it.
46708
46709 2009-08-14  Eric Blake  <ebb9@byu.net>
46710         and Bruno Haible  <bruno@clisp.org>
46711
46712         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46713         * tests/test-locale.c: Revert previous patch related to NULL.
46714         * tests/test-stdio.c: Likewise.
46715         * tests/test-stdlib.c: Likewise.
46716         * tests/test-string.c: Likewise.
46717         * tests/test-unistd.c: Likewise.
46718         * modules/time-tests (Depends-on): Add verify.
46719         * modules/wchar-tests (Depends-on): Likewise.
46720         * tests/test-time.c: Test for NULL compliance.
46721         * tests/test-wchar.c: Likewise.
46722         * modules/locale (Depends-on): Add stddef.
46723         * modules/stdio (Depends-on): Likewise.
46724         * modules/stdlib (Depends-on): Likewise.
46725         * modules/string (Depends-on): Likewise.
46726         * modules/time (Depends-on): Likewise.
46727         * modules/unistd (Depends-on): Likewise.
46728         * modules/wchar (Depends-on): Likewise.
46729         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46730         * lib/stdlib.in.h (includes): Likewise.
46731         * lib/string.in.h (includes): Likewise.
46732         * lib/time.in.h (includes): Likewise.
46733         * lib/unistd.in.h (includes): Likewise.
46734         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46735         replaced.
46736         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46737         * m4/stddef_h.m4: New file.
46738         * modules/stddef: Likewise.
46739         * lib/stddef.in.h: Likewise.
46740         * modules/stddef-tests: Likewise.
46741         * tests/test-stddef.c: Likewise.
46742         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46743         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46744         * doc/posix-headers/locale.texi (locale.h): Likewise.
46745         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46746         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46747         * doc/posix-headers/string.texi (string.h): Likewise.
46748         * doc/posix-headers/time.texi (time.h): Likewise.
46749         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46750         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46751
46752 2009-08-14  Eric Blake  <ebb9@byu.net>
46753
46754         doc: improve git diff of texinfo files
46755         * .gitattributes: Add rule for *.texi files, with hint on how to
46756         use it.
46757         Copied from m4, and based on a report by Bruno Haible.
46758
46759 2009-08-14  Bruno Haible  <bruno@clisp.org>
46760
46761         Disable multithread support by default on Cygwin 1.5.x for real.
46762         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46763
46764 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46765
46766         update-copyright: much ado about intervals
46767         * build-aux/update-copyright: Implement and document
46768         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46769         of copyright year intervals.
46770         Also, document UPDATE_COPYRIGHT_YEAR.
46771         * tests/test-update-copyright.sh: Test it.
46772
46773         update-copyright: convert 2-digit to 4-digit years
46774         * build-aux/update-copyright: Implement and document.
46775         * tests/test-update-copyright.sh: Update.
46776
46777 2009-08-14  Jim Meyering  <meyering@redhat.com>
46778
46779         test-exclude: avoid coreutils "make check" failure
46780         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46781         just as in test-argmatch.c.
46782
46783 2009-08-13  Eric Blake  <ebb9@byu.net>
46784
46785         test-dup2: fix bad assumption
46786         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46787         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46788
46789         test-version-etc: fix CRLF portability issue
46790         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46791         recognize \r.
46792         * tests/test-argp-version-etc-1.sh: Likewise.
46793
46794         getopt: update client modules
46795         * modules/argp (Depends-on): Use getopt-gnu.
46796         * modules/git-merge-changelog (Depends-on): Likewise.
46797         * modules/long-options (Depends-on): Likewise.
46798         * modules/xstrtol (Depends-on): Likewise.
46799
46800 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46801
46802         * tests/test-version-etc.sh: Don't fail on different
46803         project/version.  Don't fail on CRLF differences.  Rewrite to use
46804         multiple -e instead of multiple sed forks, suggested by Eric Blake
46805         <ebb9@byu.net>.
46806         * tests/test-argp-version-etc-1.sh: Likewise.
46807
46808 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46809
46810         * tests/test-version-etc.sh: Don't fail on different
46811         project/version.
46812
46813 2009-08-12  Bruno Haible  <bruno@clisp.org>
46814
46815         Tests for modules 'getopt-posix', 'getopt-gnu'.
46816         * modules/getopt-posix-tests: New file.
46817         * tests/test-getopt.c: New file.
46818         * tests/test-getopt.h: New file.
46819         * tests/test-getopt_long.h: New file.
46820
46821         New modules 'getopt-posix', 'getopt-gnu'.
46822         * modules/getopt-gnu: New file, renamed from modules/getopt.
46823         * modules/getopt-posix: New file.
46824         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46825         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46826         (gl_GETOPT): Remove macro.
46827         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46828         Disable the test against BSD systems that declare optreset. Test
46829         against mingw bug. Test against lack of support of optional arguments
46830         on many platforms.
46831         * doc/glibc-headers/getopt.texi: Update module name and list of
46832         relevant platforms.
46833         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46834         'getopt-gnu' and more portability problems.
46835         * NEWS: Mention the changes.
46836
46837 2009-08-12  Bruno Haible  <bruno@clisp.org>
46838
46839         Ensure that optarg etc. get declared by <unistd.h>.
46840         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46841         AC_USE_SYSTEM_EXTENSIONS.
46842         * modules/getopt (Depends-on): Add 'extensions'.
46843
46844 2009-08-12  Bruno Haible  <bruno@clisp.org>
46845
46846         Avoid test link errors.
46847         * modules/pipe-filter-ii-tests (Makefile.am): Define
46848         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46849         * modules/pipe-filter-gi-tests (Makefile.am): Define
46850         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46852
46853 2009-08-12  Bruno Haible  <bruno@clisp.org>
46854
46855         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46856         gl_GETOPT_SUBSTITUTE before.
46857         (gl_GETOPT): Use it.
46858         * m4/argp.m4 (gl_ARGP): Update.
46859         Reported by Sergey Poznyakoff.
46860
46861         * m4/getopt.m4: Reorder macros.
46862         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46863         (gl_GETOPT_SUBSTITUTE): Remove macro.
46864
46865 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46866
46867         Minor improvement in gitlog-to-changelog
46868
46869         * build-aux/gitlog-to-changelog: New option `--format' makes
46870         output format string configurable.
46871
46872 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46873
46874         Optimize exclude: use hash tables for non-wildcard patterns.
46875
46876         * lib/exclude.c: Include hash.h and mbuiter.h
46877         (struct exclude_pattern, exclude_segment): New data types.
46878         (struct exclude): Rewrite.
46879         (fnmatch_pattern_has_wildcards): New function.
46880         (new_exclude_segment, free_exclude_segment): New functions.
46881         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46882         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46883         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46884         * modules/exclude: Depend on hash and mbuiter.
46885
46886         * modules/exclude-tests: New file.
46887         * tests/test-exclude.c: New file.
46888         * tests/test-exclude1.sh: New file.
46889         * tests/test-exclude2.sh: New file.
46890         * tests/test-exclude3.sh: New file.
46891         * tests/test-exclude4.sh: New file.
46892         * tests/test-exclude5.sh: New file.
46893         * tests/test-exclude6.sh: New file.
46894         * tests/test-exclude7.sh: New file.
46895
46896 2009-08-12  Bruno Haible  <bruno@clisp.org>
46897
46898         Ensure that getopt() gets declared by <unistd.h>.
46899         * lib/unistd.in.h: Conditionally include getopt.h.
46900         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46901         Set GNULIB_UNISTD_H_GETOPT.
46902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46903         GNULIB_UNISTD_H_GETOPT.
46904         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46905
46906 2009-08-12  Bruno Haible  <bruno@clisp.org>
46907
46908         Clarify logic.
46909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46910         gl_replace_getopt instead of GETOPT_H.
46911
46912 2009-08-12  Bruno Haible  <bruno@clisp.org>
46913
46914         * m4/getopt.m4: Add comments.
46915
46916 2009-08-12  Bruno Haible  <bruno@clisp.org>
46917
46918         Disable multithread support by default on Cygwin 1.5.x.
46919         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46920         set gl_use_threads=no if not specified otherwise.
46921
46922 2009-08-11  Bruno Haible  <bruno@clisp.org>
46923
46924         Avoid compilation error on NetBSD 5.0.
46925         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46926         * tests/test-stdio.c: Likewise.
46927         * tests/test-stdlib.c: Likewise.
46928         * tests/test-string.c: Likewise.
46929         * tests/test-unistd.c: Likewise.
46930         Reported by Greg Troxel <gdt@ir.bbn.com>
46931         at <https://savannah.gnu.org/support/?106973>.
46932
46933 2009-08-11  Bruno Haible  <bruno@clisp.org>
46934
46935         * modules/dup2-tests (Depends-on): Remove close.
46936
46937         Undo 2009-07-19 commit.
46938         * modules/acl-tests (Depends-on): Remove close.
46939         * modules/binary-io-tests (Depends-on): Likewise.
46940         * modules/closein-tests (Depends-on): Likewise.
46941         * modules/flock-tests (Depends-on): Likewise.
46942         * modules/fsync-tests (Depends-on): Likewise.
46943         * modules/lseek-tests (Depends-on): Likewise.
46944         * modules/pipe-tests (Depends-on): Likewise.
46945         * modules/posix_spawn-tests (Depends-on): Likewise.
46946         * modules/posix_spawnp-tests (Depends-on): Likewise.
46947         * modules/stat-time-tests (Depends-on): Likewise.
46948         * modules/yesno-tests (Depends-on): Likewise.
46949
46950 2009-08-10  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46953
46954 2009-08-10  Bruno Haible  <bruno@clisp.org>
46955
46956         Fix a gcc warning.
46957         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46958
46959 2009-08-10  Bruno Haible  <bruno@clisp.org>
46960
46961         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46962         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46963         not only the first time.
46964         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46965         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46966         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46967         is 1, not only the the first time.
46968
46969 2009-08-10  Bruno Haible  <bruno@clisp.org>
46970
46971         Make it possible to use module 'gethostname' without module 'close'.
46972         * lib/unistd.in.h (close): Evoke a link error only if
46973         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46975         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46976         * modules/unistd (Makefile.am): Substitute
46977         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46978         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46979         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46981         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46982         * modules/sys_ioctl (Makefile.am): Substitute
46983         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46984         * modules/socket (configure.ac): On native Windows, set
46985         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46986         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46987         Reported by Sam Steingold <sds@gnu.org>.
46988
46989 2009-08-10  Bruno Haible  <bruno@clisp.org>
46990
46991         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46992         * modules/ioctl (configure.ac): Likewise.
46993
46994 2009-08-10  Bruno Haible  <bruno@clisp.org>
46995
46996         Avoid collision between gnulib wrapper and libintl wrapper.
46997         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46998         already defined in intl/printf.c.
46999         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47000         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47001
47002 2009-08-09  Bruno Haible  <bruno@clisp.org>
47003
47004         Make <sys/select.h> really self-contained, also on Solaris 10.
47005         * lib/sys_select.in.h: Include <string.h>.
47006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47007         Solaris 10 problem.
47008         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47009         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47010         Reported by Jim Meyering.
47011
47012 2009-08-09  Bruno Haible  <bruno@clisp.org>
47013
47014         Avoid warnings from 'aclocal' that are due to a use of macro name
47015         AM_XGETTEXT_OPTION that is not defined in automake.
47016         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47017         automake.
47018         * modules/error (configure.ac): Likewise.
47019         * modules/propername (configure.ac): Likewise.
47020         * modules/vasprintf (configure.ac): Likewise.
47021         * modules/verror (configure.ac): Likewise.
47022         * modules/xprintf (configure.ac): Likewise.
47023         * modules/xvasprintf (configure.ac): Likewise.
47024
47025 2009-08-08  Bruno Haible  <bruno@clisp.org>
47026
47027         Avoid compilation error in C++ mode.
47028         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47029         Reported by Sam Steingold <sds@gnu.org>.
47030
47031 2009-08-08  Bruno Haible  <bruno@clisp.org>
47032
47033         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47034         for the various Unix platforms.
47035         * doc/posix-headers/limits.texi: Update platforms list regarding
47036         HOST_NAME_MAX.
47037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47038
47039 2009-08-07  Jim Meyering  <meyering@redhat.com>
47040
47041         selinux-at: fix typo in a comment
47042         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47043         Spotted by Paolo Bonzini.
47044
47045         selinux-at: remove redundant m4 code, add documentation
47046         * modules/selinux-at (configure.ac): Remove redundant code.
47047         LIB_SELINUX is already set via the dependent module, selinux-h.
47048         (Include): Add quotes around selinux-at.h.
47049         * lib/selinux-at.h: Add documentation.
47050         Reported by Bruno Haible in
47051         http://marc.info/?l=gnulib-bug&m=124958988300749
47052
47053 2009-08-07  Bruno Haible  <bruno@clisp.org>
47054
47055         Avoid link error on MacOS X 10.3 and 10.4.
47056         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47057         on non-ELF systems.
47058         * lib/argp-pv.c (argp_program_version): Likewise.
47059         Reported by Simon Josefsson.
47060
47061 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47062
47063         * tests/test-version-etc.sh: Use $EXEEXT.
47064
47065 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47066
47067         update-copyright: update documentation to point to maint.mk
47068         * build-aux/update-copyright: Here.
47069
47070 2009-08-06  Jim Meyering  <meyering@redhat.com>
47071
47072         maint.mk: support update-copyright-local
47073         * top/maint.mk (update-copyright-local): Define place-holder.
47074         (update-copyright): Depend on $(update-copyright-local).
47075
47076 2009-08-06  Jim Meyering  <meyering@redhat.com>
47077
47078         selinux-at: new module
47079         Initially written for coreutils, this module will soon be
47080         used by findutils, too.
47081         * MODULES.html.sh [Misc]: Add selinux-at.
47082         * lib/selinux-at.h: New file, from coreutils.
47083         * lib/selinux-at.c: Likewise.
47084         * modules/selinux-at: Likewise.
47085         (License): Change from LGPL to GPL, since it depends
47086         on the GPL'd openat module.
47087
47088         doc: update README
47089         * README: Remove references to cogito.
47090         Remove cvs-repo-updating instructions from 2007.
47091         Don't imply that CVS is better if you have limited disk space.
47092
47093 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47094
47095         update-copyright: support C-style comments
47096         * build-aux/update-copyright: Implement and document.
47097         * tests/test-update-copyright.sh: Test.
47098
47099 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47100
47101         update-copyright: support omitted "(C)"
47102         * build-aux/update-copyright: Implement and document.  Also,
47103         allow variable whitespace before "(C)".
47104         * tests/test-update-copyright.sh: Test.
47105
47106 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47107
47108         update-copyright: don't trip on non-FSF copyright statements
47109         * build-aux/update-copyright: Fix so that the first correctly
47110         formatted FSF copyright statement is recognized no matter what
47111         appears before it.  Update documentation.
47112         * tests/test-update-copyright.sh: Test that.
47113
47114 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47115
47116         update-copyright: clean up code a little
47117         * build-aux/update-copyright: Append "_re" to the name of any
47118         variable holding a regular expression.
47119         Replace "old" and "new" with "stmt" in variable names.
47120         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47121         handled correctly.
47122         Format code more consistently.
47123
47124 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47125
47126         update-copyright-tests: improve portability
47127         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47128         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47129
47130 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47131
47132         update-copyright: support @copyright{} and &copy;
47133         * build-aux/update-copyright: Implement and document.
47134         * tests/test-update-copyright.sh: Test.
47135
47136 2009-08-04  Jim Meyering  <meyering@redhat.com>
47137
47138         update-copyright-tests: correctly test EOL=\r\n handling
47139         * tests/test-update-copyright.sh: Put \r at the end of some lines
47140         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47141
47142         maint.mk: make update-copyright exclusion list more configurable
47143         * top/maint.mk (update-copyright): Default to excluding COPYING,
47144         but allow an override, in case someone does want to update that file.
47145
47146         maint.mk: don't update copyright date in COPYING
47147         * top/maint.mk (update-copyright): Exclude COPYING.
47148
47149         maint.mk: add a copyright-updating rule
47150         * top/maint.mk (update-copyright): New rule.
47151         Derived from coreutils/Makefile.am.
47152
47153         update-copyright: rename some variables
47154         * build-aux/update-copyright: Rename a few variables for clarity.
47155         Tweak syntax.  List Joel E. Denny as coauthor.
47156
47157 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47158
47159         update-copyright: fix bug for 2-digit last year and add tests
47160         * build-aux/update-copyright: Fix bug.
47161         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47162         specified.
47163         * modules/update-copyright-tests: New
47164         * tests/test-update-copyright.sh: New.
47165
47166 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47167
47168         update-copyright: handle leading tabs in line prefix
47169         * build-aux/update-copyright: Count leading tabs as 8 spaces
47170         when computing margin.  This helps with the formatting of
47171         ChangeLogs, for example.
47172         Fix documentation a little.
47173
47174 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47175
47176         update-copyright: support EOL=\r\n
47177         * build-aux/update-copyright: Implement that.
47178
47179 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47180
47181         update-copyright: automatically format copyright statements
47182         * build-aux/update-copyright: Implement that.
47183         Also, be a little more predictable and safer by always failing
47184         when the full copyright format is not perfectly recognized as an
47185         unbroken whole.  Discussed at
47186         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47187         Rewrite documentation.
47188
47189 2009-08-03  Bruno Haible  <bruno@clisp.org>
47190
47191         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47192
47193 2009-08-02  Bruno Haible  <bruno@clisp.org>
47194
47195         Tests for module 'uname'.
47196         * modules/uname-tests: New file.
47197         * tests/test-uname.c: New file.
47198
47199         New module 'uname'.
47200         * lib/uname.c: New file.
47201         * m4/uname.m4: New file.
47202         * modules/uname: New file.
47203         * doc/posix-functions/uname.texi: Mention the new module.
47204
47205 2009-08-02  Bruno Haible  <bruno@clisp.org>
47206
47207         Tests for module 'sys_utsname'.
47208         * modules/sys_utsname-tests: New file.
47209         * tests/test-sys_utsname.c: New file.
47210
47211         New module 'sys_utsname'.
47212         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47213         * m4/sys_utsname_h.m4: New file.
47214         * modules/sys_utsname: New file.
47215         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47216
47217 2009-08-02  Bruno Haible  <bruno@clisp.org>
47218
47219         Implicitly initialize the sockets library.
47220         * lib/gethostname.c: Include sockets.h.
47221         (rpl_gethostname): Invoke gl_sockets_startup.
47222         * lib/socket.c: Include sockets.h.
47223         (rpl_socket): Invoke gl_sockets_startup.
47224         * modules/gethostname (Depends-on): Add sockets.
47225         * modules/socket (Depends-on): Likewise.
47226         * tests/test-poll.c: Don't include sockets.h.
47227         (main): Don't invoke gl_sockets_startup.
47228         * tests/test-select.c: Don't include sockets.h.
47229         (main): Don't invoke gl_sockets_startup.
47230
47231 2009-08-02  Bruno Haible  <bruno@clisp.org>
47232
47233         Allow multiple calls to gl_sockets_startup.
47234         * lib/sockets.c (initialized_sockets_version): New variable.
47235         (gl_sockets_startup): Do nothing if already called for this or a higher
47236         version.
47237         (gl_sockets_cleanup): Reset initialized_sockets_version.
47238
47239 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47240
47241         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47242         different project/version.
47243
47244 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47245             Bruno Haible  <bruno@clisp.org>
47246
47247         Tests for module 'pipe-filter-gi'.
47248         * modules/pipe-filter-gi-tests: New file.
47249         * tests/test-pipe-filter-gi1.sh: New file.
47250         * tests/test-pipe-filter-gi1.c: New file.
47251         * tests/test-pipe-filter-gi2.sh: New file.
47252         * tests/test-pipe-filter-gi2-main.c: New file.
47253         * tests/test-pipe-filter-gi2-child.c: New file.
47254
47255         New module 'pipe-filter-gi'.
47256         * lib/pipe-filter-gi.c: New file.
47257         * modules/pipe-filter-gi: New file.
47258
47259 2009-08-02  Bruno Haible  <bruno@clisp.org>
47260             Paolo Bonzini  <bonzini@gnu.org>
47261
47262         Tests for module 'pipe-filter-ii'.
47263         * modules/pipe-filter-ii-tests: New file.
47264         * tests/test-pipe-filter-ii1.sh: New file.
47265         * tests/test-pipe-filter-ii1.c: New file.
47266         * tests/test-pipe-filter-ii2.sh: New file.
47267         * tests/test-pipe-filter-ii2-main.c: New file.
47268         * tests/test-pipe-filter-ii2-child.c: New file.
47269
47270         New module 'pipe-filter-ii'.
47271         * lib/pipe-filter.h: New file.
47272         * lib/pipe-filter-ii.c: New file.
47273         * lib/pipe-filter-aux.h: New file.
47274         * modules/pipe-filter-ii: New file.
47275
47276 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47277
47278         * lib/gc-libgcrypt.c: Change copyright to FSF.
47279         * lib/gc-gnulib.c: Likewise.
47280
47281 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47282
47283         * lib/gethostname.c: Include limits.h.
47284
47285 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47286             Bruno Haible  <bruno@clisp.org>
47287
47288         Ensure HOST_NAME_MAX as part of the gethostname module.
47289         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47290         define also HOST_NAME_MAX.
47291         * tests/test-gethostname.c: Include <limits.h>.
47292         (main): Check also HOST_NAME_MAX.
47293         * doc/posix-headers/limits.texi: Document the mingw problem.
47294
47295 2009-08-02  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47298         Add comments.
47299
47300 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47301
47302         * lib/gethostname.c: Add Windows wrapper.
47303         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47304         * modules/gethostname: Depend on sys_socket & errno, for also
47305         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47306         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47307
47308 2009-07-31  Jim Meyering  <meyering@redhat.com>
47309
47310         getloadavg: fix symbol name in comment
47311         * lib/getloadavg.c: Correct a typo I introduced when adding
47312         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47313         Matt Kraai spotted the problem.
47314
47315 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47316
47317         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47318         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47319         code also if ! defined N_NAME_POINTER.
47320         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47321         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47322         but the n_name member is a 12-byte array.
47323
47324 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47325
47326         update-copyright: generalize comment handling
47327         * build-aux/update-copyright: Handle copyright statements
47328         within more comment styles.
47329         Document usage.
47330         Report any file with an external copyright holder or parse failure.
47331
47332 2009-07-29  Jim Meyering  <meyering@redhat.com>
47333
47334         mktime: correct setting of REPLACE_MKTIME
47335         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47336
47337         update-copyright: new module
47338         * modules/update-copyright: New file.
47339         * build-aux/update-copyright: New file.
47340         * MODULES.html.sh (maint+release support): Add update-copyright.
47341
47342 2009-07-27  Bruno Haible  <bruno@clisp.org>
47343
47344         Fix compilation error when <ctime> is used and mktime is replaced.
47345         * lib/time.in.h (mktime): New declaration.
47346         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47347         REPLACE_MKTIME instead of defining mktime in config.h.
47348         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47349         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47350         Reported by Ross McFarland <rwmcfa1@neces.com>.
47351
47352 2009-07-27  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47355         Reported by Matt Kraai <mkraai@beckman.com>.
47356
47357 2009-07-25  Jim Meyering  <meyering@redhat.com>
47358
47359         maint.mk: avoid warnings about missing files
47360         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47361         diagnostic when .prev-version does not exist.
47362         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47363         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47364         nonexistent cfg.mk.
47365         Suggestions from Simon Josefsson.
47366
47367 2009-07-25  Bruno Haible  <bruno@clisp.org>
47368
47369         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47370         defined as macros. Needed on QNX 6.4.1.
47371         Reported by Matt Kraai <mkraai@beckman.com>.
47372
47373 2009-07-23  Jim Meyering  <meyering@redhat.com>
47374
47375         maint.mk: invoke "make dist" with a working value of XZ_OPT
47376         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47377
47378 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47379
47380         Make fseeko.c compile on QNX.
47381         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47382
47383 2009-07-22  Peter Simons  <simons@cryp.to>
47384
47385         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47386         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47387         * lib/md4.h: Likewise.
47388         * lib/md5.h: Likewise.
47389         * lib/sha1.h: Likewise.
47390         * lib/sha256.h: Likewise.
47391         * lib/sha512.h: Likewise.
47392
47393         tests-sha1: don't assign literal string to 'char *' variable
47394         * tests/test-sha1.c (main): Declare locals with "const" to match
47395         attributes of the right hand side.
47396
47397 2009-07-21  Eric Blake  <ebb9@byu.net>
47398
47399         dup2: fix more mingw problems
47400         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47401         fd to itself.
47402         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47403         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47404         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47405         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47406         care of mingw bugs.
47407
47408 2009-07-21  Jim Meyering  <meyering@redhat.com>
47409
47410         vc-list-files: avoid failure when /bin/sh is dash
47411         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47412         On some Debian based systems, /bin/sh is a symlink to dash, and running
47413         this command would omit the "/" following each 'tests' prefix:
47414           dash -x build-aux/vc-list-files -C . tests
47415         That is because bash and dash work differently:
47416           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47417           bash ok
47418           dash odd
47419
47420 2009-07-21  Eric Blake  <ebb9@byu.net>
47421
47422         dup2-tests: test previous patch
47423         * modules/dup2-tests: New file.
47424         * tests/test-dup2.c: Likewise.
47425         * tests/test-open.c (main): Avoid unspecified behavior.
47426         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47427         test.
47428
47429         dup2: work around mingw and cygwin 1.5 bug
47430         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47432         * modules/unistd (Makefile.am): Substitute it.
47433         * lib/unistd.in.h (dup2): Declare the replacement.
47434         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47435         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47436         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47437         * modules/execute (Depends-on): Add dup2.
47438         * modules/fseterr (Depends-on): Likewise.
47439         * modules/pipe (Depends-on): Likewise.
47440         * modules/posix_spawn-internal (Depends-on): Likewise.
47441
47442 2009-07-21  Bruno Haible  <bruno@clisp.org>
47443
47444         * modules/.gitattributes: New file.
47445
47446 2009-07-20  Bruno Haible  <bruno@clisp.org>
47447
47448         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47449         (main): Use it.
47450
47451 2009-07-20  Eric Blake  <ebb9@byu.net>
47452
47453         test-pipe: make a bit more robust.
47454         * tests/test-pipe.c (myerr): Allow error messages regardless of
47455         what we do to stderr.
47456         (test_pipe): Rearrange to avoid deadlock.
47457         (child_main): Try a larger read, to ensure we avoided deadlock.
47458         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47459         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47460         if misused.
47461
47462 2009-07-19  Jim Meyering  <meyering@redhat.com>
47463
47464         fts: avoid false-positive cycle-detection
47465         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47466         for each new command line argument.
47467
47468 2009-07-19  Bruno Haible  <bruno@clisp.org>
47469
47470         Fix build error on mingw with the modules sys_select and unistd.
47471         * modules/acl-tests (Depends-on): Add close.
47472         * modules/binary-io-tests (Depends-on): Likewise.
47473         * modules/closein-tests (Depends-on): Likewise.
47474         * modules/flock-tests (Depends-on): Likewise.
47475         * modules/fsync-tests (Depends-on): Likewise.
47476         * modules/lseek-tests (Depends-on): Likewise.
47477         * modules/pipe-tests (Depends-on): Likewise.
47478         * modules/posix_spawn-tests (Depends-on): Likewise.
47479         * modules/posix_spawnp-tests (Depends-on): Likewise.
47480         * modules/stat-time-tests (Depends-on): Likewise.
47481         * modules/yesno-tests (Depends-on): Likewise.
47482
47483 2009-07-19  Bruno Haible  <bruno@clisp.org>
47484
47485         Unify conditionals.
47486         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47487         macros, not at the compiler macros.
47488         * lib/pipe.c: Likewise.
47489         * lib/execute.c: Likewise.
47490         * lib/spawni.c: Likewise.
47491
47492 2009-07-19  Bruno Haible  <bruno@clisp.org>
47493
47494         Fix handling of closed stdin/stdout/stderr on mingw.
47495         * lib/w32spawn.h: Include unistd.h.
47496         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47497         file descriptor with O_NOINHERIT flag.
47498         (fd_safer_noinherit): New function, based on fd-safer.c.
47499         (dup_safer_noinherit): New function, based on dup-safer.c.
47500         (undup_safer_noinherit): New function.
47501         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47502         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47503         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47504         instead of fd_safer.
47505         * tests/test-pipe.c: Include <windows.h>.
47506         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47507         result.
47508
47509         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47510         from main.
47511         (test_pipe): Pass an extra argument for disambiguation.
47512         (main): Invoke parent_main or child_main.
47513
47514         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47515         consistently.
47516
47517 2009-07-18  Eric Blake  <ebb9@byu.net>
47518
47519         test-pipe: fix mingw build
47520         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47521
47522 2009-07-18  Bruno Haible  <bruno@clisp.org>
47523
47524         * modules/pipe-tests (Makefile.am): Fix typo.
47525
47526 2009-07-18  Eric Blake  <ebb9@byu.net>
47527
47528         error: fix mingw build
47529         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47530         Reported by Bruno Haible.
47531
47532         error: avoid undefined use of stdout
47533         * lib/error.c (error, error_at_line): Check that fd 1 is open
47534         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47535         is handling faults and the close_stdout module wants to report the
47536         detection of closed stdout as an error.
47537
47538 2009-07-17  Eric Blake  <ebb9@byu.net>
47539
47540         pipe: be robust in face of closed fds
47541         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47542         should cause child to misbehave.
47543         * modules/pipe-tests: New module.
47544         * tests/test-pipe.c: New file.
47545         * tests/test-pipe.sh: New file.
47546         Reported by Akim Demaille.
47547
47548 2009-07-14  Bruno Haible  <bruno@clisp.org>
47549
47550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47551         Reported by anonymous kc.
47552
47553 2009-07-07  Jim Meyering  <meyering@redhat.com>
47554
47555         maint.mk: don't look for translatable strings in *.m4 or *.mk
47556         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47557         when searching for translatable strings.
47558
47559 2009-07-05  Jim Meyering  <meyering@redhat.com>
47560
47561         remove superfluous parentheses in STREQ definition
47562         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47563         * lib/getugroups.c (STREQ): Likewise.
47564         * lib/fnmatch.c (STREQ): Likewise.
47565         Spotted by Bruno Haible.
47566
47567 2009-07-04  Jim Meyering  <meyering@redhat.com>
47568
47569         argv-iter: new module
47570         * MODULES.html.sh: Add argv-iter.
47571         * lib/argv-iter.c, lib/argv-iter.h: New files.
47572         * modules/argv-iter: New file.
47573         * modules/argv-iter-tests: New file.
47574         * tests/test-argv-iter.c: Test it.
47575
47576 2009-07-04  Bruno Haible  <bruno@clisp.org>
47577
47578         Fix assertion.
47579         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47580         contains more exact copies of a given entry than file2, leave the extra
47581         copies unpaired rather than aborting.
47582         Reported by Eric Blake.
47583
47584 2009-07-02  Bruno Haible  <bruno@clisp.org>
47585
47586         Speedup git-merge-changelog for git cherry-pick.
47587         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47588         (entries_mapping_get): New function, extracted from compute_mapping.
47589         (entries_mapping_reverse_get): New function.
47590         (compute_mapping): Add a 'full' argument. Return the result in a
47591         'struct entries_mapping'.
47592         (main): Update. Access the mappings through entries_mapping_get.
47593         Reported by Eric Blake.
47594
47595 2009-07-02  Bruno Haible  <bruno@clisp.org>
47596
47597         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47598         best_i.
47599
47600 2009-07-02  Bruno Haible  <bruno@clisp.org>
47601
47602         Speed up approximate search for matching ChangeLog entries.
47603         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47604         argument. Call fstrcmp_bounded instead of fstrcmp.
47605         (compute_mapping, try_split_merged_entry, main): Update callers.
47606
47607 2009-07-02  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47610
47611 2009-06-30  Bruno Haible  <bruno@clisp.org>
47612
47613         Reduce the number of uc_is_cased calls.
47614         * lib/unicase.h (casing_suffix_context_t): Add
47615         'first_char_except_ignorable' field.
47616         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47617         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47618         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47619         Update initializer.
47620         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47621         case-ignorable characters.
47622         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47623         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47624         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47625         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47626         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47627
47628 2009-06-30  Bruno Haible  <bruno@clisp.org>
47629
47630         Tests for module 'unicase/ignorable'.
47631         * modules/unicase/ignorable-tests: New file.
47632         * tests/unicase/test-ignorable.c: New file, generated by
47633         gen-uni-tables.
47634
47635         Tests for module 'unicase/cased'.
47636         * modules/unicase/cased-tests: New file.
47637         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47638         * tests/unicase/test-predicate-part1.h: New file, derived from
47639         tests/unictype/test-predicate-part1.h.
47640         * tests/unicase/test-predicate-part2.h: New file, same as
47641         tests/unictype/test-predicate-part2.h.
47642
47643         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47644         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47645         (output_casing_properties): New function.
47646         (main): Call it.
47647         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47648         * lib/unicase/cased.c: Include unictype/bitmap.h.
47649         (uc_is_cased): Define through a bitmap lookup.
47650         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47651         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47652         (uc_is_case_ignorable): Define through a bitmap lookup.
47653         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47654         lib/unictype/bitmap.h.
47655         (Depends-on): Add inline. Clean up.
47656         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47657         lib/unictype/bitmap.h.
47658         (Depends-on): Add inline. Clean up.
47659         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47660         recognition.
47661         * tests/unicase/test-u16-tolower.c (main): Likewise.
47662         * tests/unicase/test-u32-tolower.c (main): Likewise.
47663
47664 2009-06-30  Bruno Haible  <bruno@clisp.org>
47665
47666         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47667         * lib/unicase/u16-casemap.c: Likewise.
47668         * lib/unicase/u32-casemap.c: Likewise.
47669
47670 2009-06-29  Bruno Haible  <bruno@clisp.org>
47671
47672         Define u32_casefold as a wrapper around u32_ct_casefold.
47673         * lib/unicase/u32-casefold.c: Update.
47674         * modules/unicase/u32-casefold (Depends-on): Add
47675         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47676         unicase/empty-suffix-context. Clean up.
47677
47678         Define u16_casefold as a wrapper around u16_ct_casefold.
47679         * lib/unicase/u16-casefold.c: Update.
47680         * modules/unicase/u16-casefold (Depends-on): Add
47681         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47682         unicase/empty-suffix-context. Clean up.
47683
47684         Define u8_casefold as a wrapper around u8_ct_casefold.
47685         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47686         * lib/unicase/u8-casefold.c: Update.
47687         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47688         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47689
47690         Define u32_totitle as a wrapper around u32_ct_totitle.
47691         * lib/unicase/u32-totitle.c: Update.
47692         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47693         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47694
47695         Define u16_totitle as a wrapper around u16_ct_totitle.
47696         * lib/unicase/u16-totitle.c: Update.
47697         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47698         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47699
47700         Define u8_totitle as a wrapper around u8_ct_totitle.
47701         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47702         functions.
47703         (FUNC): Delegate to U_CT_TOTITLE.
47704         * lib/unicase/u8-totitle.c: Update.
47705         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47706         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47707
47708         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47709         invocation.
47710         * modules/unicase/u32-tolower (Depends-on): Add
47711         unicase/empty-prefix-context, unicase/empty-suffix-context.
47712
47713         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47714         invocation.
47715         * modules/unicase/u16-tolower (Depends-on): Add
47716         unicase/empty-prefix-context, unicase/empty-suffix-context.
47717
47718         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47719         * modules/unicase/u8-tolower (Depends-on): Add
47720         unicase/empty-prefix-context, unicase/empty-suffix-context.
47721
47722         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47723         invocation.
47724         * modules/unicase/u32-toupper (Depends-on): Add
47725         unicase/empty-prefix-context, unicase/empty-suffix-context.
47726
47727         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47728         invocation.
47729         * modules/unicase/u16-toupper (Depends-on): Add
47730         unicase/empty-prefix-context, unicase/empty-suffix-context.
47731
47732         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47733         * modules/unicase/u8-toupper (Depends-on): Add
47734         unicase/empty-prefix-context, unicase/empty-suffix-context.
47735
47736         New module 'unicase/u32-ct-casefold'.
47737         * lib/unicase/u32-ct-casefold.c: New file.
47738         * modules/unicase/u32-ct-casefold: New file.
47739
47740         New module 'unicase/u16-ct-casefold'.
47741         * lib/unicase/u16-ct-casefold.c: New file.
47742         * modules/unicase/u16-ct-casefold: New file.
47743
47744         New module 'unicase/u8-ct-casefold'.
47745         * lib/unicase/u8-ct-casefold.c: New file.
47746         * lib/unicase/u-ct-casefold.h: New file, derived from
47747         lib/unicase/u-casefold.h.
47748         * modules/unicase/u8-ct-casefold: New file.
47749
47750         New module 'unicase/u32-ct-totitle'.
47751         * lib/unicase/u32-ct-totitle.c: New file.
47752         * modules/unicase/u32-ct-totitle: New file.
47753
47754         New module 'unicase/u16-ct-totitle'.
47755         * lib/unicase/u16-ct-totitle.c: New file.
47756         * modules/unicase/u16-ct-totitle: New file.
47757
47758         New module 'unicase/u8-ct-totitle'.
47759         * lib/unicase/u8-ct-totitle.c: New file.
47760         * lib/unicase/u-ct-totitle.h: New file, derived from
47761         lib/unicase/u-totitle.h.
47762         * modules/unicase/u8-ct-totitle: New file.
47763
47764         New module 'unicase/u32-ct-tolower'.
47765         * lib/unicase/u32-ct-tolower.c: New file.
47766         * modules/unicase/u32-ct-tolower: New file.
47767
47768         New module 'unicase/u16-ct-tolower'.
47769         * lib/unicase/u16-ct-tolower.c: New file.
47770         * modules/unicase/u16-ct-tolower: New file.
47771
47772         New module 'unicase/u8-ct-tolower'.
47773         * lib/unicase/u8-ct-tolower.c: New file.
47774         * modules/unicase/u8-ct-tolower: New file.
47775
47776         New module 'unicase/u32-ct-toupper'.
47777         * lib/unicase/u32-ct-toupper.c: New file.
47778         * modules/unicase/u32-ct-toupper: New file.
47779
47780         New module 'unicase/u16-ct-toupper'.
47781         * lib/unicase/u16-ct-toupper.c: New file.
47782         * modules/unicase/u16-ct-toupper: New file.
47783
47784         New module 'unicase/u8-ct-toupper'.
47785         * lib/unicase/u8-ct-toupper.c: New file.
47786         * modules/unicase/u8-ct-toupper: New file.
47787
47788         Add context arguments to u*_casemap functions.
47789         * lib/unicase/unicasemap.h: Include unicase.h.
47790         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47791         suffix_context arguments.
47792         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47793         functions.
47794         (FUNC): Add prefix_context and suffix_context arguments. Use
47795         uc_is_cased and uc_is_case_ignorable.
47796         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47797         * lib/unicase/u16-casemap.c: Likewise.
47798         * lib/unicase/u32-casemap.c: Likewise.
47799         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47800         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47801         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47802         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47803         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47804         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47805
47806         New module 'unicase/u32-suffix-context'.
47807         * lib/unicase/u32-suffix-context.c: New file.
47808         * modules/unicase/u32-suffix-context: New file.
47809
47810         New module 'unicase/u16-suffix-context'.
47811         * lib/unicase/u16-suffix-context.c: New file.
47812         * modules/unicase/u16-suffix-context: New file.
47813
47814         New module 'unicase/u8-suffix-context'.
47815         * lib/unicase/u8-suffix-context.c: New file.
47816         * lib/unicase/u-suffix-context.h: New file.
47817         * modules/unicase/u8-suffix-context: New file.
47818
47819         New module 'unicase/empty-suffix-context'.
47820         * lib/unicase/empty-suffix-context.c: New file.
47821         * modules/unicase/empty-suffix-context: New file.
47822
47823         New module 'unicase/u32-prefix-context'.
47824         * lib/unicase/u32-prefix-context.c: New file.
47825         * modules/unicase/u32-prefix-context: New file.
47826
47827         New module 'unicase/u16-prefix-context'.
47828         * lib/unicase/u16-prefix-context.c: New file.
47829         * modules/unicase/u16-prefix-context: New file.
47830
47831         New module 'unicase/u8-prefix-context'.
47832         * lib/unicase/u8-prefix-context.c: New file.
47833         * lib/unicase/u-prefix-context.h: New file.
47834         * lib/unicase/context.h: New file.
47835         * modules/unicase/u8-prefix-context: New file.
47836
47837         New module 'unicase/empty-prefix-context'.
47838         * lib/unicase/empty-prefix-context.c: New file.
47839         * modules/unicase/empty-prefix-context: New file.
47840
47841         New module 'unicase/ignorable'.
47842         * lib/unicase/ignorable.c: New file.
47843         * modules/unicase/ignorable: New file.
47844
47845         New module 'unicase/cased'.
47846         * lib/unicase/caseprop.h: New file.
47847         * lib/unicase/cased.c: New file.
47848         * modules/unicase/cased: New file.
47849
47850         New functions for case mapping of substrings.
47851         * lib/unicase.h (casing_prefix_context_t): New type.
47852         (unicase_empty_prefix_context): New variable.
47853         (u8_casing_prefix_context, u16_casing_prefix_context,
47854         u32_casing_prefix_context, u8_casing_prefixes_context,
47855         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47856         declarations.
47857         (casing_suffix_context_t): New type.
47858         (unicase_empty_suffix_context): New variable.
47859         (u8_casing_suffix_context, u16_casing_suffix_context,
47860         u32_casing_suffix_context, u8_casing_suffixes_context,
47861         u16_casing_suffixes_context, u32_casing_suffixes_context,
47862         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47863         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47864         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47865         declarations.
47866
47867 2009-06-28  Jim Meyering  <meyering@redhat.com>
47868
47869         boostrap: indent only with spaces
47870         * build-aux/bootstrap: Indent only with spaces, never TABs.
47871
47872         bootstrap: split long lines
47873         * build-aux/bootstrap: Keep line length < 80.
47874
47875         bootstrap: sync from coreutils
47876         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47877         just as autoreconf does.  Verify a list of prerequisite
47878         package-name,version-number pairs if defined in bootstrap.conf.
47879         Refer to README-prereq, if prerequisites are not satisfied.
47880
47881 2009-06-27  Eric Blake  <ebb9@byu.net>
47882
47883         tests: add test for bogus NULL definition
47884         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47885         * tests/test-stdlib.c: Likewise.
47886         * tests/test-string.c: Likewise.
47887         * tests/test-locale.c: Likewise.
47888         * tests/test-unistd.c: Likewise.
47889         * modules/stdio-tests (Depends-on): Add verify.
47890         * modules/stdlib-tests (Depends-on): Likewise.
47891         * modules/string-tests (Depends-on): Likewise.
47892         * modules/locale-tests (Depends-on): Likewise.
47893         * modules/unistd-tests (Depends-on): Likewise.
47894
47895 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47896
47897         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47898         self-explaining comment.
47899         * m4/selinux-selinux-h: Update serial.
47900         (gl_LIBSELINUX): New macro, adding a warning for missing development
47901         packages to code extracted from...
47902         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47903         Add warning for missing development packages here, too.
47904
47905 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47906
47907         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47908
47909 2009-06-25  Eric Blake  <ebb9@byu.net>
47910
47911         version-etc: fix regression
47912         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47913         gcc.
47914         (version_etc): Use it, to catch bugs with trailing NULL.
47915         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47916         (version_etc_va): Fix logic bug.
47917         * modules/version-etc-tests: Add test.
47918         * tests/test-version-etc.c: New file.
47919         * tests/test-version-etc.sh: Likewise.
47920
47921 2009-06-25  Sam Steingold  <sds@gnu.org>
47922
47923         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47924         mbtowc declaration.
47925
47926 2009-06-25  Eric Blake  <ebb9@byu.net>
47927
47928         fpurge: migrate into <stdio.h>
47929         * lib/fpurge.h: Delete...
47930         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47931         * lib/fpurge.c (fpurge): Change declaring header.
47932         * modules/fpurge (Files): Drop deleted file.
47933         (Depends-on): Add stdio.
47934         (configure.ac): Set witness.
47935         * modules/stdio (Makefile.am): Support fpurge macros.
47936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47937         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47938         * lib/fflush.c: Update client.
47939         * tests/test-fpurge.c: Likewise.
47940         * NEWS: Mention the change.
47941
47942 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47943
47944         * lib/argp-version-etc.c (program_authors): Add const
47945         qualifier.
47946         * lib/version-etc.c: Fix typos in the comments.
47947         * modules/argp-version-etc: Depends on version-etc.
47948
47949 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47950
47951         argp-version-etc: new module.
47952
47953         * lib/argp-version-etc.c: New file.
47954         * lib/argp-version-etc.h: New file.
47955         * modules/argp-version-etc: New file.
47956         * modules/argp-version-etc-tests: New file.
47957         * tests/test-argp-version-etc.c: New test.
47958         * tests/test-argp-version-etc-1.sh: New test.
47959
47960 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47961
47962         Provide additional interfaces and documentation for version-etc
47963         module.
47964
47965         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47966         interfaces.
47967         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47968         prototypes.
47969
47970 2009-06-24  Bruno Haible  <bruno@clisp.org>
47971
47972         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47973         HAVE_LIB${NAME} macro.
47974         Reported by Sam Steingold <sds@gnu.org>.
47975
47976 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47977
47978         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47979         needed.
47980
47981 2009-06-21  Bruno Haible  <bruno@clisp.org>
47982
47983         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47984         work.
47985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47986         together with LIB${NAME}, LTLIB${NAME}.
47987         Reported by Sam Steingold <sds@gnu.org>.
47988
47989 2009-06-20  Jim Meyering  <meyering@redhat.com>
47990
47991         tests: make sc_require_test_exit_idiom more generic
47992         * top/maint.mk (Exit_witness_file): New overridable variable.
47993         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47994         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47995
47996 2009-06-19  Jim Meyering  <meyering@redhat.com>
47997
47998         hash: reverse order of src/dst parameters in an internal interface
47999         * lib/hash.c (transfer_entries): Reverse order of parameters to
48000         put DST before SRC.  Adjust callers.
48001
48002         tests: test-hash: avoid wholesale duplication
48003         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48004         Instead, use a loop and add a single conditional.
48005
48006         tests: test-hash: allow seed selection via a command line argument
48007         * tests/test-hash.c (get_seed): New function.
48008         (main): Use it.
48009
48010 2009-06-19  Eric Blake  <ebb9@byu.net>
48011
48012         hash: avoid memory leak on allocation failure
48013         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48014         failure.  Factor repeated algorithm...
48015         (transfer_entries): ...into new helper routine.
48016         (hash_delete): React to hash_rehash return value.
48017
48018         hash: reduce memory pressure in hash_rehash no-op case
48019         * lib/hash.c (next_prime): Avoid overflow.
48020         (hash_initialize): Factor bucket size computation...
48021         (compute_bucket_size): ...into new helper function.
48022         (hash_rehash): Use new function and open coding to reduce memory
48023         pressure, and avoid a memory leak in USE_OBSTACK code.
48024         Reported by Jim Meyering.
48025
48026 2009-06-18  Eric Blake  <ebb9@byu.net>
48027
48028         hash: make rotation more obvious
48029         * modules/hash (Depends-on): Add bitrotate and stdint.
48030         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48031         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48032         (SIZE_MAX): Rely on headers for definition.
48033         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48034         (raw_hasher): Use rotr_sz.
48035         Suggested by Jim Meyering.
48036
48037         hash: fix memory leak in last patch
48038         * lib/hash.c (hash_rehash): Avoid memory leak.
48039
48040         hash: avoid no-op rehashing
48041         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48042
48043         hash: provide default callback functions
48044         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48045         (hash_initialize): Use them as defaults.
48046         * tests/test-hash.c (main): Test this.
48047
48048         hash: minor optimization
48049         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48050         when possible.
48051         (hash_initialize): Document this promise.
48052         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48053         * tests/test-hash.c (hash_compare_strings): Test this.
48054
48055 2009-06-18  Bruno Haible  <bruno@clisp.org>
48056
48057         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48058         going to be replaced anyway.
48059
48060 2009-06-18  Bruno Haible  <bruno@clisp.org>
48061
48062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48063         in one place.
48064         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48065         be replaced anyway.
48066
48067 2009-06-18  Eric Blake  <ebb9@byu.net>
48068
48069         hash: check for resize before insertion
48070         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48071         threshold before insertion, so that a pathological hash_rehash
48072         that fills every bucket can still trigger another rehash.
48073
48074 2009-06-18  Jim Meyering  <meyering@redhat.com>
48075
48076         hash-tests: add a loop around the small tests
48077         * tests/test-hash.c (main): Repeat small tests with selected
48078         small initial table sizes.
48079
48080 2009-06-17  Eric Blake  <ebb9@byu.net>
48081
48082         hash: minor cleanups
48083         * lib/hash.h (hash_entry): Make opaque, by moving...
48084         * lib/hash.c (hash_entry): ...here.
48085         (hash_insert): Clarify restrictions on what can be inserted.
48086         (hash_get_next): Clarify when it is safe to remove an element
48087         during traversal.
48088         (check_tuning): Skip verification when tuning is known safe.
48089         (hash_initialize): Clarify restrictions on tuning.
48090
48091 2009-06-17  Jim Meyering  <jim@meyering.net>
48092         and Eric Blake  <ebb9@byu.net>
48093
48094         hash-tests: new module
48095         * modules/hash-tests: New file.
48096         * tests/test-hash.c: New file.
48097
48098 2009-06-17  Eric Blake  <ebb9@byu.net>
48099
48100         strstr-simple: document new module
48101         * MODULES.html.sh: Document new module.
48102
48103         strstr, strcasestr: replace on platforms with broken memchr
48104         * modules/strstr: Split into...
48105         * modules/strstr-simple: ...new module that does not care about
48106         performance, but does care about glibc bug.
48107         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48108         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48109         if platform memchr is broken, per Debian bug 521737.
48110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48111         memchr.
48112         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48113         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48114         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48115         * modules/mountlist (Depends-on): Add strstr-simple.
48116         * modules/gen-uni-tables (Depends-on): Likewise.
48117         * modules/argz (Depends-on): Add strstr.
48118
48119 2009-06-17  Bruno Haible  <bruno@clisp.org>
48120
48121         * modules/posix_spawn-internal (Depends-on): Add errno.
48122
48123 2009-06-17  Bruno Haible  <bruno@clisp.org>
48124
48125         Define missing ESTALE on Interix 3.5.
48126         * lib/errno.in.h (ESTALE): Assign a value if missing.
48127         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48129         missing.
48130         * doc/posix-headers/errno.texi: Mention the Interix bug.
48131         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48132
48133 2009-06-15  Eric Blake  <ebb9@byu.net>
48134
48135         memchr, memchr2: add valgrind exception
48136         * lib/memchr.valgrind: New file.
48137         * lib/memchr2.valgrind: New file.
48138         * modules/memchr (Files): Distribute valgrind file.
48139         * modules/memchr2 (Files): Likewise.
48140
48141         docs: memchr is no longer obsolete
48142         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48143         * lib/string.in.h (memchr): Simplify logic.
48144
48145 2009-06-14  Jim Meyering  <meyering@redhat.com>
48146
48147         link-follow: fix the "checking..." message to not mention trailing slash
48148         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48149         never considered trailing slashes.
48150
48151 2009-06-14  Bruno Haible  <bruno@clisp.org>
48152
48153         * m4/memchr.m4: Mention also the bug on IA-64.
48154         * doc/posix-functions/memchr.texi: Likewise.
48155
48156 2009-06-12  Eric Blake  <ebb9@byu.net>
48157
48158         memchr: detect broken x86_64 and alpha implementations
48159         * modules/memchr-tests (Depends-on): Move mmap detection...
48160         * modules/memchr (Depends-on): ...here.
48161         (configure.ac): Set indicator.
48162         * lib/string.in.h (memchr): Declare replacement.
48163         * modules/string (Makefile.am): Trigger replacement.
48164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48165         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48166         bugs.
48167         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48168         * modules/getpagesize (License): Relax license.
48169
48170 2009-06-11  Bruno Haible  <bruno@clisp.org>
48171
48172         * lib/idpriv.h: Add more references.
48173
48174 2009-06-08  Bruno Haible  <bruno@clisp.org>
48175
48176         Tests for module 'idpriv-droptemp'.
48177         * modules/idpriv-droptemp-tests: New file.
48178         * tests/test-idpriv-droptemp.sh: New file.
48179         * tests/test-idpriv-droptemp.su.sh: New file.
48180         * tests/test-idpriv-droptemp.c: New file.
48181
48182         New module 'idpriv-droptemp'.
48183         * lib/idpriv-droptemp.c: New file.
48184         * modules/idpriv-droptemp: New file.
48185
48186 2009-06-08  Bruno Haible  <bruno@clisp.org>
48187
48188         Tests for module 'idpriv-drop'.
48189         * modules/idpriv-drop-tests: New file.
48190         * tests/test-idpriv-drop.sh: New file.
48191         * tests/test-idpriv-drop.su.sh: New file.
48192         * tests/test-idpriv-drop.c: New file.
48193
48194         New module 'idpriv-drop'.
48195         * lib/idpriv.h: New file.
48196         * lib-idpriv-drop.c: New file.
48197         * m4/idpriv.m4: New file.
48198         * modules/idpriv-drop: New file.
48199
48200 2009-06-08  Bruno Haible  <bruno@clisp.org>
48201
48202         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48204         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48205         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48206         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48207         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48209
48210 2009-06-08  Eric Blake  <ebb9@byu.net>
48211
48212         test-strstr: use memory fence, when possible
48213         * tests/test-strstr.c (main): Use memory fence, in order to be
48214         more likely to trigger Debian bug 521737.
48215         * modules/strstr-tests (Files): Pull in additional files.
48216
48217         memchr: no longer obsolete, for wider field testing
48218         * modules/memchr (Status, Notice): Delete, this module is no
48219         longer obsolete.
48220         * modules/vasnprintf (Depends-on): Add memchr.
48221
48222 2009-06-07  Jim Meyering  <meyering@redhat.com>
48223
48224         hash: declare some functions with the warn_unused_result attribute
48225         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48226
48227 2009-06-07  Bruno Haible  <bruno@clisp.org>
48228
48229         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48230         Reported by Eric Blake.
48231
48232 2009-06-06  Eric Blake  <ebb9@byu.net>
48233
48234         test-alignof: fix typo with long double
48235         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48236         compiler error.
48237
48238 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48239
48240         Escape non-texinfo { and }s.
48241         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48242         markup error.
48243
48244 2009-06-04  Jim Meyering  <meyering@redhat.com>
48245
48246         gitlog-to-changelog: don't infloop on an empty commit log
48247         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48248         Reported by Boris Petersen <transacid@centerim.org>.
48249
48250 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48251
48252         version-etc: extend for packagers
48253         Add three new configure options, intended for packagers:
48254           --with-packager="packager name"
48255           --with-packager-version="packager-specific version"
48256           --with-packager-bug-reports="packager bug reporting"
48257         An example with coreutils:
48258           $ ./configure \
48259             --with-packager=Gentoo \
48260             --with-packager-bug-report=http://bugs.gentoo.org/ \
48261             --with-packager-version="patchset 1.6"
48262           $ ./src/ls --version | head -n2
48263           ls (GNU coreutils) 7.1-dirty
48264           Packaged by Gentoo (patchset 1.6)
48265         Note that the bug reporting info via --help doesn't show up because
48266         coreutils uses its own custom emit_bug_reporting_address() implementation
48267         in src/system.h.  If it didn't, it'd look like:
48268           $ ./src/ls --help | tail -n4
48269           Report bugs to <bug-coreutils@gnu.org>.
48270           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48271           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48272           General help using GNU software: <http://www.gnu.org/gethelp/>.
48273         * lib/version-etc.c: Print new information, if provided.
48274         * m4/version-etc.m4: New file.
48275         * modules/version-etc (Files): Add m4/version-etc.m4.
48276         (configure.ac): Add gl_VERSION_ETC.
48277
48278 2009-05-31  Bruno Haible  <bruno@clisp.org>
48279
48280         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48281         and 'int64_t'.
48282         * modules/alignof-tests (Dependencies): Add stdint.
48283         Reported by Eric Blake.
48284
48285 2009-05-31  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48288         restriction due to compiler bugs.
48289         Reported by Eric Blake.
48290
48291 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48292             Bruno Haible  <bruno@clisp.org>
48293
48294         Fix test-alignof failure.
48295         * lib/alignof.h (alignof_slot): New macro.
48296         (alignof_type): New macro, with the same semantics as the previous
48297         'alignof'.
48298         (alignof): Alias to alignof_slot.
48299         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48300         check that the results are usable as constant expressions.
48301
48302 2009-05-31  Bruno Haible  <bruno@clisp.org>
48303
48304         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48305         * tests/test-memchr.c (main): Check that memchr does not read past the
48306         first occurrence of the byte.
48307         * tests/test-strstr.c (main): Update comment.
48308         Suggested by Eric Blake.
48309
48310 2009-05-30  Bruno Haible  <bruno@clisp.org>
48311
48312         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48313         detail how to use dumpbin.
48314         Reported by David Byron <dbyron@dbyron.com>.
48315
48316 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48317
48318         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48319
48320 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48321
48322         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48323
48324 2009-05-28  Bruno Haible  <bruno@clisp.org>
48325
48326         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48327         build-aux/ files.
48328
48329 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48330
48331         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48332
48333 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48334
48335         * gnulib-tool (sed_transform_main_lib_file)
48336         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48337         regexps.
48338
48339 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48340
48341         * tests/test-strstr.c: Add another self-test.
48342         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48343         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48344
48345 2009-05-23  Bruno Haible  <bruno@clisp.org>
48346
48347         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48348         change.
48349
48350 2009-05-21  Bruno Haible  <bruno@clisp.org>
48351
48352         Simplify use of mode_t varargs.
48353         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48354         uses 'mode_t' or 'int'.
48355         * lib/openat.c (openat): Likewise.
48356         * lib/open-safer.c (open_safer): Likewise.
48357         * m4/mode_t.m4: New file.
48358         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48359         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48360         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48361         * modules/open (Files): Add m4/mode_t.m4.
48362         * modules/openat (Files): Likewise.
48363         * modules/fcntl-safer (Files): Likewise.
48364         Suggested by Eric Blake.
48365
48366 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48367
48368         * doc/glibc-functions/fallocate.texi: New file.
48369         * doc/gnulib.texi: Include it.
48370
48371 2009-05-21  Eric Blake  <ebb9@byu.net>
48372             Bruno Haible  <bruno@clisp.org>
48373
48374         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48375         invocations.
48376         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48377
48378 2009-05-21  Eric Blake  <ebb9@byu.net>
48379             Bruno Haible  <bruno@clisp.org>
48380
48381         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48382         include_next. Fix of 2008-11-20 commit.
48383         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48384         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48385         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48386         NEXT_MATH_H.
48387         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48388         instead of NEXT_MATH_H.
48389
48390 2009-05-21  Bruno Haible  <bruno@clisp.org>
48391
48392         Avoid redefinition warnings for SIZE_MAX.
48393         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48394         Reported by Simon Josefsson.
48395
48396 2009-05-21  Bruno Haible  <bruno@clisp.org>
48397
48398         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48399         AC_CACHE_VAL.
48400
48401 2009-05-20  Bruno Haible  <bruno@clisp.org>
48402
48403         Make zeroptr.h work on mingw.
48404         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48405         mprotect.
48406         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48407         * modules/memchr2-tests (configure.ac): Likewise.
48408         * modules/memcmp-tests (configure.ac): Likewise.
48409         * modules/memmem-tests (configure.ac): Likewise.
48410         * modules/memrchr-tests (configure.ac): Likewise.
48411         Reported by Simon Josefsson.
48412
48413 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48414
48415         * tests/test-glob.c: Include string.h for strcmp prototype.
48416
48417 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48418
48419         * modules/getdelim (Depends-on): Add explicit stdint, although it
48420         was implicitly already pulled in via realloc-posix.
48421         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48422
48423 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48424
48425         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48426         G. Christensen" <tgc@jupiterrise.com>.
48427         * m4/sys_socket_h.m4: Check for sa_family_t.
48428         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48429         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48430         * tests/test-sys_socket.c: Check that sa_family_t works.
48431
48432 2009-05-18  Eric Blake  <ebb9@byu.net>
48433
48434         maint.mk: allow gnulib_dir in VPATH build
48435         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48436
48437 2009-05-15  Jim Meyering  <meyering@redhat.com>
48438
48439         maint.mk: Give gnulib_dir a default definition.
48440         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48441         Thus, most packages no longer need to specify this variable in cfg.mk
48442
48443 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48444
48445         rename.m4: fix typos that would make non-mingw cross-configure fail
48446         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48447
48448 2009-05-13  Eric Blake  <ebb9@byu.net>
48449
48450         mmap-anon: avoid out-of-order autoconf expansion
48451         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48452         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48453         * modules/memchr-tests (Depends-on): Add extensions.
48454         * modules/memchr2-tests (Depends-on): Add extensions.
48455         * modules/memcmp-tests (Depends-on): Add extensions.
48456         * modules/memmem-tests (Depends-on): Add extensions.
48457         * modules/memrchr-tests (Depends-on): Add extensions.
48458
48459 2009-05-13  Bruno Haible  <bruno@clisp.org>
48460
48461         Make some tests ISO C 99 compliant.
48462         * tests/zerosize-ptr.h: New file.
48463         * tests/test-memchr.c: Include zerosize-ptr.h.
48464         (main): Use a zero-size object pointer instead of NULL.
48465         * tests/test-memchr2.c: Include zerosize-ptr.h.
48466         (main): Use a zero-size object pointer instead of NULL.
48467         * tests/test-memcmp.c: Include zerosize-ptr.h.
48468         (main): Use a zero-size object pointer instead of NULL.
48469         * tests/test-memmem.c: Include zerosize-ptr.h.
48470         (main): Use a zero-size object pointer instead of NULL.
48471         * tests/test-memrchr.c: Include zerosize-ptr.h.
48472         (main): Use a zero-size object pointer instead of NULL.
48473         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48474         m4/mmap-anon.m4.
48475         (Depends-on): Add getpagesize.
48476         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48477         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48478         m4/mmap-anon.m4.
48479         (Depends-on): Add getpagesize.
48480         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48481         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48482         m4/mmap-anon.m4.
48483         (Depends-on): Add getpagesize.
48484         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48485         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48486         m4/mmap-anon.m4.
48487         (Depends-on): Add getpagesize.
48488         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48489         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48490         m4/mmap-anon.m4.
48491         (Depends-on): Add getpagesize.
48492         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48493
48494 2009-05-12  Bruno Haible  <bruno@clisp.org>
48495
48496         Tests for module 'alignof'.
48497         * modules/alignof-tests: New file.
48498         * tests/test-alignof.c: New file.
48499
48500 2009-05-12  Bruno Haible  <bruno@clisp.org>
48501
48502         Fix alignof macro.
48503         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48504         vendor compilers that are always correct.
48505
48506 2009-05-12  Bruno Haible  <bruno@clisp.org>
48507
48508         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48509         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48510         not whether its fully works.
48511
48512 2009-05-12  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48515
48516 2009-05-12  Jim Meyering  <meyering@redhat.com>
48517
48518         * top/maint.mk: Adjust backslash alignment.
48519
48520 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48521
48522         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48523
48524 2009-05-11  Eric Blake  <ebb9@byu.net>
48525
48526         argp: avoid undefined behavior
48527         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48528         macros.
48529
48530 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48531
48532         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48533         user.name to prevent git commit from complaining.
48534
48535 2009-05-10  Bruno Haible  <bruno@clisp.org>
48536
48537         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48538         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48539         it rewrites every file name only once.
48540         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48541
48542 2009-05-08  Bruno Haible  <bruno@clisp.org>
48543
48544         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48545         instead of 'max'.
48546
48547 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48548
48549         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48550         sockaddr_storage test.
48551
48552 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48553
48554         * modules/sys_socket (Makefile.am): Substitute
48555         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48556         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48557         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48558         * tests/test-sys_socket.c: Check sockaddr_storage.
48559
48560 2009-05-08  Bruno Haible  <bruno@clisp.org>
48561
48562         New module 'alignof'.
48563         * lib/alignof.h: New file.
48564         * modules/alignof: New file.
48565
48566 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48567             Bruno Haible  <bruno@clisp.org>
48568
48569         Fix test-file-has-acl on FreeBSD.
48570         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48571         mask is implicitly added.
48572         * tests/test-file-has-acl.c: Include <signal.h>.
48573         (main): Terminate the test after 5 seconds.
48574         * modules/acl-tests (configure.ac): Check for alarm function.
48575
48576 2009-05-04  Bruno Haible  <bruno@clisp.org>
48577
48578         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48580         * modules/errno (configure.ac): Drop AC_REQUIRE.
48581         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48582         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48583
48584 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48585
48586         * modules/glob-tests: New module.
48587         * tests/test-glob.c: Add.
48588
48589 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48590
48591         * modules/fnmatch-tests: New module.
48592         * tests/test-fnmatch.c: Add.
48593
48594 2009-05-04  Eric Blake  <ebb9@byu.net>
48595
48596         maint: make the new no-submodule-changes rule VPATH-safe
48597         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48598
48599 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48600             Bruno Haible  <bruno@clisp.org>
48601
48602         acl: Fix infinite loop on FreeBSD.
48603         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48604         of return value from acl_get_entry.
48605         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48606         Likewise.
48607
48608 2009-05-03  Bruno Haible  <bruno@clisp.org>
48609
48610         * lib/acl-internal.h (acl_entries): Clarify return value.
48611         * lib/acl_entries.c (acl_entries): Likewise.
48612
48613 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48614
48615         Bug fix in acl module.
48616         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48617
48618 2009-05-03  Bruno Haible  <bruno@clisp.org>
48619
48620         Create gperf-generated file in the source dir, not in the build dir.
48621         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48622         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48623         * modules/unicase/locale-language (unicase/locale-languages.h):
48624         Likewise.
48625         * modules/unicase/special-casing (unicase/special-casing-table.h):
48626         Likewise.
48627         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48628         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48629         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48630         Reported by Ralf Wildenhues.
48631
48632 2009-05-03  Bruno Haible  <bruno@clisp.org>
48633
48634         * modules/fnmatch (Description, configure.ac): Taken from
48635         fnmatch-posix.
48636         * modules/fnmatch-posix: Turn into a symbolic reference to the
48637         'fnmatch' module, and deprecate.
48638         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48639
48640 2009-05-03  Bruno Haible  <bruno@clisp.org>
48641
48642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48643         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48644         Reported by Ralf Wildenhues.
48645
48646 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48647
48648         * m4/fnmatch.m4: Fix fnmatch re-define.
48649
48650 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48651
48652         priv-set: new module and tests; adapt write-any-file
48653         * lib/priv-set.c: New file.
48654         * lib/priv-set.h: New file.
48655         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48656         * lib/write-any-file.c: Simplify by using priv-set module.
48657         * m4/priv-set.m4: New file.
48658         * modules/priv-set: New file.
48659         * modules/unlinkdir: Add dependency on priv-set module.
48660         * modules/write-any-file: Likewise.
48661
48662         Tests for module 'priv-set'.
48663         * modules/priv-set-tests: New file.
48664         * tests/test-priv-set.c: New file.
48665
48666 2009-05-03  Jim Meyering  <meyering@redhat.com>
48667             Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48670         use the converted UTF-8 variant of the name instead.
48671
48672 2009-05-03  Jim Meyering  <meyering@redhat.com>
48673
48674         tests: tighten some getdate tests
48675         * tests/test-getdate.c (main): Tighten tests: require equality,
48676         not just greater than.  Set TZ envvar to UTC0.
48677
48678 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48679
48680         getdate: correctly interpret "next monday" when run on a Monday
48681         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48682         that e.g., "next tues" (when run on a tuesday) results in a date
48683         that is one week in the future, and not today's date.
48684         I.e., add a week when the wday is the same as the current one.
48685         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48686         and earlier by Martin Bernreuther and Jan Minář.
48687         * tests/test-getdate.c (main): Check that "next DAY" is always in
48688         the future and that "last DAY" is always in the past.
48689
48690 2009-05-02  Jim Meyering  <meyering@redhat.com>
48691
48692         build: ensure that a release build fails when a submodule is unclean
48693         * top/maint.mk (no-submodule-changes): New rule.
48694         (alpha beta major): Depend on it.
48695
48696 2009-05-02  Bruno Haible  <bruno@clisp.org>
48697
48698         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48699         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48700         shell variable gl_fnmatch_required to detect which variant is
48701         requested.
48702         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48703         gl_FUNC_FNMATCH_POSIX.
48704         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48705         exclude fnmatch-posix.
48706
48707 2009-05-02  Bruno Haible  <bruno@clisp.org>
48708
48709         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48710         * modules/mbsrtowcs (License): Change to LGPLv2+.
48711         * modules/strnlen1 (License): Likewise.
48712         Reported by Simon Josefsson.
48713
48714 2009-05-02  Bruno Haible  <bruno@clisp.org>
48715
48716         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48717         "cross".
48718         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48719         gnulib-tool was called with option --source-base=lib.
48720
48721 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48722
48723         Use automake *-local hooks without commands, for extensibility.
48724         * modules/localcharset (Makefile.am): Rename install-exec-local
48725         rule to install-exec-localcharset, and make it a prerequisite of
48726         install-exec-local.  Likewise, rename the uninstall-local rule to
48727         uninstall-localcharset, and make it a prerequisite of the former.
48728
48729 2009-05-01  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48732         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48733         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48735         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48736         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48737         m4/locale-zh.m4, m4/codeset.m4.
48738
48739         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48740         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48741         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48742         m4/locale-zh.m4.
48743
48744         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48745         REPLACE_WCRTOMB if mbstate_t must be replaced.
48746         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48747         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48748
48749 2009-05-01  Bruno Haible  <bruno@clisp.org>
48750
48751         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48752         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48753         dngettext, dcngettext, textdomain, bindtextdomain,
48754         bind_textdomain_codeset): Undefine before redefining.
48755
48756 2009-04-30  Bruno Haible  <bruno@clisp.org>
48757
48758         Fix bug introduced on 2009-04-25.
48759         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48760         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48761         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48762         is defined.
48763         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48764         is defined.
48765         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48766         is defined.
48767         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48768
48769 2009-04-28  Bruno Haible  <bruno@clisp.org>
48770
48771         Comment tweaks.
48772         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48773         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48774         * lib/unicase.h (u*_casexfrm): Likewise.
48775         Reported by Paolo Bonzini.
48776
48777 2009-04-28  Bruno Haible  <bruno@clisp.org>
48778
48779         Fix a compilation error.
48780         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48781         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48782         Reported by Jim Meyering.
48783
48784 2009-04-27  Bruno Haible  <bruno@clisp.org>
48785
48786         New module 'libunistring'.
48787         * modules/libunistring: New file.
48788         * m4/libunistring.m4: New file.
48789         * MODULES.html.sh (Unicode string functions): Add it.
48790
48791 2009-04-27  Eric Blake  <ebb9@byu.net>
48792
48793         maint.mk: allow package-specific header to provide <config.h>
48794         * top/maint.mk (sc_require_config_h): New variable.
48795         (sc_require_config_h, sc_require_config_h_first): Use it.
48796
48797 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48798
48799         * top/maint.mk (sc_avoid_if_before_free): Except
48800         useless-if-before-free script.
48801
48802 2009-04-27  Eric Blake  <ebb9@byu.net>
48803
48804         maintainer-makefile: depend on all required helper scripts
48805         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48806         useless-if-before-free.
48807         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48808         version, rather than assuming gnulib checkout is available.
48809         Reported by Simen Josefsson.
48810
48811 2009-04-26  Bruno Haible  <bruno@clisp.org>
48812
48813         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48814         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48815         "../" or "..".
48816
48817 2009-04-26  Bruno Haible  <bruno@clisp.org>
48818
48819         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48820         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48821         AC_LIB_HAVE_LINKFLAGS.
48822
48823 2009-04-26  Bruno Haible  <bruno@clisp.org>
48824
48825         Simplify calling convention of u*_conv_from_encoding.
48826         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48827         u32_conv_from_encoding): Expect a resultbuf argument and return the
48828         result directly as a pointer.
48829         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48830         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48831         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48832         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48833         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48834         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48835         Update.
48836         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48837         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48838         * lib/vasnprintf.c (VASNPRINTF): Update.
48839         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48840         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48841         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48842         * NEWS: Mention the change.
48843
48844 2009-04-26  Bruno Haible  <bruno@clisp.org>
48845
48846         Simplify calling convention of u*_conv_to_encoding.
48847         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48848         u32_conv_to_encoding): Expect a resultbuf argument and return the
48849         result directly as a pointer.
48850         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48851         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48852         freeing scaled_offsets if mem_iconveha failed.
48853         * lib/unicase/u-casexfrm.h (FUNC): Update.
48854         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48855         * lib/vasnprintf.c (VASNPRINTF): Update.
48856         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48857         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48858         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48859         * NEWS: Mention the change.
48860
48861 2009-04-26  Bruno Haible  <bruno@clisp.org>
48862
48863         Avoid test failures on AIX and OSF/1.
48864         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48865         malloc(0).
48866         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48867         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48868         Likewise.
48869         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48870         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48871         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48872         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48873         * doc/posix-functions/malloc.texi: Document the portability problem
48874         related to malloc(0).
48875
48876 2009-04-26  Bruno Haible  <bruno@clisp.org>
48877
48878         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48879         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48880         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48881
48882 2009-04-25  Bruno Haible  <bruno@clisp.org>
48883
48884         Avoid link error when creating a namespace clean library.
48885         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48886         as macro with arguments if already defined as an alias.
48887         * lib/signbitf.c (gl_signbitf): Don't undefine.
48888         * lib/signbitd.c (gl_signbitd): Don't undefine.
48889         * lib/signbitl.c (gl_signbitl): Don't undefine.
48890
48891 2009-04-25  Jim Meyering  <meyering@redhat.com>
48892
48893         vc-list-files: fix another quoting bug
48894         * build-aux/vc-list-files: Avoid sed backslash expansion
48895         of pathological directory names.
48896
48897 2009-04-25  Eric Blake  <ebb9@byu.net>
48898
48899         vc-list-files: fix shell quoting error
48900         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48901         timestamp.
48902
48903 2009-04-25  Jim Meyering  <meyering@redhat.com>
48904
48905         vc-list-files: restore lost functionality with subdir argument
48906         * build-aux/vc-list-files: When given a non-"." sub-directory
48907         argument, substitute the $dir/ prefix back onto each resulting name.
48908         Otherwise, coreutils' root_tests check would fail.
48909
48910 2009-04-24  Eric Blake  <ebb9@byu.net>
48911
48912         vc-list-files: ignore git symlinks
48913         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48914         than ls-files, to ignore git symlinks.
48915
48916         maint.mk: import improvements from m4
48917         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48918         (move_if_change): Delete unused macro.
48919         (news-date-check, vc-diff-check): Support VPATH builds.
48920         (announcement): Likewise.  Split --bootstrap-tools list...
48921         (boostrap-tools): ...into separate list, which can be overridden
48922         in cfg.mk.
48923         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48924         requiring dependency on useless-if-before-free module.
48925         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48926         Support VPATH builds.
48927
48928 2009-04-24  Jim Meyering  <meyering@redhat.com>
48929
48930         maint.mk: remove coreutils-specific rules and variables
48931         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48932         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48933         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48934
48935         maint.mk: remove obsolete rule
48936         * top/maint.mk (rel-check): Remove rule.
48937         (WGET, WGETFLAGS): Remove now-unused variables.
48938
48939 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48940
48941         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48942         consistency.
48943
48944         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48945         '$(PATH_SEPARATOR)' instead of ':'.
48946
48947 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48948
48949         * lib/getopt1.c (main): Use 'const' for static array.
48950
48951 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48952
48953         * top/maint.mk: Sync with coreutils.
48954         * NEWS: Explain incompatibilities.
48955
48956 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48957             Bruno Haible  <bruno@clisp.org>
48958
48959         Fix cross-compilation results.
48960         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48961         statement, as third argument of AC_TRY_RUN.
48962         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48963         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48964         Likewise.
48965         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48966         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48967         Likewise.
48968         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48970         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48971
48972 2009-04-20  Bruno Haible  <bruno@clisp.org>
48973
48974         Avoid test failure on mingw.
48975         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48976
48977 2009-04-20  Bruno Haible  <bruno@clisp.org>
48978
48979         Avoid compilation error on mingw.
48980         * modules/localename-tests (Depends-on): Add locale.
48981
48982 2009-04-19  Bruno Haible  <bruno@clisp.org>
48983
48984         Support for building a shared library on Windows platforms.
48985         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48986         (main): Test the presence of UNINORM_NFC here.
48987         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48988         (main): Test the presence of UNINORM_NFD here.
48989         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48990         (main): Test the presence of UNINORM_NFKC here.
48991         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48992         (main): Test the presence of UNINORM_NFKD here.
48993
48994 2009-04-19  Bruno Haible  <bruno@clisp.org>
48995
48996         Avoid a compiler warning.
48997         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48998         Change type of variable 'sequence'.
48999
49000 2009-04-19  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/configmake (Makefile.am): When the contents of configmake.h
49003         does not change, arrange to preserve its modification time.
49004
49005 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49006
49007         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49008         gettext domain.
49009
49010 2009-04-16  Jim Meyering  <meyering@redhat.com>
49011
49012         useless-if-before-free: improve conversion code
49013         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49014         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49015
49016 2009-04-14  Bruno Haible  <bruno@clisp.org>
49017
49018         * modules/fcntl (Depends-on): Add extensions.
49019         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49020
49021 2009-04-12  Ben Pfaff  <blp@gnu.org>
49022
49023         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49024         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49025
49026 2009-03-20  Ben Pfaff  <blp@gnu.org>
49027
49028         Make rename replace existing destinations on Windows.
49029         * m4/rename.m4: Add test for Mingw.
49030         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49031         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49032         * doc/posix-functions/rename.texi: Document.
49033
49034 2009-04-10  Bruno Haible  <bruno@clisp.org>
49035
49036         New include file "iconveh.h".
49037         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49038         * lib/striconveh.h: Include it.
49039         (enum iconv_ilseq_handler): Remove definition.
49040         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49041         striconveh.h.
49042         * lib/striconveha.c: Include striconveh.h.
49043         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49044         * modules/striconveh (Files): Add lib/iconveh.h.
49045         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49046         lib/striconveh.h.
49047
49048 2009-04-10  Bruno Haible  <bruno@clisp.org>
49049
49050         * lib/uniconv.h: Update comment.
49051
49052 2009-04-10  Bruno Haible  <bruno@clisp.org>
49053
49054         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49055         always.
49056         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49057         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49058         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49059         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49060         "unistring-notinline.h", so that the function gets defined always.
49061         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49062         * lib/unistr/u8-uctomb.c: Likewise.
49063         * lib/unistr/u16-mbtouc.c: Likewise.
49064         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49065         * lib/unistr/u16-uctomb.c: Likewise.
49066         * lib/unistr/u32-mbtouc.c: Likewise.
49067         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49068         * lib/unistr/u32-uctomb.c: Likewise.
49069
49070 2009-04-10  Bruno Haible  <bruno@clisp.org>
49071
49072         Mark 'utime' obsolete.
49073         * modules/utime (Status, Notice): New sections.
49074         Suggested by Jim Meyering.
49075
49076         Fix cross-compile guess for utime test.
49077         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49078         autoconf.
49079         * doc/posix-functions/utime.texi: Give more precisions.
49080         Reported by Jan <ipif@ymail.com>.
49081
49082 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49083
49084         filevercmp: correct today's change
49085         * lib/filevercmp.c: Also handle coreutils' test inputs.
49086         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49087
49088         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49089         for reporting it.
49090         * lib/filevercmp.c: Special handle for "", "." and "..".
49091         * tests/test-filevercmp.c: Enlarge the set suite.
49092
49093 2009-04-07  Jim Meyering  <meyering@redhat.com>
49094
49095         useless-if-before-free: show how to remove braced useless free, too
49096         * build-aux/useless-if-before-free: still only in a comment, though.
49097
49098 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49099
49100         maint.mk: import changes to syntax-check macros from coreutils
49101         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49102         Use them in the relevant macros.
49103
49104 2009-04-06  Bruno Haible  <bruno@clisp.org>
49105
49106         Fix unportable use of bit-fields.
49107         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49108         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49109         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49110
49111 2009-04-06  Bruno Haible  <bruno@clisp.org>
49112
49113         Avoid test failures on AIX and OSF/1.
49114         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49115         that malloc(0) = NULL.
49116         * tests/unicase/test-u8-tolower.c (check): Likewise.
49117         * tests/unicase/test-u8-totitle.c (check): Likewise.
49118         * tests/unicase/test-u8-toupper.c (check): Likewise.
49119         * tests/unicase/test-u16-casefold.c (check): Likewise.
49120         * tests/unicase/test-u16-tolower.c (check): Likewise.
49121         * tests/unicase/test-u16-totitle.c (check): Likewise.
49122         * tests/unicase/test-u16-toupper.c (check): Likewise.
49123         * tests/unicase/test-u32-casefold.c (check): Likewise.
49124         * tests/unicase/test-u32-tolower.c (check): Likewise.
49125         * tests/unicase/test-u32-totitle.c (check): Likewise.
49126         * tests/unicase/test-u32-toupper.c (check): Likewise.
49127         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49128         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49129         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49130         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49131         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49132         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49133         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49134         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49135         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49136         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49137         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49138         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49139
49140 2009-04-05  Bruno Haible  <bruno@clisp.org>
49141
49142         Work around an autoconf limitation.
49143         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49144         comment line if it would be longer than 3 KB.
49145
49146 2009-04-05  Bruno Haible  <bruno@clisp.org>
49147
49148         Avoid test failure with libiconv-1.13.
49149         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49150         of the expected test results.
49151
49152 2009-04-05  Bruno Haible  <bruno@clisp.org>
49153
49154         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49155         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49156         that it should be installed.
49157
49158 2009-04-05  Bruno Haible  <bruno@clisp.org>
49159
49160         * gnulib-tool: New option --copy-file.
49161         (func_usage): Document it.
49162         (func_dest_tmpfilename): Moved out of func_import.
49163         (func_add_file, func_update_file): New functions, extracted from
49164         func_import.
49165         (func_import): Update.
49166
49167 2009-04-05  Karl Berry  <karl@gnu.org>
49168
49169         * README: prominently mention gnulib-tool.
49170         Rearrange sections so getting the code is near the top.
49171
49172 2009-04-05  Bruno Haible  <bruno@clisp.org>
49173
49174         * lib/unicase.h: Mention u*_cmp2.
49175         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49176         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49177         * lib/unicase/ulc-casecmp.c: Likewise.
49178         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49179         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49180         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49181         unistr/u8-cmp.
49182         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49183         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49184         unistr/u16-cmp.
49185         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49186         unistr/u32-cmp.
49187
49188         * lib/uninorm.h: Mention u*_cmp2.
49189         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49190         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49191         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49192         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49193         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49194         unistr/u8-cmp.
49195         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49196         unistr/u16-cmp.
49197         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49198         unistr/u32-cmp.
49199
49200         New module 'unistr/u32-cmp2'.
49201         * lib/unistr/u32-cmp2.c: New file.
49202         * modules/unistr/u32-cmp2: New file.
49203
49204         New module 'unistr/u16-cmp2'.
49205         * lib/unistr/u16-cmp2.c: New file.
49206         * modules/unistr/u16-cmp2: New file.
49207
49208         New module 'unistr/u8-cmp2'.
49209         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49210         * lib/unistr/u8-cmp2.c: New file.
49211         * lib/unistr/u-cmp2.h: New file.
49212         * modules/unistr/u8-cmp2: New file.
49213
49214 2009-04-05  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/unictype.h (uc_property_is_valid): New macro.
49217         * tests/unictype/test-pr_byname.c (main): Use it.
49218
49219         * lib/unistr.h: Doc fixes.
49220         * lib/uniconv.h: Doc fixes.
49221         * lib/unictype.h: Doc fixes.
49222
49223 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49224
49225         Port coreutils 7.2 to Solaris 8.
49226
49227         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49228         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49229         for Solaris 8.  This is a bit of a hack, as it means it's the
49230         caller's responsibility to add -lnsl if needed, but most likely it
49231         won't be needed since only getaddrinfo uses this and getaddrinfo
49232         isn't needed on Solaris 8.
49233
49234         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49235         problem to Solaris 8 encountered with coreutils 7.2, which
49236         resulted in a message "fnmatch.c:292: warning: passing argument 4
49237         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49238         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49239
49240 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49241
49242         * m4/ld-version-script.m4: Add FIXME comment.
49243
49244 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49245
49246         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49247         SOVERSION variable.
49248
49249 2009-04-02  Bruno Haible  <bruno@clisp.org>
49250
49251         * Makefile (info, html, dvi, pdf): Combine the rules.
49252         Suggested by Jim Meyering.
49253
49254 2009-04-01  Bruno Haible  <bruno@clisp.org>
49255
49256         * Makefile (info, html, dvi, pdf): New targets.
49257         Reported by Reuben Thomas <rrt@sc3d.org>.
49258
49259 2009-04-01  Bruno Haible  <bruno@clisp.org>
49260
49261         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49262         can be put into PATH.
49263         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49264
49265 2009-04-01  Bruno Haible  <bruno@clisp.org>
49266
49267         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49268
49269 2009-04-01  Bruno Haible  <bruno@clisp.org>
49270
49271         Rename module 'visibility'.
49272         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49273         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49274         * doc/gnulib.texi: Update.
49275         * MODULES.html.sh (Misc): Update.
49276         * NEWS: Mention the change.
49277
49278 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49279
49280         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49281         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49282         Eric Blake <ebb9@byu.net> for review.
49283         * MODULES.html.sh: Add lib-msvc-compat.
49284         * doc/gnulib.texi: Link to new section.
49285         * m4/ld-output-def.m4: New file.
49286         * doc/ld-output-def.texi: New file.
49287
49288 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49289
49290         Rename ld-version-script to lib-symbol-versions.  Suggested by
49291         Bruno Haible <bruno@clisp.org>.
49292         * modules/ld-version-script: Renamed to lib-symbol-versions.
49293         * doc/ld-version-script.texi: Fix module name.
49294         * MODULES.html.sh: Add lib-symbol-versions.
49295
49296 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49297
49298         * modules/u64-tests: New file.
49299         * tests/test-u64.c: New file.
49300
49301 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49302
49303         * MODULES.html.sh: Mention u64.
49304         * modules/u64: New module.
49305         * modules/crypto/sha512: Depend on u64 module instead of providing
49306         u64.h.
49307
49308 2009-03-27  Eric Blake  <ebb9@byu.net>
49309
49310         test-strerror: make debugging EAI_SYSTEM easier
49311         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49312         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49313         failure was EAI_SYSTEM.
49314
49315 2009-03-25  Bruno Haible  <bruno@clisp.org>
49316
49317         Fix a problem with --enable-relocatable on Solaris 7.
49318         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49319         since 2008-02-24.
49320
49321 2009-03-25  Eric Blake  <ebb9@byu.net>
49322
49323         test-sockets: avoid gcc warning
49324         * tests/test-sockets.c (main): Silence compiler warning.
49325
49326 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         New modules nproc, pthread, contributed by Glen Lenker.
49329
49330         * MODULES.html.sh: Add pthread, nproc.
49331         * lib/nproc.c: New file.
49332         * lib/nproc.h: New file.
49333         * lib/pthread.in.h: New file.
49334         * m4/pthread.m4: New file.
49335         * modules/nproc: New file.
49336         * modules/pthread: New file.
49337
49338 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49339
49340         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49341         New variable.
49342
49343 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49344
49345         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49346         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49347         * tests/test-filevercmp.c: Add tests for backup suffixes.
49348
49349 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49350
49351         * modules/stdlib (Depends-on): Add stdint, needed when defining
49352         struct random_data on, for example, HP-UX 10.20.  Reported by
49353         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49354
49355 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49356
49357         * lib/readline.c (readline): Call fflush on stdout after printing
49358         prompt.
49359
49360 2009-03-20  Bruno Haible  <bruno@clisp.org>
49361
49362         Remove dependency from 'close' module to -lws2_32 on native Windows.
49363         * lib/close-hook.h: New file.
49364         * lib/close-hook.c: New file.
49365         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49366         w32sock.h.
49367         (_gl_close_fd_maybe_socket): Remove function.
49368         (rpl_close): Invoke execute_all_close_hooks instead of
49369         _gl_close_fd_maybe_socket.
49370         * lib/sockets.c: Include close-hook.h, w32sock.h.
49371         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49372         (close_sockets_hook): New variable.
49373         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49374         (gl_sockets_cleanup): Unregister it.
49375         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49376         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49377         * modules/close-hook: New file.
49378         * modules/close (Files): Remove lib/w32sock.h.
49379         (Depends-on): Add close-hook.
49380         (Link): Remove section.
49381         * modules/sockets (Files): Add lib/w32sock.h.
49382         (Depends-on): Add close-hook.
49383         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49384         invocation.
49385         * NEWS: Mention that LIB_CLOSE is gone.
49386
49387 2009-03-23  Eric Blake  <ebb9@byu.net>
49388
49389         signal-tests: test previous patch
49390         * tests/test-signal.c: New file.
49391         * modules/signal-tests: Likewise.
49392
49393         signal.h: always support 'volatile sig_atomic_t'
49394         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49395         (gl_SIGNAL_H_DEFAULTS): Add a default.
49396         * modules/signal (Makefile.am): Substitute if needed.
49397         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49398         users can blindly add volatile.
49399         * doc/posix-headers/signal.texi (signal.h): Document it.
49400         Reported by Matthew Woehlke.
49401
49402 2009-03-23  Jim Meyering  <meyering@redhat.com>
49403
49404         pathmax: PATH_MAX: use pathconf only when available
49405         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49406         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49407         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49408         This avoids a link failure in a PSP cross-compilation environment
49409         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49410
49411         * lib/vasnprintf.c (divide): Fix typo in comment.
49412
49413 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49414
49415         * gnulib-tool (func_filter_filelist): Fix comment.
49416
49417 2009-03-20  Bruno Haible  <bruno@clisp.org>
49418
49419         Make sockets.h self-contained.
49420         * lib/sockets.c: Include sockets.h first.
49421         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49422
49423 2009-03-19  Eric Blake  <ebb9@byu.net>
49424
49425         doc: mention more functions added in cygwin 1.7.0
49426         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49427         addition.
49428         * doc/posix-functions/log2f.texi: Likewise.
49429
49430 2009-03-19  Jim Meyering  <meyering@redhat.com>
49431
49432         fsusage: avoid syntax error due to statement-before-declaration
49433         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49434         after all declarations.  Reported by Matthew Woehlke in
49435         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49436
49437 2009-03-18  Eric Blake  <ebb9@byu.net>
49438
49439         build-aux/compile: sync from automake
49440         * build-aux/compile: New file, from automake.
49441         * config/srclist.txt: Mention build-aux/compile.
49442
49443 2009-03-17  Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/git-merge-changelog.c: Fix typo in comment.
49446         Reported by Reuben Thomas <rrt@sc3d.org>.
49447
49448 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49449
49450         * m4/regex.m4: update and improve help for
49451         --without-included-regex.
49452
49453 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49454
49455         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49456         failure on missing include files.
49457
49458 2009-03-17  Eric Blake  <ebb9@byu.net>
49459
49460         doc: mention more functions added in cygwin 1.7.0
49461         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49462         addition.
49463         * doc/posix-functions/fwscanf.texi: Likewise.
49464         * doc/posix-functions/swprintf.texi: Likewise.
49465         * doc/posix-functions/swscanf.texi: Likewise.
49466         * doc/posix-functions/vfwprintf.texi: Likewise.
49467         * doc/posix-functions/vfwscanf.texi: Likewise.
49468         * doc/posix-functions/vswprintf.texi: Likewise.
49469         * doc/posix-functions/vswscanf.texi: Likewise.
49470         * doc/posix-functions/vwprintf.texi: Likewise.
49471         * doc/posix-functions/vwscanf.texi: Likewise.
49472         * doc/posix-functions/wcscasecmp.texi: Likewise.
49473         * doc/posix-functions/wcsdup.texi: Likewise.
49474         * doc/posix-functions/wcsftime.texi: Likewise.
49475         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49476         * doc/posix-functions/wprintf.texi: Likewise.
49477         * doc/posix-functions/wscanf.texi: Likewise.
49478         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49479
49480 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49481
49482         maint.mk: really add $(AM_MAKEFLAGS)
49483         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49484         was inadvertently omitted in the last commit.
49485         Spotted by Bruno Haible.
49486
49487         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49488         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49489         $(AM_MAKEFLAGS)' rather than plain `make'.
49490
49491         gnulib-tool: execute $MAKE not make
49492         * gnulib-tool: Default $MAKE to 'make'.
49493         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49494         than make.  Initialize $MAKE in the do-autobuild script.
49495
49496         gnulib-tool: use $MAKE not make in generated files
49497         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49498         make, in generated files.  Initialize $MAKE in the do-autobuild
49499         script.
49500
49501         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49502
49503         GNUmakefile: disable parallelism only for multiple, recursive targets
49504         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49505         additions in the Makefile.
49506         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49507         by Automake.
49508         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49509         are listed on the command line and at least one of them is
49510         listed in $(ALL_RECURSIVE_TARGETS).
49511
49512 2009-03-14  Bruno Haible  <bruno@clisp.org>
49513
49514         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49515         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49516         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49517         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49518         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49519         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49520         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49521         unistr/u8-uctomb.
49522         * modules/unistr/u8-strchr (Depends-on): Likewise.
49523         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49524         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49525         unistr/u16-uctomb.
49526         * modules/unistr/u16-strchr (Depends-on): Likewise.
49527         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49528
49529 2009-03-12  Bruno Haible  <bruno@clisp.org>
49530
49531         Work around select() bug on Interix 3.5.
49532         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49533         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49534         * m4/select.m4: New file.
49535         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49536         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49537         * modules/select (Files): Add m4/select.m4.
49538         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49539         * modules/nanosleep (Depends-on): Add select.
49540         * modules/poll (Depends-on): Likewise.
49541         * doc/posix-functions/select.texi: Mention the Interix bug.
49542         Reported by Markus Duft <mduft@gentoo.org>.
49543
49544         * lib/select.c: Renamed from lib/winsock-select.c.
49545         * modules/select (Files): Add lib/select.c, remove
49546         lib/winsock-select.c.
49547         (configure.ac): Update.
49548
49549 2009-03-12  Jim Meyering  <meyering@redhat.com>
49550
49551         avoid gcc warnings about unused macro definitions
49552         * lib/readtokens.c (STREQ): Remove unused definition.
49553         * lib/xmalloc.c (SIZE_MAX): Likewise.
49554         * lib/openat-die.c (N_): Likewise.
49555         * lib/mountlist.c (SIZE_MAX): Remove definition.
49556         Instead, include <stdint.h>.
49557         * lib/readutmp.c: Likewise.
49558         * modules/readutmp (Depends-on): Add stdint.
49559         * modules/mountlist (Depends-on): Add stdint.
49560         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49561
49562 2009-03-10  Bruno Haible  <bruno@clisp.org>
49563
49564         Tests for module 'mbmemcasecoll'.
49565         * modules/mbmemcasecoll-tests: New file.
49566         * tests/test-mbmemcasecoll1.sh: New file.
49567         * tests/test-mbmemcasecoll2.sh: New file.
49568         * tests/test-mbmemcasecoll3.sh: New file.
49569         * tests/test-mbmemcasecoll.c: New file.
49570
49571         New module 'mbmemcasecoll'.
49572         * lib/mbmemcasecoll.h: New file.
49573         * lib/mbmemcasecoll.c: New file.
49574         * modules/mbmemcasecoll: New file.
49575
49576         * tests/test-mbmemcasecmp.h: New file, extracted from
49577         tests/test-mbmemcasecmp.c.
49578         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49579         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49580         (main): Update.
49581         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49582
49583 2009-03-09  Bruno Haible  <bruno@clisp.org>
49584
49585         Tests for module 'mbmemcasecmp'.
49586         * modules/mbmemcasecmp-tests: New file.
49587         * tests/test-mbmemcasecmp1.sh: New file.
49588         * tests/test-mbmemcasecmp2.sh: New file.
49589         * tests/test-mbmemcasecmp3.sh: New file.
49590         * tests/test-mbmemcasecmp.c: New file.
49591
49592         New module 'mbmemcasecmp'.
49593         * lib/mbmemcasecmp.h: New file.
49594         * lib/mbmemcasecmp.c: New file.
49595         * modules/mbmemcasecmp: New file.
49596
49597 2009-03-09  Bruno Haible  <bruno@clisp.org>
49598
49599         Tests for module 'unicase/ulc-casecoll'.
49600         * modules/unicase/ulc-casecoll-tests: New file.
49601         * tests/unicase/test-ulc-casecoll1.sh: New file.
49602         * tests/unicase/test-ulc-casecoll2.sh: New file.
49603         * tests/unicase/test-ulc-casecoll.c: New file.
49604
49605         New module 'unicase/ulc-casecoll'.
49606         * lib/unicase.h (ulc_casecoll): New declaration.
49607         * lib/unicase/ulc-casecoll.c: New file.
49608         * modules/unicase/ulc-casecoll: New file.
49609
49610         New module 'unicase/ulc-casexfrm'.
49611         * lib/unicase.h (ulc_casexfrm): New declaration.
49612         * lib/unicase/ulc-casexfrm.c: New file.
49613         * modules/unicase/ulc-casexfrm: New file.
49614
49615 2009-03-09  Bruno Haible  <bruno@clisp.org>
49616
49617         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49618         invocations.
49619
49620         * m4/mbscasecmp.m4: Remove file.
49621         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49622         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49623
49624         * m4/mbscasestr.m4: Remove file.
49625         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49626         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49627
49628         * m4/mbschr.m4: Remove file.
49629         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49630         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49631
49632         * m4/mbscspn.m4: Remove file.
49633         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49634         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49635
49636         * m4/mbslen.m4: Remove file.
49637         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49638         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49639
49640         * m4/mbsncasecmp.m4: Remove file.
49641         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49642         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49643
49644         * m4/mbsnlen.m4: Remove file.
49645         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49646         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49647
49648         * m4/mbspbrk.m4: Remove file.
49649         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49650         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49651
49652         * m4/mbspcasecmp.m4: Remove file.
49653         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49654         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49655
49656         * m4/mbsrchr.m4: Remove file.
49657         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49658         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49659
49660         * m4/mbssep.m4: Remove file.
49661         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49662         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49663
49664         * m4/mbsspn.m4: Remove file.
49665         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49666         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49667
49668         * m4/mbsstr.m4: Remove file.
49669         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49670         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49671
49672         * m4/mbstok_r.m4: Remove file.
49673         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49674         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49675
49676         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49677
49678         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49679         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49680
49681         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49682
49683 2009-03-08  Bruno Haible  <bruno@clisp.org>
49684
49685         Tests for module 'unicase/ulc-casecmp'.
49686         * modules/unicase/ulc-casecmp-tests: New file.
49687         * tests/unicase/test-ulc-casecmp1.sh: New file.
49688         * tests/unicase/test-ulc-casecmp2.sh: New file.
49689         * tests/unicase/test-ulc-casecmp.c: New file.
49690
49691         New module 'unicase/ulc-casecmp'.
49692         * lib/unicase.h (ulc_casecmp): New declaration.
49693         * lib/unicase/ulc-casecmp.c: New file.
49694         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49695         'const SRC_UNIT *'.
49696         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49697         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49698         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49699         * modules/unicase/ulc-casecmp: New file.
49700
49701         Tests for module 'unicase/u32-is-cased'.
49702         * modules/unicase/u32-is-cased-tests: New file.
49703         * tests/unicase/test-u32-is-cased.c: New file.
49704
49705         Tests for module 'unicase/u16-is-cased'.
49706         * modules/unicase/u16-is-cased-tests: New file.
49707         * tests/unicase/test-u16-is-cased.c: New file.
49708
49709         Tests for module 'unicase/u8-is-cased'.
49710         * modules/unicase/u8-is-cased-tests: New file.
49711         * tests/unicase/test-u8-is-cased.c: New file.
49712         * tests/unicase/test-is-cased.h: New file.
49713
49714         New module 'unicase/u32-is-cased'.
49715         * lib/unicase/u32-is-cased.c: New file.
49716         * modules/unicase/u32-is-cased: New file.
49717
49718         New module 'unicase/u16-is-cased'.
49719         * lib/unicase/u16-is-cased.c: New file.
49720         * modules/unicase/u16-is-cased: New file.
49721
49722         New module 'unicase/u8-is-cased'.
49723         * lib/unicase/u8-is-cased.c: New file.
49724         * lib/unicase/u-is-cased.h: New file.
49725         * modules/unicase/u8-is-cased: New file.
49726
49727         Tests for module 'unicase/u32-is-casefolded'.
49728         * modules/unicase/u32-is-casefolded-tests: New file.
49729         * tests/unicase/test-u32-is-casefolded.c: New file.
49730
49731         Tests for module 'unicase/u16-is-casefolded'.
49732         * modules/unicase/u16-is-casefolded-tests: New file.
49733         * tests/unicase/test-u16-is-casefolded.c: New file.
49734
49735         Tests for module 'unicase/u8-is-casefolded'.
49736         * modules/unicase/u8-is-casefolded-tests: New file.
49737         * tests/unicase/test-u8-is-casefolded.c: New file.
49738         * tests/unicase/test-is-casefolded.h: New file.
49739
49740         New module 'unicase/u32-is-casefolded'.
49741         * lib/unicase/u32-is-casefolded.c: New file.
49742         * modules/unicase/u32-is-casefolded: New file.
49743
49744         New module 'unicase/u16-is-casefolded'.
49745         * lib/unicase/u16-is-casefolded.c: New file.
49746         * modules/unicase/u16-is-casefolded: New file.
49747
49748         New module 'unicase/u8-is-casefolded'.
49749         * lib/unicase/u8-is-casefolded.c: New file.
49750         * modules/unicase/u8-is-casefolded: New file.
49751
49752         Tests for module 'unicase/u32-is-titlecase'.
49753         * modules/unicase/u32-is-titlecase-tests: New file.
49754         * tests/unicase/test-u32-is-titlecase.c: New file.
49755
49756         Tests for module 'unicase/u16-is-titlecase'.
49757         * modules/unicase/u16-is-titlecase-tests: New file.
49758         * tests/unicase/test-u16-is-titlecase.c: New file.
49759
49760         Tests for module 'unicase/u8-is-titlecase'.
49761         * modules/unicase/u8-is-titlecase-tests: New file.
49762         * tests/unicase/test-u8-is-titlecase.c: New file.
49763         * tests/unicase/test-is-titlecase.h: New file.
49764
49765         New module 'unicase/u32-is-titlecase'.
49766         * lib/unicase/u32-is-titlecase.c: New file.
49767         * modules/unicase/u32-is-titlecase: New file.
49768
49769         New module 'unicase/u16-is-titlecase'.
49770         * lib/unicase/u16-is-titlecase.c: New file.
49771         * modules/unicase/u16-is-titlecase: New file.
49772
49773         New module 'unicase/u8-is-titlecase'.
49774         * lib/unicase/u8-is-titlecase.c: New file.
49775         * modules/unicase/u8-is-titlecase: New file.
49776
49777         Tests for module 'unicase/u32-is-lowercase'.
49778         * modules/unicase/u32-is-lowercase-tests: New file.
49779         * tests/unicase/test-u32-is-lowercase.c: New file.
49780
49781         Tests for module 'unicase/u16-is-lowercase'.
49782         * modules/unicase/u16-is-lowercase-tests: New file.
49783         * tests/unicase/test-u16-is-lowercase.c: New file.
49784
49785         Tests for module 'unicase/u8-is-lowercase'.
49786         * modules/unicase/u8-is-lowercase-tests: New file.
49787         * tests/unicase/test-u8-is-lowercase.c: New file.
49788         * tests/unicase/test-is-lowercase.h: New file.
49789
49790         New module 'unicase/u32-is-lowercase'.
49791         * lib/unicase/u32-is-lowercase.c: New file.
49792         * modules/unicase/u32-is-lowercase: New file.
49793
49794         New module 'unicase/u16-is-lowercase'.
49795         * lib/unicase/u16-is-lowercase.c: New file.
49796         * modules/unicase/u16-is-lowercase: New file.
49797
49798         New module 'unicase/u8-is-lowercase'.
49799         * lib/unicase/u8-is-lowercase.c: New file.
49800         * modules/unicase/u8-is-lowercase: New file.
49801
49802         Tests for module 'unicase/u32-is-uppercase'.
49803         * modules/unicase/u32-is-uppercase-tests: New file.
49804         * tests/unicase/test-u32-is-uppercase.c: New file.
49805
49806         Tests for module 'unicase/u16-is-uppercase'.
49807         * modules/unicase/u16-is-uppercase-tests: New file.
49808         * tests/unicase/test-u16-is-uppercase.c: New file.
49809
49810         Tests for module 'unicase/u8-is-uppercase'.
49811         * modules/unicase/u8-is-uppercase-tests: New file.
49812         * tests/unicase/test-u8-is-uppercase.c: New file.
49813         * tests/unicase/test-is-uppercase.h: New file.
49814
49815         New module 'unicase/u32-is-uppercase'.
49816         * lib/unicase/u32-is-uppercase.c: New file.
49817         * modules/unicase/u32-is-uppercase: New file.
49818
49819         New module 'unicase/u16-is-uppercase'.
49820         * lib/unicase/u16-is-uppercase.c: New file.
49821         * modules/unicase/u16-is-uppercase: New file.
49822
49823         New module 'unicase/u8-is-uppercase'.
49824         * lib/unicase/u8-is-uppercase.c: New file.
49825         * modules/unicase/u8-is-uppercase: New file.
49826
49827         New module 'unicase/u32-is-invariant'.
49828         * lib/unicase/u32-is-invariant.c: New file.
49829         * modules/unicase/u32-is-invariant: New file.
49830
49831         New module 'unicase/u16-is-invariant'.
49832         * lib/unicase/u16-is-invariant.c: New file.
49833         * modules/unicase/u16-is-invariant: New file.
49834
49835         New module 'unicase/u8-is-invariant'.
49836         * lib/unicase/u8-is-invariant.c: New file.
49837         * lib/unicase/invariant.h: New file.
49838         * lib/unicase/u-is-invariant.h: New file.
49839         * modules/unicase/u8-is-invariant: New file.
49840
49841         Tests for module 'unicase/u32-casecoll'.
49842         * modules/unicase/u32-casecoll-tests: New file.
49843         * tests/unicase/test-u32-casecoll.c: New file.
49844
49845         Tests for module 'unicase/u16-casecoll'.
49846         * modules/unicase/u16-casecoll-tests: New file.
49847         * tests/unicase/test-u16-casecoll.c: New file.
49848
49849         Tests for module 'unicase/u8-casecoll'.
49850         * modules/unicase/u8-casecoll-tests: New file.
49851         * tests/unicase/test-u8-casecoll.c: New file.
49852
49853         New module 'unicase/u32-casecoll'.
49854         * lib/unicase/u32-casecoll.c: New file.
49855         * modules/unicase/u32-casecoll: New file.
49856
49857         New module 'unicase/u16-casecoll'.
49858         * lib/unicase/u16-casecoll.c: New file.
49859         * modules/unicase/u16-casecoll: New file.
49860
49861         New module 'unicase/u8-casecoll'.
49862         * lib/unicase/u8-casecoll.c: New file.
49863         * lib/unicase/u-casecoll.h: New file.
49864         * modules/unicase/u8-casecoll: New file.
49865
49866         New module 'unicase/u32-casexfrm'.
49867         * lib/unicase/u32-casexfrm.c: New file.
49868         * modules/unicase/u32-casexfrm: New file.
49869
49870         New module 'unicase/u16-casexfrm'.
49871         * lib/unicase/u16-casexfrm.c: New file.
49872         * modules/unicase/u16-casexfrm: New file.
49873
49874         New module 'unicase/u8-casexfrm'.
49875         * lib/unicase/u8-casexfrm.c: New file.
49876         * lib/unicase/u-casexfrm.h: New file.
49877         * modules/unicase/u8-casexfrm: New file.
49878
49879         Tests for module 'unicase/u32-casecmp'.
49880         * modules/unicase/u32-casecmp-tests: New file.
49881         * tests/unicase/test-u32-casecmp.c: New file.
49882
49883         Tests for module 'unicase/u16-casecmp'.
49884         * modules/unicase/u16-casecmp-tests: New file.
49885         * tests/unicase/test-u16-casecmp.c: New file.
49886
49887         Tests for module 'unicase/u8-casecmp'.
49888         * modules/unicase/u8-casecmp-tests: New file.
49889         * tests/unicase/test-u8-casecmp.c: New file.
49890         * tests/unicase/test-casecmp.h: New file.
49891
49892         New module 'unicase/u32-casecmp'.
49893         * lib/unicase/u32-casecmp.c: New file.
49894         * modules/unicase/u32-casecmp: New file.
49895
49896         New module 'unicase/u16-casecmp'.
49897         * lib/unicase/u16-casecmp.c: New file.
49898         * modules/unicase/u16-casecmp: New file.
49899
49900         New module 'unicase/u8-casecmp'.
49901         * lib/unicase/u8-casecmp.c: New file.
49902         * lib/unicase/u-casecmp.h: New file.
49903         * modules/unicase/u8-casecmp: New file.
49904
49905         Tests for module 'unicase/u32-casefold'.
49906         * modules/unicase/u32-casefold-tests: New file.
49907         * tests/unicase/test-u32-casefold.c: New file.
49908
49909         Tests for module 'unicase/u16-casefold'.
49910         * modules/unicase/u16-casefold-tests: New file.
49911         * tests/unicase/test-u16-casefold.c: New file.
49912
49913         Tests for module 'unicase/u8-casefold'.
49914         * modules/unicase/u8-casefold-tests: New file.
49915         * tests/unicase/test-u8-casefold.c: New file.
49916
49917         New module 'unicase/u32-casefold'.
49918         * lib/unicase/u32-casefold.c: New file.
49919         * modules/unicase/u32-casefold: New file.
49920
49921         New module 'unicase/u16-casefold'.
49922         * lib/unicase/u16-casefold.c: New file.
49923         * modules/unicase/u16-casefold: New file.
49924
49925         New module 'unicase/u8-casefold'.
49926         * lib/unicase/u8-casefold.c: New file.
49927         * lib/unicase/u-casefold.h: New file.
49928         * modules/unicase/u8-casefold: New file.
49929
49930         New module 'unicase/tocasefold'.
49931         * lib/unicase/casefold.h: New file.
49932         * lib/unicase/tocasefold.c: New file.
49933         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49934         * modules/unicase/tocasefold: New file.
49935
49936         Tests for module 'unicase/u32-totitle'.
49937         * modules/unicase/u32-totitle-tests: New file.
49938         * tests/unicase/test-u32-totitle.c: New file.
49939
49940         Tests for module 'unicase/u16-totitle'.
49941         * modules/unicase/u16-totitle-tests: New file.
49942         * tests/unicase/test-u16-totitle.c: New file.
49943
49944         Tests for module 'unicase/u8-totitle'.
49945         * modules/unicase/u8-totitle-tests: New file.
49946         * tests/unicase/test-u8-totitle.c: New file.
49947
49948         New module 'unicase/u32-totitle'.
49949         * lib/unicase/u32-totitle.c: New file.
49950         * modules/unicase/u32-totitle: New file.
49951
49952         New module 'unicase/u16-totitle'.
49953         * lib/unicase/u16-totitle.c: New file.
49954         * modules/unicase/u16-totitle: New file.
49955
49956         New module 'unicase/u8-totitle'.
49957         * lib/unicase/u8-totitle.c: New file.
49958         * lib/unicase/u-totitle.h: New file.
49959         * modules/unicase/u8-totitle: New file.
49960
49961         Tests for module 'unicase/u32-tolower'.
49962         * modules/unicase/u32-tolower-tests: New file.
49963         * tests/unicase/test-u32-tolower.c: New file.
49964
49965         Tests for module 'unicase/u16-tolower'.
49966         * modules/unicase/u16-tolower-tests: New file.
49967         * tests/unicase/test-u16-tolower.c: New file.
49968
49969         Tests for module 'unicase/u8-tolower'.
49970         * modules/unicase/u8-tolower-tests: New file.
49971         * tests/unicase/test-u8-tolower.c: New file.
49972
49973         New module 'unicase/u32-tolower'.
49974         * lib/unicase/u32-tolower.c: New file.
49975         * modules/unicase/u32-tolower: New file.
49976
49977         New module 'unicase/u16-tolower'.
49978         * lib/unicase/u16-tolower.c: New file.
49979         * modules/unicase/u16-tolower: New file.
49980
49981         New module 'unicase/u8-tolower'.
49982         * lib/unicase/u8-tolower.c: New file.
49983         * modules/unicase/u8-tolower: New file.
49984
49985         Tests for module 'unicase/u32-toupper'.
49986         * modules/unicase/u32-toupper-tests: New file.
49987         * tests/unicase/test-u32-toupper.c: New file.
49988
49989         Tests for module 'unicase/u16-toupper'.
49990         * modules/unicase/u16-toupper-tests: New file.
49991         * tests/unicase/test-u16-toupper.c: New file.
49992
49993         Tests for module 'unicase/u8-toupper'.
49994         * modules/unicase/u8-toupper-tests: New file.
49995         * tests/unicase/test-u8-toupper.c: New file.
49996
49997         New module 'unicase/u32-toupper'.
49998         * lib/unicase/u32-toupper.c: New file.
49999         * modules/unicase/u32-toupper: New file.
50000
50001         New module 'unicase/u16-toupper'.
50002         * lib/unicase/u16-toupper.c: New file.
50003         * modules/unicase/u16-toupper: New file.
50004
50005         New module 'unicase/u8-toupper'.
50006         * lib/unicase/u8-toupper.c: New file.
50007         * modules/unicase/u8-toupper: New file.
50008
50009         New module 'unicase/u32-casemap'.
50010         * lib/unicase/u32-casemap.c: New file.
50011         * modules/unicase/u32-casemap: New file.
50012
50013         New module 'unicase/u16-casemap'.
50014         * lib/unicase/u16-casemap.c: New file.
50015         * modules/unicase/u16-casemap: New file.
50016
50017         New module 'unicase/u8-casemap'.
50018         * lib/unicase/unicasemap.h: New file.
50019         * lib/unicase/u8-casemap.c: New file.
50020         * lib/unicase/u-casemap.h: New file.
50021         * modules/unicase/u8-casemap: New file.
50022
50023         New module 'unicase/special-casing'.
50024         * lib/unicase/special-casing.h: New file.
50025         * lib/unicase/special-casing.c: New file.
50026         * lib/unicase/special-casing-table.gperf: New file, generated by
50027         gen-uni-tables.c.
50028         * modules/unicase/special-casing: New file.
50029
50030         Tests for module 'unicase/locale-language'.
50031         * modules/unicase/locale-language-tests: New file.
50032         * tests/unicase/test-locale-language.sh: New file.
50033         * tests/unicase/test-locale-language.c: New file.
50034
50035         New module 'unicase/locale-language'.
50036         * lib/unicase/locale-language.c: New file.
50037         * lib/unicase/locale-languages.gperf: New file.
50038         * modules/unicase/locale-language: New file.
50039
50040         Generate more tables for case conversion and case folding.
50041         * lib/gen-uni-tables.c (SCC_*): New enum items.
50042         (struct special_casing_rule): New type.
50043         (casing_rules, num_casing_rules, allocated_casing_rules): New
50044         variables.
50045         (add_casing_rule, fill_casing_rules): New functions.
50046         (struct casefold_rule): New type.
50047         (casefolding_rules, num_casefolding_rules,
50048         allocated_casefolding_rules): New variables.
50049         (fill_casefolding_rules): New function.
50050         (unicode_casefold): New variable.
50051         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50052         sort_casing_rules, output_casing_rules): New functions.
50053         (main): Accept to more arguments: SpecialCasing.txt and
50054         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50055         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50056         Output mapping for casefolding.
50057
50058         * lib/unicase.h: Include stdbool.h, uninorm.h.
50059         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50060         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50061         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50062         arguments.
50063         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50064         resultp arguments.
50065         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50066         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50067         resultp arguments.
50068         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50069         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50070         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50071         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50072         declarations.
50073         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50074
50075 2009-03-08  Bruno Haible  <bruno@clisp.org>
50076
50077         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50078         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50079         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50080         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50081
50082 2009-03-07  Bruno Haible  <bruno@clisp.org>
50083
50084         Adjust u*_normcmp, u*_normcoll API.
50085         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50086         u16_normcoll, u32_normcoll): Change failure conventions.
50087         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50088         errno and return -1.
50089         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50090
50091 2009-03-07  Bruno Haible  <bruno@clisp.org>
50092
50093         Tests for module 'uninorm/u32-normcoll'.
50094         * modules/uninorm/u32-normcoll-tests: New file.
50095         * tests/uninorm/test-u32-normcoll.c: New file.
50096
50097         Tests for module 'uninorm/u16-normcoll'.
50098         * modules/uninorm/u16-normcoll-tests: New file.
50099         * tests/uninorm/test-u16-normcoll.c: New file.
50100
50101         Tests for module 'uninorm/u8-normcoll'.
50102         * modules/uninorm/u8-normcoll-tests: New file.
50103         * tests/uninorm/test-u8-normcoll.c: New file.
50104
50105 2009-03-07  Bruno Haible  <bruno@clisp.org>
50106
50107         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50108         tests/uninorm/test-u32-normcmp.c.
50109         * tests/uninorm/test-u32-normcmp.c: Include it.
50110         (test_nonascii): New function, extracted from main. Add some more
50111         tests.
50112         (main): Invoke test_ascii and test_nonascii.
50113         * modules/uninorm/u32-normcmp-tests (Files): Add
50114         tests/uninorm/test-u32-normcmp.h.
50115         (Depends-on): Remove uninorm/u32-normcmp.
50116
50117         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50118         tests/uninorm/test-u16-normcmp.c.
50119         * tests/uninorm/test-u16-normcmp.c: Include it.
50120         (test_nonascii): New function, extracted from main. Add some more
50121         tests.
50122         (main): Invoke test_ascii and test_nonascii.
50123         * modules/uninorm/u16-normcmp-tests (Files): Add
50124         tests/uninorm/test-u16-normcmp.h.
50125         (Depends-on): Remove uninorm/u16-normcmp.
50126
50127         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50128         tests/uninorm/test-u8-normcmp.c.
50129         * tests/uninorm/test-u8-normcmp.c: Include it.
50130         (test_nonascii): New function, extracted from main. Add some more
50131         tests.
50132         (main): Invoke test_ascii and test_nonascii.
50133         * modules/uninorm/u8-normcmp-tests (Files): Add
50134         tests/uninorm/test-u8-normcmp.h.
50135         (Depends-on): Remove uninorm/u8-normcmp.
50136
50137 2009-03-07  Bruno Haible  <bruno@clisp.org>
50138
50139         New module 'uninorm/u32-normcoll'.
50140         * lib/uninorm/u32-normcoll.c: New file.
50141         * modules/uninorm/u32-normcoll: New file.
50142
50143         New module 'uninorm/u16-normcoll'.
50144         * lib/uninorm/u16-normcoll.c: New file.
50145         * modules/uninorm/u16-normcoll: New file.
50146
50147         New module 'uninorm/u8-normcoll'.
50148         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50149         declarations.
50150         * lib/uninorm/u8-normcoll.c: New file.
50151         * lib/uninorm/u-normcoll.h: New file.
50152         * modules/uninorm/u8-normcoll: New file.
50153
50154         New module 'uninorm/u32-normxfrm'.
50155         * lib/uninorm/u32-normxfrm.c: New file.
50156         * modules/uninorm/u32-normxfrm: New file.
50157
50158         New module 'uninorm/u16-normxfrm'.
50159         * lib/uninorm/u16-normxfrm.c: New file.
50160         * modules/uninorm/u16-normxfrm: New file.
50161
50162         New module 'uninorm/u8-normxfrm'.
50163         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50164         declarations.
50165         * lib/uninorm/u8-normxfrm.c: New file.
50166         * lib/uninorm/u-normxfrm.h: New file.
50167         * modules/uninorm/u8-normxfrm: New file.
50168
50169 2009-03-07  Bruno Haible  <bruno@clisp.org>
50170
50171         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50172         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50173         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50174
50175 2009-03-07  Bruno Haible  <bruno@clisp.org>
50176
50177         New module 'memxfrm'.
50178         * lib/memxfrm.h: New file.
50179         * lib/memxfrm.c: New file.
50180         * modules/memxfrm: New file.
50181
50182 2009-03-07  Bruno Haible  <bruno@clisp.org>
50183
50184         New module 'memcmp2'.
50185         * lib/memcmp2.h: New file.
50186         * lib/memcmp2.c: New file.
50187         * modules/memcmp2: New file.
50188
50189 2009-03-07  Bruno Haible  <bruno@clisp.org>
50190
50191         Tests for module 'uninorm/decomposing-form'.
50192         * modules/uninorm/decomposing-form-tests: New file.
50193         * tests/uninorm/test-decomposing-form.c: New file.
50194
50195         New module 'uninorm/decomposing-form'.
50196         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50197         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50198         Add 'decomposing_variant' field.
50199         * lib/uninorm/decomposing-form.c: New file.
50200         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50201         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50202         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50203         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50204         * modules/uninorm/decomposing-form: New file.
50205         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50206         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50207
50208 2009-03-07  Bruno Haible  <bruno@clisp.org>
50209
50210         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50211         strings.
50212
50213 2009-03-06  Bruno Haible  <bruno@clisp.org>
50214
50215         Tests for module 'uninorm/u32-normcmp'.
50216         * tests/uninorm/test-u32-normcmp.c: New file.
50217         * modules/uninorm/u32-normcmp-tests: New file.
50218
50219         Tests for module 'uninorm/u16-normcmp'.
50220         * tests/uninorm/test-u16-normcmp.c: New file.
50221         * modules/uninorm/u16-normcmp-tests: New file.
50222
50223         Tests for module 'uninorm/u8-normcmp'.
50224         * tests/uninorm/test-u8-normcmp.c: New file.
50225         * modules/uninorm/u8-normcmp-tests: New file.
50226
50227         New module 'uninorm/u32-normcmp'.
50228         * lib/uninorm/u32-normcmp.c: New file.
50229         * modules/uninorm/u32-normcmp: New file.
50230
50231         New module 'uninorm/u16-normcmp'.
50232         * lib/uninorm/u16-normcmp.c: New file.
50233         * modules/uninorm/u16-normcmp: New file.
50234
50235         New module 'uninorm/u8-normcmp'.
50236         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50237         declarations.
50238         * lib/uninorm/u8-normcmp.c: New file.
50239         * lib/uninorm/u-normcmp.h: New file.
50240         * modules/uninorm/u8-normcmp: New file.
50241
50242 2009-03-06  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50245         Reported by Eric Blake.
50246
50247 2009-03-06  Eric Blake  <ebb9@byu.net>
50248             Bruno Haible  <bruno@clisp.org>
50249
50250         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50251         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50252         condition.
50253         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50254         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50255         condition.
50256         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50257
50258 2009-03-06  Eric Blake  <ebb9@byu.net>
50259
50260         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50261         to avoid compiler warnings.
50262         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50263
50264 2009-03-05  Bruno Haible  <bruno@clisp.org>
50265
50266         * tests/test-ftell.c (main): Disable test beyond end of file on
50267         FreeMiNT.
50268         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50269
50270 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50271
50272         * lib/filevercmp.c: Move hidden files up in ordering.
50273         * tests/test-filevercmp.c: Add tests for hidden files.
50274
50275 2009-03-04  Bruno Haible  <bruno@clisp.org>
50276
50277         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50278         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50279         AM_CFLAGS.
50280         Reported by Simon Josefsson.
50281
50282 2009-03-03  Bruno Haible  <bruno@clisp.org>
50283
50284         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50285         Reported by Simon Josefsson.
50286
50287         * doc/ld-version-script.texi: Update node reference.
50288
50289 2009-03-03  Bruno Haible  <bruno@clisp.org>
50290
50291         * modules/visibility (License): Change to 'unlimited'.
50292         Suggested by Simon Josefsson.
50293
50294 2009-03-03  Jim Meyering  <meyering@redhat.com>
50295
50296         unlinkdir: cannot_unlink_dir may modify process state
50297         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50298         it's neither thread-safe nor appropriate for use in a library.
50299
50300 2009-03-03  Eric Blake  <ebb9@byu.net>
50301
50302         test-closein: silence test under Darwin
50303         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50304         care if it dies from EPIPE or EBADF.
50305
50306 2009-03-03  Bruno Haible  <bruno@clisp.org>
50307
50308         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50309         earlier.
50310         * doc/visibility.texi: Fix @node and @section.
50311
50312 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50313
50314         * doc/gnulib.texi: Link to sections for ld version script and
50315         visibility.
50316         * doc/visibility.texi: Add @node and @section.
50317         * modules/ld-version-script: New module.
50318         * m4/ld-version-script.m4: New file.
50319         * doc/ld-version-script.texi: New file.
50320
50321 2009-03-02  David Lutterkort  <lutter@redhat.com>
50322
50323         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50325
50326 2009-03-02  Bruno Haible  <bruno@clisp.org>
50327
50328         * doc/visibility.texi: Mention libtool's -export-symbols option.
50329
50330 2009-03-02  Jim Meyering  <meyering@redhat.com>
50331
50332         announce-gen: new option: --no-print-checksums
50333         * build-aux/announce-gen (usage): Describe it.
50334         (print_checksums): Print a newline here, not in the [*] footnote.
50335         (main): Honor it.
50336
50337 2009-03-01  Bruno Haible  <bruno@clisp.org>
50338
50339         Use socklen_t in the native Windows replacements prototypes.
50340         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50341         instead of 'int'.
50342         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50343         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50344         * modules/getsockopt (Depends-on): Add socklen.
50345         * modules/setsockopt (Depends-on): Add socklen.
50346
50347 2009-03-01  Bruno Haible  <bruno@clisp.org>
50348
50349         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50350         least 4.2.
50351
50352 2009-03-01  Eric Blake  <ebb9@byu.net>
50353             Bruno Haible  <bruno@clisp.org>
50354
50355         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50356         error messages.
50357         * lib/wait-process.c (wait_subprocess): Omit error message about
50358         deadly signal sent to the child of termsigp != NULL.
50359
50360 2009-03-01  Eric Blake  <ebb9@byu.net>
50361
50362         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50363
50364 2009-03-01  Bruno Haible  <bruno@clisp.org>
50365
50366         Avoid a gcc warning.
50367         * tests/test-sched.c (b): Make global.
50368         Reported by Eric Blake.
50369
50370 2009-01-19  Martin Lambers  <marlam@marlam.de>
50371
50372         Provide POSIX semantics for socket timeout options on W32.
50373         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50374         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50375         * modules/setsockopt: Depend on sys_time module for struct timeval.
50376         * modules/getsockopt: Depend on sys_time module for struct timeval.
50377
50378 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50379
50380         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50381         __USE_GNU, for consistency with netdb.in.h.
50382         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50383
50384 2009-03-01  Bruno Haible  <bruno@clisp.org>
50385
50386         More support for FreeMiNT.
50387         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50388         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50389
50390 2009-03-01  Bruno Haible  <bruno@clisp.org>
50391
50392         More support for FreeMiNT.
50393         * lib/fpurge.c (fpurge): Correct last commit.
50394         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50395
50396 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50397
50398         Fix unportable awk script in vc-list-files.
50399         * build-aux/vc-list-files: In the replacement awk script, use
50400         substr with a second argument of 1, not zero.
50401         Report by Simon Josefsson.
50402
50403 2009-02-28  Bruno Haible  <bruno@clisp.org>
50404
50405         More support for FreeMiNT.
50406         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50407         to FreeMiNT today.
50408         * lib/fwriting.c (fwriting): Likewise.
50409         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50410
50411 2009-02-28  Bruno Haible  <bruno@clisp.org>
50412
50413         * tests/test-freadseek.c (main): Disable test beyond end of file on
50414         FreeMiNT.
50415         * tests/test-ftello.c (main): Likewise.
50416         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50417
50418 2009-02-28  Bruno Haible  <bruno@clisp.org>
50419
50420         Add tentative support for FreeMiNT.
50421         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50422         * lib/fpurge.c (fpurge): Likewise.
50423         * lib/freadable.c (freadable): Likewise.
50424         * lib/freading.c (freading): Likewise.
50425         * lib/freadptr.c (freadptr): Likewise.
50426         * lib/freadseek.c (freadptrinc): Likewise.
50427         * lib/fseeko.c (rpl_fseeko): Likewise.
50428         * lib/fseterr.c (fseterr): Likewise.
50429         * lib/fwritable.c (fwritable): Likewise.
50430         * lib/fwriting.c (fwriting): Likewise.
50431         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50432         Hourihane.
50433         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50434
50435 2009-02-28  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50438         SIGCHLD.
50439         Reported by Jim Meyering.
50440
50441 2009-02-28  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50444         Mention the results of these tests on various platforms.
50445         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50446         order.
50447         * doc/posix-functions/printf.texi: Likewise.
50448         * doc/posix-functions/snprintf.texi: Likewise.
50449         * doc/posix-functions/sprintf.texi: Likewise.
50450         * doc/posix-functions/vfprintf.texi: Likewise.
50451         * doc/posix-functions/vprintf.texi: Likewise.
50452         * doc/posix-functions/vsnprintf.texi: Likewise.
50453         * doc/posix-functions/vsprintf.texi: Likewise.
50454         * doc/glibc-functions/obstack_printf.texi: Likewise.
50455         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50456
50457 2009-02-28  Bruno Haible  <bruno@clisp.org>
50458
50459         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50460         Reported by Loïc Minier <lool@dooz.org>.
50461
50462 2009-02-27  Bruno Haible  <bruno@clisp.org>
50463
50464         * gnulib-tool (func_import): Make the sed expression used to create the
50465         sed script for updating the .gitignore file POSIX compliant.
50466         Reported by Eric Blake.
50467
50468 2009-02-27  Bruno Haible  <bruno@clisp.org>
50469
50470         * gnulib-tool (sed): Don't alias as "sed --posix".
50471         Reported by Eric Blake.
50472
50473 2009-02-27  Bruno Haible  <bruno@clisp.org>
50474
50475         Avoid test link errors.
50476         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50477         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50478         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50479         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50481
50482 2009-02-27  Bruno Haible  <bruno@clisp.org>
50483
50484         Avoid spurious "(cached)" in configure output.
50485         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50486         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50487         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50488         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50489         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50490         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50491         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50492         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50493         Reported by Eric Blake.
50494
50495 2009-02-27  Eric Blake  <ebb9@byu.net>
50496
50497         printf: fix regression in previous patch
50498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50499
50500 2009-02-27  Bruno Haible  <bruno@clisp.org>
50501
50502         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50503         value.
50504         * lib/stdint.in.h: Likewise.
50505         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50506
50507 2009-02-27  Eric Blake  <ebb9@byu.net>
50508
50509         doc: mention more functions added in cygwin 1.7.0
50510         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50511         addition.
50512         * doc/posix-functions/open_wmemstream.texi: Likewise.
50513         * doc/posix-functions/wcsnlen.texi: Likewise.
50514         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50515         * doc/posix-functions/wcstod.texi: Likewise.
50516         * doc/posix-functions/wcstof.texi: Likewise.
50517         * doc/posix-functions/wcstoimax.texi: Likewise.
50518         * doc/posix-functions/wcstok.texi: Likewise.
50519         * doc/posix-functions/wcstoumax.texi: Likewise.
50520
50521         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50523         * doc/posix-functions/fprintf.texi: Update.
50524         * doc/posix-functions/printf.texi: Update.
50525         * doc/posix-functions/snprintf.texi: Update.
50526         * doc/posix-functions/sprintf.texi: Update.
50527         * doc/posix-functions/vfprintf.texi: Update.
50528         * doc/posix-functions/vprintf.texi: Update.
50529         * doc/posix-functions/vsnprintf.texi: Update.
50530         * doc/posix-functions/vsprintf.texi: Update.
50531         * doc/glibc-functions/obstack_printf.texi: Update.
50532         * doc/glibc-functions/obstack_vprintf.texi: Update.
50533
50534 2009-02-26  Eric Blake  <ebb9@byu.net>
50535
50536         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50537         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50538         compilation bug by using runtime conversion.
50539         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50540         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50541         * modules/ceill-tests (Files): Use nan.h.
50542         * modules/floorl-tests (Files): Likewise.
50543         * modules/frexpl-tests (Files): Likewise.
50544         * modules/isnanl-tests (Files): Likewise.
50545         * modules/ldexpl-tests (Files): Likewise.
50546         * modules/roundl-tests (Files): Likewise.
50547         * modules/truncl-tests (Files): Likewise.
50548         * tests/test-ceill.c (main): Use a working NaN.
50549         * tests/test-floorl.c (main): Likewise.
50550         * tests/test-frexpl.c (main): Likewise.
50551         * tests/test-isnan.c (test_long_double): Likewise.
50552         * tests/test-isnanl.h (main): Likewise.
50553         * tests/test-ldexpl.h (main): Likewise.
50554         * tests/test-roundl.h (main): Likewise.
50555         * tests/test-truncl.h (main): Likewise.
50556         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50557
50558 2009-02-26  Eric Blake  <ebb9@byu.net>
50559             Bruno Haible  <bruno@clisp.org>
50560
50561         Work around a *printf bug with %ls on Solaris.
50562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50563         precision is specified, sprintf stops converting the wide string
50564         argument when the number of bytes that have been produced by this
50565         conversion equals or exceeds the precision.
50566         * doc/posix-functions/fprintf.texi: Update.
50567         * doc/posix-functions/printf.texi: Update.
50568         * doc/posix-functions/snprintf.texi: Update.
50569         * doc/posix-functions/sprintf.texi: Update.
50570         * doc/posix-functions/vfprintf.texi: Update.
50571         * doc/posix-functions/vprintf.texi: Update.
50572         * doc/posix-functions/vsnprintf.texi: Update.
50573         * doc/posix-functions/vsprintf.texi: Update.
50574         * doc/glibc-functions/obstack_printf.texi: Update.
50575         * doc/glibc-functions/obstack_vprintf.texi: Update.
50576
50577 2009-02-26  Eric Blake  <ebb9@byu.net>
50578
50579         stdlib: favor compiler check of random.h
50580         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50581         to avoid an ObjC random.h installed by Swarm.
50582
50583 2009-02-26  Bruno Haible  <bruno@clisp.org>
50584
50585         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50586         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50587         Reported by Gary V. Vaughan <gary@gnu.org>.
50588
50589 2009-02-26  Bruno Haible  <bruno@clisp.org>
50590
50591         Fix *printf behaviour regarding the %ls directive.
50592         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50593         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50594         NEED_PRINTF_DIRECTIVE_LS.
50595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50596         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50598         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50599         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50600         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50601         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50604         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50605         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50606         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50608         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50609         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50610         * doc/posix-functions/fprintf.texi: Update.
50611         * doc/posix-functions/printf.texi: Update.
50612         * doc/posix-functions/snprintf.texi: Update.
50613         * doc/posix-functions/sprintf.texi: Update.
50614         * doc/posix-functions/vfprintf.texi: Update.
50615         * doc/posix-functions/vprintf.texi: Update.
50616         * doc/posix-functions/vsnprintf.texi: Update.
50617         * doc/posix-functions/vsprintf.texi: Update.
50618         * doc/glibc-functions/obstack_printf.texi: Update.
50619         * doc/glibc-functions/obstack_vprintf.texi: Update.
50620         Reported by Eric Blake.
50621
50622 2009-02-25  Bruno Haible  <bruno@clisp.org>
50623
50624         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50625         with known value.
50626         Reported by Gary V. Vaughan <gary@gnu.org>.
50627
50628 2009-02-25  Bruno Haible  <bruno@clisp.org>
50629
50630         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50631         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50632         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50633         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50634         Reported by Gary V. Vaughan <gary@gnu.org>.
50635
50636 2009-02-25  Bruno Haible  <bruno@clisp.org>
50637
50638         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50639         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50640         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50641         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50642         Reported by Gary V. Vaughan <gary@gnu.org>.
50643
50644 2009-02-25  Eric Blake  <ebb9@byu.net>
50645
50646         tests: skip fseek/ftell tests if ungetc is broken
50647         * m4/ungetc.m4: New file.
50648         * modules/fseek-tests: Split test, so ungetc dependency is
50649         separate from rest of test.
50650         * modules/fseeko-tests: Likewise.
50651         * modules/ftell-tests: Likewise.
50652         * modules/ftello-tests: Likewise.
50653         * tests/test-fseek.c (main): Isolate ungetc dependency.
50654         * tests/test-fseeko.c (main): Likewise.
50655         * tests/test-ftell.c (main): Likewise.
50656         * tests/test-ftello.c (main): Likewise.
50657         * tests/test-fseek2.sh: New file.
50658         * tests/test-fseeko2.sh: Likewise.
50659         * tests/test-ftell2.sh: Likewise.
50660         * tests/test-ftello2.sh: Likewise.
50661
50662 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50663
50664         test-getaddrinfo: fix usage of skip return code 77
50665         * tests/test-gettaddrinfo.c: Return skip code 77 only
50666         for first occurrence of skip (4x77 is not 77)
50667
50668 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50669
50670         strtod: avoid C99 decl-after-statement
50671         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50672
50673 2009-02-24  Eric Blake  <ebb9@byu.net>
50674
50675         strtod: detect HP-UX 11.31 bug
50676         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50677         Reported by Gary V. Vaughan.
50678
50679 2009-02-23  Bruno Haible  <bruno@clisp.org>
50680
50681         Fix invalid read past end of memory block.
50682         * lib/vasnprintf.c (DCHAR_SET): Define.
50683         (local_wcslen): Define only when needed.
50684         (local_strnlen, local_wcsnlen): New functions.
50685         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50686         directives that involve a conversion ourselves.
50687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50688         wcsnlen, mbrtowc, wcrtomb.
50689         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50690         * tests/test-vasprintf-posix.c (test_function): Likewise.
50691         * tests/test-snprintf-posix.h (test_function): Likewise.
50692         * tests/test-sprintf-posix.h (test_function): Likewise.
50693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50694
50695 2009-02-22  Bruno Haible  <bruno@clisp.org>
50696
50697         Implement new clarified decomposition of Hangul syllables.
50698         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50699         of type LTV, return only a pairwise decomposition.
50700         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50701         Likewise.
50702         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50703         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50704         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50705
50706 2009-02-22  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50709         zero-length results and shrink excess allocated memory.
50710         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50711         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50712         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50713         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50714         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50715         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50716         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50717         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50718         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50719         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50720         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50721         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50722
50723 2009-02-21  Bruno Haible  <bruno@clisp.org>
50724
50725         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50726         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50727         spaces after a period. Put a space between a macro name and its
50728         argument list. Trivial rewordings.
50729         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50730         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50731         (main): Return 0 explicitly.
50732
50733 2009-02-21  Bruno Haible  <bruno@clisp.org>
50734
50735         Tests for module 'uninorm/filter'.
50736         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50737         * modules/uninorm/filter-tests: New file.
50738
50739         New module 'uninorm/filter'.
50740         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50741         uninorm_filter_flush, uninorm_filter_free): New declarations.
50742         * lib/uninorm/uninorm-filter.c: New file.
50743         * modules/uninorm/filter: New file.
50744
50745 2009-02-21  Bruno Haible  <bruno@clisp.org>
50746
50747         Tests for module 'uninorm/nfkc'.
50748         * tests/uninorm/test-nfkc.c: New file.
50749         * tests/uninorm/test-u8-nfkc.c: New file.
50750         * tests/uninorm/test-u16-nfkc.c: New file.
50751         * tests/uninorm/test-u32-nfkc.c: New file.
50752         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50753         * tests/uninorm/test-u32-nfkc-big.c: New file.
50754         * modules/uninorm/nfkc-tests: New file.
50755
50756         New module 'uninorm/nfkc'.
50757         * lib/uninorm/nfkc.c: New file.
50758         * modules/uninorm/nfkc: New file.
50759
50760         Tests for module 'uninorm/nfkd'.
50761         * tests/uninorm/test-nfkd.c: New file.
50762         * tests/uninorm/test-u8-nfkd.c: New file.
50763         * tests/uninorm/test-u16-nfkd.c: New file.
50764         * tests/uninorm/test-u32-nfkd.c: New file.
50765         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50766         * tests/uninorm/test-u32-nfkd-big.c: New file.
50767         * modules/uninorm/nfkd-tests: New file.
50768
50769         New module 'uninorm/nfkd'.
50770         * lib/uninorm/nfkd.c: New file.
50771         * modules/uninorm/nfkd: New file.
50772
50773         Tests for module 'uninorm/nfc'.
50774         * tests/uninorm/test-nfc.c: New file.
50775         * tests/uninorm/test-u8-nfc.c: New file.
50776         * tests/uninorm/test-u16-nfc.c: New file.
50777         * tests/uninorm/test-u32-nfc.c: New file.
50778         * tests/uninorm/test-u32-nfc-big.sh: New file.
50779         * tests/uninorm/test-u32-nfc-big.c: New file.
50780         * modules/uninorm/nfc-tests: New file.
50781
50782         New module 'uninorm/nfc'.
50783         * lib/uninorm/nfc.c: New file.
50784         * modules/uninorm/nfc: New file.
50785
50786         Tests for module 'uninorm/nfd'.
50787         * tests/uninorm/test-nfd.c: New file.
50788         * tests/uninorm/test-u8-nfd.c: New file.
50789         * tests/uninorm/test-u16-nfd.c: New file.
50790         * tests/uninorm/test-u32-nfd.c: New file.
50791         * tests/uninorm/test-u32-nfd-big.sh: New file.
50792         * tests/uninorm/test-u32-nfd-big.c: New file.
50793         * tests/uninorm/test-u32-normalize-big.h: New file.
50794         * tests/uninorm/test-u32-normalize-big.c: New file.
50795         * tests/uninorm/NormalizationTest.txt: New file, created from
50796         Unicode 5.1.0 NormalizationTest.txt.
50797         * modules/uninorm/nfd-tests: New file.
50798
50799         New module 'uninorm/nfd'.
50800         * lib/uninorm/nfd.c: New file.
50801         * modules/uninorm/nfd: New file.
50802
50803         New module 'uninorm/u32-normalize'.
50804         * lib/uninorm/u32-normalize.c: New file.
50805         * modules/uninorm/u32-normalize: New file.
50806
50807         New module 'uninorm/u16-normalize'.
50808         * lib/uninorm/u16-normalize.c: New file.
50809         * modules/uninorm/u16-normalize: New file.
50810
50811         New module 'uninorm/u8-normalize'.
50812         * lib/uninorm/u8-normalize.c: New file.
50813         * lib/uninorm/normalize-internal.h: New file.
50814         * lib/uninorm/u-normalize-internal.h: New file.
50815         * modules/uninorm/u8-normalize: New file.
50816
50817         New module 'uninorm/decompose-internal'.
50818         * lib/uninorm/decompose-internal.c: New file.
50819         * modules/uninorm/decompose-internal: New file.
50820
50821         Tests for module 'uninorm/composition'.
50822         * tests/uninorm/test-composition.c: New file.
50823         * modules/uninorm/composition-tests: New file.
50824
50825         New module 'uninorm/composition'.
50826         * lib/uninorm/composition.c: New file.
50827         * lib/uninorm/composition-table.gperf: New file, generated by
50828         gen-uni-tables.
50829         * modules/uninorm/composition: New file.
50830
50831         Tests for module 'uninorm/compat-decomposition'.
50832         * tests/uninorm/test-compat-decomposition.c: New file.
50833         * modules/uninorm/compat-decomposition-tests: New file.
50834
50835         New module 'uninorm/compat-decomposition'.
50836         * lib/uninorm/decompose-internal.h: New file.
50837         * lib/uninorm/compat-decomposition.c: New file.
50838         * modules/uninorm/compat-decomposition: New file.
50839
50840         Tests for module 'uninorm/canonical-decomposition'.
50841         * tests/uninorm/test-canonical-decomposition.c: New file.
50842         * modules/uninorm/canonical-decomposition-tests: New file.
50843
50844         New module 'uninorm/canonical-decomposition'.
50845         * lib/uninorm/canonical-decomposition.c: New file.
50846         * modules/uninorm/canonical-decomposition: New file.
50847
50848         Tests for module 'uninorm/decomposition'.
50849         * tests/uninorm/test-decomposition.c: New file.
50850         * modules/uninorm/decomposition-tests: New file.
50851
50852         New module 'uninorm/decomposition'.
50853         * lib/uninorm/decomposition.c: New file.
50854         * modules/uninorm/decomposition: New file.
50855
50856         New module 'uninorm/decomposition-table'.
50857         * lib/uninorm/decomposition-table.h: New file.
50858         * lib/uninorm/decomposition-table.c: New file.
50859         * lib/uninorm/decomposition-table1.h: New file, generated by
50860         gen-uni-tables.
50861         * lib/uninorm/decomposition-table2.h: New file, generated by
50862         gen-uni-tables.
50863         * modules/uninorm/decomposition-table: New file.
50864
50865         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50866         (UC_DECOMP_*): New enumeration items.
50867         (get_decomposition): New function.
50868         (struct decomp_table): New type.
50869         (output_decomposition, output_decomposition_tables): New functions.
50870         (unicode_composition_exclusions): New variable.
50871         (fill_composition_exclusions, debug_output_composition_tables): New
50872         functions.
50873         (main): Accept one more argument. Invoke fill_composition_exclusions.
50874         Output decomposition and composition tables.
50875
50876         New module 'uninorm/base'.
50877         * lib/uninorm.h: New file.
50878         * lib/unictype.h: Update comment.
50879         * modules/uninorm/base: New file.
50880
50881 2009-02-21  David Lutterkort  <lutter@redhat.com>
50882
50883         Tests for module 'safe-alloc'.
50884         * tests/test-safe-alloc.c: New file.
50885         * modules/safe-alloc-tests: New file.
50886
50887         New module 'safe-alloc'.
50888         * lib/safe-alloc.h: New file.
50889         * lib/safe-alloc.c: New file.
50890         * m4/safe-alloc.m4: New file.
50891         * modules/safe-alloc: New file.
50892         * doc/safe-alloc.texi: New file.
50893         * doc/gnulib.texi: Include it.
50894         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50895         safe-alloc.
50896
50897 2009-02-18  Bruno Haible  <bruno@clisp.org>
50898
50899         Fix link error on non-glibc systems.
50900         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50901         variable.
50902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50903
50904 2009-02-18  Jim Meyering  <meyering@redhat.com>
50905
50906         fts: avoid used-uninitialized error due to recent change
50907         * lib/fts.c (fts_read): Guard uses of the new member,
50908         parent->fts_n_dirs_remaining, since it's not relevant for
50909         the parent of a directory specified on the command-line.
50910
50911 2009-02-17  James Youngman  <jay@gnu.org>
50912             Bruno Haible  <bruno@clisp.org>
50913
50914         * m4/include_next.m4: Reformulate comment.
50915
50916 2009-02-16  Jim Meyering  <meyering@redhat.com>
50917
50918         fts: add #if guards so that the fts_lgpl module still builds
50919         * lib/fts.c: Guard just-added hash-table-using parts with
50920         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50921         Reported by Simon Josefsson.
50922
50923 2009-02-15  Bruno Haible  <bruno@clisp.org>
50924
50925         * modules/array-mergesort-tests: New file.
50926         * tests/test-array-mergesort.c: New file.
50927
50928         New module 'array-mergesort'.
50929         * modules/array-mergesort: New file.
50930         * lib/array-mergesort.h: New file.
50931
50932 2009-02-15  Bruno Haible  <bruno@clisp.org>
50933
50934         Fix 2009-02-07 commit.
50935         * lib/gen-uni-tables.c (output_predicate, output_category,
50936         output_combclass, output_bidi_category, output_decimal_digit,
50937         output_digit, output_numeric, output_mirror, output_scripts,
50938         output_ident_category, output_simple_mapping): Fix format directives.
50939         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50940
50941 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50942
50943         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50944         fixes are available from IBM.
50945
50946 2009-02-13  Jim Meyering  <meyering@redhat.com>
50947
50948         fts: arrange not to stat non-directories in more cases
50949         This makes GNU find (when it doesn't need to stat each file)
50950         *much* more efficient at traversing reiserfs file systems.
50951         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50952         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50953         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50954         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50955         (leaf_optimization_applies): New function.
50956         (LCO_hash, LCO_compare): New helper functions.
50957         (link_count_optimize_ok): New function.
50958         (fts_stat): Initialize new member (if dir).
50959         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50960         we've just stat'ed a directory.  Skip the stat call when possible.
50961         ---
50962         Note this AFS-related exchange:
50963         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50964         and note find's pioctl call in find/fstype.c.
50965         But that is necessary only if you want to enable the
50966         optimization for AFS, and for now, I don't.
50967
50968         fts: move a function definition "up" (no semantic change)
50969         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50970         "up" to precede upcoming use of a related function.
50971
50972 2009-02-11  Jim Meyering  <meyering@redhat.com>
50973
50974         fts: correct internal computation of nlinks (optimization-related)
50975         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50976         whether the current entry is a directory, so don't test it.
50977
50978 2009-02-10  Bruno Haible  <bruno@clisp.org>
50979
50980         Tests for module 'uniwbrk/ulc-wordbreaks'.
50981         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50982         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50983         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50984
50985         Tests for module 'uniwbrk/u32-wordbreaks'.
50986         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50987         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50988
50989         Tests for module 'uniwbrk/u16-wordbreaks'.
50990         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50991         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50992
50993         Tests for module 'uniwbrk/u8-wordbreaks'.
50994         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50995         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50996
50997 2009-02-10  Bruno Haible  <bruno@clisp.org>
50998
50999         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51000         property.
51001         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51002         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51003         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51004
51005 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51006
51007         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51008         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51009
51010 2009-02-10  Bruno Haible  <bruno@clisp.org>
51011
51012         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51013         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51014         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51015         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51016         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51017         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51018
51019 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51020
51021         * lib/sockets.h (gl_fd_to_handle): New function.
51022
51023         * tests/test-sockets.c: Call gl_fd_to_handle.
51024
51025 2009-02-09  Bruno Haible  <bruno@clisp.org>
51026
51027         * doc/havelib.texi: Document the conventions on bi-arch systems.
51028
51029 2009-02-08  Bruno Haible  <bruno@clisp.org>
51030
51031         Document the AC_LIB_LINKFLAGS macro.
51032         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51033         * doc/gnulib.texi: Include it.
51034
51035 2009-02-08  Bruno Haible  <bruno@clisp.org>
51036
51037         Fix wrong order of sections, compared to TOC.
51038         * doc/gnulib.texi: Include relocatable-maint.texi after the
51039         "Regular expressions" node, not before.
51040
51041 2009-02-08  Bruno Haible  <bruno@clisp.org>
51042
51043         Tests for module 'unicase/totitle'.
51044         * modules/unicase/totitle-tests: New file.
51045
51046         Tests for module 'unicase/tolower'.
51047         * modules/unicase/tolower-tests: New file.
51048
51049         Tests for module 'unicase/toupper'.
51050         * modules/unicase/toupper-tests: New file.
51051         * tests/unicase/test-mapping-part1.h: New file.
51052         * tests/unicase/test-mapping-part2.h: New file.
51053
51054         New module 'unicase/totitle'.
51055         * modules/unicase/totitle: New file.
51056         * lib/unicase/totitle.c: New file.
51057
51058         New module 'unicase/tolower'.
51059         * modules/unicase/tolower: New file.
51060         * lib/unicase/tolower.c: New file.
51061
51062         New module 'unicase/toupper'.
51063         * modules/unicase/toupper: New file.
51064         * lib/unicase/toupper.c: New file.
51065         * lib/unicase/simple-mapping.h: New file.
51066
51067         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51068         (mapping_table): New structure.
51069         (output_simple_mapping): New function.
51070         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51071         * modules/gen-uni-tables (Description): Update.
51072         * lib/unicase/toupper.h: New file, automatically generated by
51073         gen-uni-tables.
51074         * lib/unicase/tolower.h: New file, automatically generated by
51075         gen-uni-tables.
51076         * lib/unicase/totitle.h: New file, automatically generated by
51077         gen-uni-tables.
51078         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51079         gen-uni-tables.
51080         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51081         gen-uni-tables.
51082         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51083         gen-uni-tables.
51084
51085         New module 'unicase/base'.
51086         * modules/unicase/base: New file.
51087         * lib/unicase.h: New file.
51088
51089 2009-02-08  Bruno Haible  <bruno@clisp.org>
51090
51091         New module 'uniwbrk/ulc-wordbreaks'.
51092         * modules/uniwbrk/ulc-wordbreaks: New file.
51093         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51094
51095         New module 'uniwbrk/u32-wordbreaks'.
51096         * modules/uniwbrk/u32-wordbreaks: New file.
51097         * lib/uniwbrk/u32-wordbreaks.c: New file.
51098
51099         New module 'uniwbrk/u16-wordbreaks'.
51100         * modules/uniwbrk/u16-wordbreaks: New file.
51101         * lib/uniwbrk/u16-wordbreaks.c: New file.
51102
51103         New module 'uniwbrk/u8-wordbreaks'.
51104         * modules/uniwbrk/u8-wordbreaks: New file.
51105         * lib/uniwbrk/u8-wordbreaks.c: New file.
51106         * lib/uniwbrk/u-wordbreaks.h: New file.
51107
51108         New module 'uniwbrk/table'.
51109         * modules/uniwbrk/table: New file.
51110         * lib/uniwbrk/wbrktable.h: New file.
51111         * lib/uniwbrk/wbrktable.c: New file.
51112
51113         New module 'uniwbrk/wordbreak-property'.
51114         * modules/uniwbrk/wordbreak-property: New file.
51115         * lib/uniwbrk/wordbreak-property.c: New file.
51116
51117         * lib/gen-uni-tables.c (WBP_*): New enum items.
51118         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51119         (unicode_org_wbp): New variable.
51120         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51121         New functions.
51122         (wbp_table): New structure.
51123         (output_wbp, output_wbrk_tables): New functions.
51124         (main): Accept additional argument. Invoke fill_org_wbp,
51125         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51126         output_wbrk_tables.
51127         * modules/gen-uni-tables (Description): Update.
51128         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51129         gen-uni-tables.
51130
51131         New module 'uniwbrk/base'.
51132         * modules/uniwbrk/base: New file.
51133         * lib/uniwbrk.h: New file.
51134
51135 2009-02-08  Bruno Haible  <bruno@clisp.org>
51136
51137         Update to Unicode 5.1.0.
51138         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51139         U+2185..U+2188.
51140         (is_property_default_ignorable_code_point): Don't include characters
51141         of category Cc or Cs and not-a-characters.
51142         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51143         U+0D79, U+109E, U+109F, U+A60C.
51144         * lib/unictype/bidi_of.h: Regenerated.
51145         * lib/unictype/blocks.h: Regenerated.
51146         * lib/unictype/categ_C.h: Regenerated.
51147         * lib/unictype/categ_Cf.h: Regenerated.
51148         * lib/unictype/categ_Cn.h: Regenerated.
51149         * lib/unictype/categ_L.h: Regenerated.
51150         * lib/unictype/categ_Ll.h: Regenerated.
51151         * lib/unictype/categ_Lm.h: Regenerated.
51152         * lib/unictype/categ_Lo.h: Regenerated.
51153         * lib/unictype/categ_Lu.h: Regenerated.
51154         * lib/unictype/categ_M.h: Regenerated.
51155         * lib/unictype/categ_Mc.h: Regenerated.
51156         * lib/unictype/categ_Me.h: Regenerated.
51157         * lib/unictype/categ_Mn.h: Regenerated.
51158         * lib/unictype/categ_N.h: Regenerated.
51159         * lib/unictype/categ_Nd.h: Regenerated.
51160         * lib/unictype/categ_Nl.h: Regenerated.
51161         * lib/unictype/categ_No.h: Regenerated.
51162         * lib/unictype/categ_P.h: Regenerated.
51163         * lib/unictype/categ_Pd.h: Regenerated.
51164         * lib/unictype/categ_Pe.h: Regenerated.
51165         * lib/unictype/categ_Pf.h: Regenerated.
51166         * lib/unictype/categ_Pi.h: Regenerated.
51167         * lib/unictype/categ_Po.h: Regenerated.
51168         * lib/unictype/categ_Ps.h: Regenerated.
51169         * lib/unictype/categ_S.h: Regenerated.
51170         * lib/unictype/categ_Sk.h: Regenerated.
51171         * lib/unictype/categ_Sm.h: Regenerated.
51172         * lib/unictype/categ_So.h: Regenerated.
51173         * lib/unictype/categ_of.h: Regenerated.
51174         * lib/unictype/combining.h: Regenerated.
51175         * lib/unictype/ctype_alnum.h: Regenerated.
51176         * lib/unictype/ctype_alpha.h: Regenerated.
51177         * lib/unictype/ctype_graph.h: Regenerated.
51178         * lib/unictype/ctype_lower.h: Regenerated.
51179         * lib/unictype/ctype_print.h: Regenerated.
51180         * lib/unictype/ctype_punct.h: Regenerated.
51181         * lib/unictype/ctype_upper.h: Regenerated.
51182         * lib/unictype/decdigit.h: Regenerated.
51183         * lib/unictype/digit.h: Regenerated.
51184         * lib/unictype/mirror.h: Regenerated.
51185         * lib/unictype/numeric.h: Regenerated.
51186         * lib/unictype/pr_alphabetic.h: Regenerated.
51187         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51188         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51189         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51190         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51191         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51192         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51193         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51194         * lib/unictype/pr_combining.h: Regenerated.
51195         * lib/unictype/pr_dash.h: Regenerated.
51196         * lib/unictype/pr_decimal_digit.h: Regenerated.
51197         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51198         * lib/unictype/pr_deprecated.h: Regenerated.
51199         * lib/unictype/pr_diacritic.h: Regenerated.
51200         * lib/unictype/pr_extender.h: Regenerated.
51201         * lib/unictype/pr_format_control.h: Regenerated.
51202         * lib/unictype/pr_grapheme_base.h: Regenerated.
51203         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51204         * lib/unictype/pr_grapheme_link.h: Regenerated.
51205         * lib/unictype/pr_id_continue.h: Regenerated.
51206         * lib/unictype/pr_id_start.h: Regenerated.
51207         * lib/unictype/pr_ideographic.h: Regenerated.
51208         * lib/unictype/pr_ignorable_control.h: Regenerated.
51209         * lib/unictype/pr_lowercase.h: Regenerated.
51210         * lib/unictype/pr_math.h: Regenerated.
51211         * lib/unictype/pr_numeric.h: Regenerated.
51212         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51213         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51214         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51215         * lib/unictype/pr_other_id_continue.h: Regenerated.
51216         * lib/unictype/pr_other_lowercase.h: Regenerated.
51217         * lib/unictype/pr_other_math.h: Regenerated.
51218         * lib/unictype/pr_punctuation.h: Regenerated.
51219         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51220         * lib/unictype/pr_soft_dotted.h: Regenerated.
51221         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51222         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51223         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51224         * lib/unictype/pr_uppercase.h: Regenerated.
51225         * lib/unictype/pr_xid_continue.h: Regenerated.
51226         * lib/unictype/pr_xid_start.h: Regenerated.
51227         * lib/unictype/pr_zero_width.h: Regenerated.
51228         * lib/unictype/scripts.h: Regenerated.
51229         * lib/unictype/scripts_byname.gperf: Regenerated.
51230         * lib/unictype/sy_java_ident.h: Regenerated.
51231         * lib/unilbrk/lbrkprop1.h: Regenerated.
51232         * lib/unilbrk/lbrkprop2.h: Regenerated.
51233         * tests/unictype/test-categ_C.c: Regenerated.
51234         * tests/unictype/test-categ_Cf.c: Regenerated.
51235         * tests/unictype/test-categ_Cn.c: Regenerated.
51236         * tests/unictype/test-categ_L.c: Regenerated.
51237         * tests/unictype/test-categ_Ll.c: Regenerated.
51238         * tests/unictype/test-categ_Lm.c: Regenerated.
51239         * tests/unictype/test-categ_Lo.c: Regenerated.
51240         * tests/unictype/test-categ_Lu.c: Regenerated.
51241         * tests/unictype/test-categ_M.c: Regenerated.
51242         * tests/unictype/test-categ_Mc.c: Regenerated.
51243         * tests/unictype/test-categ_Me.c: Regenerated.
51244         * tests/unictype/test-categ_Mn.c: Regenerated.
51245         * tests/unictype/test-categ_N.c: Regenerated.
51246         * tests/unictype/test-categ_Nd.c: Regenerated.
51247         * tests/unictype/test-categ_Nl.c: Regenerated.
51248         * tests/unictype/test-categ_No.c: Regenerated.
51249         * tests/unictype/test-categ_P.c: Regenerated.
51250         * tests/unictype/test-categ_Pd.c: Regenerated.
51251         * tests/unictype/test-categ_Pe.c: Regenerated.
51252         * tests/unictype/test-categ_Pf.c: Regenerated.
51253         * tests/unictype/test-categ_Pi.c: Regenerated.
51254         * tests/unictype/test-categ_Po.c: Regenerated.
51255         * tests/unictype/test-categ_Ps.c: Regenerated.
51256         * tests/unictype/test-categ_S.c: Regenerated.
51257         * tests/unictype/test-categ_Sk.c: Regenerated.
51258         * tests/unictype/test-categ_Sm.c: Regenerated.
51259         * tests/unictype/test-categ_So.c: Regenerated.
51260         * tests/unictype/test-ctype_alnum.c: Regenerated.
51261         * tests/unictype/test-ctype_alpha.c: Regenerated.
51262         * tests/unictype/test-ctype_graph.c: Regenerated.
51263         * tests/unictype/test-ctype_lower.c: Regenerated.
51264         * tests/unictype/test-ctype_print.c: Regenerated.
51265         * tests/unictype/test-ctype_punct.c: Regenerated.
51266         * tests/unictype/test-ctype_upper.c: Regenerated.
51267         * tests/unictype/test-decdigit.h: Regenerated.
51268         * tests/unictype/test-digit.h: Regenerated.
51269         * tests/unictype/test-numeric.h: Regenerated.
51270         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51271         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51272         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51273         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51274         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51275         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51276         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51277         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51278         * tests/unictype/test-pr_combining.c: Regenerated.
51279         * tests/unictype/test-pr_dash.c: Regenerated.
51280         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51281         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51282         * tests/unictype/test-pr_deprecated.c: Regenerated.
51283         * tests/unictype/test-pr_diacritic.c: Regenerated.
51284         * tests/unictype/test-pr_extender.c: Regenerated.
51285         * tests/unictype/test-pr_format_control.c: Regenerated.
51286         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51287         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51288         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51289         * tests/unictype/test-pr_id_continue.c: Regenerated.
51290         * tests/unictype/test-pr_id_start.c: Regenerated.
51291         * tests/unictype/test-pr_ideographic.c: Regenerated.
51292         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51293         * tests/unictype/test-pr_lowercase.c: Regenerated.
51294         * tests/unictype/test-pr_math.c: Regenerated.
51295         * tests/unictype/test-pr_numeric.c: Regenerated.
51296         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51297         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51298         Regenerated.
51299         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51300         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51301         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51302         * tests/unictype/test-pr_other_math.c: Regenerated.
51303         * tests/unictype/test-pr_punctuation.c: Regenerated.
51304         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51305         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51306         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51307         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51308         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51309         * tests/unictype/test-pr_uppercase.c: Regenerated.
51310         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51311         * tests/unictype/test-pr_xid_start.c: Regenerated.
51312         * tests/unictype/test-pr_zero_width.c: Regenerated.
51313
51314         Update to Unicode 5.1.0.
51315         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51316         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51317         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51318         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51319         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51320         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51321         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51322         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51323         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51324         (nonspacing_table_ind): Update.
51325         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51326
51327         Update to Unicode 5.1.0.
51328         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51329         code transform.
51330         * lib/uniname/uniname.c (unicode_character_name,
51331         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51332         * lib/uniname/uninames.h: Regenerated.
51333         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51334
51335 2009-02-07  Bruno Haible  <bruno@clisp.org>
51336
51337         Merge gen-ctype and gen-lbrk into a single program.
51338         * lib/gen-uni-tables.c: New file, incorporating
51339         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51340         Add directory prefixes to the names of the generated files.
51341         * lib/unictype/gen-ctype.c: Remove file.
51342         * lib/unilbrk/gen-lbrk.c: Remove file.
51343         * modules/gen-uni-tables: New file.
51344         * modules/unictype/gen-ctype: Remove file.
51345         * modules/unilbrk/gen-lbrk: Remove file.
51346
51347 2009-02-07  Bruno Haible  <bruno@clisp.org>
51348
51349         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51350
51351         New module 'unistr/u32-strcoll'.
51352         * modules/unistr/u32-strcoll: New file.
51353         * lib/unistr/u32-strcoll.c: New file.
51354
51355         New module 'unistr/u16-strcoll'.
51356         * modules/unistr/u16-strcoll: New file.
51357         * lib/unistr/u16-strcoll.c: New file.
51358
51359         New module 'unistr/u8-strcoll'.
51360         * modules/unistr/u8-strcoll: New file.
51361         * lib/unistr/u8-strcoll.c: New file.
51362         * lib/unistr/u-strcoll.h: New file.
51363
51364 2009-02-07  Bruno Haible  <bruno@clisp.org>
51365
51366         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51367         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51368         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51369         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51370         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51371         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51372
51373 2009-02-07  Bruno Haible  <bruno@clisp.org>
51374
51375         Make 64-bit clean.
51376         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51377         output_combclass, output_bidi_category, output_decimal_digit,
51378         output_digit, output_numeric, output_mirror, output_scripts,
51379         output_ident_category): Use proper width specifier in format strings.
51380
51381 2009-02-07  Bruno Haible  <bruno@clisp.org>
51382
51383         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51384         failure behaviour.
51385
51386 2009-02-07  Jim Meyering  <meyering@redhat.com>
51387
51388         regex: avoid compilation failure with upcoming gcc-4.4
51389         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51390         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51391         "... error: integer overflow in preprocessor expression".
51392
51393 2009-02-05  Ben Pfaff  <blp@gnu.org>
51394
51395         Fix link errors on Windows when close module is used.
51396         * modules/close: Add $(LIB_CLOSE) to Link section.
51397         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51398         $(LIB_CLOSE) on Windows.
51399
51400 2009-02-05  Jim Meyering  <meyering@redhat.com>
51401
51402         still avoid unused-parameter warnings, but do it cleanly
51403         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51404         (get_fs_usage): Cast to void instead.
51405         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51406         (dev_from_mount_options, read_file_system_list): Cast to void.
51407         Prompted by Bruno Haible.
51408
51409 2009-02-04  Jim Meyering  <meyering@redhat.com>
51410
51411         fsusage.c: correct copyright year
51412         * lib/fsusage.c: Reflect year in which the change is pushed into
51413
51414         avoid misc. warnings
51415         * lib/fsusage.c (UNUSED_PARAM): Define.
51416         (get_fs_usage): Mark parameter "disk" as unused.
51417         * lib/getugroups.c (getgrent): Use "void" in prototype.
51418         * lib/mountlist.c: Mark unused parameters.
51419         (read_file_system_list): Declare a local with "const".
51420         * lib/nanosleep.c (getnow): Declare static.
51421         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51422
51423         dirfd: set errno upon failure
51424         * lib/dirfd.c: Include <errno.h>.
51425         Set errno to ENOTSUP when returning -1.
51426         * modules/dirfd (Depends-on): Add errno.
51427         Suggested by John Kodis <kodis@comcast.net>.
51428
51429 2009-02-01  Bruno Haible  <bruno@clisp.org>
51430
51431         Don't assume sizeof (long) >= sizeof (void *).
51432         * lib/memcmp.c: Include stdint.h.
51433         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51434         srcp2 to 'const byte *'.
51435         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51436         types to uintptr_t.
51437         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51438         * modules/memcmp (Depends-on): Add stdint.
51439         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51440
51441 2009-01-30  Eric Blake  <ebb9@byu.net>
51442
51443         fix more require-before-expand issues
51444         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51445         expand, AC_PROG_AWK.
51446         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51447
51448 2009-01-28  Eric Blake  <ebb9@byu.net>
51449
51450         version-etc: use consistent URL formatting
51451         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51452         Improve formatting.  Use fputs for string without %.
51453
51454 2009-01-28  Jim Meyering  <meyering@redhat.com>
51455
51456         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51457         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51458         "underquoted definition of NAME" from autoconf-2.59.
51459
51460 2009-01-28  Bruno Haible  <bruno@clisp.org>
51461
51462         * doc/gnulib.texi: Add "Obsolete modules" to index.
51463
51464 2009-01-28  Jim Meyering  <meyering@redhat.com>
51465
51466         useless-if-before-free: recognize more variants
51467         * build-aux/useless-if-before-free: Also recognize e.g.,
51468         if (NULL != p) free (p);
51469
51470 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51471
51472         test-getaddrinfo: skip (don't fail) this test when there's no network
51473         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51474         on the presumption that it means you lack network access.
51475
51476 2009-01-26  Jim Meyering  <meyering@redhat.com>
51477
51478         fflush: avoid warnings on modern systems
51479         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51480         pos and result, into scopes where they're used.
51481
51482 2009-01-26  Eric Blake  <ebb9@byu.net>
51483
51484         Silence warning reintroduced by recent extensions patch.
51485         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51486         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51487         autoconf.
51488
51489         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51490         * m4/00gnulib.m4: New file.
51491         * gnulib-tool (func_get_filelist): Always use it.
51492         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51493         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51494
51495 2009-01-25  Bruno Haible  <bruno@clisp.org>
51496
51497         Make test-quotearg work on MacOS X and AIX.
51498         * tests/test-quotearg.sh: New file.
51499         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51500         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51501         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51502         include <libintl.h>.
51503         (fake_locale): Remove variable.
51504         (gettext, dgettext, dcgettext): Remove functions.
51505         (main): Instead of setting a fake locale, set a real locale. Call
51506         textdomain and bindtextdomain.
51507         * modules/quotearg-tests (Files): Add the new files.
51508         (Depends-on): Add gettext, setenv, unsetenv.
51509         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51510         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51511         Augment TESTS_ENVIRONMENT.
51512
51513 2009-01-25  Bruno Haible  <bruno@clisp.org>
51514
51515         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51516         fr_FR.ISO8859-1 locale on MacOS X.
51517         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51518         ja_JP.eucJP locale on MacOS X.
51519         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51520         zh_CN.GB18030 locale on MacOS X.
51521
51522 2009-01-25  Bruno Haible  <bruno@clisp.org>
51523
51524         Avoid link errors on MacOS X 10.3.
51525         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51526         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51527
51528 2009-01-25  Bruno Haible  <bruno@clisp.org>
51529
51530         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51531         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51532         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51533         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51534         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51535         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51536         posix_spawnattr_init, posix_spawnattr_setsigmask,
51537         posix_spawnattr_setflags, posix_spawnattr_destroy.
51538
51539         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51540         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51541         * modules/execute (Files): Remove m4/posix_spawn.m4.
51542         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51543         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51544         posix_spawnattr_init, posix_spawnattr_setsigmask,
51545         posix_spawnattr_setflags, posix_spawnattr_destroy.
51546
51547 2009-01-25  Bruno Haible  <bruno@clisp.org>
51548
51549         * lib/glthread/threadlib.c: Include <stdlib.h>.
51550
51551 2009-01-25  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/glthread/threadlib.c (dummy): New declaration.
51554
51555 2009-01-25  Bruno Haible  <bruno@clisp.org>
51556
51557         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51558         multibyte characters also for the GB18030 encoding. Don't crash when
51559         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51560
51561 2009-01-25  Bruno Haible  <bruno@clisp.org>
51562
51563         Avoid redefining 'struct random_data' on OSF/1 5.1.
51564         * lib/stdlib.in.h: Include <random.h> if it exists.
51565         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51566         HAVE_RANDOM_H. Include <random.h> when testing whether
51567         'struct random_data' exists.
51568         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51569
51570 2009-01-25  Bruno Haible  <bruno@clisp.org>
51571
51572         Don't install charset.alias on MacOS X >= 10.3.
51573         * lib/localcharset.c (DARWIN7): New macro.
51574         (get_charset_aliases): Hardcode the result for Darwin7.
51575         * modules/localcharset (install-exec-local): Don't install
51576         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51577
51578 2009-01-25  Bruno Haible  <bruno@clisp.org>
51579
51580         Don't install charset.alias on mingw and Cygwin.
51581         * modules/localcharset (install-exec-local): Don't install
51582         charset.alias on mingw and Cygwin, if the file does not yet exist.
51583         The result for these platforms is hardcoded in localcharset.c.
51584
51585 2009-01-25  Bruno Haible  <bruno@clisp.org>
51586
51587         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51589         before requiring AC_USE_SYSTEM_EXTENSIONS.
51590
51591 2009-01-25  Jim Meyering  <meyering@redhat.com>
51592
51593         c-strtod: avoid warnings
51594         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51595         "assignment discards qualifiers from pointer target type" warnings.
51596
51597 2009-01-24  Bruno Haible  <bruno@clisp.org>
51598
51599         Add support for non-UTF-8 locales on MacOS X.
51600         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51601         canonical encodings. For Darwin 7 and newer, don't map traditional
51602         encodings to UTF-8.
51603         Reported by Vincent Lefevre <vincent@vinc17.org>
51604         at <http://savannah.gnu.org/bugs/?25235>.
51605
51606 2009-01-24  Bruno Haible  <bruno@clisp.org>
51607
51608         * doc/gnulib.texi (Obsolete modules): New section.
51609         Reported by Mike Frysinger <vapier@gentoo.org>.
51610
51611 2009-01-24  Bruno Haible  <bruno@clisp.org>
51612
51613         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51614         (%.dvi): New rule.
51615
51616 2009-01-24  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51619         Reported by Eric Blake.
51620
51621 2009-01-24  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51624         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51625         Reported by Gary V. Vaughan <gary@gnu.org>.
51626
51627 2009-01-24  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51630
51631 2009-01-23  Bruno Haible  <bruno@clisp.org>
51632
51633         Make c-strtod, c-strtold usable in libraries.
51634         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51635         (C_STRTOD): Call strdup instead of xstrdup.
51636         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51637         * modules/c-strtold (Depends-on): Likewise.
51638         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51639         * NEWS: Mention the change.
51640         Reported by Michael Gold <mgold@ncf.ca>.
51641
51642 2009-01-23  Jim Meyering  <meyering@redhat.com>
51643
51644         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51645         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51646         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51647
51648 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51649
51650         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51651         GNU CoreUtils.
51652         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51653         * modules/version-etc (Description): Update.
51654
51655 2009-01-22  Bruno Haible  <bruno@clisp.org>
51656
51657         Cache the C locale object.
51658         * lib/c-strtod.c (c_locale_cache): New variable.
51659         (c_locale): New function.
51660         (C_STRTOD): Use it, and don't call freelocale.
51661         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51662         Suggested by Paolo Bonzini.
51663
51664 2009-01-21  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51667         conditions other than overflow.
51668
51669 2009-01-21  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/c-strtod.c: Include errno.h.
51672         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51673         value from STRTOD_L and STRTOD.
51674
51675 2009-01-21  Bruno Haible  <bruno@clisp.org>
51676         and Jim Meyering  <meyering@redhat.com>
51677
51678         nanosleep: skip configure test (fail it) for apple universal builds
51679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51680         universal builds, assume that nanosleep does not work.
51681         * modules/nanosleep (Depends-on): Add multiarch.
51682
51683         mktime: skip configure test (fail it) for apple universal builds
51684         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51685         universal builds, assume that mktime does not work.
51686         * modules/mktime (Depends-on): Add multiarch.
51687
51688 2009-01-21  Eric Blake  <ebb9@byu.net>
51689
51690         multiarch: avoid expand-before-require warning
51691         * modules/multiarch (configure.ac): Require, rather than expand,
51692         gl_MULTIARCH.
51693         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51694         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51695         enforce that all clients require it.  Partial reversion of
51696         2008-12-29 patch.
51697
51698         error: avoid expand-before-require warning
51699         * modules/errno (configure.ac): Require, rather than expand,
51700         gl_HEADER_ERRNO_H.
51701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51702         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51703         enforce that all clients require it.
51704
51705         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51706         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51707         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51708         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51709
51710 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51711
51712         Revert:
51713         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51714
51715         regex: do not depend on obsolete modules.
51716         * modules/regex: Remove memcmp and memmove.
51717
51718 2009-01-20  Bruno Haible  <bruno@clisp.org>
51719
51720         Make the 'link' module link on Windows NT 4.
51721         * lib/link.c (_WIN32_WINNT): Don't define.
51722         (CreateHardLinkFuncType): New type.
51723         (CreateHardLinkFunc, initialized): New variables.
51724         (initialize): New function.
51725         (link): Invoke CreateHardLink indirectly through the function pointer.
51726
51727 2009-01-20  Bruno Haible  <bruno@clisp.org>
51728
51729         Fix compilation failure on mingw.
51730         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51731
51732 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51733
51734         * doc/c-strtod.texi: Mention a couple of restrictions.
51735
51736 2009-01-20  Jim Meyering  <meyering@redhat.com>
51737
51738         gettimeofday: move more declarations out of functions
51739         * lib/gettimeofday.c: Move extern declarations of tzset and
51740         gmtime out of containing functions.  Prompted by Bruno Haible.
51741
51742 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51743
51744         regex: do not depend on obsolete modules.
51745         * modules/regex: Remove memcmp and memmove.
51746
51747 2009-01-19  Bruno Haible  <bruno@clisp.org>
51748
51749         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51750         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51751         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51752         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51753         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51754
51755 2009-01-19  Bruno Haible  <bruno@clisp.org>
51756
51757         * tests/test-link.c: Include <errno.h>.
51758         (main): Exit with code 77 when a hard link cannot be created due to
51759         the file system.
51760         * tests/test-link.sh: Skip test when a hard link cannot be created due
51761         to the file system.
51762         Suggested by Eric Blake.
51763
51764 2009-01-19  Martin Lambers  <marlam@marlam.de>
51765
51766         * modules/link-tests: New file.
51767         * tests/test-link.sh: New file.
51768         * tests/test-link.c: New file.
51769
51770 2009-01-19  Eric Blake  <ebb9@byu.net>
51771
51772         doc: mention another function added in cygwin 1.7.0
51773         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51774         Another new function in cygwin 1.7.
51775
51776 2009-01-19  Bruno Haible  <bruno@clisp.org>
51777
51778         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51779         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51780         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51781         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51783         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51785         * m4/md4.m4 (gl_MD4): Likewise.
51786         * m4/md5.m4 (gl_MD5): Likewise.
51787         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51788         * m4/sha1.m4 (gl_SHA1): Likewise.
51789         * m4/sha256.m4 (gl_SHA256): Likewise.
51790         * m4/sha512.m4 (gl_SHA512): Likewise.
51791
51792 2009-01-19  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/uniname/uniname-tests (Depends-on): Add progname.
51795         * tests/uniname/test-uninames.c: Include progname.h.
51796         (main): Call set_program_name.
51797
51798         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51799         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51800         (main): Call set_program_name.
51801
51802         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51803         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51804         (main): Call set_program_name.
51805
51806         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51807         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51808         (main): Call set_program_name.
51809
51810         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51811         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51812         (main): Call set_program_name.
51813
51814         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51815         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51816         (main): Call set_program_name.
51817
51818         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51819         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51820         (main): Call set_program_name.
51821
51822         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51823         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51824         (main): Call set_program_name.
51825
51826         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51827         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51828         (main): Call set_program_name.
51829
51830 2009-01-19  Eric Blake  <ebb9@byu.net>
51831
51832         test-unistd: test previous patch
51833         * tests/test-unistd.c: Test *_FILENO macros.
51834
51835         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51836         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51837         Guarantee a definition.
51838         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51839         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51840         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51841         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51842         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51843         Likewise.
51844         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51845         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51846         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51847         Likewise.
51848         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51849         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51850         (STDERR_FILENO): Likewise.
51851         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51852         (STDERR_FILENO): Likewise.
51853         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51854         (STDERR_FILENO): Likewise.
51855         Reported by Elbert Pol.
51856
51857 2009-01-19  Eric Blake  <ebb9@byu.net>
51858
51859         doc: mention more functions added in cygwin 1.7.0
51860         * doc/posix-functions/abort.texi (abort): Update wording related
51861         to cygwin.
51862         * doc/posix-functions/daylight.texi (daylight): Likewise.
51863         * doc/posix-functions/optarg.texi (optarg): Likewise.
51864         * doc/posix-functions/optarg.texi (opterr): Likewise.
51865         * doc/posix-functions/optarg.texi (optind): Likewise.
51866         * doc/posix-functions/optarg.texi (optopt): Likewise.
51867         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51868         worked in 1.5.x, and was withdrawn in 1.7.
51869         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51870         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51871         cygwin versions.
51872         * doc/posix-functions/perror.texi (perror): Likewise.
51873         * doc/posix-functions/printf.texi (printf): Likewise.
51874         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51875         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51876         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51877         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51878         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51879         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51880         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51881         Likewise.
51882         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51883         Likewise.
51884         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51885         this function.
51886         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51887         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51888         Likewise.
51889         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51890         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51891         * doc/posix-functions/confstr.texi (confstr): Likewise.
51892         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51893         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51894         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51895         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51896         * doc/posix-functions/fputws.texi (fputws): Likewise.
51897         * doc/posix-functions/fwide.texi (fwide): Likewise.
51898         * doc/posix-functions/getwc.texi (getwc): Likewise.
51899         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51900         * doc/posix-functions/putwc.texi (putwc): Likewise.
51901         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51902         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51903         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51904         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51905         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51906         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51907         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51908         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51909         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51910         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51911         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51912
51913 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51914
51915         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51916         * lib/ioctl.c: Include <sys/ioctl.h>.
51917
51918 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51919
51920         * modules/getdate-tests (Depends-on): Add progname.
51921         * tests/test-getdate.c: Use progname module, to avoid link errors
51922         on non-glibc systems.
51923
51924 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51925
51926         * modules/filenamecat-tests (Depends-on): Add progname.
51927         * modules/fstrcmp-tests (Depends-on): Likewise.
51928
51929         * tests/test-filenamecat.c: Use progname module, to avoid link
51930         errors on non-glibc systems.
51931         * tests/test-fstrcmp.c: Likewise.
51932
51933 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51934
51935         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51936         * lib/gettimeofday.c: Move extern declaration out of function.
51937
51938 2009-01-18  Bruno Haible  <bruno@clisp.org>
51939
51940         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51941         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51942         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51943
51944 2009-01-18  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/strftime.c (MEMPCPY): Remove unused macro.
51947         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51948
51949 2009-01-18  Martin Lambers  <marlam@marlam.de>
51950
51951         New module 'link'.
51952         * lib/unistd.in.h (link): New declaration.
51953         * lib/link.c: New file.
51954         * m4/link.m4: New file.
51955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51956         HAVE_LINK.
51957         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51958         * modules/link: New file.
51959         * doc/posix-functions/link.texi: Mention the new module.
51960
51961 2009-01-18  Bruno Haible  <bruno@clisp.org>
51962
51963         * tests/test-avltree_list.c (main): Call set_program_name.
51964         * tests/test-avltree_oset.c (main): Likewise.
51965         * tests/test-obstack-printf.c: Include progname.h.
51966         (main): Call set_program_name.
51967         * tests/test-quotearg.c: Include progname.h.
51968         (main): Call set_program_name.
51969         * tests/test-xmemdup0.c: Include progname.h.
51970         (main): Call set_program_name.
51971
51972 2009-01-18  Bruno Haible  <bruno@clisp.org>
51973
51974         New module 'alphasort'.
51975         * lib/dirent.in.h (alphasort): New declaration.
51976         * lib/alphasort.c: New file, from glibc with modifications.
51977         * m4/alphasort.m4: New file.
51978         * modules/alphasort: New file.
51979         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51980         HAVE_ALPHASORT.
51981         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51982         HAVE_ALPHASORT.
51983         * doc/posix-functions/alphasort.texi: Mention the new module and the
51984         portability problems.
51985
51986 2009-01-18  Bruno Haible  <bruno@clisp.org>
51987
51988         New module 'scandir'.
51989         * lib/dirent.in.h (scandir): New declaration.
51990         * lib/scandir.c: New file, from glibc with modifications.
51991         * m4/scandir.m4: New file.
51992         * modules/scandir: New file.
51993         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51994         HAVE_SCANDIR.
51995         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51996         HAVE_SCANDIR.
51997         * doc/posix-functions/scandir.texi: Mention the new module and the
51998         portability problems.
51999
52000 2009-01-17  Bruno Haible  <bruno@clisp.org>
52001
52002         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52003         Update documentation.
52004         (func_remove_suffix): Escape all dots in the suffix. Update
52005         documentation.
52006         (func_filter_filelist): Update documentation.
52007         Reported by Ralf Wildenhues.
52008
52009 2009-01-17  Bruno Haible  <bruno@clisp.org>
52010
52011         * modules/dprintf-posix-tests: New file.
52012         * tests/test-dprintf-posix.sh: New file.
52013         * tests/test-dprintf-posix.c: New file.
52014
52015         New modules 'dprintf', 'dprintf-posix'.
52016         * lib/stdio.in.h (dprintf): New declaration.
52017         * lib/dprintf.c: New file.
52018         * m4/dprintf.m4: New file.
52019         * m4/dprintf-posix.m4: New file.
52020         * modules/dprintf: New file.
52021         * modules/dprintf-posix: New file.
52022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52023         HAVE_DPRINTF, REPLACE_DPRINTF.
52024         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52025         HAVE_DPRINTF, REPLACE_DPRINTF.
52026         * doc/posix-functions/dprintf.texi: Mention the new modules.
52027
52028 2009-01-17  Bruno Haible  <bruno@clisp.org>
52029
52030         * modules/vdprintf-posix-tests: New file.
52031         * tests/test-vdprintf-posix.sh: New file.
52032         * tests/test-vdprintf-posix.c: New file.
52033
52034         New modules 'vdprintf', 'vdprintf-posix'.
52035         * lib/stdio.in.h (vdprintf): New declaration.
52036         * lib/vdprintf.c: New file.
52037         * m4/vdprintf.m4: New file.
52038         * m4/vdprintf-posix.m4: New file.
52039         * modules/vdprintf: New file.
52040         * modules/vdprintf-posix: New file.
52041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52042         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52043         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52044         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52045         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52046
52047 2009-01-17  Bruno Haible  <bruno@clisp.org>
52048
52049         Fix replacement of fopen on mingw.
52050         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52051         mingw.
52052
52053 2009-01-17  Bruno Haible  <bruno@clisp.org>
52054
52055         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52056         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52057
52058 2009-01-17  Bruno Haible  <bruno@clisp.org>
52059
52060         Avoid test-fflush2.sh failure on mingw.
52061         * tests/test-fflush2.c: Include binary-io.h.
52062         (main): Put standard input into binary mode.
52063         * modules/fflush-tests (Depends-on): Add binary-io.
52064
52065 2009-01-17  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/wchar.in.h: In another particular situation, include only the
52068         system's <wchar.h> file.
52069         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52070         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52071         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52072
52073 2009-01-17  Bruno Haible  <bruno@clisp.org>
52074
52075         Support for stripping executables in --enable-relocatable.
52076         * build-aux/install-reloc: Expect one more argument, or an environment
52077         variable RELOC_STRIP_PROG. If set, strip the destination program and
52078         its wrapper.
52079         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52080         RELOC_STRIP_PROG.
52081         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52082         to set RELOCATABLE_STRIP.
52083         * NEWS: Mention the new Makefile requirement.
52084
52085 2009-01-17  Bruno Haible  <bruno@clisp.org>
52086
52087         * build-aux/install-reloc: Remove debugging information left over by
52088         C compiler on MacOS X.
52089
52090 2009-01-17  Bruno Haible  <bruno@clisp.org>
52091
52092         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52093         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52094         _NSGetExecutablePath.
52095
52096 2009-01-16  Jim Meyering  <meyering@redhat.com>
52097
52098         strerror: avoid warnings about discarding "const"
52099         * lib/strerror.c (rpl_strerror): Instead of returning a const
52100         string from each and every "case", use a variable, and add a single
52101         cast after the switch.
52102
52103 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52104
52105         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52106
52107 2009-01-16  Bruno Haible  <bruno@clisp.org>
52108
52109         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52110         array initializer syntax that also works in C++ mode.
52111         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52112
52113 2009-01-16  Jim Meyering  <meyering@redhat.com>
52114
52115         poll: suppress a warning
52116         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52117         to ignore "...unsigned expression < 0 is always false" warnings.
52118
52119 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52120
52121         poll: remove declarations of unused variables
52122         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52123         sockbuf and optlen.
52124
52125 2009-01-15  Bruno Haible  <bruno@clisp.org>
52126
52127         Make fflush-after-ungetc POSIX compliant on BSD systems.
52128         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52129         (clear_ungetc_buffer): Implement also for other systems.
52130         (rpl_fflush): On glibc systems, invoke
52131         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52132         clear_ungetc_buffer after fetching the stream's position, not before.
52133
52134 2009-01-15  Bruno Haible  <bruno@clisp.org>
52135
52136         Make fflush-after-ungetc POSIX compliant on glibc systems.
52137         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52138         after ungetc.
52139         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52140         (rpl_fflush): On glibc systems, simply call the system's fflush
52141         function after clearing the ungetc buffer.
52142         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52143         Instead, lseek only to the end of file, then use the system's fseeko
52144         for the rest. On glibc systems, reset the EOF indicator bit.
52145
52146 2009-01-15  Jim Meyering  <meyering@redhat.com>
52147
52148         openmp.m4: revert quote-adding change, for portability to older autoconf
52149         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52150         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52151         Simon Josefsson noticed the problem when using autoconf-2.61.
52152
52153 2009-01-15  Bruno Haible  <bruno@clisp.org>
52154
52155         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52156         * tests/test-fflush2.c (ASSERT): Always fail.
52157         (main): Add two tests for fflush() after ungetc(), taking into account
52158         the Austin Group's clarification.
52159         Suggested by Eric Blake.
52160
52161 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52162
52163         mktime.m4: remove K&R-style function prototypes
52164         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52165         for the Sun C++ compiler.
52166
52167 2009-01-14  Bruno Haible  <bruno@clisp.org>
52168
52169         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52170         while including <wchar.h>.
52171         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52172         the system's <wchar.h> file.
52173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52174
52175 2009-01-14  Bruno Haible  <bruno@clisp.org>
52176
52177         * m4/csharp.m4: Don't mention gettext on the serial number line.
52178         * m4/csharpexec.m4: Likewise.
52179         * m4/eaccess.m4: Likewise.
52180         * m4/javaexec.m4: Likewise.
52181         * m4/sig_atomic_t.m4: Likewise.
52182         * m4/tmpdir.m4: Likewise.
52183         * m4/intldir.m4: Bump gettext version.
52184         * m4/lib-ld.m4: Likewise.
52185
52186 2009-01-14  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/progname.c (set_program_name): Add more comments.
52189         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52190
52191 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52192
52193         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52194         were sys/stat.h does not define it.
52195
52196 2009-01-14  Jim Meyering  <meyering@redhat.com>
52197
52198         many *.m4 files: improve m4 quoting
52199         99% of this change was performed by running the following commands:
52200         git ls-files | grep '\.m4$' | xargs perl -pi \
52201           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52202           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52203           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52204           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52205         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52206         The remainder were to add Copyright dates, increment serial numbers,
52207         undo some changes in comments, exclude m4/intl.m4, and add quotes
52208         around the "1" in ",1" where the unusual spacing prohibited the
52209         above regexps from doing the job.  For more details, see
52210         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52211         * m4/acl.m4: Modified.
52212         * m4/afs.m4: Likewise.
52213         * m4/alloca.m4: Likewise.
52214         * m4/argp.m4: Likewise.
52215         * m4/argz.m4: Likewise.
52216         * m4/atexit.m4: Likewise.
52217         * m4/bison-i18n.m4: Likewise.
52218         * m4/bison.m4: Likewise.
52219         * m4/byteswap.m4: Likewise.
52220         * m4/c-stack.m4: Likewise.
52221         * m4/c-strtod.m4: Likewise.
52222         * m4/calloc.m4: Likewise.
52223         * m4/canonicalize-lgpl.m4: Likewise.
52224         * m4/chown.m4: Likewise.
52225         * m4/clock_time.m4: Likewise.
52226         * m4/codeset.m4: Likewise.
52227         * m4/copy-file.m4: Likewise.
52228         * m4/csharp.m4: Likewise.
52229         * m4/csharpcomp.m4: Likewise.
52230         * m4/csharpexec.m4: Likewise.
52231         * m4/d-ino.m4: Likewise.
52232         * m4/d-type.m4: Likewise.
52233         * m4/dirfd.m4: Likewise.
52234         * m4/double-slash-root.m4: Likewise.
52235         * m4/eaccess.m4: Likewise.
52236         * m4/eealloc.m4: Likewise.
52237         * m4/environ.m4: Likewise.
52238         * m4/errno_h.m4: Likewise.
52239         * m4/euidaccess.m4: Likewise.
52240         * m4/execute.m4: Likewise.
52241         * m4/fatal-signal.m4: Likewise.
52242         * m4/fchdir.m4: Likewise.
52243         * m4/fcntl_h.m4: Likewise.
52244         * m4/fileblocks.m4: Likewise.
52245         * m4/filenamecat.m4: Likewise.
52246         * m4/findprog.m4: Likewise.
52247         * m4/flexmember.m4: Likewise.
52248         * m4/fnmatch.m4: Likewise.
52249         * m4/fopen.m4: Likewise.
52250         * m4/fpending.m4: Likewise.
52251         * m4/fprintf-posix.m4: Likewise.
52252         * m4/free.m4: Likewise.
52253         * m4/frexp.m4: Likewise.
52254         * m4/frexpl.m4: Likewise.
52255         * m4/fsusage.m4: Likewise.
52256         * m4/ftruncate.m4: Likewise.
52257         * m4/gc-camellia.m4: Likewise.
52258         * m4/gc-random.m4: Likewise.
52259         * m4/gc.m4: Likewise.
52260         * m4/getaddrinfo.m4: Likewise.
52261         * m4/getcwd-abort-bug.m4: Likewise.
52262         * m4/getcwd-path-max.m4: Likewise.
52263         * m4/getdate.m4: Likewise.
52264         * m4/getdomainname.m4: Likewise.
52265         * m4/getgroups.m4: Likewise.
52266         * m4/gethostname.m4: Likewise.
52267         * m4/gethrxtime.m4: Likewise.
52268         * m4/getline.m4: Likewise.
52269         * m4/getloadavg.m4: Likewise.
52270         * m4/getndelim2.m4: Likewise.
52271         * m4/getpass.m4: Likewise.
52272         * m4/gettext.m4: Likewise.
52273         * m4/gettime.m4: Likewise.
52274         * m4/gettimeofday.m4: Likewise.
52275         * m4/gnulib-common.m4: Likewise.
52276         * m4/group-member.m4: Likewise.
52277         * m4/host-os.m4: Likewise.
52278         * m4/iconv.m4: Likewise.
52279         * m4/iconv_open.m4: Likewise.
52280         * m4/inet_ntop.m4: Likewise.
52281         * m4/inet_pton.m4: Likewise.
52282         * m4/inline.m4: Likewise.
52283         * m4/intldir.m4: Likewise.
52284         * m4/intlmacosx.m4: Likewise.
52285         * m4/intmax.m4: Likewise.
52286         * m4/intmax_t.m4: Likewise.
52287         * m4/inttypes.m4: Likewise.
52288         * m4/inttypes_h.m4: Likewise.
52289         * m4/inttypes-pri.m4: Likewise.
52290         * m4/isapipe.m4: Likewise.
52291         * m4/isnand.m4: Likewise.
52292         * m4/isnanf.m4: Likewise.
52293         * m4/isnanl.m4: Likewise.
52294         * m4/javacomp.m4: Likewise.
52295         * m4/javaexec.m4: Likewise.
52296         * m4/jm-winsz1.m4: Likewise.
52297         * m4/jm-winsz2.m4: Likewise.
52298         * m4/lchown.m4: Likewise.
52299         * m4/lcmessage.m4: Likewise.
52300         * m4/ldexpl.m4: Likewise.
52301         * m4/lib-ld.m4: Likewise.
52302         * m4/lib-link.m4: Likewise.
52303         * m4/libsigsegv.m4: Likewise.
52304         * m4/link-follow.m4: Likewise.
52305         * m4/localcharset.m4: Likewise.
52306         * m4/locale-fr.m4: Likewise.
52307         * m4/locale-ja.m4: Likewise.
52308         * m4/locale-tr.m4: Likewise.
52309         * m4/locale-zh.m4: Likewise.
52310         * m4/lock.m4: Likewise.
52311         * m4/longlong.m4: Likewise.
52312         * m4/ls-mntd-fs.m4: Likewise.
52313         * m4/lstat.m4: Likewise.
52314         * m4/malloc.m4: Likewise.
52315         * m4/mathl.m4: Likewise.
52316         * m4/mbrtowc.m4: Likewise.
52317         * m4/mbstate_t.m4: Likewise.
52318         * m4/mbswidth.m4: Likewise.
52319         * m4/memchr.m4: Likewise.
52320         * m4/memcmp.m4: Likewise.
52321         * m4/memcpy.m4: Likewise.
52322         * m4/memmem.m4: Likewise.
52323         * m4/memmove.m4: Likewise.
52324         * m4/mempcpy.m4: Likewise.
52325         * m4/memrchr.m4: Likewise.
52326         * m4/memset.m4: Likewise.
52327         * m4/minmax.m4: Likewise.
52328         * m4/mkdir-slash.m4: Likewise.
52329         * m4/mkdtemp.m4: Likewise.
52330         * m4/mktime.m4: Likewise.
52331         * m4/mmap-anon.m4: Likewise.
52332         * m4/mountlist.m4: Likewise.
52333         * m4/nanosleep.m4: Likewise.
52334         * m4/nls.m4: Likewise.
52335         * m4/nocrash.m4: Likewise.
52336         * m4/open.m4: Likewise.
52337         * m4/openat.m4: Likewise.
52338         * m4/openmp.m4: Likewise.
52339         * m4/pathmax.m4: Likewise.
52340         * m4/perl.m4: Likewise.
52341         * m4/physmem.m4: Likewise.
52342         * m4/pipe.m4: Likewise.
52343         * m4/po.m4: Likewise.
52344         * m4/poll.m4: Likewise.
52345         * m4/posixtm.m4: Likewise.
52346         * m4/posixver.m4: Likewise.
52347         * m4/printf-frexp.m4: Likewise.
52348         * m4/printf-frexpl.m4: Likewise.
52349         * m4/printf-posix.m4: Likewise.
52350         * m4/printf-posix-rpl.m4: Likewise.
52351         * m4/printf.m4: Likewise.
52352         * m4/progtest.m4: Likewise.
52353         * m4/putenv.m4: Likewise.
52354         * m4/readline.m4: Likewise.
52355         * m4/readlink.m4: Likewise.
52356         * m4/readutmp.m4: Likewise.
52357         * m4/realloc.m4: Likewise.
52358         * m4/regex.m4: Likewise.
52359         * m4/relocatable.m4: Likewise.
52360         * m4/relocatable-lib.m4: Likewise.
52361         * m4/rename-dest-slash.m4: Likewise.
52362         * m4/rename.m4: Likewise.
52363         * m4/rmdir-errno.m4: Likewise.
52364         * m4/rmdir.m4: Likewise.
52365         * m4/roundf.m4: Likewise.
52366         * m4/roundl.m4: Likewise.
52367         * m4/rpmatch.m4: Likewise.
52368         * m4/save-cwd.m4: Likewise.
52369         * m4/selinux-selinux-h.m4: Likewise.
52370         * m4/setenv.m4: Likewise.
52371         * m4/settime.m4: Likewise.
52372         * m4/sig2str.m4: Likewise.
52373         * m4/sig_atomic_t.m4: Likewise.
52374         * m4/signalblocking.m4: Likewise.
52375         * m4/signbit.m4: Likewise.
52376         * m4/sigpipe.m4: Likewise.
52377         * m4/sockets.m4: Likewise.
52378         * m4/sockpfaf.m4: Likewise.
52379         * m4/st_dm_mode.m4: Likewise.
52380         * m4/stat-time.m4: Likewise.
52381         * m4/stdbool.m4: Likewise.
52382         * m4/stdint.m4: Likewise.
52383         * m4/stdint_h.m4: Likewise.
52384         * m4/stpcpy.m4: Likewise.
52385         * m4/stpncpy.m4: Likewise.
52386         * m4/strcase.m4: Likewise.
52387         * m4/strchrnul.m4: Likewise.
52388         * m4/strcspn.m4: Likewise.
52389         * m4/strdup.m4: Likewise.
52390         * m4/strftime.m4: Likewise.
52391         * m4/strndup.m4: Likewise.
52392         * m4/strnlen.m4: Likewise.
52393         * m4/strpbrk.m4: Likewise.
52394         * m4/strptime.m4: Likewise.
52395         * m4/strsep.m4: Likewise.
52396         * m4/strtod.m4: Likewise.
52397         * m4/strtoimax.m4: Likewise.
52398         * m4/strtok_r.m4: Likewise.
52399         * m4/strtol.m4: Likewise.
52400         * m4/strtoll.m4: Likewise.
52401         * m4/strtoul.m4: Likewise.
52402         * m4/strtoull.m4: Likewise.
52403         * m4/strtoumax.m4: Likewise.
52404         * m4/strverscmp.m4: Likewise.
52405         * m4/threadlib.m4: Likewise.
52406         * m4/timegm.m4: Likewise.
52407         * m4/tm_gmtoff.m4: Likewise.
52408         * m4/tmpdir.m4: Likewise.
52409         * m4/tmpfile.m4: Likewise.
52410         * m4/tzset.m4: Likewise.
52411         * m4/uintmax_t.m4: Likewise.
52412         * m4/unlinkdir.m4: Likewise.
52413         * m4/unlocked-io.m4: Likewise.
52414         * m4/uptime.m4: Likewise.
52415         * m4/userspec.m4: Likewise.
52416         * m4/utimbuf.m4: Likewise.
52417         * m4/utime.m4: Likewise.
52418         * m4/utimes-null.m4: Likewise.
52419         * m4/utimes.m4: Likewise.
52420         * m4/vararrays.m4: Likewise.
52421         * m4/vasnprintf.m4: Likewise.
52422         * m4/vfprintf-posix.m4: Likewise.
52423         * m4/vprintf-posix.m4: Likewise.
52424         * m4/wait-process.m4: Likewise.
52425         * m4/wchar_t.m4: Likewise.
52426         * m4/wint_t.m4: Likewise.
52427         * m4/write-any-file.m4: Likewise.
52428         * m4/yield.m4: Likewise.
52429
52430 2009-01-13  Bruno Haible  <bruno@clisp.org>
52431
52432         Avoid test-copy-file.sh failures when ACL support insufficient.
52433         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52434         TESTS_ENVIRONMENT.
52435         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52436         Reported by Jim Meyering.
52437
52438 2009-01-13  Bruno Haible  <bruno@clisp.org>
52439
52440         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52441         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52442         * modules/unistdio/u8-printf-parse (Files): Likewise.
52443         * modules/unistdio/u32-printf-parse (Files): Likewise.
52444         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52445
52446 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52447
52448         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52449         and m4/inttypes_h.m4 too.
52450
52451 2009-01-12  Eric Blake  <ebb9@byu.net>
52452
52453         tests: IRIX 6.2 cc can't compile -0.0 into .data
52454         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52455         rather than at compile-time.
52456         * tests/test-floorl.c (minus_zero): Likewise.
52457         * tests/test-frexpl.c (minus_zero): Likewise.
52458         * tests/test-isnan.c (minus_zerol): Likewise.
52459         * tests/test-isnanl.h (minus_zero): Likewise.
52460         * tests/test-ldexpl.c (minus_zero): Likewise.
52461         * tests/test-roundl.c (minus_zero): Likewise.
52462         * tests/test-signbit.c (minus_zerol): Likewise.
52463         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52464         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52465         * tests/test-truncl.c (minus_zero): Likewise.
52466         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52467         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52468         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52469
52470 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52471
52472         regex: fix glibc bug 9697
52473         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52474         handling.
52475
52476 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52477
52478         regex: fix glibc bug 697
52479         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52480         being NULL also if there are no backreferences.
52481
52482 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52483
52484         regex: merge glibc changes
52485         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52486         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52487         re_string_skip_chars, re_string_reconstruct): Likewise.
52488         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52489
52490 2009-01-07  Jim Meyering  <meyering@redhat.com>
52491
52492         poll: filter through cppi
52493         * lib/poll.c: Indent cpp directives to reflect nesting.
52494
52495 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52496
52497         poll: don't return uninitialized
52498         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52499
52500 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52501
52502         avoid compile failure on AIX 6.1
52503         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52504         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52505
52506 2009-01-04  Jim Meyering  <meyering@redhat.com>
52507
52508         remove duplicate inclusion of <stdio.h>
52509         * tests/test-fprintf-posix.c: Likewise.
52510         * tests/test-printf-posix.c: Likewise.
52511         * tests/test-snprintf-posix.c: Likewise.
52512         * tests/test-sprintf-posix.c: Likewise.
52513         * tests/test-vasprintf-posix.c: Likewise.
52514         * tests/test-vfprintf-posix.c: Likewise.
52515         * tests/test-vprintf-posix.c: Likewise.
52516         * tests/test-vsnprintf-posix.c: Likewise.
52517         * tests/test-vsprintf-posix.c: Likewise.
52518
52519 2009-01-03  Jim Meyering  <meyering@redhat.com>
52520
52521         gnulib-tool: fix sed-based filtering
52522         * gnulib-tool (func_filter_filelist): Remove extra backslash
52523         in sed_fff_filter definition.
52524
52525 2009-01-02  Jim Meyering  <meyering@redhat.com>
52526
52527         strftime: avoid compilation failure on Solaris 2.6
52528         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52529         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52530         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52531         be available.  Reported by Tom G. Christensen.  Details in
52532         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52533
52534 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52535             Bruno Haible  <bruno@clisp.org>
52536
52537         Speed up gnulib-tool by doing more string processing through shell
52538         built-ins.
52539         * gnulib-tool (fast_func_append): New variable.
52540         (func_remove_prefix, func_remove_suffix): New functions.
52541         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52542         (func_filter_filelist): New function.
52543         (func_get_dependencies): Use func_remove_suffix instead of sed.
52544         (func_get_automake_snippet): Use func_filter_filelist instead of a
52545         subshell and sed invocation.
52546
52547 2009-01-01  Bruno Haible  <bruno@clisp.org>
52548
52549         Fix a security bug.
52550         * gnulib-tool (func_import, import, update): Don't allow the characters
52551         '"', '$', '`', '\' in macro arguments that become part of commands that
52552         are evaluated.
52553
52554 2009-01-01  Bruno Haible  <bruno@clisp.org>
52555
52556         * gnulib-tool (func_reset_sigpipe): Add more comments.
52557
52558 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52559
52560         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52561         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52562         already know the answer.
52563
52564 2009-01-01  Jim Meyering  <meyering@redhat.com>
52565
52566         * lib/version-etc.c (version_etc_va): Update copyright year.
52567
52568 2008-12-30  Bruno Haible  <bruno@clisp.org>
52569
52570         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52571         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52572         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52573
52574 2008-12-29  Eric Blake  <ebb9@byu.net>
52575
52576         multiarch: avoid autoconf AC_REQUIRE bug
52577         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52578         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52579         2.63 and older.
52580         Reported by Bruno Haible, and analyzed in
52581         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52582
52583 2008-12-29  Bruno Haible  <bruno@clisp.org>
52584
52585         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52586         files in subdirectories correctly.
52587         Reported by Ralf Wildenhues.
52588
52589 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52590
52591         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52592         rather than 'join FILE -', for Solaris join.
52593
52594 2008-12-29  Bruno Haible  <bruno@clisp.org>
52595
52596         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52597         quoting.
52598         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52599         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52600         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52601         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52602         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52603         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52604         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52605         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52606         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52607         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52608         * m4/nls.m4 (AM_NLS): Likewise.
52609         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52610         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52611         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52612         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52613         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52614         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52615         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52616         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52617         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52618         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52619         * m4/xsize.m4 (gl_XSIZE): Likewise.
52620         Suggested by Jim Meyering.
52621
52622 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52623
52624         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52625         * lib/parse-duration.c: use a switch instead of cascading if's.
52626
52627 2008-12-29  Eric Blake  <ebb9@byu.net>
52628
52629         wchar.h: supply WEOF on Irix 5.3
52630         * lib/wchar.in.h (wint_t): Also supply WEOF.
52631         * lib/wctype.in.h (wint_t): Likewise.
52632         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52633         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52634         Reported by Tom G. Christensen.
52635
52636 2008-12-26  Bruno Haible  <bruno@clisp.org>
52637
52638         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52639         i486, i586, i686.
52640
52641 2008-12-26  Bruno Haible  <bruno@clisp.org>
52642
52643         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52644
52645 2008-12-26  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52648         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52649         not __STDC_CONSTANT_MACROS.
52650         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52651
52652 2008-12-25  Bruno Haible  <bruno@clisp.org>
52653
52654         Add support for universal builds to vasnprintf.
52655         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52656         universal builds, guess no.
52657         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52658         * modules/vasprintf-posix (Depends-on): Likewise.
52659         * modules/fprintf-posix (Depends-on): Likewise.
52660         * modules/vfprintf-posix (Depends-on): Likewise.
52661         * modules/snprintf-posix (Depends-on): Likewise.
52662         * modules/vsnprintf-posix (Depends-on): Likewise.
52663         * modules/sprintf-posix (Depends-on): Likewise.
52664         * modules/vsprintf-posix (Depends-on): Likewise.
52665         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52666         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52667         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52668         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52669         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52670         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52671         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52672
52673         Add support for universal builds to <inttypes.h>.
52674         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52675         _SCNu64_PREFIX): In Apple
52676         universal builds, define directly, using _LP64.
52677         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52678         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52679         * modules/inttypes (Depends-on): Add multiarch.
52680         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52681
52682         Add support for universal builds to <stdint.h>.
52683         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52684         universal builds, define directly, using _LP64.
52685         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52686         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52687         and size_t.
52688         * modules/stdint (Depends-on): Add multiarch.
52689         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52690
52691         New module 'multiarch'.
52692         * modules/multiarch: New file.
52693         * m4/multiarch.m4: New file.
52694
52695 2008-12-25  Bruno Haible  <bruno@clisp.org>
52696
52697         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52698
52699 2008-12-25  Bruno Haible  <bruno@clisp.org>
52700
52701         * modules/btowc (License): Relicense under LGPLv2+.
52702         * modules/mbsinit (License): Likewise.
52703         * modules/mbrtowc (License): Likewise.
52704         * modules/wcrtomb (License): Likewise.
52705         * modules/streq (License): Likewise.
52706         Reported by David Lutterkort <lutter@redhat.com>.
52707
52708 2008-12-23  Bruno Haible  <bruno@clisp.org>
52709
52710         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52711
52712 2008-12-23  Bruno Haible  <bruno@clisp.org>
52713
52714         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52716         GETADDRINFO_LIB, not in LIBS.
52717         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52718         * modules/canon-host (Link): Likewise.
52719         * NEWS: Mention the change.
52720         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52721         GETADDRINFO_LIB.
52722
52723 2008-12-22  Bruno Haible  <bruno@clisp.org>
52724
52725         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52726         * doc/posix-functions/iswalpha_l.texi: Likewise.
52727         * doc/posix-functions/iswblank_l.texi: Likewise.
52728         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52729         * doc/posix-functions/iswctype_l.texi: Likewise.
52730         * doc/posix-functions/iswdigit_l.texi: Likewise.
52731         * doc/posix-functions/iswgraph_l.texi: Likewise.
52732         * doc/posix-functions/iswlower_l.texi: Likewise.
52733         * doc/posix-functions/iswprint_l.texi: Likewise.
52734         * doc/posix-functions/iswpunct_l.texi: Likewise.
52735         * doc/posix-functions/iswspace_l.texi: Likewise.
52736         * doc/posix-functions/iswupper_l.texi: Likewise.
52737         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52738         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52739         * doc/posix-functions/open_wmemstream.texi: Likewise.
52740         * doc/posix-functions/swscanf.texi: Likewise.
52741         * doc/posix-functions/towctrans_l.texi: Likewise.
52742         * doc/posix-functions/towlower.texi: Likewise.
52743         * doc/posix-functions/towlower_l.texi: Likewise.
52744         * doc/posix-functions/towupper.texi: Likewise.
52745         * doc/posix-functions/towupper_l.texi: Likewise.
52746         * doc/posix-functions/vfwprintf.texi: Likewise.
52747         * doc/posix-functions/vfwscanf.texi: Likewise.
52748         * doc/posix-functions/vswscanf.texi: Likewise.
52749         * doc/posix-functions/vwprintf.texi: Likewise.
52750         * doc/posix-functions/vwscanf.texi: Likewise.
52751         * doc/posix-functions/wcpcpy.texi: Likewise.
52752         * doc/posix-functions/wcpncpy.texi: Likewise.
52753         * doc/posix-functions/wcscasecmp.texi: Likewise.
52754         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52755         * doc/posix-functions/wcscoll_l.texi: Likewise.
52756         * doc/posix-functions/wcsdup.texi: Likewise.
52757         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52758         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52759         * doc/posix-functions/wcsnlen.texi: Likewise.
52760         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52761         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52762         * doc/posix-functions/wctrans_l.texi: Likewise.
52763         * doc/posix-functions/wctype_l.texi: Likewise.
52764         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52765         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52766         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52767         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52768         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52769         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52770         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52771         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52772         * doc/glibc-functions/wcschrnul.texi: Likewise.
52773         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52774         * doc/glibc-functions/wcstod_l.texi: Likewise.
52775         * doc/glibc-functions/wcstof_l.texi: Likewise.
52776         * doc/glibc-functions/wcstol_l.texi: Likewise.
52777         * doc/glibc-functions/wcstold_l.texi: Likewise.
52778         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52779         * doc/glibc-functions/wcstoq.texi: Likewise.
52780         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52781         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52782         * doc/glibc-functions/wcstouq.texi: Likewise.
52783         * doc/glibc-functions/wmempcpy.texi: Likewise.
52784
52785 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52786             Eric Blake  <ebb9@byu.net>
52787             Paolo Bonzini  <bonzini@gnu.org>
52788             Bruno Haible  <bruno@clisp.org>
52789
52790         Make c-stack work on Haiku.
52791         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52792         (c_stack_action): Use SA_ONSTACK flag.
52793
52794 2008-12-22  Bruno Haible  <bruno@clisp.org>
52795
52796         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52797
52798 2008-12-22  Bruno Haible  <bruno@clisp.org>
52799
52800         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52801         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52802         being overridden.
52803         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52804         New macros.
52805         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52807         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52808         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52809
52810 2008-12-22  Bruno Haible  <bruno@clisp.org>
52811
52812         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52813         from test code.
52814
52815 2008-12-22  Eric Blake  <ebb9@byu.net>
52816
52817         Avoid gcc warnings on cygwin.
52818         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52819         Avoid unused variable.
52820         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52821         Likewise.
52822
52823 2008-12-22  Bruno Haible  <bruno@clisp.org>
52824
52825         Remove HAVE_MBRTOWC conditionals.
52826         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52827         (mbscasecmp): Assume mbrtowc function.
52828         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52829         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52830         * lib/mbschr.c: Include mbuiter.h unconditionally.
52831         (mbschr): Assume mbrtowc function.
52832         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52833         (mbscspn): Assume mbrtowc function.
52834         * lib/mbslen.c: Include mbuiter.h unconditionally.
52835         (mbslen): Assume mbrtowc function.
52836         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52837         (mbsncasecmp): Assume mbrtowc function.
52838         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52839         (mbsnlen): Assume mbrtowc function.
52840         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52841         (mbspbrk): Assume mbrtowc function.
52842         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52843         (mbspcasecmp): Assume mbrtowc function.
52844         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52845         (mbsrchr): Assume mbrtowc function.
52846         * lib/mbssep.c: Include mbuiter.h unconditionally.
52847         (mbssep): Assume mbrtowc function.
52848         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52849         (mbsspn): Assume mbrtowc function.
52850         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52851         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52852         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52853         (mbstok_r): Assume mbrtowc function.
52854         * lib/propername.c: Include mbuiter.h unconditionally.
52855         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52856         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52857         (trim2): Assume mbrtowc function.
52858         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52859         (mbsnwidth): Assume mbrtowc function.
52860         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52861         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52862         fallback definitions.
52863         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52864
52865 2008-12-22  Bruno Haible  <bruno@clisp.org>
52866
52867         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52868
52869 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52870
52871         * modules/regex: Request emulations for the mb*/wc* functions we need.
52872         * m4/regex.m4: Don't look for those functions here.
52873         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52874
52875 2008-12-22  Bruno Haible  <bruno@clisp.org>
52876
52877         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52878
52879 2008-12-21  Bruno Haible  <bruno@clisp.org>
52880
52881         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52882         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52883         (Include): Remove conditionalization.
52884         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52885         (Include): Remove conditionalization.
52886         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52887         (Include): Remove conditionalization.
52888         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52889         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52890         * NEWS: Mention the change.
52891         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52892         via Sergey Poznyakoff <gray@gnu.org.ua>.
52893
52894 2008-12-21  Bruno Haible  <bruno@clisp.org>
52895
52896         * MODULES.html.sh (Extended multibyte and wide character utilities
52897         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52898         wcrtomb, wcsrtombs.
52899         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52900         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52901         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52902         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52903
52904 2008-12-21  Bruno Haible  <bruno@clisp.org>
52905
52906         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52907
52908 2008-12-21  Bruno Haible  <bruno@clisp.org>
52909
52910         * modules/wcsnrtombs-tests: New file.
52911         * tests/test-wcsnrtombs1.sh: New file.
52912         * tests/test-wcsnrtombs2.sh: New file.
52913         * tests/test-wcsnrtombs3.sh: New file.
52914         * tests/test-wcsnrtombs4.sh: New file.
52915         * tests/test-wcsnrtombs.c: New file.
52916
52917         New module 'wcsnrtombs'.
52918         * lib/wchar.in.h (wcsnrtombs): New declaration.
52919         * lib/wcsnrtombs.c: New file.
52920         * lib/wcsrtombs-state.c: New file.
52921         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52922         (internal_state): Remove variable.
52923         * m4/wcsnrtombs.m4: New file.
52924         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52925         compilation units.
52926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52927         HAVE_WCSNRTOMBS.
52928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52929         HAVE_WCSNRTOMBS.
52930         * modules/wcsnrtombs: New file.
52931         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52932         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52933
52934 2008-12-21  Bruno Haible  <bruno@clisp.org>
52935
52936         * modules/wcsrtombs-tests: New file.
52937         * tests/test-wcsrtombs1.sh: New file.
52938         * tests/test-wcsrtombs2.sh: New file.
52939         * tests/test-wcsrtombs3.sh: New file.
52940         * tests/test-wcsrtombs4.sh: New file.
52941         * tests/test-wcsrtombs.c: New file.
52942
52943         New module 'wcsrtombs'.
52944         * lib/wchar.in.h (wcsrtombs): New declaration.
52945         * lib/wcsrtombs.c: New file.
52946         * m4/wcsrtombs.m4: New file.
52947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52948         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52950         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52951         * modules/wcsrtombs: New file.
52952         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52953         bugs.
52954
52955 2008-12-21  Bruno Haible  <bruno@clisp.org>
52956
52957         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52958         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52959         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52960         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52961         if not correct.
52962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52963         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52964         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52965         m4/locale-zh.m4, m4/codeset.m4.
52966         * doc/posix-functions/wcrtomb.texi: Document the bug.
52967
52968 2008-12-21  Bruno Haible  <bruno@clisp.org>
52969
52970         Work around a btowc() bug on IRIX 6.5.
52971         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52972         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52973         REPLACE_WTOBC if not.
52974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52975         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52976         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52977
52978 2008-12-21  Bruno Haible  <bruno@clisp.org>
52979
52980         * modules/wcrtomb-tests: New file.
52981         * tests/test-wcrtomb.sh: New file.
52982         * tests/test-wcrtomb.c: New file.
52983
52984         New module 'wcrtomb'.
52985         * lib/wchar.in.h (wcrtomb): New declaration.
52986         * lib/wcrtomb.c: New file.
52987         * m4/wcrtomb.m4: New file.
52988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52989         HAVE_WCRTOMB.
52990         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52991         HAVE_WCRTOMB.
52992         * modules/wcrtomb: New file.
52993         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52994
52995 2008-12-21  Bruno Haible  <bruno@clisp.org>
52996
52997         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52998         * modules/mbsrtowcs (Files): Likewise.
52999         * modules/wctob (Files): Likewise.
53000         * modules/c-strcase-tests (Files): Likewise.
53001         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53002         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53003         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53004         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53005         * modules/vasnprintf-posix-tests (Files): Likewise.
53006
53007 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53008
53009         gitlog-to-changelog: pass all command-line arguments to git-log
53010         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53011         it is sometimes convenient to filter the commits in various ways.
53012         gitlog-to-changelog only allows --since to specify a start date,
53013         but git-log itself supports many other filtering mechanisms.
53014         At the moment, I want to filter by branch name.  Rather than
53015         adding a --branch option to gitlog-to-changelog, it seems more
53016         flexible to simply pass all options directly to git-log and let
53017         git do the work.  Notice that this effectively makes --since a
53018         redundant option for gitlog-to-changelog, but removing it would
53019         require current usage to change since calls would then require
53020         an additional '--'.
53021
53022 2008-12-21  Bruno Haible  <bruno@clisp.org>
53023
53024         * modules/mbsnrtowcs-tests: New file.
53025         * tests/test-mbsnrtowcs1.sh: New file.
53026         * tests/test-mbsnrtowcs2.sh: New file.
53027         * tests/test-mbsnrtowcs3.sh: New file.
53028         * tests/test-mbsnrtowcs4.sh: New file.
53029         * tests/test-mbsnrtowcs.c: New file.
53030
53031         New module 'mbsnrtowcs'.
53032         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53033         * lib/mbsnrtowcs.c: New file.
53034         * lib/mbsrtowcs-state.c: New file.
53035         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53036         (internal_state): Remove variable.
53037         * m4/mbsnrtowcs.m4: New file.
53038         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53039         compilation units.
53040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53041         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53042         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53043         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53044         * modules/mbsnrtowcs: New file.
53045         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53046         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53047         portability problem.
53048
53049 2008-12-21  Bruno Haible  <bruno@clisp.org>
53050
53051         Work around mbsrtowcs bug.
53052         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53053         (gl_FUNC_MBSRTOWCS): Invoke it.
53054         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53055         m4/locale-zh.m4.
53056         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53057
53058 2008-12-21  Bruno Haible  <bruno@clisp.org>
53059
53060         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53061
53062 2008-12-21  Bruno Haible  <bruno@clisp.org>
53063
53064         Update doc for AIX.
53065         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53066         16-bit wchar_t type.
53067         * doc/posix-functions/btowc.texi: Likewise.
53068         * doc/posix-functions/fgetwc.texi: Likewise.
53069         * doc/posix-functions/fgetws.texi: Likewise.
53070         * doc/posix-functions/fputwc.texi: Likewise.
53071         * doc/posix-functions/fputws.texi: Likewise.
53072         * doc/posix-functions/fwide.texi: Likewise.
53073         * doc/posix-functions/fwprintf.texi: Likewise.
53074         * doc/posix-functions/fwscanf.texi: Likewise.
53075         * doc/posix-functions/getwchar.texi: Likewise.
53076         * doc/posix-functions/getwc.texi: Likewise.
53077         * doc/posix-functions/iswalnum.texi: Likewise.
53078         * doc/posix-functions/iswalpha.texi: Likewise.
53079         * doc/posix-functions/iswblank.texi: Likewise.
53080         * doc/posix-functions/iswcntrl.texi: Likewise.
53081         * doc/posix-functions/iswctype.texi: Likewise.
53082         * doc/posix-functions/iswdigit.texi: Likewise.
53083         * doc/posix-functions/iswgraph.texi: Likewise.
53084         * doc/posix-functions/iswlower.texi: Likewise.
53085         * doc/posix-functions/iswprint.texi: Likewise.
53086         * doc/posix-functions/iswpunct.texi: Likewise.
53087         * doc/posix-functions/iswspace.texi: Likewise.
53088         * doc/posix-functions/iswupper.texi: Likewise.
53089         * doc/posix-functions/iswxdigit.texi: Likewise.
53090         * doc/posix-functions/mbrtowc.texi: Likewise.
53091         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53092         * doc/posix-functions/mbstowcs.texi: Likewise.
53093         * doc/posix-functions/mbtowc.texi: Likewise.
53094         * doc/posix-functions/putwchar.texi: Likewise.
53095         * doc/posix-functions/putwc.texi: Likewise.
53096         * doc/posix-functions/swprintf.texi: Likewise.
53097         * doc/posix-functions/tolower.texi: Likewise.
53098         * doc/posix-functions/toupper.texi: Likewise.
53099         * doc/posix-functions/towctrans.texi: Likewise.
53100         * doc/posix-functions/ungetwc.texi: Likewise.
53101         * doc/posix-functions/vswprintf.texi: Likewise.
53102         * doc/posix-functions/wcrtomb.texi: Likewise.
53103         * doc/posix-functions/wcscat.texi: Likewise.
53104         * doc/posix-functions/wcschr.texi: Likewise.
53105         * doc/posix-functions/wcscmp.texi: Likewise.
53106         * doc/posix-functions/wcscoll.texi: Likewise.
53107         * doc/posix-functions/wcscpy.texi: Likewise.
53108         * doc/posix-functions/wcscspn.texi: Likewise.
53109         * doc/posix-functions/wcsftime.texi: Likewise.
53110         * doc/posix-functions/wcslen.texi: Likewise.
53111         * doc/posix-functions/wcsncat.texi: Likewise.
53112         * doc/posix-functions/wcsncmp.texi: Likewise.
53113         * doc/posix-functions/wcsncpy.texi: Likewise.
53114         * doc/posix-functions/wcspbrk.texi: Likewise.
53115         * doc/posix-functions/wcsrchr.texi: Likewise.
53116         * doc/posix-functions/wcsrtombs.texi: Likewise.
53117         * doc/posix-functions/wcsspn.texi: Likewise.
53118         * doc/posix-functions/wcsstr.texi: Likewise.
53119         * doc/posix-functions/wcstod.texi: Likewise.
53120         * doc/posix-functions/wcstof.texi: Likewise.
53121         * doc/posix-functions/wcstoimax.texi: Likewise.
53122         * doc/posix-functions/wcstok.texi: Likewise.
53123         * doc/posix-functions/wcstold.texi: Likewise.
53124         * doc/posix-functions/wcstoll.texi: Likewise.
53125         * doc/posix-functions/wcstol.texi: Likewise.
53126         * doc/posix-functions/wcstombs.texi: Likewise.
53127         * doc/posix-functions/wcstoull.texi: Likewise.
53128         * doc/posix-functions/wcstoul.texi: Likewise.
53129         * doc/posix-functions/wcstoumax.texi: Likewise.
53130         * doc/posix-functions/wcswidth.texi: Likewise.
53131         * doc/posix-functions/wcsxfrm.texi: Likewise.
53132         * doc/posix-functions/wctob.texi: Likewise.
53133         * doc/posix-functions/wctomb.texi: Likewise.
53134         * doc/posix-functions/wctrans.texi: Likewise.
53135         * doc/posix-functions/wctype.texi: Likewise.
53136         * doc/posix-functions/wcwidth.texi: Likewise.
53137         * doc/posix-functions/wmemchr.texi: Likewise.
53138         * doc/posix-functions/wmemcmp.texi: Likewise.
53139         * doc/posix-functions/wmemcpy.texi: Likewise.
53140         * doc/posix-functions/wmemmove.texi: Likewise.
53141         * doc/posix-functions/wmemset.texi: Likewise.
53142         * doc/posix-functions/wprintf.texi: Likewise.
53143         * doc/posix-functions/wscanf.texi: Likewise.
53144
53145 2008-12-21  Bruno Haible  <bruno@clisp.org>
53146
53147         Update doc for HP-UX 11.11.
53148         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53149         in HP-UX version 11.00, not in all versions of HP-UX 11.
53150         * doc/posix-functions/fwide.texi: Likewise.
53151         * doc/posix-functions/fwprintf.texi: Likewise.
53152         * doc/posix-functions/fwscanf.texi: Likewise.
53153         * doc/posix-functions/inet_ntop.texi: Likewise.
53154         * doc/posix-functions/inet_pton.texi: Likewise.
53155         * doc/posix-functions/mbrlen.texi: Likewise.
53156         * doc/posix-functions/mbrtowc.texi: Likewise.
53157         * doc/posix-functions/mbsinit.texi: Likewise.
53158         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53159         * doc/posix-functions/swprintf.texi: Likewise.
53160         * doc/posix-functions/swscanf.texi: Likewise.
53161         * doc/posix-functions/towctrans.texi: Likewise.
53162         * doc/posix-functions/vfwprintf.texi: Likewise.
53163         * doc/posix-functions/vswprintf.texi: Likewise.
53164         * doc/posix-functions/vwprintf.texi: Likewise.
53165         * doc/posix-functions/wcrtomb.texi: Likewise.
53166         * doc/posix-functions/wcsrtombs.texi: Likewise.
53167         * doc/posix-functions/wcsstr.texi: Likewise.
53168         * doc/posix-functions/wctob.texi: Likewise.
53169         * doc/posix-functions/wctrans.texi: Likewise.
53170         * doc/posix-functions/wmemchr.texi: Likewise.
53171         * doc/posix-functions/wmemcmp.texi: Likewise.
53172         * doc/posix-functions/wmemcpy.texi: Likewise.
53173         * doc/posix-functions/wmemmove.texi: Likewise.
53174         * doc/posix-functions/wmemset.texi: Likewise.
53175         * doc/posix-functions/wprintf.texi: Likewise.
53176         * doc/posix-functions/wscanf.texi: Likewise.
53177
53178 2008-12-21  Bruno Haible  <bruno@clisp.org>
53179
53180         Work around a portability problem.
53181         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53182         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53183
53184 2008-12-20  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53187         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53188         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53189         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53190         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53191
53192         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53193         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53194         set.
53195         (GNULIB_defined_mbstate_t): New macro.
53196         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53197         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53198         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53199         reuses the system's mbrtowc function but works around the bugs.
53200         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53201         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53202         macros.
53203         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53204         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53205         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53206         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53207         REPLACE_MBSINIT if mbsinit needs to be overridden.
53208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53209         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53210         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53211         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53212         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53213         m4/locale-zh.m4.
53214         (Depends): Add mbsinit.
53215         * modules/mbsinit (Depends): Add mbrtowc.
53216         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53217
53218 2008-12-20  Bruno Haible  <bruno@clisp.org>
53219
53220         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53221         so that there are no conversion errors on AIX.
53222         * tests/test-mbsrtowcs.c (main): LIkewise.
53223
53224 2008-12-20  Bruno Haible  <bruno@clisp.org>
53225
53226         Work around wctob bug on Solaris <= 9.
53227         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53228         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53230         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53231         * modules/wctob (Files): Add m4/locale-fr.m4.
53232         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53233
53234 2008-12-20  Bruno Haible  <bruno@clisp.org>
53235
53236         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53237         /dev/null.
53238         * tests/test-select-in.sh: Likewise.
53239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53240
53241 2008-12-20  Bruno Haible  <bruno@clisp.org>
53242
53243         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53244         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53245         Cygwin 1.5.x.
53246
53247 2008-12-20  Bruno Haible  <bruno@clisp.org>
53248
53249         Ensure mbstate_t is defined on HP-UX 11.11.
53250         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53251         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53252         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53253         AC_USE_SYSTEM_EXTENSIONS.
53254         * modules/fnmatch (Depends-on): Add extensions.
53255         * modules/mbrlen (Depends-on): Likewise.
53256         * modules/mbrtowc (Depends-on): Likewise.
53257         * modules/mbsinit (Depends-on): Likewise.
53258         * modules/mbsrtowcs (Depends-on): Likewise.
53259         * modules/mbswidth (Depends-on): Likewise.
53260         * modules/quotearg (Depends-on): Likewise.
53261         * modules/strftime (Depends-on): Likewise.
53262
53263 2008-12-20  Bruno Haible  <bruno@clisp.org>
53264
53265         Ensure wctob is declared on IRIX 6.5.
53266         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53267         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53268         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53270         of HAVE_WCTOB.
53271         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53272         HAVE_WCTOB.
53273         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53274
53275 2008-12-19  Bruno Haible  <bruno@clisp.org>
53276
53277         * modules/mbsrtowcs-tests: New file.
53278         * tests/test-mbsrtowcs1.sh: New file.
53279         * tests/test-mbsrtowcs2.sh: New file.
53280         * tests/test-mbsrtowcs3.sh: New file.
53281         * tests/test-mbsrtowcs4.sh: New file.
53282         * tests/test-mbsrtowcs.c: New file.
53283
53284         New module 'mbsrtowcs'.
53285         * lib/wchar.in.h (mbsrtowcs): New declaration.
53286         * lib/mbsrtowcs.c: New file.
53287         * m4/mbsrtowcs.m4: New file.
53288         * modules/mbsrtowcs: New file.
53289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53290         HAVE_MBSRTOWCS.
53291         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53292         HAVE_MBSRTOWCS.
53293         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53294
53295 2008-12-19  Bruno Haible  <bruno@clisp.org>
53296
53297         New module 'mbrlen'.
53298         * lib/wchar.in.h (mbrlen): New declaration.
53299         * lib/mbrlen.c: New file.
53300         * m4/mbrlen.m4: New file.
53301         * modules/mbrlen: New file.
53302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53303         HAVE_MBRLEN.
53304         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53305         HAVE_MBRLEN.
53306         * doc/posix-functions/mbrlen.texi: Document the new module.
53307
53308 2008-12-19  Bruno Haible  <bruno@clisp.org>
53309
53310         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53311         * modules/mbrtowc (Depends-on): Add verify.
53312         Suggested by Paul Eggert.
53313
53314 2008-12-18  Bruno Haible  <bruno@clisp.org>
53315
53316         * modules/mbsinit-tests: New file.
53317         * tests/test-mbsinit.sh: New file.
53318         * tests/test-mbsinit.c: New file.
53319
53320 2008-12-18  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/mbrtowc-tests: New file.
53323         * tests/test-mbrtowc1.sh: New file.
53324         * tests/test-mbrtowc2.sh: New file.
53325         * tests/test-mbrtowc3.sh: New file.
53326         * tests/test-mbrtowc4.sh: New file.
53327         * tests/test-mbrtowc.c: New file.
53328
53329         New module 'mbrtowc'.
53330         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53331         mbsinit and mbrtowc.
53332         (mbrtowc): New declaration.
53333         * lib/mbrtowc.c: New file.
53334         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53335         * modules/mbrtowc: New file.
53336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53337         HAVE_MBRTOWC.
53338         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53339         HAVE_MBRTOWC.
53340         * doc/posix-functions/mbrtowc.texi: Document the new module.
53341
53342 2008-12-18  Bruno Haible  <bruno@clisp.org>
53343
53344         New module 'wctob'.
53345         * lib/wchar.in.h (wctob): New declaration.
53346         * lib/wctob.c: New file.
53347         * m4/wctob.m4: New file.
53348         * modules/wctob: New file.
53349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53350         HAVE_WCTOB.
53351         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53352         * doc/posix-functions/wctob.texi: Document the new module.
53353
53354 2008-12-18  Bruno Haible  <bruno@clisp.org>
53355
53356         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53357         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53358
53359 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53360
53361         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53362         G. Christensen" <tgc@jupiterrise.com>.
53363
53364         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53365         G. Christensen" <tgc@jupiterrise.com>.
53366
53367         * lib/flock.c: Need to include string.h.  Reported by "Tom
53368         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53369         <ebb9@byu.net>.
53370
53371 2008-12-18  Bruno Haible  <bruno@clisp.org>
53372
53373         * m4/locale-ja.m4: New file, from GNU gettext.
53374
53375 2008-12-17  Bruno Haible  <bruno@clisp.org>
53376
53377         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53378         Suggested by Eric Blake.
53379
53380 2008-12-17  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53383
53384 2008-12-17  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53387         * modules/mbsinit (Depends-on): Add verify.
53388         Suggested by Paul Eggert.
53389
53390 2008-12-17  Bruno Haible  <bruno@clisp.org>
53391
53392         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53393         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53394         gl_FUNC_MBRTOWC.
53395         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53396         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53397         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53398         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53399         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53400         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53401         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53402         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53403         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53404         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53405         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53406         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53407         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53408         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53409         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53410         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53411         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53412         * modules/trim (configure.ac): Likewise.
53413
53414 2008-12-17  Bruno Haible  <bruno@clisp.org>
53415
53416         * modules/btowc-tests: New file.
53417         * tests/test-btowc1.sh: New file.
53418         * tests/test-btowc2.sh: New file.
53419         * tests/test-btowc.c: New file.
53420
53421         New module 'btowc'.
53422         * lib/wchar.in.h (btowc): New declaration.
53423         * lib/btowc.c: New file.
53424         * m4/btowc.m4: New file.
53425         * modules/btowc: New file.
53426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53427         HAVE_BTOWC.
53428         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53429         * doc/posix-functions/btowc.texi: Document the new module.
53430
53431 2008-12-17  Bruno Haible  <bruno@clisp.org>
53432
53433         New module 'mbsinit'.
53434         * lib/wchar.in.h (mbsinit): New declaration.
53435         * lib/mbsinit.c: New file.
53436         * m4/mbsinit.m4: New file.
53437         * modules/mbsinit: New file.
53438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53439         HAVE_MBSINIT.
53440         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53441         HAVE_MBSINIT.
53442         * doc/posix-functions/mbsinit.texi: Document the new module.
53443
53444 2008-12-16  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/unistd.in.h: Add comment.
53447         * tests/test-environ.c: Don't include <stdlib.h>.
53448
53449 2008-12-16  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/parse-duration.h (parse_duration): Document return value
53452         convention.
53453         * lib/parse-duration.c: Include specification header first. Add
53454         comments.
53455         (_): Remove macro.
53456         (parse_year_month_day, parse_hour_minute_second): Move side effects
53457         outside of strchr call.
53458         (parse_non_iso8601): Move side effects outside of isspace call.
53459         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53460         call.
53461
53462 2008-12-16  Bruno Haible  <bruno@clisp.org>
53463
53464         * tests/test-parse-duration.sh: Produce no output when the test
53465         succeeds.
53466
53467 2008-12-16  Bruno Haible  <bruno@clisp.org>
53468
53469         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53470         expressions.
53471
53472 2008-12-15  Bruno Haible  <bruno@clisp.org>
53473
53474         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53475         * doc/glibc-functions/flistxattr.texi: Likewise.
53476         * doc/glibc-functions/fopencookie.texi: Likewise.
53477         * doc/glibc-functions/fremovexattr.texi: Likewise.
53478         * doc/glibc-functions/fsetxattr.texi: Likewise.
53479         * doc/glibc-functions/getxattr.texi: Likewise.
53480         * doc/glibc-functions/lgetxattr.texi: Likewise.
53481         * doc/glibc-functions/listxattr.texi: Likewise.
53482         * doc/glibc-functions/llistxattr.texi: Likewise.
53483         * doc/glibc-functions/lremovexattr.texi: Likewise.
53484         * doc/glibc-functions/lsetxattr.texi: Likewise.
53485         * doc/glibc-functions/removexattr.texi: Likewise.
53486         * doc/glibc-functions/setxattr.texi: Likewise.
53487         * doc/posix-functions/open_memstream.texi: Likewise.
53488
53489 2008-12-15  Eric Blake  <ebb9@byu.net>
53490
53491         Update doc for cygwin 1.7.
53492         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53493         functions.
53494         * doc/posix-functions/fchmodat.texi: Likewise.
53495         * doc/posix-functions/fchownat.texi: Likewise.
53496         * doc/posix-functions/fdopendir.texi: Likewise.
53497         * doc/posix-functions/fmemopen.texi: Likewise.
53498         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53499         * doc/posix-functions/fstatat.texi: Likewise.
53500         * doc/posix-functions/futimens.texi: Likewise.
53501         * doc/posix-functions/gai_strerror.texi: Likewise.
53502         * doc/posix-functions/getaddrinfo.texi: Likewise.
53503         * doc/posix-functions/getnameinfo.texi: Likewise.
53504         * doc/posix-functions/if_freenameindex.texi: Likewise.
53505         * doc/posix-functions/if_indextoname.texi: Likewise.
53506         * doc/posix-functions/if_nameindex.texi: Likewise.
53507         * doc/posix-functions/if_nametoindex.texi: Likewise.
53508         * doc/posix-functions/insque.texi: Likewise.
53509         * doc/posix-functions/linkat.texi: Likewise.
53510         * doc/posix-functions/llrint.texi: Likewise.
53511         * doc/posix-functions/llrintf.texi: Likewise.
53512         * doc/posix-functions/llrintl.texi: Likewise.
53513         * doc/posix-functions/lockf.texi: Likewise.
53514         * doc/posix-functions/lrintl.texi: Likewise.
53515         * doc/posix-functions/mkdirat.texi: Likewise.
53516         * doc/posix-functions/mkfifoat.texi: Likewise.
53517         * doc/posix-functions/mknodat.texi: Likewise.
53518         * doc/posix-functions/mq_close.texi: Likewise.
53519         * doc/posix-functions/mq_getattr.texi: Likewise.
53520         * doc/posix-functions/mq_notify.texi: Likewise.
53521         * doc/posix-functions/mq_open.texi: Likewise.
53522         * doc/posix-functions/mq_receive.texi: Likewise.
53523         * doc/posix-functions/mq_send.texi: Likewise.
53524         * doc/posix-functions/mq_setattr.texi: Likewise.
53525         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53526         * doc/posix-functions/mq_timedsend.texi: Likewise.
53527         * doc/posix-functions/mq_unlink.texi: Likewise.
53528         * doc/posix-functions/open_memstream.texi: Likewise.
53529         * doc/posix-functions/openat.texi: Likewise.
53530         * doc/posix-functions/posix_fadvise.texi: Likewise.
53531         * doc/posix-functions/posix_fallocate.texi: Likewise.
53532         * doc/posix-functions/posix_madvise.texi: Likewise.
53533         * doc/posix-functions/posix_memalign.texi: Likewise.
53534         * doc/posix-functions/posix_openpt.texi: Likewise.
53535         * doc/posix-functions/readlinkat.texi: Likewise.
53536         * doc/posix-functions/remque.texi: Likewise.
53537         * doc/posix-functions/renameat.texi: Likewise.
53538         * doc/posix-functions/rintl.texi: Likewise.
53539         * doc/posix-functions/sem_unlink.texi: Likewise.
53540         * doc/posix-functions/shm_open.texi: Likewise.
53541         * doc/posix-functions/shm_unlink.texi: Likewise.
53542         * doc/posix-functions/signgam.texi: Likewise.
53543         * doc/posix-functions/sigset.texi: Likewise.
53544         * doc/posix-functions/stpcpy.texi: Likewise.
53545         * doc/posix-functions/stpncpy.texi: Likewise.
53546         * doc/posix-functions/strerror.texi: Likewise.
53547         * doc/posix-functions/strtod.texi: Likewise.
53548         * doc/posix-functions/symlinkat.texi: Likewise.
53549         * doc/posix-functions/unlinkat.texi: Likewise.
53550         * doc/posix-functions/utimensat.texi: Likewise.
53551         * doc/glibc-functions/bindresvport.texi: Likewise.
53552         * doc/glibc-functions/dn_expand.texi: Likewise.
53553         * doc/glibc-functions/exp10.texi: Likewise.
53554         * doc/glibc-functions/exp10f.texi: Likewise.
53555         * doc/glibc-functions/fgetxattr.texi: Likewise.
53556         * doc/glibc-functions/flistxattr.texi: Likewise.
53557         * doc/glibc-functions/fopencookie.texi: Likewise.
53558         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53559         * doc/glibc-functions/fremovexattr.texi: Likewise.
53560         * doc/glibc-functions/fsetxattr.texi: Likewise.
53561         * doc/glibc-functions/getifaddrs.texi: Likewise.
53562         * doc/glibc-functions/getxattr.texi: Likewise.
53563         * doc/glibc-functions/lgetxattr.texi: Likewise.
53564         * doc/glibc-functions/listxattr.texi: Likewise.
53565         * doc/glibc-functions/llistxattr.texi: Likewise.
53566         * doc/glibc-functions/lremovexattr.texi: Likewise.
53567         * doc/glibc-functions/lsetxattr.texi: Likewise.
53568         * doc/glibc-functions/pow10.texi: Likewise.
53569         * doc/glibc-functions/pow10f.texi: Likewise.
53570         * doc/glibc-functions/rcmd_af.texi: Likewise.
53571         * doc/glibc-functions/removexattr.texi: Likewise.
53572         * doc/glibc-functions/res_init.texi: Likewise.
53573         * doc/glibc-functions/res_mkquery.texi: Likewise.
53574         * doc/glibc-functions/res_query.texi: Likewise.
53575         * doc/glibc-functions/res_querydomain.texi: Likewise.
53576         * doc/glibc-functions/res_send.texi: Likewise.
53577         * doc/glibc-functions/rresvport_af.texi: Likewise.
53578         * doc/glibc-functions/setxattr.texi: Likewise.
53579         * doc/glibc-functions/strcasestr.texi: Likewise.
53580
53581 2008-12-15  Bruno Haible  <bruno@clisp.org>
53582
53583         Fix compilation error on OSF/1 4.0.
53584         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53585         <sys/time.h>, simply delegate to the system header.
53586         Reported by Daniel Richard G. <oss@teragram.com>.
53587
53588 2008-12-15  Bruno Haible  <bruno@clisp.org>
53589
53590         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53591         * doc/posix-functions/fchmodat.texi: Likewise.
53592         * doc/posix-functions/fchownat.texi: Likewise.
53593         * doc/posix-functions/fdopendir.texi: Likewise.
53594         * doc/posix-functions/fstatat.texi: Likewise.
53595         * doc/posix-functions/mkdirat.texi: Likewise.
53596         * doc/posix-functions/unlinkat.texi: Likewise.
53597
53598 2008-12-14  Bruno Haible  <bruno@clisp.org>
53599
53600         Update doc for POSIX:2008.
53601         * doc/posix-functions/faccessat.texi: New file.
53602         * doc/posix-functions/fchmodat.texi: New file.
53603         * doc/posix-functions/fchownat.texi: New file.
53604         * doc/posix-functions/fdopendir.texi: New file.
53605         * doc/posix-functions/fstatat.texi: New file.
53606         * doc/posix-functions/futimens.texi: New file.
53607         * doc/posix-functions/linkat.texi: New file.
53608         * doc/posix-functions/mkdirat.texi: New file.
53609         * doc/posix-functions/mkfifoat.texi: New file.
53610         * doc/posix-functions/mknodat.texi: New file.
53611         * doc/posix-functions/open_wmemstream.texi: New file.
53612         * doc/posix-functions/openat.texi: New file.
53613         * doc/posix-functions/psiginfo.texi: New file.
53614         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53615         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53616         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53617         * doc/posix-functions/readlinkat.texi: New file.
53618         * doc/posix-functions/renameat.texi: New file.
53619         * doc/posix-functions/strerror_l.texi: New file.
53620         * doc/posix-functions/symlinkat.texi: New file.
53621         * doc/posix-functions/unlinkat.texi: New file.
53622         * doc/posix-functions/utimensat.texi: New file.
53623         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53624
53625 2008-12-14  Bruno Haible  <bruno@clisp.org>
53626
53627         Update doc for POSIX:2008.
53628         * doc/posix-functions/alphasort.texi: Renamed from
53629         doc/glibc-functions/alphasort.texi.
53630         * doc/posix-functions/dirfd.texi: Renamed from
53631         doc/glibc-functions/dirfd.texi.
53632         * doc/posix-functions/dprintf.texi: Renamed from
53633         doc/glibc-functions/dprintf.texi.
53634         * doc/posix-functions/duplocale.texi: Renamed from
53635         doc/glibc-functions/duplocale.texi.
53636         * doc/posix-functions/fexecve.texi: Renamed from
53637         doc/glibc-functions/fexecve.texi.
53638         * doc/posix-functions/fmemopen.texi: Renamed from
53639         doc/glibc-functions/fmemopen.texi.
53640         * doc/posix-functions/freelocale.texi: Renamed from
53641         doc/glibc-functions/freelocale.texi.
53642         * doc/posix-functions/getdate_err.texi: Renamed from
53643         doc/glibc-functions/getdate_err.texi.
53644         * doc/posix-functions/isalnum_l.texi: Renamed from
53645         doc/glibc-functions/isalnum_l.texi.
53646         * doc/posix-functions/isalpha_l.texi: Renamed from
53647         doc/glibc-functions/isalpha_l.texi.
53648         * doc/posix-functions/isblank_l.texi: Renamed from
53649         doc/glibc-functions/isblank_l.texi.
53650         * doc/posix-functions/iscntrl_l.texi: Renamed from
53651         doc/glibc-functions/iscntrl_l.texi.
53652         * doc/posix-functions/isdigit_l.texi: Renamed from
53653         doc/glibc-functions/isdigit_l.texi.
53654         * doc/posix-functions/isgraph_l.texi: Renamed from
53655         doc/glibc-functions/isgraph_l.texi.
53656         * doc/posix-functions/islower_l.texi: Renamed from
53657         doc/glibc-functions/islower_l.texi.
53658         * doc/posix-functions/isprint_l.texi: Renamed from
53659         doc/glibc-functions/isprint_l.texi.
53660         * doc/posix-functions/ispunct_l.texi: Renamed from
53661         doc/glibc-functions/ispunct_l.texi.
53662         * doc/posix-functions/isspace_l.texi: Renamed from
53663         doc/glibc-functions/isspace_l.texi.
53664         * doc/posix-functions/isupper_l.texi: Renamed from
53665         doc/glibc-functions/isupper_l.texi.
53666         * doc/posix-functions/iswalnum_l.texi: Renamed from
53667         doc/glibc-functions/iswalnum_l.texi.
53668         * doc/posix-functions/iswalpha_l.texi: Renamed from
53669         doc/glibc-functions/iswalpha_l.texi.
53670         * doc/posix-functions/iswblank_l.texi: Renamed from
53671         doc/glibc-functions/iswblank_l.texi.
53672         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53673         doc/glibc-functions/iswcntrl_l.texi.
53674         * doc/posix-functions/iswctype_l.texi: Renamed from
53675         doc/glibc-functions/iswctype_l.texi.
53676         * doc/posix-functions/iswdigit_l.texi: Renamed from
53677         doc/glibc-functions/iswdigit_l.texi.
53678         * doc/posix-functions/iswgraph_l.texi: Renamed from
53679         doc/glibc-functions/iswgraph_l.texi.
53680         * doc/posix-functions/iswlower_l.texi: Renamed from
53681         doc/glibc-functions/iswlower_l.texi.
53682         * doc/posix-functions/iswprint_l.texi: Renamed from
53683         doc/glibc-functions/iswprint_l.texi.
53684         * doc/posix-functions/iswpunct_l.texi: Renamed from
53685         doc/glibc-functions/iswpunct_l.texi.
53686         * doc/posix-functions/iswspace_l.texi: Renamed from
53687         doc/glibc-functions/iswspace_l.texi.
53688         * doc/posix-functions/iswupper_l.texi: Renamed from
53689         doc/glibc-functions/iswupper_l.texi.
53690         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53691         doc/glibc-functions/iswxdigit_l.texi.
53692         * doc/posix-functions/isxdigit_l.texi: Renamed from
53693         doc/glibc-functions/isxdigit_l.texi.
53694         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53695         doc/glibc-functions/mbsnrtowcs.texi.
53696         * doc/posix-functions/mkdtemp.texi: Renamed from
53697         doc/glibc-functions/mkdtemp.texi.
53698         * doc/posix-functions/newlocale.texi: Renamed from
53699         doc/glibc-functions/newlocale.texi.
53700         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53701         doc/glibc-functions/nl_langinfo_l.texi.
53702         * doc/posix-functions/open_memstream.texi: Renamed from
53703         doc/glibc-functions/open_memstream.texi.
53704         * doc/posix-functions/opterr.texi: Renamed from
53705         doc/glibc-functions/opterr.texi.
53706         * doc/posix-functions/optind.texi: Renamed from
53707         doc/glibc-functions/optind.texi.
53708         * doc/posix-functions/optopt.texi: Renamed from
53709         doc/glibc-functions/optopt.texi.
53710         * doc/posix-functions/psignal.texi: Renamed from
53711         doc/glibc-functions/psignal.texi.
53712         * doc/posix-functions/scandir.texi: Renamed from
53713         doc/glibc-functions/scandir.texi.
53714         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53715         doc/glibc-functions/sched_get_priority_min.texi.
53716         * doc/posix-functions/signgam.texi: Renamed from
53717         doc/glibc-functions/signgam.texi.
53718         * doc/posix-functions/stpcpy.texi: Renamed from
53719         doc/glibc-functions/stpcpy.texi.
53720         * doc/posix-functions/stpncpy.texi: Renamed from
53721         doc/glibc-functions/stpncpy.texi.
53722         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53723         doc/glibc-functions/strcasecmp_l.texi.
53724         * doc/posix-functions/strcoll_l.texi: Renamed from
53725         doc/glibc-functions/strcoll_l.texi.
53726         * doc/posix-functions/strfmon_l.texi: Renamed from
53727         doc/glibc-functions/strfmon_l.texi.
53728         * doc/posix-functions/strftime_l.texi: Renamed from
53729         doc/glibc-functions/strftime_l.texi.
53730         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53731         doc/glibc-functions/strncasecmp_l.texi.
53732         * doc/posix-functions/strndup.texi: Renamed from
53733         doc/glibc-functions/strndup.texi.
53734         * doc/posix-functions/strnlen.texi: Renamed from
53735         doc/glibc-functions/strnlen.texi.
53736         * doc/posix-functions/strsignal.texi: Renamed from
53737         doc/glibc-functions/strsignal.texi.
53738         * doc/posix-functions/strxfrm_l.texi: Renamed from
53739         doc/glibc-functions/strxfrm_l.texi.
53740         * doc/posix-functions/timer_gettime.texi: Renamed from
53741         doc/glibc-functions/timer_gettime.texi.
53742         * doc/posix-functions/tolower_l.texi: Renamed from
53743         doc/glibc-functions/tolower_l.texi.
53744         * doc/posix-functions/toupper_l.texi: Renamed from
53745         doc/glibc-functions/toupper_l.texi.
53746         * doc/posix-functions/towctrans_l.texi: Renamed from
53747         doc/glibc-functions/towctrans_l.texi.
53748         * doc/posix-functions/towlower_l.texi: Renamed from
53749         doc/glibc-functions/towlower_l.texi.
53750         * doc/posix-functions/towupper_l.texi: Renamed from
53751         doc/glibc-functions/towupper_l.texi.
53752         * doc/posix-functions/uselocale.texi: Renamed from
53753         doc/glibc-functions/uselocale.texi.
53754         * doc/posix-functions/vdprintf.texi: Renamed from
53755         doc/glibc-functions/vdprintf.texi.
53756         * doc/posix-functions/wcpcpy.texi:
53757         Renamed from doc/glibc-functions/wcpcpy.texi.
53758         * doc/posix-functions/wcpncpy.texi: Renamed from
53759         doc/glibc-functions/wcpncpy.texi.
53760         * doc/posix-functions/wcscasecmp.texi: Renamed from
53761         doc/glibc-functions/wcscasecmp.texi.
53762         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53763         doc/glibc-functions/wcscasecmp_l.texi.
53764         * doc/posix-functions/wcscoll_l.texi: Renamed from
53765         doc/glibc-functions/wcscoll_l.texi.
53766         * doc/posix-functions/wcsdup.texi: Renamed from
53767         doc/glibc-functions/wcsdup.texi.
53768         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53769         doc/glibc-functions/wcsncasecmp.texi.
53770         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53771         doc/glibc-functions/wcsncasecmp_l.texi.
53772         * doc/posix-functions/wcsnlen.texi: Renamed from
53773         doc/glibc-functions/wcsnlen.texi.
53774         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53775         doc/glibc-functions/wcsnrtombs.texi.
53776         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53777         doc/glibc-functions/wcsxfrm_l.texi.
53778         * doc/posix-functions/wctrans_l.texi: Renamed from
53779         doc/glibc-functions/wctrans_l.texi.
53780         * doc/posix-functions/wctype_l.texi: Renamed from
53781         doc/glibc-functions/wctype_l.texi.
53782         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53783         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53784         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53785         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53786         these subsections.
53787         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53788         Remove sections.
53789
53790 2008-12-14  Bruno Haible  <bruno@clisp.org>
53791
53792         Update doc for POSIX:2008.
53793         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53794
53795 2008-12-14  Bruno Haible  <bruno@clisp.org>
53796
53797         Update doc for POSIX:2008.
53798         * doc/pastposix-functions/bcmp.texi: Renamed from
53799         doc/posix-functions/bcmp.texi.
53800         * doc/pastposix-functions/bcopy.texi: Renamed from
53801         doc/posix-functions/bcopy.texi.
53802         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53803         doc/posix-functions/bsd_signal.texi.
53804         * doc/pastposix-functions/bzero.texi: Renamed from
53805         doc/posix-functions/bzero.texi.
53806         * doc/pastposix-functions/ecvt.texi: Renamed from
53807         doc/posix-functions/ecvt.texi.
53808         * doc/pastposix-functions/fcvt.texi: Renamed from
53809         doc/posix-functions/fcvt.texi.
53810         * doc/pastposix-functions/ftime.texi: Renamed from
53811         doc/posix-functions/ftime.texi.
53812         * doc/pastposix-functions/gcvt.texi: Renamed from
53813         doc/posix-functions/gcvt.texi.
53814         * doc/pastposix-functions/getcontext.texi: Renamed from
53815         doc/posix-functions/getcontext.texi.
53816         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53817         doc/posix-functions/gethostbyaddr.texi.
53818         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53819         doc/posix-functions/gethostbyname.texi.
53820         * doc/pastposix-functions/getwd.texi: Renamed from
53821         doc/posix-functions/getwd.texi.
53822         * doc/pastposix-functions/h_errno.texi: Renamed from
53823         doc/posix-functions/h_errno.texi.
53824         * doc/pastposix-functions/index.texi: Renamed from
53825         doc/posix-functions/index.texi.
53826         * doc/pastposix-functions/makecontext.texi: Renamed from
53827         doc/posix-functions/makecontext.texi.
53828         * doc/pastposix-functions/mktemp.texi: Renamed from
53829         doc/posix-functions/mktemp.texi.
53830         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53831         doc/posix-functions/pthread_attr_getstackaddr.texi.
53832         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53833         doc/posix-functions/pthread_attr_setstackaddr.texi.
53834         * doc/pastposix-functions/rindex.texi: Renamed from
53835         doc/posix-functions/rindex.texi.
53836         * doc/pastposix-functions/scalb.texi: Renamed from
53837         doc/posix-functions/scalb.texi.
53838         * doc/pastposix-functions/setcontext.texi: Renamed from
53839         doc/posix-functions/setcontext.texi.
53840         * doc/pastposix-functions/swapcontext.texi: Renamed from
53841         doc/posix-functions/swapcontext.texi.
53842         * doc/pastposix-functions/ualarm.texi: Renamed from
53843         doc/posix-functions/ualarm.texi.
53844         * doc/pastposix-functions/usleep.texi: Renamed from
53845         doc/posix-functions/usleep.texi.
53846         * doc/pastposix-functions/vfork.texi: Renamed from
53847         doc/posix-functions/vfork.texi.
53848         * doc/pastposix-functions/wcswcs.texi: Renamed from
53849         doc/posix-functions/wcswcs.texi.
53850         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53851         (Function Substitutes): Update.
53852
53853 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53854
53855         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53856         m4/strerror.m4.
53857
53858 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53859             Bruno Haible  <bruno@clisp.org>
53860
53861         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53862
53863 2008-12-13  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/strtoull (Depends-on): Remove unistd.
53866
53867 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53868
53869         * modules/strtoull (Depends-on): Add stdlib.
53870
53871 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53872
53873         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53874
53875 2008-12-10  Jim Meyering  <meyering@redhat.com>
53876
53877         gl_ASSERT: don't say assertions are disabled when they're not
53878         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53879         "checking whether to enable assertions... no", when they are in
53880         fact enabled.  This is solely a bug in the output of configure.
53881         In spite of saying "no", NDEBUG was not defined in that case.
53882         Also, as noted by Eric Blake, leave assertions enabled upon
53883         --enable-assert=INVALID.
53884
53885 2008-12-10  Bruno Haible  <bruno@clisp.org>
53886
53887         Change MODULES.html to refer to POSIX:2008 where possible.
53888         * MODULES.html.sh (POSIX2008_URL): New variable.
53889         (posix_headers): Remove sys/timeb, ucontext.
53890         (posix2001_headers): New variable.
53891         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53892         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53893         index, makecontext, mktemp, pthread_attr_getstackaddr,
53894         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53895         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53896         (posix2001_functions): New variable.
53897         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53898         otherwise.
53899
53900 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53901
53902         add missing include to parse-duration.c
53903         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53904         * modules/parse-duration (Depends-on): Add xalloc.
53905
53906         fix sed script reading maint.mk
53907         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53908         (syntax-check-rules): Use it.
53909
53910 2008-12-09  Bruno Haible  <bruno@clisp.org>
53911
53912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53913         MacOS X 10.4/PowerPC.
53914         Reported by Simon Josefsson.
53915
53916 2008-12-08  Jim Meyering  <meyering@redhat.com>
53917
53918         work around mingw's lack of some S_IF definitions
53919         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53920         Reported by Simon Josefsson.
53921
53922 2008-12-08  Bruno Haible  <bruno@clisp.org>
53923
53924         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53925         applied to variables. Needed on MacOS X 10.4/PowerPC.
53926         Reported by Simon Josefsson.
53927
53928 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53929         and Eric Blake  <ebb9@byu.net>
53930
53931         assert: honor --enable-assert
53932         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53933         order to honor --enable-assert, rather than treating it as a
53934         synonym for --disable-assert.
53935
53936 2008-12-08  Jim Meyering  <meyering@redhat.com>
53937
53938         * lib/posixtm.c: Remove now-useless declaration of mktime.
53939
53940         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53941
53942 2008-12-07  Bruno Haible  <bruno@clisp.org>
53943
53944         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53945         test_once): Mark functions as static.
53946         * tests/test-tls.c (test_tls): Likewise.
53947
53948 2008-12-07  Bruno Haible  <bruno@clisp.org>
53949
53950         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53951         iconv_register_autodetect.
53952
53953 2008-12-07  Jim Meyering  <meyering@redhat.com>
53954
53955         posixtm.c: avoid a warning
53956         * lib/posixtm.c (posixtime): Don't initialize tm0.
53957         It's no longer needed to placate gcc4's -Wuninitialized,
53958         and the attempt to placate would elicit a new warning.
53959
53960         unicodeio.c: mark unused parameters
53961         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53962         (fallback_failure_callback): Likewise.
53963
53964 2008-12-07  Bruno Haible  <bruno@clisp.org>
53965
53966         * gnulib-tool (func_create_testdir): When building the tests
53967         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53968         Reported by Simon Josefsson.
53969
53970 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53971
53972         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53973
53974 2008-12-06  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53977         Suggested by Eric Blake.
53978
53979 2008-12-06  Bruno Haible  <bruno@clisp.org>
53980
53981         Fix a c-stack test failure on MacOS X.
53982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53983         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53984         handler for SIGBUS as well.
53985         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53986         install a signal handler for SIGBUS as well.
53987         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53988
53989 2008-12-06  Bruno Haible  <bruno@clisp.org>
53990
53991         Advocacy documentation.
53992         * doc/gnulib-intro.texi (Benefits): New section.
53993         * doc/gnulib.texi: Update.
53994
53995 2008-12-06  Bruno Haible  <bruno@clisp.org>
53996
53997         Document the 'manywarnings' module.
53998         * doc/manywarnings.texi: New file.
53999         * doc/gnulib.texi: Include it.
54000
54001 2008-12-05  Eric Blake  <ebb9@byu.net>
54002
54003         tests: silence some gcc warnings
54004         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54005         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54006         type mismatches.
54007
54008 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54009             Bruno Haible  <bruno@clisp.org>
54010
54011         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54012
54013 2008-11-29  Jim Meyering  <meyering@redhat.com>
54014
54015         unicodeio.c: mark unused parameters
54016         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54017         (fallback_failure_callback): Likewise.
54018
54019         fts: fix a thinko
54020         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54021         (set_stat_type): Return S_IF*-valued "type" directly.
54022         Prompted by James Youngman's spotting a related bug.
54023         Confirmed by further testing through find.
54024
54025         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54026         * lib/fts.c (D_TYPE): Define.
54027         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54028         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54029         (s_ifmt_shift_bits): New function.
54030         (set_stat_type): New function.
54031         (fts_build): When not calling fts_stat, call set_stat_type
54032         to propagate dirent.d_type info to fts_read caller.
54033         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54034         fts_statp->st_mode type information may be valid.
54035
54036 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54037
54038         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54039         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54040         <sds@gnu.org>.
54041
54042 2008-11-20  Bruno Haible  <bruno@clisp.org>
54043
54044         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54045         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54046         INCLUDE_NEXT.
54047         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54048         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54049         * modules/math (Makefile.am): Substitute
54050         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54052
54053 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54054             Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/stdint.in.h: Define all type macros so that their expansion is
54057         a single typedef'ed token. Fixes a compilation failure in Boost which
54058         does "using ::int8_t;".
54059
54060 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54061
54062         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54063         gl_MANYWARN_ALL_GCC.
54064         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54065         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54066         * modules/manywarnings: New file.
54067         * MODULES.html.sh: Mention manywarnings module.
54068
54069 2008-11-18  Bruno Haible  <bruno@clisp.org>
54070
54071         * doc/gnulib-tool.texi (Unit tests): New section.
54072
54073 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54074
54075         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54076         paths like 'lib/po/foo.po'.
54077
54078 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54079
54080         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54081         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54082
54083 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54084
54085         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54086         parameter works.
54087
54088 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54089
54090         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54091
54092 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54093
54094         * modules/parse-duration-tests: New file.
54095         * tests/test-parse-duration.sh: New file.
54096         * tests/test-parse-duration.c: New file.
54097
54098         New module 'parse-duration'.
54099         * lib/parse-duration.h: New file.
54100         * lib/parse-duration.c: New file.
54101         * modules/parse-duration: New file.
54102
54103 2008-11-17  Bruno Haible  <bruno@clisp.org>
54104
54105         * tests/test-select-out.sh: Comment out the first pipe test.
54106         Reported by Simon Josefsson.
54107
54108 2008-11-17  Bruno Haible  <bruno@clisp.org>
54109
54110         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54111         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54112         gl_HOSTENT.
54113
54114 2008-11-17  Bruno Haible  <bruno@clisp.org>
54115
54116         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54117         -lnetwork and -lnet. Needed for Haiku and BeOS.
54118
54119 2008-11-16  Bruno Haible  <bruno@clisp.org>
54120
54121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54122
54123 2008-11-16  Bruno Haible  <bruno@clisp.org>
54124
54125         Avoid test failure on Haiku.
54126         * tests/test-fsync.c: Include <errno.h>.
54127         (main): Don't require that fsync (0) fails.
54128
54129 2008-11-15  Bruno Haible  <bruno@clisp.org>
54130
54131         New module 'hostent'.
54132         * modules/hostent: New file.
54133         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54134
54135 2008-11-15  Bruno Haible  <bruno@clisp.org>
54136
54137         New module 'servent'.
54138         * modules/servent: New file.
54139         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54140
54141 2008-11-15  Bruno Haible  <bruno@clisp.org>
54142
54143         Avoid generating same test program with two different rules.
54144         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54145         test-frexp to test-frexp-nolibm.
54146         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54147         test-frexpl to test-frexpl-nolibm.
54148
54149 2008-11-15  Bruno Haible  <bruno@clisp.org>
54150
54151         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54152         $(FREXPL_LIBM).
54153
54154 2008-11-15  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/netdb.in.h: Activate the definitions also when the system's
54157         <netdb.h> has 'struct addrinfo'.
54158         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54159         EAI_OVERFLOW or AI_NUMERICSERV.
54160         * doc/posix-headers/netdb.texi: Document the problem.
54161
54162 2008-11-15  Bruno Haible  <bruno@clisp.org>
54163
54164         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54165
54166         Make the 'sched' module work on platforms where <sched.h> exists but
54167         is incomplete (such as Haiku).
54168         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54169         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54170         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54171         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54172         HAVE_STRUCT_SCHED_PARAM.
54173         * modules/sched (Depends-on): Add include_next.
54174         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54175         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54176         * doc/posix-headers/sched.texi: Document the issue.
54177
54178 2008-11-13  Jim Meyering  <meyering@redhat.com>
54179
54180         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54181         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54182         test would fail due to the difference in the Report bugs to ...
54183         line.  The expected address is empty, "<>", while the actual
54184         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54185
54186 2008-11-12  Bruno Haible  <bruno@clisp.org>
54187
54188         lstat: don't compile lstat.c on systems lacking lstat
54189         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54190         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54191         Reported by Daniel P. Berrange via Jim Meyering.
54192
54193 2008-11-12  Jim Meyering  <meyering@redhat.com>
54194
54195         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54196
54197 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54198
54199         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54200         instead.
54201
54202 2008-11-12  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/unicodeio.c: Include unistr.h.
54205         (utf8_wctomb): Remove function.
54206         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54207
54208 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54209
54210         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54211         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54212         <bruno@clisp.org>.
54213         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54214
54215 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54216
54217         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54218         * doc/gnulib.texi: Add section for warnings.
54219
54220 2008-11-11  Bruno Haible  <bruno@clisp.org>
54221
54222         * lib/sockets.h: Add a comment.
54223
54224 2008-11-11  Karl Berry  <karl@gnu.org>
54225
54226         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54227
54228 2008-11-11  Eric Blake  <ebb9@byu.net>
54229
54230         fdl.texi: avoid git symlinks
54231         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54232
54233 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54234
54235         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54236
54237 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54238
54239         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54240         (gl_WARN_ADD): Substitute $2 if literal.
54241
54242 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54243
54244         * m4/warning.m4: Remove.
54245
54246 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54247
54248         * m4/warnings.m4: Almost complete rewrite. :-)
54249
54250 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54251
54252         * modules/warnings: New module.
54253         * m4/warnings.m4: New file.
54254         * MODULES.html.sh: Mention warnings module.
54255         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54256         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54257
54258 2008-11-10  Eric Blake  <ebb9@byu.net>
54259
54260         fdl.texi: make a symlink to the latest version
54261         * doc/standards.texi: Revert today's earlier change.
54262         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54263         * doc/fdl.texi: ...and replace this with a symlink to the newer
54264         fdl-1.3.texi.
54265
54266 2008-11-10  Bruno Haible  <bruno@clisp.org>
54267
54268         * tests/test-select-fd.c (main): Accept the result file name as fourth
54269         argument.
54270         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54271         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54272
54273 2008-11-10  Bruno Haible  <bruno@clisp.org>
54274
54275         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54276         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54277         as autoconf-substituted macros.
54278         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54279         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54280         gl_NETDB_H_DEFAULTS. Set these variables.
54281         * modules/netdb (Makefile.am): Substitute these variables.
54282
54283 2008-11-10  Eric Blake  <ebb9@byu.net>
54284
54285         standards.texi: include correct file for FDL 1.3
54286         * doc/standards.texi (GNU Free Documentation License): Change
54287         include file to pull in FDL 1.3, not 1.2.
54288
54289         fdl.texi: revert accidental change to license
54290         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54291
54292 2008-11-10  Bruno Haible  <bruno@clisp.org>
54293
54294         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54295         cross-compiling guesses also when the native compile gives no result.
54296
54297 2008-11-10  Bruno Haible  <bruno@clisp.org>
54298
54299         * lib/spawni.c (__spawni): Force variable into the stack.
54300
54301 2008-11-10  Bruno Haible  <bruno@clisp.org>
54302
54303         Add support for Haiku.
54304         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54305         glibc and BeOS, but also on Haiku.
54306         * lib/fpurge.c (fpurge): Likewise.
54307         * lib/freadable.c (freadable): Likewise.
54308         * lib/freadahead.c (freadahead): Likewise.
54309         * lib/freading.c (freading): Likewise.
54310         * lib/freadptr.c (freadptr): Likewise.
54311         * lib/freadseek.c (freadptrinc): Likewise.
54312         * lib/fseeko.c (rpl_fseeko): Likewise.
54313         * lib/fseterr.c (fseterr): Likewise.
54314         * lib/fwritable.c (fwritable): Likewise.
54315         * lib/fwriting.c (fwriting): Likewise.
54316         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54317
54318 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54319
54320         * lib/config.charset: Treat Haiku like BeOS.
54321
54322 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54323
54324         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54325         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54326
54327 2008-11-08  Bruno Haible  <bruno@clisp.org>
54328
54329         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54330         AC_CACHE_CHECK.
54331
54332 2008-11-08  Bruno Haible  <bruno@clisp.org>
54333
54334         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54335
54336 2008-11-08  Bruno Haible  <bruno@clisp.org>
54337
54338         * tests/test-select-fd.c: New file.
54339         * tests/test-select-in.sh: New file.
54340         * tests/test-select-out.sh: New file.
54341         * tests/test-select-stdin.c: New file.
54342         * modules/select-tests (Files): Add the new files.
54343         (Depends-on): Add gettimeofday.
54344         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54345         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54346         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54347
54348 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54349             Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54352
54353 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54354
54355         * build-aux/pmccabe2html: Added support for C++ source files.
54356
54357 2008-11-05  Ben Pfaff  <blp@gnu.org>
54358
54359         Fix lib/close.c build on Windows.
54360         * modules/close (Files): Add lib/w32sock.h.
54361
54362 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54363
54364         Accept Bison's NEWS format.
54365         * build-aux/announce-gen (print_news_deltas): Tweak
54366         $re_prefix.
54367
54368 2008-11-04  Bruno Haible  <bruno@clisp.org>
54369
54370         * modules/random_r (Maintainer): Add glibc.
54371
54372 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54373
54374         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54375         by karl@freefriends.org (Karl Berry).
54376         * doc/alloca.texi: Likewise.
54377         * doc/c-ctype.texi: Likewise.
54378         * doc/c-strcase.texi: Likewise.
54379         * doc/c-strcaseeq.texi: Likewise.
54380         * doc/c-strcasestr.texi: Likewise.
54381         * doc/c-strstr.texi: Likewise.
54382         * doc/c-strtod.texi: Likewise.
54383         * doc/c-strtold.texi: Likewise.
54384         * doc/ctime.texi: Likewise.
54385         * doc/error.texi: Likewise.
54386         * doc/fdl.texi: Likewise.
54387         * doc/gcd.texi: Likewise.
54388         * doc/getdate.texi: Likewise.
54389         * doc/gnulib-intro.texi: Likewise.
54390         * doc/gnulib-tool.texi: Likewise.
54391         * doc/gnulib.texi: Likewise.
54392         * doc/inet_ntoa.texi: Likewise.
54393         * doc/maintain.texi: Likewise.
54394         * doc/make-stds.texi: Likewise.
54395         * doc/quote.texi: Likewise.
54396         * doc/regexprops-generic.texi: Likewise.
54397         * doc/standards.texi: Likewise.
54398         * doc/verify.texi: Likewise.
54399         * doc/visibility.texi: Likewise.
54400         * doc/gnulib.texi (GNU Free Documentation License): Include
54401         fdl-1.3.texi instead of fdl.texi.
54402
54403 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54404
54405         * doc/fdl-1.3.texi: New file, from
54406         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54407         * modules/fdl-1.3: Add.
54408         * MODULES.html.sh: Add fdl-1.3.
54409
54410 2008-11-03  Bruno Haible  <bruno@clisp.org>
54411
54412         Make determination of absolute name of header file work with AIX xlc.
54413         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54414         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54415         preprocessing.
54416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54417         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54418
54419 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54420
54421         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54422         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54423         <ludo@gnu.org>.
54424
54425 2008-11-02  Bruno Haible  <bruno@clisp.org>
54426
54427         Mark 'strpbrk' obsolete.
54428         * modules/strpbrk (Status, Notice): New sections.
54429         * modules/strtok_r (Depends-on): Add strpbrk.
54430
54431 2008-11-02  Bruno Haible  <bruno@clisp.org>
54432
54433         Mark 'strdup' obsolete.
54434         * modules/strdup (Status, Notice): New sections.
54435         * modules/findprog (Depends-on): Add strdup.
54436         * modules/getaddrinfo (Depends-on): Likewise.
54437         * modules/localename (Depends-on): Likewise.
54438         * modules/relocatable-lib (Depends-on): Likewise.
54439         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54440         * modules/relocatable-prog (Depends-on): Likewise.
54441         * modules/trim (Depends-on): Likewise.
54442         * modules/unictype/gen-ctype (Depends-on): Likewise.
54443         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54444
54445 2008-11-02  Bruno Haible  <bruno@clisp.org>
54446
54447         Mark 'strcspn' obsolete.
54448         * modules/strcspn (Status, Notice): New sections.
54449
54450 2008-11-02  Bruno Haible  <bruno@clisp.org>
54451
54452         Mark 'rmdir' obsolete.
54453         * modules/rmdir (Status, Notice): New sections.
54454         * modules/clean-temp (Depends-on): Add rmdir.
54455         * modules/openat (Depends-on): Likewise.
54456
54457 2008-11-02  Bruno Haible  <bruno@clisp.org>
54458
54459         Mark 'raise' obsolete.
54460         * modules/raise (Status, Notice): New sections.
54461         (Include): Specify <signal.h>.
54462         * modules/stdio (Depends-on): Add raise.
54463         * modules/write (Depends-on): Likewise.
54464
54465 2008-11-02  Bruno Haible  <bruno@clisp.org>
54466
54467         Mark 'memset' obsolete.
54468         * modules/memset (Status, Notice): New sections.
54469
54470 2008-11-02  Bruno Haible  <bruno@clisp.org>
54471
54472         Mark 'memmove' obsolete.
54473         * modules/memmove (Status, Notice): New sections.
54474         * modules/argp (Depends-on): Add memmove.
54475         * modules/argz (Depends-on): Likewise.
54476         * modules/canonicalize (Depends-on): Likewise.
54477         * modules/canonicalize-lgpl (Depends-on): Likewise.
54478         * modules/fts (Depends-on): Likewise.
54479         * modules/getcwd (Depends-on): Likewise.
54480         * modules/human (Depends-on): Likewise.
54481         * modules/regex (Depends-on): Likewise.
54482         * modules/striconveh (Depends-on): Likewise.
54483         * modules/trim (Depends-on): Likewise.
54484         * modules/unistr/u8-move (Depends-on): Likewise.
54485         * modules/unistr/u16-move (Depends-on): Likewise.
54486         * modules/unistr/u32-move (Depends-on): Likewise.
54487
54488 2008-11-02  Bruno Haible  <bruno@clisp.org>
54489
54490         Mark 'memcpy' obsolete.
54491         * modules/memcpy (Status, Notice): New sections.
54492
54493 2008-11-02  Bruno Haible  <bruno@clisp.org>
54494
54495         Mark 'memcmp' obsolete.
54496         * modules/memcmp (Status, Notice): New sections.
54497         * modules/argmatch (Depends-on): Add memchr.
54498         * modules/backupfile (Depends-on): Likewise.
54499         * modules/c-strcasestr (Depends-on): Likewise.
54500         * modules/crypto/des (Depends-on): Likewise.
54501         * modules/csharpcomp (Depends-on): Likewise.
54502         * modules/fnmatch (Depends-on): Likewise.
54503         * modules/git-merge-changelog (Depends-on): Likewise.
54504         * modules/isnand (Depends-on): Likewise.
54505         * modules/isnand-nolibm (Depends-on): Likewise.
54506         * modules/isnanf (Depends-on): Likewise.
54507         * modules/isnanf-nolibm (Depends-on): Likewise.
54508         * modules/isnanl (Depends-on): Likewise.
54509         * modules/isnanl-nolibm (Depends-on): Likewise.
54510         * modules/mbchar (Depends-on): Likewise.
54511         * modules/memcoll (Depends-on): Likewise.
54512         * modules/quotearg (Depends-on): Likewise.
54513         * modules/regex (Depends-on): Likewise.
54514         * modules/relocatable-prog (Depends-on): Likewise.
54515         * modules/same (Depends-on): Likewise.
54516         * modules/signbit (Depends-on): Likewise.
54517         * modules/strcasestr-simple (Depends-on): Likewise.
54518         * modules/unictype/gen-ctype (Depends-on): Likewise.
54519         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54520         * modules/uniname/uniname (Depends-on): Likewise.
54521         * modules/unistr/u8-cmp (Depends-on): Likewise.
54522
54523 2008-11-02  Bruno Haible  <bruno@clisp.org>
54524
54525         Mark 'memchr' obsolete.
54526         * modules/memchr (Status, Notice): New sections.
54527         * modules/argp (Depends-on): Add memchr.
54528         * modules/base64 (Depends-on): Likewise.
54529         * modules/c-strcasestr (Depends-on): Likewise.
54530         * modules/chdir-long (Depends-on): Likewise.
54531         * modules/fnmatch (Depends-on): Likewise.
54532         * modules/getsubopt (Depends-on): Likewise.
54533         * modules/git-merge-changelog (Depends-on): Likewise.
54534         * modules/glob (Depends-on): Likewise.
54535         * modules/strcasestr-simple (Depends-on): Likewise.
54536         * modules/strnlen (Depends-on): Likewise.
54537
54538 2008-11-02  Bruno Haible  <bruno@clisp.org>
54539
54540         Mark 'atexit' obsolete.
54541         * modules/atexit (Status, Notice): New sections.
54542         * modules/chdir-long (Depends-on): Add atexit.
54543         * modules/wait-process (Depends-on): Likewise.
54544
54545 2008-11-02  Bruno Haible  <bruno@clisp.org>
54546
54547         * gnulib-tool: New option --with-obsolete.
54548         (func_usage): Document it.
54549         (func_modules_transitive_closure): Drop obsolete dependencies if
54550         incobsolete is not true.
54551         (func_import): Read and save the incobsolete variable to the cache.
54552
54553 2008-11-02  Bruno Haible  <bruno@clisp.org>
54554
54555         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54556         * gnulib-tool: New option --extract-status.
54557         (func_usage): Document it.
54558         (sed_extract_prog): Recognize it.
54559         (func_get_status): New function.
54560
54561 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54562
54563         * modules/sockets (License): Change from LGPL to LGPLv2+.
54564
54565 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54566
54567         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54568
54569 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54570
54571         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54572         Mention times and sys_times.
54573         * modules/sys_times, modules/sys_times-tests: New modules.
54574         * modules/times, modules/times-tests: Likewise
54575         * m4/sys_times_h.m4: New file.
54576         * lib/sys_times.in.h: Likewise
54577         * lib/times.c: Likewise.
54578         * tests/test-sys_times.c: Likewise.
54579         * tests/test-times.c: Likewise.
54580         * doc/posix-headers/sys_times.texi: Update.
54581         * doc/posix-functions/times.texi: Update.
54582
54583 2008-10-28  Jim Meyering  <meyering@redhat.com>
54584
54585         * modules/tempname (Depends-on): Add lstat.
54586
54587         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54588
54589 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54590
54591         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54592         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54593         using idiom used elsewhere in gnulib.
54594
54595 2008-10-27  Jim Meyering  <meyering@redhat.com>
54596
54597         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54598
54599 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54600
54601         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54602         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54603         programs.
54604         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54605
54606 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54607
54608         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54609
54610 2008-10-27  Bruno Haible  <bruno@clisp.org>
54611
54612         * tests/test-lstat.c: Include <stdio.h>.
54613
54614 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54615
54616         * modules/lstat-tests: New module.
54617         * tests/test-lstat.c: New file.
54618
54619 2008-10-26  Jim Meyering  <meyering@redhat.com>
54620
54621         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54622
54623 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54624             Bruno Haible  <bruno@clisp.org>
54625
54626         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54627         * modules/configmake (Include): Add a note that the include must come
54628         after all system headers.
54629         * lib/javaversion.c: Include configmake.h after all other includes.
54630
54631 2008-10-26  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54634         HAVE_STRUCT_RANDOM_DATA to 1.
54635         (gl_STDLIB_H): Simplify.
54636
54637 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54638
54639         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54640         substitute HAVE_STRUCT_RANDOM_DATA.
54641         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54642         random_data.
54643         * modules/stdlib (Makefile.am): Substitute
54644         HAVE_STRUCT_RANDOM_DATA.
54645
54646 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54647
54648         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54649         * doc/gnulib-intro.texi (Copyright): Likewise.
54650
54651 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54652
54653         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54654         findings.
54655
54656 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54657             Bruno Haible  <bruno@clisp.org>
54658
54659         * lib/unistd.in.h: Include <winsock2.h>.
54660         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54661         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54662         Provide dummy declarations.
54663         (gethostname): Override.
54664         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54665         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54666         gl_PREREQ_SYS_H_WINSOCK2.
54667         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54668         * doc/posix-functions/gethostname.texi: More details.
54669
54670 2008-10-25  Bruno Haible  <bruno@clisp.org>
54671
54672         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54673         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54674         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54675
54676         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54677         here ...
54678         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54680         gl_UNISTD_H_DEFAULTS.
54681
54682 2008-10-25  Eric Blake  <ebb9@byu.net>
54683
54684         signbit: avoid spurious compiler failure
54685         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54686         declarations inside function.
54687
54688 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54689             Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54692         * modules/random_r (Depends-on): Add stdint.
54693
54694 2008-10-24  Bruno Haible  <bruno@clisp.org>
54695
54696         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54697         Eggert.
54698         * modules/strerror (License): Likewise.
54699
54700 2008-10-24  Jim Meyering  <meyering@redhat.com>
54701
54702         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54703         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54704
54705 2008-10-24  Eric Blake  <ebb9@byu.net>
54706
54707         getgroups: fix compilation when getgroups is available
54708         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54709         but with <config.h> override of getgroups disabled.
54710
54711 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54712
54713         * doc/gnulib.texi (Header files): Add note about C++ problems.
54714         Explained by Bruno Haible <bruno@clisp.org>.
54715
54716 2008-10-23  Bruno Haible  <bruno@clisp.org>
54717
54718         Define a dummy SA_NODEFER macro on Interix.
54719         * lib/signal.in.h (SA_NODEFER): Define fallback.
54720         Reported by Aleksey Cheusov <cheusov@tut.by> via
54721         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54722
54723 2008-10-23  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/freadahead (License): Change to LGPLv2+.
54726         Suggested by Simon Josefsson.
54727
54728 2008-10-23  Jim Meyering  <meyering@redhat.com>
54729
54730         random_r: new module
54731         * modules/random_r: New file.
54732         * m4/random_r.m4: New file.
54733         * lib/random_r.c: New file, from glibc.
54734         * modules/random_r-tests: New file.
54735         * tests/test-random_r.c: New file.
54736         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54737          Declare.
54738         (RAND_MAX): Define.
54739         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54740         * modules/stdlib: Substitute them, too.
54741         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54742         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54743         * doc/glibc-functions/random_r.texi: Likewise.
54744         * doc/glibc-functions/setstate_r.texi: Likewise.
54745         * doc/glibc-functions/srandom_r.texi: Likewise.
54746         * config/srclist.txt: Mention it.
54747
54748 2008-10-23  David Lutterkort  <lutter@redhat.com>
54749
54750         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54751         link requirement
54752
54753 2008-10-23  Jim Meyering  <meyering@redhat.com>
54754
54755         selinux-h: mark parameters of stub functions as intentionally unused
54756         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54757         * lib/se-context.in.h: Likewise.
54758
54759 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54760
54761         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54762
54763 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54764
54765         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54766
54767 2008-10-22  Eric Blake  <ebb9@byu.net>
54768
54769         glthread/thread: avoid compiler warning
54770         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54771         Add unreachable abort to silence compiler.
54772
54773 2008-10-22  Eric Blake  <ebb9@byu.net>
54774
54775         netdb: also supply struct addrinfo for cygwin 1.5.x
54776         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54777         older cygwin.
54778         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54779         cygwin.
54780         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54781
54782 2008-10-22  Bruno Haible  <bruno@clisp.org>
54783
54784         * users.txt: Update entry about pspp.
54785
54786 2008-10-21  Bruno Haible  <bruno@clisp.org>
54787
54788         Simplification.
54789         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54790         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54791
54792         Simplification.
54793         * lib/ioctl.c (ioctl): Don't undefine.
54794         * lib/socket.c (socket): Don't undefine.
54795
54796         Remove unused module indicator macros.
54797         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54798         GNULIB_$1 as a C macro.
54799
54800         * doc/posix-functions/close.texi: Undo last change.
54801         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54802         Windows platforms.
54803
54804 2008-10-21  Bruno Haible  <bruno@clisp.org>
54805
54806         Add gethostname() declaration to <unistd.h>.
54807         * lib/unistd.in.h (gethostname): New declaration.
54808         * lib/gethostname.c: Include <unistd.h>.
54809         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54810         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54812         and HAVE_GETHOSTNAME.
54813         * modules/gethostname (Depends-on): Add unistd.
54814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54815         (Include): Specify <unistd.h>.
54816         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54817         HAVE_GETHOSTNAME.
54818         * tests/test-gethostname.c: Include <unistd.h> first.
54819
54820 2008-10-21  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54823         * modules/select-tests (Depends-on): Likewise.
54824         Reported by Simon Josefsson.
54825
54826 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54827
54828         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54829         * lib/accept.c: New file, based on winsock.c.
54830         * lib/bind.c: New file, based on winsock.c.
54831         * lib/connect.c: New file, based on winsock.c.
54832         * lib/getpeername.c: New file, based on winsock.c.
54833         * lib/getsockname.c: New file, based on winsock.c.
54834         * lib/getsockopt.c: New file, based on winsock.c.
54835         * lib/ioctl.c: New file, based on winsock.c.
54836         * lib/listen.c: New file, based on winsock.c.
54837         * lib/recv.c: New file, based on winsock.c.
54838         * lib/recvfrom.c: New file, based on winsock.c.
54839         * lib/send.c: New file, based on winsock.c.
54840         * lib/sendto.c: New file, based on winsock.c.
54841         * lib/setsockopt.c: New file, based on winsock.c.
54842         * lib/shutdown.c: New file, based on winsock.c.
54843         * lib/socket.c: New file, based on winsock.c.
54844         * lib/w32sock.h: New file, based on winsock.c.
54845         * lib/winsock.c: Remove file.
54846         * modules/accept: Likewise.
54847         * modules/bind: Likewise.
54848         * modules/connect: Likewise.
54849         * modules/getpeername: Likewise.
54850         * modules/getsockname: Likewise.
54851         * modules/getsockopt: Likewise.
54852         * modules/ioctl: Likewise.
54853         * modules/listen: Likewise.
54854         * modules/recv: Likewise.
54855         * modules/recvfrom: Likewise.
54856         * modules/send: Likewise.
54857         * modules/sendto: Likewise.
54858         * modules/setsockopt: Likewise.
54859         * modules/shutdown: Likewise.
54860         * modules/socket: Use socket.c instead of winsock.c.
54861         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54862         * doc/posix-functions/accept.texi: Doc fix.
54863         * doc/posix-functions/bind.texi: Doc fix.
54864         * doc/posix-functions/close.texi: Doc fix.
54865         * doc/posix-functions/connect.texi: Doc fix.
54866         * doc/posix-functions/getpeername.texi: Doc fix.
54867         * doc/posix-functions/getsockname.texi: Doc fix.
54868         * doc/posix-functions/getsockopt.texi: Doc fix.
54869         * doc/posix-functions/ioctl.texi: Doc fix.
54870         * doc/posix-functions/listen.texi: Doc fix.
54871         * doc/posix-functions/recv.texi: Doc fix.
54872         * doc/posix-functions/recvfrom.texi: Doc fix.
54873         * doc/posix-functions/send.texi: Doc fix.
54874         * doc/posix-functions/sendto.texi: Doc fix.
54875         * doc/posix-functions/setsockopt.texi: Doc fix.
54876         * doc/posix-functions/shutdown.texi: Doc fix.
54877         * doc/posix-functions/socket.texi: Doc fix.
54878
54879 2008-10-20  Bruno Haible  <bruno@clisp.org>
54880
54881         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54882         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54883         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54884         as an alias for SIGABRT.
54885         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54886         (sigaction): Map it to SIGABRT.
54887         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54888
54889 2008-10-20  Bruno Haible  <bruno@clisp.org>
54890
54891         * lib/fts.c: Don't include lstat.h.
54892         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54893
54894         Move the lstat() declaration to <sys/stat.h>.
54895         * lib/lstat.h: Remove file.
54896         * lib/sys_stat.in.h: Add special invocation convention.
54897         (lstat): New declaration.
54898         * lib/lstat.c (orig_lstat): New function.
54899         (rpl_lstat): Use orig_lstat instead of lstat.
54900         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54901         AC_C_INLINE. Set REPLACE_LSTAT.
54902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54903         and REPLACE_LSTAT.
54904         * modules/lstat (Files): Remove lib/lstat.h.
54905         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54906         (Include): Specify <sys/stat.h> instead of lstat.h.
54907         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54908         REPLACE_LSTAT.
54909         * NEWS: Mention the change.
54910
54911 2008-10-20  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/posix_spawn-tests: New file.
54914         * tests/test-posix_spawn3.c: New file.
54915
54916 2008-10-20  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54919         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54920         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54921         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54922         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54923
54924 2008-10-20  Bruno Haible  <bruno@clisp.org>
54925
54926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54927         of posix_spawn on AIX 5.3.
54928
54929 2008-10-20  Bruno Haible  <bruno@clisp.org>
54930
54931         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54932
54933 2008-10-20  Bruno Haible  <bruno@clisp.org>
54934
54935         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54936         of AC_LANG_PROGRAM.
54937
54938 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54939
54940         * lib/netdb.in.h: Don't define GNU specific constants until they
54941         are supported or needed.  Reported by Bruno Haible
54942         <bruno@clisp.org>.
54943
54944 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54945
54946         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54947
54948 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54949
54950         * lib/getaddrinfo.h: Remove file.
54951         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54952         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54953         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54954         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54955         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54956         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54957         * tests/test-getaddrinfo.c: Likewise.
54958         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54959         * NEWS: Mention change.
54960
54961 2008-10-19  Bruno Haible  <bruno@clisp.org>
54962
54963         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54964
54965 2008-10-19  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/wait-process.c: Include simply <sys/wait.h>.
54968         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54969         WIFSTOPPED): Remove fallback definitions.
54970         * modules/wait-process (Depends-on): Add sys_wait.
54971
54972         New module 'sys_wait'.
54973         * modules/sys_wait: New file.
54974         * lib/sys_wait.in.h: New file, partially copied from
54975         lib/wait-process.c.
54976         * m4/sys_wait_h.m4: New file.
54977         * doc/posix-headers/sys_wait.texi: Mention the new module.
54978
54979 2008-10-19  Bruno Haible  <bruno@clisp.org>
54980
54981         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54982
54983 2008-10-19  Bruno Haible  <bruno@clisp.org>
54984
54985         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54986         * lib/wait-process.c (WAIT_T): Remove type.
54987         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54988         (wait_subprocess): Update.
54989
54990 2008-10-19  Bruno Haible  <bruno@clisp.org>
54991
54992         New module 'atoll'.
54993         * modules/atoll: New file.
54994         * lib/stdlib.in.h (atoll): New declaration.
54995         * lib/atoll.c: New file, from glibc with modifications.
54996         * m4/atoll.m4: New file.
54997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54998         HAVE_ATOLL.
54999         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55000         * doc/posix-functions/atoll.texi: Mention the new module.
55001
55002 2008-10-19  Bruno Haible  <bruno@clisp.org>
55003
55004         Add strtoull() declaration to <stdlib.h>.
55005         * lib/stdlib.in.h (strtoull): New declaration.
55006         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55007         Set HAVE_STRTOULL.
55008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55009         HAVE_STRTOULL.
55010         * modules/strtoull (Depends-on): Add stdlib.
55011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55012         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55013         HAVE_STRTOULL.
55014
55015 2008-10-19  Bruno Haible  <bruno@clisp.org>
55016
55017         Add strtoll() declaration to <stdlib.h>.
55018         * lib/stdlib.in.h (strtoll): New declaration.
55019         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55020         Set HAVE_STRTOLL.
55021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55022         HAVE_STRTOLL.
55023         * modules/strtoll (Depends-on): Add stdlib.
55024         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55025         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55026
55027 2008-10-19  Bruno Haible  <bruno@clisp.org>
55028
55029         * modules/bcopy (Depends-on): Add strings.
55030         (Include): Specify <strings.h>.
55031
55032 2008-10-19  Bruno Haible  <bruno@clisp.org>
55033
55034         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55035
55036 2008-10-19  Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55039         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55040         mingw.
55041
55042 2008-10-19  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/atanl.c: Don't include isnanl.h.
55045         * lib/cosl.c: Likewise.
55046         * lib/ldexpl.c: Likewise.
55047         * lib/logl.c: Likewise.
55048         * lib/sinl.c: Likewise.
55049         * lib/sqrtl.c: Likewise.
55050         * lib/tanl.c: Likewise.
55051
55052         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55053         * lib/isnanf.h: Remove file.
55054         * lib/isnand.h: Remove file.
55055         * lib/isnanl.h: Remove file.
55056         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55057         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55058         macros.
55059         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55060         HAVE_ISNANF, don't define it as a C macro.
55061         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55062         HAVE_ISNAND, don't define it as a C macro.
55063         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55064         HAVE_ISNANL, don't define it as a C macro.
55065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55066         HAVE_ISNAN[FDL].
55067         * modules/isnanf (Files): Remove lib/isnanf.h.
55068         (Depends-on): Add math.
55069         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55070         (Include): Specify <math.h> instead of isnanf.h.
55071         * modules/isnand (Files): Remove lib/isnand.h.
55072         (Depends-on): Add math.
55073         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55074         (Include): Specify <math.h> instead of isnand.h.
55075         * modules/isnanl (Files): Remove lib/isnanl.h.
55076         (Depends-on): Add math.
55077         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55078         (Include): Specify <math.h> instead of isnanl.h.
55079         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55080         HAVE_ISNAN[FDL].
55081         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55082         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55083         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55084         * NEWS: Mention the change.
55085
55086 2008-10-18  Bruno Haible  <bruno@clisp.org>
55087
55088         Add getusershell(), setusershell(), endusershell() declarations to
55089         <unistd.h>.
55090         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55091         declarations.
55092         * lib/getusershell.c: Include unistd.h.
55093         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55094         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55095         HAVE_GETUSERSHELL.
55096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55097         and HAVE_GETUSERSHELL.
55098         * modules/getusershell (Depends-on): Add unistd, extensions.
55099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55100         (Include): Specify <unistd.h>.
55101         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55102         HAVE_GETUSERSHELL.
55103
55104 2008-10-18  Bruno Haible  <bruno@clisp.org>
55105
55106         Add a getloadavg() declaration to <stdlib.h>.
55107         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55108         getloadavg declaration.
55109         (getloadavg): New declaration.
55110         * lib/getloadavg.c: Include <stdlib.h> first.
55111         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55112         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55113         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55115         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55116         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55117         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55118         (Include): Specify <stdlib.h>.
55119         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55120         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55121
55122 2008-10-18  Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/dirchownmod.c: Don't include lchmod.h.
55125
55126         Move the lchmod() declaration to <sys/stat.h>.
55127         * lib/lchmod.h: Remove file.
55128         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55129         (lchmod): New declaration, moved here from lib/lchown.h.
55130         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55131         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55132         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55133         and HAVE_LCHMOD.
55134         * modules/lchmod (Files): Remove lib/lchmod.h.
55135         (Depends-on): Add sys_stat, extensions.
55136         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55137         (Include): Specify <sys/stat.h> instead of lchmod.h.
55138         * modules/sys_stat (Depends-on): Add link-warning.
55139         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55140         definition of GL_LINK_WARNING.
55141         * NEWS: Mention the change.
55142
55143 2008-10-18  Bruno Haible  <bruno@clisp.org>
55144
55145         * lib/fchdir.c: Don't include dirfd.h.
55146         * lib/fts.c: Likewise.
55147         * lib/getcwd.c: Likewise.
55148         * lib/glob.c: Likewise.
55149
55150         Move the dirfd() declaration to <dirent.h>.
55151         * lib/dirfd.h: Remove file.
55152         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55153         (dirfd): New declaration.
55154         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55155         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55156         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55157         HAVE_DECL_DIRFD.
55158         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55159         HAVE_DECL_DIRFD.
55160         * modules/dirfd (Files): Remove lib/dirfd.h.
55161         (Depends-on): Add dirent, extensions.
55162         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55163         (Include): Specify <dirent.h> instead of dirfd.h.
55164         * modules/dirent (Depends-on): Add link-warning.
55165         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55166         definition of GL_LINK_WARNING.
55167         * NEWS: Mention the change.
55168
55169 2008-10-18  Bruno Haible  <bruno@clisp.org>
55170
55171         Move the euidaccess() declaration to <unistd.h>.
55172         * lib/euidaccess.h: Remove file.
55173         * lib/unistd.in.h (euidaccess): New declaration.
55174         * lib/euidaccess.c: Don't include euidaccess.h.
55175         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55176         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55178         and HAVE_EUIDACCESS.
55179         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55180         (Depends-on): Add unistd.
55181         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55182         (Include): Specify <unistd.h> instead of euidaccess.h.
55183         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55184         HAVE_EUIDACCESS.
55185         * NEWS: Mention the change.
55186
55187 2008-10-18  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55190
55191         Move the getdomainname() declaration to <unistd.h>.
55192         * lib/getdomainname.h: Remove file.
55193         * lib/unistd.in.h (getdomainname): New declaration.
55194         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55195         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55196         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55197         HAVE_GETDOMAINNAME.
55198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55199         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55200         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55201         (Depends-on): Add unistd, extensions.
55202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55203         (Includes): Specify <unistd.h> instead of getdomainname.h.
55204         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55205         HAVE_GETDOMAINNAME.
55206         * NEWS: Mention the change.
55207
55208 2008-10-18  Bruno Haible  <bruno@clisp.org>
55209
55210         * modules/dirent: New file.
55211         * m4/dirent_h.m4: New file.
55212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55213         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55214         * modules/fchdir (Files): Remove lib/dirent.in.h.
55215         (Depends-on): Add dirent.
55216         (Makefile.am): Move rules to modules/dirent.
55217         * doc/posix-headers/dirent.texi: Mention the new module.
55218
55219 2008-10-18  Bruno Haible  <bruno@clisp.org>
55220
55221         Avoid -Wunused-parameter warnings in public gnulib header files.
55222         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55223         macro.
55224         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55225
55226 2008-10-18  Bruno Haible  <bruno@clisp.org>
55227
55228         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55229         * doc/glibc-functions/error.texi: Mention the module 'error'.
55230         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55231         * doc/glibc-functions/getdomainname.texi: Mention the module
55232         'getdomainname'.
55233         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55234         * doc/glibc-functions/getpagesize.texi: Mention the module
55235         'getpagesize'.
55236         * doc/glibc-functions/getusershell.texi: Mention the module
55237         'getusershell'.
55238         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55239         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55240         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55241         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55242         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55243         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55244         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55245         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55246         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55247         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55248         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55249         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55250         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55251         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55252
55253 2008-10-17  Bruno Haible  <bruno@clisp.org>
55254
55255         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55256         HP-UX and IRIX, use -0.0L.
55257         * tests/test-ceill.c (minus_zero): Likewise.
55258         * tests/test-floorl.c (minus_zero): Likewise.
55259         * tests/test-frexpl.c (minus_zero): Likewise.
55260         * tests/test-isnan.c (minus_zerol): Likewise.
55261         * tests/test-isnanl.h (minus_zero): Likewise.
55262         * tests/test-ldexpl.c (minus_zero): Likewise.
55263         * tests/test-roundl.c (minus_zero): Likewise.
55264         * tests/test-signbit.c (minus_zerol): Likewise.
55265         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55266         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55267         * tests/test-truncl.c (minus_zero): Likewise.
55268         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55269         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55270         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55271         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55272
55273 2008-10-17  Bruno Haible  <bruno@clisp.org>
55274
55275         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55276         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55277         that it gets activated only for gcc >= 3.0.
55278         * lib/dirent.in.h: Likewise.
55279         * lib/errno.in.h: Likewise.
55280         * lib/fcntl.in.h: Likewise.
55281         * lib/float.in.h: Likewise.
55282         * lib/iconv.in.h: Likewise.
55283         * lib/inttypes.in.h: Likewise.
55284         * lib/locale.in.h: Likewise.
55285         * lib/math.in.h: Likewise.
55286         * lib/netdb.in.h: Likewise.
55287         * lib/netinet_in.in.h: Likewise.
55288         * lib/search.in.h: Likewise.
55289         * lib/signal.in.h: Likewise.
55290         * lib/spawn.in.h: Likewise.
55291         * lib/stdarg.in.h: Likewise.
55292         * lib/stdint.in.h: Likewise.
55293         * lib/stdio.in.h: Likewise.
55294         * lib/stdlib.in.h: Likewise.
55295         * lib/string.in.h: Likewise.
55296         * lib/strings.in.h: Likewise.
55297         * lib/sys_file.in.h: Likewise.
55298         * lib/sys_ioctl.in.h: Likewise.
55299         * lib/sys_select.in.h: Likewise.
55300         * lib/sys_socket.in.h: Likewise.
55301         * lib/sys_stat.in.h: Likewise.
55302         * lib/sys_time.in.h: Likewise.
55303         * lib/sysexits.in.h: Likewise.
55304         * lib/time.in.h: Likewise.
55305         * lib/unistd.in.h: Likewise.
55306         * lib/wchar.in.h: Likewise.
55307         * lib/wctype.in.h: Likewise.
55308         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55309
55310 2008-10-17  Jim Meyering  <meyering@redhat.com>
55311
55312         ignore-value: don't depend on inline module
55313         * modules/ignore-value (Depends-on): Remove 'inline'.
55314         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55315         Suggestion from Bruno Haible.
55316
55317 2008-10-17  Bruno Haible  <bruno@clisp.org>
55318
55319         New implementation of condition variables for Win32.
55320         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55321         (gl_linked_waitqueue_t): New type.
55322         (gl_cond_t): Use it.
55323         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55324         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55325         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55326         (glthread_cond_init_func, glthread_cond_wait_func,
55327         glthread_cond_timedwait_func, glthread_cond_signal_func,
55328         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55329         Reimplemented on the basis of gl_linked_waitqueue_t.
55330         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55331         gl_waitqueue_t.
55332         (gl_rwlock_t): Update.
55333         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55334
55335 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55336
55337         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55338         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55339
55340 2008-10-17  Jim Meyering  <meyering@redhat.com>
55341
55342         ignore-value: new module
55343         * modules/ignore-value: New file.
55344         * lib/ignore-value.h: New file.
55345         * MODULES.html.sh (Compiler warning management): New section,
55346         just for this module.  More to come.
55347
55348 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55349
55350         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55351         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55352         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55353
55354 2008-10-16  Jim Meyering  <meyering@redhat.com>
55355
55356         openat-die.c: avoid 'no previous prototype' warning
55357         * lib/openat-die.c: Include "openat.h".
55358         Reported by Reuben Thomas <rrt@sc3d.org>.
55359
55360 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55361
55362         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55363         * lib/netdb.in.h: Fix typo.
55364         Reported by Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/netdb.in.h: Include sys/socket.h for platforms without
55367         netdb.h, to get structures like hostent on MinGW.
55368         * modules/netdb (Depends-on): Add sys_socket.
55369
55370 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55371
55372         * modules/netdb, modules/netdb-tests: New file.
55373         * m4/netdb_h.m4: New file.
55374         * lib/netdb.in.h: Add, currently just an empty file pending
55375         definitions.
55376         * tests/test-netdb.c: New file.
55377         * doc/posix-headers/netdb.texi: Mention that we replace it if
55378         needed.
55379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55380         netdb.
55381
55382 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55383
55384         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55385         with code.
55386
55387 2008-10-13  Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/glthread/cond.c (glthread_cond_wait_func,
55390         glthread_cond_timedwait_func): Add a comment.
55391
55392 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55393
55394         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55395         * tests/test-select.c: Likewise,
55396
55397 2008-10-13  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/glthread/cond.c (glthread_cond_wait_func,
55400         glthread_cond_timedwait_func): Fix variable name.
55401         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55402
55403 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55404
55405         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55406         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55407         struct sockaddr.sa_len.
55408         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55409
55410 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55411
55412         * build-aux/pmccabe2html: Add css and css_url parameters.
55413
55414 2008-10-12  Bruno Haible  <bruno@clisp.org>
55415
55416         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55417         calling aclx_get.
55418         Reported by Rainer Tammer <tammer@tammer.net>.
55419
55420 2008-10-12  Bruno Haible  <bruno@clisp.org>
55421
55422         Use msvcrt aware primitives for creation/termination of Win32 threads.
55423         * lib/glthread/thread.c: Include <process.h>.
55424         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55425         (wrapper_func): Update signature.
55426         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55427
55428 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55429             Bruno Haible  <bruno@clisp.org>
55430
55431         Provide a Win32 implementation of the 'cond' module.
55432         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55433         * lib/glthread/cond.c (glthread_cond_init_func,
55434         glthread_cond_wait_func, glthread_cond_timedwait_func,
55435         glthread_cond_signal_func, glthread_cond_broadcast_func,
55436         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55437         * modules/cond (Dependencies): Add gettimeofday.
55438
55439 2008-10-11  Bruno Haible  <bruno@clisp.org>
55440
55441         Make sleep work on older versions of mingw.
55442         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55443         only whether it exists.
55444         * doc/posix-functions/sleep.texi: Mention the problem with older
55445         versions of mingw.
55446
55447 2008-10-11  Bruno Haible  <bruno@clisp.org>
55448
55449         New module 'shutdown'.
55450         * modules/shutdown: New file.
55451         * lib/sys_socket.in.h (shutdown): New declaration.
55452         * lib/winsock.c (shutdown): New function.
55453         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55454         GNULIB_SHUTDOWN.
55455         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55456         * doc/posix-functions/shutdown.texi: Document the new module.
55457
55458 2008-10-11  Jim Meyering  <meyering@redhat.com>
55459
55460         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55461
55462 2008-10-11  Bruno Haible  <bruno@clisp.org>
55463
55464         New module 'fclose'.
55465         * modules/fclose: New file.
55466         * lib/stdio.in.h (fclose): New declaration.
55467         * lib/fclose.c: New file.
55468         * m4/fclose.m4: New file.
55469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55470         REPLACE_FCLOSE.
55471         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55472         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55473         REPLACE_FCLOSE.
55474         * modules/close (Depends-on): fclose.
55475         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55476
55477 2008-10-11  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55480         set errno and don't call _close.
55481
55482 2008-10-10  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55485         ACL, not afterwards. Fixes test failure on Cygwin.
55486
55487 2008-10-09  Ben Pfaff  <blp@gnu.org>
55488
55489         * build-aux/announce-gen: Fix gnulib version related part of usage
55490         message.  Die with a useful error message if no tarballs are
55491         found.
55492
55493 2008-10-10  Jim Meyering  <meyering@redhat.com>
55494
55495         bootstrap: use git's --depth=N option only if it's supported
55496         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55497         recognize the --depth option.  Reported by Pádraig Brady.
55498
55499 2008-10-09  Bruno Haible  <bruno@clisp.org>
55500
55501         New module 'ioctl'.
55502         * modules/ioctl: New file.
55503         * lib/sys_socket.in.h (ioctl): Remove declaration.
55504         * lib/winsock.c: Include <sys/ioctl.h>.
55505         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55506         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55507         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55508         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55509         * doc/posix-functions/ioctl.texi: Mention the new module.
55510
55511 2008-10-09  Bruno Haible  <bruno@clisp.org>
55512
55513         New module 'sys_ioctl'.
55514         * lib/sys_ioctl.in.h: New file.
55515         * m4/sys_ioctl_h.m4: New file.
55516         * modules/sys_ioctl: New file.
55517         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55518
55519 2008-10-09  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55522         * lib/winsock.c: Include <stdarg.h>.
55523         (rpl_ioctl): Change to second argument 'int' and then varargs.
55524
55525 2008-10-09  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55528         when the sys_socket module is present and the system has <winsock2.h>.
55529
55530 2008-10-09  Bruno Haible  <bruno@clisp.org>
55531
55532         * doc/posix-functions/close.texi: Mention module 'close' instead of
55533         module 'sys_socket'.
55534
55535 2008-10-09  Bruno Haible  <bruno@clisp.org>
55536
55537         * doc/glibc-headers/sys_ioctl.texi: New file.
55538         * doc/gnulib.texi: Include it.
55539
55540 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55541             Bruno Haible  <bruno@clisp.org>
55542
55543         Combine the two replacements of 'close'.
55544         * lib/sys_socket.in.h (close): Define to a reminder to include
55545         <unistd.h>.
55546         (_gl_close_fd_maybe_socket): New declaration.
55547         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55548         * lib/winsock.c (close): Remove undefinition.
55549         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55550         needed for the gnulib module 'close'.
55551         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55552         define to an error symbol or to a warning, if suitable.
55553         * lib/close.c: Include <sys/socket.h>.
55554         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55555         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55556         UNISTD_H_HAVE_WINSOCK2_H.
55557         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55559         UNISTD_H_HAVE_WINSOCK2_H.
55560         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55561         (configure.ac): Set a module indicator.
55562         (Makefile.am): Substitute GNULIB_CLOSE.
55563         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55564         * modules/poll-tests (Depends-on): Add close.
55565         * modules/select-tests (Depends-on): Likewise.
55566
55567 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55568             Bruno Haible  <bruno@clisp.org>
55569
55570         New module 'close'.
55571         * modules/close: New file.
55572         * lib/unistd.in.h (close): Move declaration out of the
55573         FCHDIR_REPLACEMENT scope.
55574         (_gl_unregister_fd): New declaration.
55575         * lib/close.c: New file.
55576         * lib/fchdir.c (rpl_close): Remove function.
55577         * m4/close.m4: New file.
55578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55579         close.
55580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55581         REPLACE_CLOSE.
55582         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55583         REPLACE_CLOSE.
55584         * modules/fchdir (Depends-on): Add close.
55585
55586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55587             Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/fcntl.in.h (open): Simplify conditionals.
55590         (_gl_register_fd): New declaration.
55591         * lib/fchdir.c (rpl_open): Remove function.
55592         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55593         also.
55594         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55596         open.
55597
55598 2008-10-09  Jim Meyering  <meyering@redhat.com>
55599
55600         GNUmakefile: use the more name-space-friendly "_version"
55601         * top/GNUmakefile (_dummy): Update.
55602         (_version): Rename from "version".
55603
55604 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55605             Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55608         rpl_close.
55609         (_gl_register_fd): New function, extracted from rpl_open.
55610         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55611         (rpl_open, rpl_opendir): Use _gl_register_fd.
55612
55613 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55614
55615         Fix organization of 'open' replacement.
55616         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55617         (gl_FUNC_OPEN): Use it.
55618         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55619
55620 2008-10-08  Bruno Haible  <bruno@clisp.org>
55621
55622         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55623
55624 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55625
55626         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55627         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55628         listen).
55629
55630 2008-10-08  Eric Blake  <ebb9@byu.net>
55631
55632         GNUmakefile: add 'make version' target
55633         * top/GNUmakefile (_curr-ver): Split version update rules...
55634         (version): ...into a target.
55635
55636 2008-10-07  Bruno Haible  <bruno@clisp.org>
55637
55638         Use a more portable replacement expression for -0.0L.
55639         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55640         instead of -0.0L. Fix m4 quotation.
55641
55642         * tests/test-signbit.c: Include <float.h>.
55643         (minus_zero): New variable.
55644         (test_signbitl): Use minus_zero instead of -zero.
55645         * modules/signbit-tests (Depends-on): Add float.
55646
55647         * tests/test-ceill.c: Include <float.h>.
55648         (zero): Remove variable.
55649         (minus_zero): New variable.
55650         (main): Use minus_zero instead of -zero.
55651         * modules/ceill-tests (Depends-on): Add float.
55652
55653         * tests/test-floorl.c: Include <float.h>.
55654         (zero): Remove variable.
55655         (minus_zero): New variable.
55656         (main): Use minus_zero instead of -zero.
55657         * modules/floorl-tests (Depends-on): Add float.
55658
55659         * tests/test-roundl.c: Include <float.h>.
55660         (zero): Remove variable.
55661         (minus_zero): New variable.
55662         (main): Use minus_zero instead of -zero.
55663         * modules/roundl-tests (Depends-on): Add float.
55664
55665         * tests/test-truncl.c: Include <float.h>.
55666         (zero): Remove variable.
55667         (minus_zero): New variable.
55668         (main): Use minus_zero instead of -zero.
55669         * modules/truncl-tests (Depends-on): Add float.
55670
55671         * tests/test-frexpl.c (zero): Remove variable.
55672         (minus_zero): New variable.
55673         (main): Use minus_zero instead of -zero.
55674         * modules/frexpl-tests (Depends-on): Add float.
55675
55676         * tests/test-isnan.c (zerol): Remove variable.
55677         (minus_zerol): New variable.
55678         (test_long_double): Use minus_zerol instead of -zerol.
55679         * modules/isnan-tests (Depends-on): Add float.
55680
55681         * tests/test-isnanl.h (zero): Remove variable.
55682         (minus_zero): New variable.
55683         (main): Use minus_zero instead of -zero.
55684         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55685         * modules/isnanl-tests (Depends-on): Add float.
55686
55687         * tests/test-ldexpl.c (zero): Remove variable.
55688         (minus_zero): New variable.
55689         (main): Use minus_zero instead of -zero.
55690         * modules/ldexpl-tests (Depends-on): Add float.
55691
55692         * tests/test-snprintf-posix.h (zerol): Remove variable.
55693         (minus_zerol): New variable.
55694         (test_function): Use minus_zerol instead of -zerol.
55695         * modules/snprintf-posix-tests (Depends-on): Add float.
55696         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55697
55698         * tests/test-sprintf-posix.h (zerol): Remove variable.
55699         (minus_zerol): New variable.
55700         (test_function): Use minus_zerol instead of -zerol.
55701         * modules/sprintf-posix-tests (Depends-on): Add float.
55702         * modules/vsprintf-posix-tests (Depends-on): Add float.
55703
55704         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55705         (minus_zerol): New variable.
55706         (test_function): Use minus_zerol instead of -zerol.
55707         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55708
55709         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55710         (minus_zerol): New variable.
55711         (test_function): Use minus_zerol instead of -zerol.
55712         * modules/vasprintf-posix-tests (Depends-on): Add float.
55713
55714 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55715
55716         * MODULES.html.sh (Support for building documentation): Mention
55717         pmccabe2html.  Sort entries.
55718
55719         Add pmccabe2html module, from gnupdf.
55720         * build-aux/pmccabe.css: New file.
55721         * build-aux/pmccabe2html: New file.
55722         * m4/pmccabe2html.m4: New file.
55723         * modules/pmccabe2html: New file.
55724
55725 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55726
55727         flock: new module
55728         * MODULES.html.sh: Add to list of modules.
55729         * lib/flock.c: flock implementation for Windows and Unix systems
55730         which have fcntl.
55731         * doc/glibc-functions/flock.texi: Update documentation.
55732         * lib/sys_file.in.h: <sys/file.h> header file.
55733         * m4/flock.m4: M4 macros.
55734         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55735         * modules/flock: flock module.
55736         * modules/flock-tests: flock tests module.
55737         * modules/sys_file: sys/file.h module.
55738         * tests/test-flock.c: test suite for flock.
55739
55740 2008-10-06  Jim Meyering  <meyering@redhat.com>
55741
55742         bootstrap: check for LT_INIT more portably still ;-)
55743         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55744         Spotted by Bruno Haible.
55745
55746 2008-10-06  Eric Blake  <ebb9@byu.net>
55747
55748         test-signbit: avoid tripping Irix cc bug on -0.0L
55749         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55750         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55751         entire testsuite consistent and avoids an Irix 6.2 bug.
55752
55753 2008-10-05  Bruno Haible  <bruno@clisp.org>
55754             Jim Meyering  <jim@meyering.net>
55755
55756         Add an option for ignoring EPIPE during close_stdout.
55757         * lib/closeout.h: Include <stdbool.h>.
55758         (close_stdout_set_ignore_EPIPE): New declaration.
55759         * lib/closeout.c: Include <stdbool.h>.
55760         (ignore_EPIPE): New variable.
55761         (close_stdout_set_ignore_EPIPE): New function.
55762         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55763         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55764         failure.
55765         * modules/closeout (Depends-on): Add stdbool.
55766
55767 2008-10-05  Bruno Haible  <bruno@clisp.org>
55768
55769         * modules/accept: New file.
55770         * modules/bind: New file.
55771         * modules/connect: New file.
55772         * modules/getpeername: New file.
55773         * modules/getsockname: New file.
55774         * modules/getsockopt: New file.
55775         * modules/listen: New file.
55776         * modules/recv: New file.
55777         * modules/recvfrom: New file.
55778         * modules/send: New file.
55779         * modules/sendto: New file.
55780         * modules/setsockopt: New file.
55781         * modules/socket: New file.
55782         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55783         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55784         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55785         the particular module is requested. Add a link warning when the
55786         particular module is not requested.
55787         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55788         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55789         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55790         the particular module is requested.
55791         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55792         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55793         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55794         * modules/sys_socket (Depends-on): Add link-warning.
55795         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55796         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55797         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55798         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55799         GL_LINK_WARNING.
55800         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55801         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55802         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55803         * doc/posix-functions/getpeername.texi: Mention the new module
55804         'getpeername'.
55805         * doc/posix-functions/getsockname.texi: Mention the new module
55806         'getsockname'.
55807         * doc/posix-functions/getsockopt.texi: Mention the new module
55808         'getsockopt'.
55809         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55810         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55811         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55812         * doc/posix-functions/send.texi: Mention the new module 'send'.
55813         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55814         * doc/posix-functions/setsockopt.texi: Mention the new module
55815         'setsockopt'.
55816         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55817         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55818         listen, connect, accept.
55819         * modules/select-tests (Depends-on): Likewise.
55820
55821 2008-10-05  Bruno Haible  <bruno@clisp.org>
55822
55823         * lib/winsock.c (strerror): Remove unused #undef.
55824         (rpl_close): Remove unused local variable.
55825
55826         * modules/sys_socket (Depends-on); Add errno.
55827
55828 2008-10-05  Bruno Haible  <bruno@clisp.org>
55829
55830         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55831         (select): Add a link warning when the 'select' module is not used.
55832         * modules/sys_select (Depends-on): Add link-warning.
55833         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55834         Suggested by Paolo Bonzini.
55835
55836 2008-10-05  Jim Meyering  <meyering@redhat.com>
55837
55838         bootstrap: check for LT_INIT more portably
55839         * build-aux/bootstrap: Avoid using grep -E, since it's not
55840         portable enough.  Suggestion from Bruno Haible.
55841
55842 2008-10-05  Bruno Haible  <bruno@clisp.org>
55843
55844         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55845         as being fixed by gnulib.
55846
55847 2008-10-05  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/select-tests: New file, mostly copied from
55850         modules/sys_select-tests.
55851         * tests/test-select.c: New file, mostly copied from
55852         tests/test-sys_select.c.
55853         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55854         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55855         (Makefile.am): Remove test_sys_select_LDADD.
55856
55857         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55858         to an undefined symbol, for an error message.
55859         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55860         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55861         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55862         winsock-select.c here.
55863         * modules/sys_select (Files): Remove lib/winsock-select.c.
55864         (Depends-on): Remove alloca.
55865         (Makefile.am): Substitute GNULIB_SELECT.
55866         * modules/select: New file.
55867         * doc/posix-functions/select.texi: Update.
55868
55869 2008-10-05  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55872         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55873         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55874         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55875         getdtablesize.
55876         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55877         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55878
55879 2008-10-05  Bruno Haible  <bruno@clisp.org>
55880
55881         * modules/getdtablesize-tests: New file.
55882         * tests/test-getdtablesize.c: New file.
55883
55884         New module 'getdtablesize'.
55885         * lib/unistd.in.h (getdtablesize): New declaration.
55886         * lib/getdtablesize.c: New file.
55887         * m4/getdtablesize.m4: New file.
55888         * modules/getdtablesize: New file.
55889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55890         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55891         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55892         HAVE_GETDTABLESIZE.
55893         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55894
55895 2008-10-05  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/sched (Makefile.am): Fix typo.
55898         Reported by Simon Josefsson.
55899
55900 2008-10-05  Jim Meyering  <meyering@redhat.com>
55901
55902         bootstrap: check for LT_INIT, too
55903         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55904         are deprecated.  Suggestion from Ralf Wildenhues.
55905
55906 2008-10-05  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55909         overriding them by ours.
55910         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55911
55912 2008-10-05  Jim Meyering  <meyering@redhat.com>
55913
55914         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55915         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55916         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55917
55918 2008-10-04  Bruno Haible  <bruno@clisp.org>
55919
55920         * modules/dup2 (License): Change to LGPLv2+.
55921         * modules/sleep (License): Likewise.
55922         * modules/perror (License): Likewise.
55923         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55924         Blake.
55925         * modules/signal (License): Likewise.
55926         * modules/sigprocmask (License): Likewise.
55927         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55928         Meyering.
55929
55930 2008-10-04  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55933         Reported by Rainer Tammer <tammer@tammer.net>.
55934
55935 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55936             Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55939         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55940         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55941
55942 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55943
55944         filevercmp: new module
55945         * lib/filevercmp.h: New function filevercmp comparing version strings.
55946         * lib/filevercmp.c: Implementation of filevercmp function.
55947         * modules/filevercmp: Module metadata.
55948         * tests/test-filevercmp.c: Unit test for new module.
55949         * modules/filevercmp-tests: Unit test metadata.
55950         * MODULES.html.sh: Add filevercmp module.
55951
55952 2008-10-03  Bruno Haible  <bruno@clisp.org>
55953
55954         * lib/c-ctype.h: Add comment.
55955         Reported by Jim Meyering.
55956
55957 2008-10-02  Bruno Haible  <bruno@clisp.org>
55958
55959         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55960
55961 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55962
55963         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55964         name of bootstrap.conf accordingly.
55965
55966 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55967
55968         * build-aux/bootstrap: Install git-merge-changelog configuration
55969         items into .gitconfig if needed.
55970
55971 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55972
55973         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55974         git repository, and initialize/update it accordingly.
55975
55976 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55977
55978         * modules/fsync-tests: New file.
55979         * tests/test-fsync.c: New file.
55980
55981         New module 'fsync'.
55982         * lib/fsync.c: New file.
55983         * m4/fsync.m4: New file.
55984         * modules/fsync: New file.
55985         * lib/unistd.in.h (fsync): New declaration.
55986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55987         GNULIB_FSYNC and HAVE_FSYNC.
55988         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55989         * MODULES.html.sh (posix_functions): Add fsync.
55990         * doc/posix-functions/fsync.texi: Mention the new module.
55991
55992 2008-10-02  Jim Meyering  <meyering@redhat.com>
55993
55994         fts.c: sync with similar code from coreutils' remove.c
55995         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55996         Guard also with "#if defined __linux__", since for now at least,
55997         this code is Linux-kernel-specific.
55998
55999 2008-10-02  Jim Meyering  <meyering@redhat.com>
56000
56001         fts: bug fixes
56002         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56003         Include <sys/vfs.h>, not <sys/statfs.h>.
56004
56005         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56006         Include <sys/vfs.h>, not <sys/statfs.h>.
56007
56008 2008-10-01  Bruno Haible  <bruno@clisp.org>
56009
56010         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56012         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56013         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56014         * doc/posix-functions/posix_spawnp.texi: Likewise.
56015         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56016         whether posix_spawn actually works.
56017         * m4/pipe.m4 (gl_PIPE): Likewise.
56018         * modules/execute (Files): Add m4/posix_spawn.m4.
56019         * modules/pipe (Files): Add m4/posix_spawn.m4.
56020         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56021
56022 2008-10-01  Jim Meyering  <meyering@redhat.com>
56023
56024         remove trailing spaces
56025         * NEWS: Likewise.
56026         * lib/poll.c (poll): Likewise.
56027         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56028         * lib/winsock.c (rpl_close): Likewise.
56029         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56030         * modules/yield: Likewise.
56031         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56032         * tests/test-sys_select.c (connect_to_socket): Likewise.
56033
56034         fts.c: adjust a new interface to be more generally useful
56035         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56036         (fts_build): Adjust caller.
56037
56038 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56039
56040         * modules/cond-tests: New file.
56041         * tests/test-cond.c: New file.
56042
56043 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56044             Bruno Haible  <bruno@clisp.org>
56045
56046         * modules/cond (Dependencies): Add errno, time.
56047         * lib/glthread/cond.h: Include <time.h>.
56048         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56049         across platforms.
56050
56051 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56052             Bruno Haible  <bruno@clisp.org>
56053
56054         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56055
56056 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56057             Bruno Haible  <bruno@clisp.org>
56058
56059         * modules/tls-tests (Depends-on): Add thread, yield.
56060         (configure.ac): Remove all checks.
56061         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56062         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56063         gl_thread_self): Remove definitions. Include glthread/thread.h and
56064         glthread/yield.h instead.
56065         (test_tls): Pass an additional NULL argument to gl_thread_join.
56066
56067 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56068             Bruno Haible  <bruno@clisp.org>
56069
56070         * modules/lock-tests (Depends-on): Add thread, yield.
56071         (configure.ac): Remove all checks.
56072         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56073         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56074         gl_thread_self): Remove definitions. Include glthread/thread.h and
56075         glthread/yield.h instead.
56076         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56077         additional NULL argument to gl_thread_join.
56078
56079 2008-09-30  Bruno Haible  <bruno@clisp.org>
56080
56081         Fix the Win32 implementation of the 'thread' module.
56082         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56083         pointer type.
56084         (gl_thread_self): Invoke gl_thread_self_func.
56085         (gl_thread_self_func): New declaration.
56086         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56087         (do_init_self_key, init_self_key): New functions.
56088         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56089         Remove some fields.
56090         (running_threads, running_lock): Remove variables.
56091         (get_current_thread_handle): New function.
56092         (gl_thread_self_func, wrapper_func, glthread_create_func,
56093         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56094         simplified.
56095
56096 2008-09-30  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56099         files.
56100
56101 2008-09-30  Jim Meyering  <meyering@redhat.com>
56102
56103         fts.m4: correct the test for statfs.f_type
56104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56105         when checking for statfs.f_type.
56106
56107 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56108
56109         tests: avoid some compiler warnings
56110         * tests/test-memchr.c (main): Pass NULL indirectly.
56111         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56112
56113 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
56114
56115         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56116         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56117         exactly specified dayshifts.
56118         (dayshift): New rule.
56119         (rel): Add dayshift.
56120         (relative_time_table) [tomorrow, yesterday, today, now]:
56121         Use tDAY_SHIFT in place of tDAY_UNIT.
56122         * tests/test-getdate.c: Add tests for now-disallowed countable
56123         dayshifts, e.g., "4 yesterday ago".
56124
56125 2008-09-29  Bruno Haible  <bruno@clisp.org>
56126
56127         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56128         * tests/test-posix_spawn1.in.sh: Renamed from
56129         tests/test-posix_spawn.in.sh.
56130         * tests/test-posix_spawn2.c: New file.
56131         * tests/test-posix_spawn2.in.sh: New file.
56132         * modules/posix_spawnp-tests (Files): Update.
56133         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56134
56135 2008-09-29  Bruno Haible  <bruno@clisp.org>
56136
56137         Propagate effects of putenv/setenv/unsetenv to child processes.
56138         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56139         * lib/pipe.c (create_pipe): Likewise.
56140
56141 2008-09-29  Bruno Haible  <bruno@clisp.org>
56142
56143         Enable use of shell scripts as executables in mingw.
56144         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56145         run the program as a shell script.
56146         * lib/pipe.c (create_pipe): Likewise.
56147         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56148         resulting array.
56149
56150 2008-09-29  Eric Blake  <ebb9@byu.net>
56151
56152         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56153
56154 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56155
56156         * doc/posix-functions/accept.texi: Update mingw problems.
56157         * doc/posix-functions/bind.texi: Update mingw problems.
56158         * doc/posix-functions/close.texi: Update mingw problems.
56159         * doc/posix-functions/connect.texi: Update mingw problems.
56160         * doc/posix-functions/getpeername.texi: Update mingw problems.
56161         * doc/posix-functions/getsockname.texi: Update mingw problems.
56162         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56163         * doc/posix-functions/ioctl.texi: Update mingw problems.
56164         * doc/posix-functions/listen.texi: Update mingw problems.
56165         * doc/posix-functions/recv.texi: Update mingw problems.
56166         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56167         * doc/posix-functions/select.texi: Update mingw problems.
56168         * doc/posix-functions/send.texi: Update mingw problems.
56169         * doc/posix-functions/sendto.texi: Update mingw problems.
56170         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56171         * doc/posix-functions/socket.texi: Update mingw problems.
56172
56173 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56174             Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/sys_select.in.h: Include sys/time.h.
56177         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56178         * modules/sys_select: Depend on sys_time.
56179         * tests/test-sys_select.c: Test that sys/select.h defines struct
56180         timeval fully.
56181
56182 2008-09-29  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56185         * lib/sys_select.in.h: Likewise.
56186
56187 2008-09-29  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56190
56191 2008-09-29  Bruno Haible  <bruno@clisp.org>
56192
56193         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56194         Set LIBSOCKET instead of augmenting LIBS.
56195         * modules/sockets (Link): New section.
56196         * modules/sockets-tests (test_sockets_LDADD): New variable.
56197         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56198         * modules/poll-tests (test_poll_LDADD): New variable.
56199         * NEWS: Document the change.
56200
56201 2008-09-29  Bruno Haible  <bruno@clisp.org>
56202
56203         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56204         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56205         ARPA_INET_H directly.
56206         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56207
56208 2008-09-28  Bruno Haible  <bruno@clisp.org>
56209
56210         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56211         from gl_HEADER_SYS_SOCKET.
56212         (gl_HEADER_SYS_SOCKET): Invoke it.
56213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56214
56215 2008-09-28  Bruno Haible  <bruno@clisp.org>
56216
56217         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56218         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56219         Needed on OSF/1 4.0.
56220
56221 2008-09-28  Bruno Haible  <bruno@clisp.org>
56222
56223         Override open more carefully.
56224         * lib/open.c (orig_open): New function.
56225         (rpl_open): Use orig_open instead of open.
56226         * lib/fcntl.in.h: Add special invocation convention.
56227         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56228         (gl_FUNC_OPEN): Invoke it.
56229
56230         Override freopen more carefully.
56231         * lib/freopen.c (orig_freopen): New function.
56232         (rpl_freopen): Use orig_freopen instead of freopen.
56233         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56234         (gl_FUNC_FREOPEN): Invoke it.
56235
56236         Override fopen more carefully.
56237         * lib/fopen.c (orig_fopen): New function.
56238         (rpl_fopen): Use orig_fopen instead of fopen.
56239         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56240         (gl_FUNC_FOPEN): Invoke it.
56241         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56242
56243 2008-09-28  Bruno Haible  <bruno@clisp.org>
56244
56245         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56246         SIGPIPE.
56247
56248 2008-09-28  Bruno Haible  <bruno@clisp.org>
56249
56250         * tests/test-sigaction.c (handler, main): Disable the check whether
56251         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56252         glibc systems with LinuxThreads.
56253
56254 2008-09-28  Bruno Haible  <bruno@clisp.org>
56255
56256         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56257
56258         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56259         with AIX xlc.
56260         * lib/fcntl.in.h (open): Likewise.
56261         Reported by Rainer Tammer <tammer@tammer.net>.
56262
56263 2008-09-28  Bruno Haible  <bruno@clisp.org>
56264
56265         * modules/posix_spawnp-tests: New file.
56266         * tests/test-posix_spawn.c: New file.
56267         * tests/test-posix_spawn.in.sh: New file.
56268
56269         New module 'posix_spawnp'.
56270         * modules/posix_spawnp: New file.
56271         * lib/spawnp.c: New file, from GNU libc with modifications.
56272         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56273
56274         New module 'posix_spawn'.
56275         * modules/posix_spawn: New file.
56276         * lib/spawn.c: New file, from GNU libc with modifications.
56277         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56278
56279         New module 'posix_spawnattr_destroy'.
56280         * modules/posix_spawnattr_destroy: New file.
56281         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56282         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56283         module.
56284
56285         New module 'posix_spawnattr_setsigmask'.
56286         * modules/posix_spawnattr_setsigmask: New file.
56287         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56288         modifications.
56289         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56290         new module.
56291
56292         New module 'posix_spawnattr_getsigmask'.
56293         * modules/posix_spawnattr_getsigmask: New file.
56294         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56295         modifications.
56296         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56297         new module.
56298
56299         New module 'posix_spawnattr_setsigdefault'.
56300         * modules/posix_spawnattr_setsigdefault: New file.
56301         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56302         modifications.
56303         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56304         new module.
56305
56306         New module 'posix_spawnattr_getsigdefault'.
56307         * modules/posix_spawnattr_getsigdefault: New file.
56308         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56309         modifications.
56310         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56311         new module.
56312
56313         New module 'posix_spawnattr_setschedpolicy'.
56314         * modules/posix_spawnattr_setschedpolicy: New file.
56315         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56316         modifications.
56317         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56318         new module.
56319
56320         New module 'posix_spawnattr_getschedpolicy'.
56321         * modules/posix_spawnattr_getschedpolicy: New file.
56322         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56323         modifications.
56324         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56325         new module.
56326
56327         New module 'posix_spawnattr_setschedparam'.
56328         * modules/posix_spawnattr_setschedparam: New file.
56329         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56330         modifications.
56331         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56332         new module.
56333
56334         New module 'posix_spawnattr_getschedparam'.
56335         * modules/posix_spawnattr_getschedparam: New file.
56336         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56337         modifications.
56338         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56339         new module.
56340
56341         New module 'posix_spawnattr_setpgroup'.
56342         * modules/posix_spawnattr_setpgroup: New file.
56343         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56344         modifications.
56345         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56346         module.
56347
56348         New module 'posix_spawnattr_getpgroup'.
56349         * modules/posix_spawnattr_getpgroup: New file.
56350         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56351         modifications.
56352         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56353         module.
56354
56355         New module 'posix_spawnattr_setflags'.
56356         * modules/posix_spawnattr_setflags: New file.
56357         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56358         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56359         module.
56360
56361         New module 'posix_spawnattr_getflags'.
56362         * modules/posix_spawnattr_getflags: New file.
56363         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56364         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56365         module.
56366
56367         New module 'posix_spawnattr_init'.
56368         * modules/posix_spawnattr_init: New file.
56369         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56370         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56371         module.
56372
56373         New module 'posix_spawn_file_actions_destroy'.
56374         * modules/posix_spawn_file_actions_destroy: New file.
56375         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56376         modifications.
56377         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56378         the new module.
56379
56380         New module 'posix_spawn_file_actions_addopen'.
56381         * modules/posix_spawn_file_actions_addopen: New file.
56382         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56383         modifications.
56384         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56385         the new module.
56386
56387         New module 'posix_spawn_file_actions_adddup2'.
56388         * modules/posix_spawn_file_actions_adddup2: New file.
56389         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56390         modifications.
56391         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56392         the new module.
56393
56394         New module 'posix_spawn_file_actions_addclose'.
56395         * modules/posix_spawn_file_actions_addclose: New file.
56396         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56397         modifications.
56398         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56399         the new module.
56400
56401         New module 'posix_spawn_file_actions_init'.
56402         * modules/posix_spawn_file_actions_init: New file.
56403         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56404         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56405         new module.
56406
56407         New module 'posix_spawn-internal'.
56408         * modules/posix_spawn-internal: New file.
56409         * lib/spawn_int.h: New file, from GNU libc with modifications.
56410         * lib/spawni.c: New file, from GNU libc with modifications.
56411         * m4/posix_spawn.m4: New file.
56412
56413         New module 'spawn'.
56414         * modules/spawn: New file.
56415         * lib/spawn.in.h: New file, from GNU libc with modifications.
56416         * m4/spawn_h.m4: New file.
56417         * doc/posix-headers/spawn.texi: Mention the new module.
56418
56419 2008-09-28  Bruno Haible  <bruno@clisp.org>
56420
56421         * modules/sched-tests: New file.
56422         * tests/test-sched.c: New file.
56423
56424         New module 'sched'.
56425         * modules/sched: New file.
56426         * lib/sched.in.h: New file.
56427         * m4/sched_h.m4: New file.
56428         * doc/posix-headers/sched.texi: Mention the new module.
56429
56430 2008-09-27  Eric Blake  <ebb9@byu.net>
56431
56432         Fix previous patch, and tweak references to $0.
56433         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56434         (func_version, func_gnulib_dir): Don't call this program
56435         gnulib-tool.
56436         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56437         with using $0 in function.
56438         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56439         (func_fatal_error): Reuse the name the user invoked us with.
56440
56441 2008-09-27  Bruno Haible  <bruno@clisp.org>
56442
56443         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56444         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56445         (gl_ICONV_H): Not here.
56446         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56447         instead of assigning ICONV_H directly.
56448
56449         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56451         WCHAR_H directly.
56452
56453 2008-09-27  Bruno Haible  <bruno@clisp.org>
56454
56455         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56456         * modules/arpa_inet (Depends-on): Add link-warning.
56457         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56458         * modules/unistd (Makefile.am): Likewise.
56459
56460 2008-09-26  Bruno Haible  <bruno@clisp.org>
56461
56462         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56463         variables.
56464         (func_version): Essentially copied from gnulib-tool.
56465         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56466         func_readlink): Copied from gnulib-tool.
56467
56468 2008-09-26  Bruno Haible  <bruno@clisp.org>
56469
56470         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56471         invoking git-version-gen.
56472
56473 2008-09-26  Bruno Haible  <bruno@clisp.org>
56474
56475         * posix-modules: Update to directory names changed on 2008-01-19.
56476         Remove commas in output before splitting into words. No more need to
56477         avoid 'ftruncate' since 2007-02-19.
56478
56479 2008-09-26  Bruno Haible  <bruno@clisp.org>
56480
56481         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56482
56483 2008-09-26  Bruno Haible  <bruno@clisp.org>
56484
56485         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56486         * modules/fwriteerror (Depends-on): Add errno.
56487
56488 2008-09-26  Bruno Haible  <bruno@clisp.org>
56489
56490         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56491         * tests/test-vc-list-files-cvs.sh: Likewise.
56492
56493 2008-09-26  Bruno Haible  <bruno@clisp.org>
56494
56495         * doc/posix-headers/sys_resource.texi: Reorder items.
56496
56497 2008-09-26  Jim Meyering  <meyering@redhat.com>
56498
56499         fts: tweak inode comparison function
56500         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56501         inode numbers, as documented.
56502
56503         fts: sort dirent entries on inode number before traversing
56504         This avoids a quadratic, seek-related performance penalty when
56505         operating on a directory containing many entries (measurable at 10k;
56506         3.5 hours at 2 million entries with a cold cache) on certain types
56507         of file systems, including ext3 and ext4, but not tmpfs.
56508         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56509         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56510         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56511         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56512         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56513         (fts_build): Set the stat.st_ino member from D_INO.
56514         If it is likely to be useful, sort dirent entries on inode number.
56515
56516         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56517         and the struct statfs.f_type member.
56518         * modules/fts (Depends-on): Add d-ino.
56519
56520 2008-09-26  Bruno Haible  <bruno@clisp.org>
56521
56522         * modules/sigpipe-die (Depends-on): Add sigpipe.
56523
56524         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56525         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56526         and GNULIB_STDIO_H_SIGPIPE are set.
56527         * lib/stdio-write.c: New file.
56528         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56529         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56530         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56531         REPLACE_STDIO_WRITE_FUNCS.
56532         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56533         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56534         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56535         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56536         * modules/stdio (Files): Add lib/stdio-write.c.
56537         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56538         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56539         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56540         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56541         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56542         REPLACE_FPRINTF_POSIX.
56543         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56544         REPLACE_PRINTF_POSIX.
56545         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56546         REPLACE_VFPRINTF_POSIX.
56547         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56548         REPLACE_VPRINTF_POSIX.
56549         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56550         SIGPIPE issue.
56551         * doc/posix-functions/fputc.texi: Likewise.
56552         * doc/posix-functions/fputs.texi: Likewise.
56553         * doc/posix-functions/fwrite.texi: Likewise.
56554         * doc/posix-functions/printf.texi: Likewise.
56555         * doc/posix-functions/putc.texi: Likewise.
56556         * doc/posix-functions/putchar.texi: Likewise.
56557         * doc/posix-functions/puts.texi: Likewise.
56558         * doc/posix-functions/vfprintf.texi: Likewise.
56559         * doc/posix-functions/vprintf.texi: Likewise.
56560
56561         * modules/safe-write (Depends-on): Add write.
56562
56563         * modules/sigpipe-tests: New file.
56564         * tests/test-sigpipe.c: New file.
56565         * tests/test-sigpipe.sh: New file.
56566
56567         * modules/write: New file.
56568         * lib/unistd.in.h: Include <sys/types.h>.
56569         (write): New declaration.
56570         * lib/write.c: New file.
56571         * m4/write.m4: New file.
56572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56573         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56574         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56575         GNULIB_WRITE, REPLACE_WRITE.
56576         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56577         and the SIGPIPE issue.
56578
56579         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56580         (raise): New declaration.
56581         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56582         (ext_signal): New function.
56583         (rpl_raise): New function.
56584         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56585         GNULIB_SIGNAL_H_SIGPIPE.
56586         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56587         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56588
56589         * modules/sigpipe: New file.
56590         * m4/sigpipe.m4: New file.
56591
56592 2008-09-25  Derek Price  <derek@ximbiot.com>
56593             Bruno Haible  <bruno@clisp.org>
56594
56595         * gnulib-tool (func_import): Report all license incompatibilities, not
56596         just the first one.
56597
56598 2008-09-25  Bruno Haible  <bruno@clisp.org>
56599
56600         * gnulib-tool (func_import): When computing the edits, consider not
56601         only the Makefile.ams that exist but also those that will be generated.
56602
56603 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56604
56605         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56606         fixes gnulib-tool --test warning about duplicate dependency.
56607
56608 2008-09-25  Bruno Haible  <bruno@clisp.org>
56609
56610         * gnulib-tool: Don't ask the user to perform edits in the generated
56611         Makefile.ams.
56612         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56613         apply to the Makefile.am being generated.
56614         (func_emit_tests_Makefile_am): Execute edits that apply to the
56615         Makefile.am being generated.
56616         (func_import): Setup list of Makefile.am edits before emitting the
56617         Makefile.ams, not at the end.
56618         (func_create_testdir): Update.
56619         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56620
56621 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56622
56623         * gnulib-tool (func_import): Store the --tests-base option in the
56624         comment in gnulib-cache.m4.
56625
56626 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56627
56628         * NEWS: Document increased portability that sys_select now provides.
56629
56630         * lib/sys_select.in.h: Install select wrapper.
56631         * lib/sys_socket.in.h: Use more descriptive name when there is no
56632         select wrapper.
56633         * lib/winsock-select.c: New.
56634         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56635         Require gl_HEADER_SYS_SOCKET.
56636         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56637         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56638         * tests/test-sys_select.c: Add functional tests.
56639
56640 2008-09-24  Eric Blake  <ebb9@byu.net>
56641
56642         open, fopen: close fd leak in last patch
56643         * lib/open.c (rpl_open): Close fd before returning error.
56644         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56645         * doc/posix-functions/open.texi (open): Document that Irix also
56646         has the bug.
56647         * doc/posix-functions/fopen.texi (fopen): Likewise.
56648         Reported by Paolo Bonzini.
56649
56650 2008-09-24  Bruno Haible  <bruno@clisp.org>
56651
56652         Ensure that a filename ending in a slash cannot be used to access a
56653         non-directory.
56654         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56655         to check whether it's really a directory.
56656         * lib/fopen.c: Include fcntl.h, unistd.h.
56657         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56658         and fdopen().
56659         * modules/fopen (Depends-on): Add unistd.
56660         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56661         * tests/test-fopen.c (main): Likewise.
56662         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56663         * doc/posix-functions/fopen.texi: Likewise.
56664         Reported by Eric Blake.
56665
56666 2008-09-23  Eric Blake  <ebb9@byu.net>
56667
56668         c-stack: avoid compiler optimizations when provoking overflow
56669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56670         recursion harder to optimize, to ensure a stack overflow occurs.
56671         * tests/test-c-stack.c (recurse): Likewise.
56672         Borrowed from libsigsegv.
56673
56674         c-stack: work around Irix sigaltstack bug
56675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56676         whether sigaltstack uses wrong end of stack_t (copied in part from
56677         libsigsegv).
56678         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56679         Irix bug, without requiring an over-allocation.
56680         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56681         bug.
56682
56683         fopen: document mingw bug on directories
56684         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56685         not allowing a stream visiting a directory, even though reading
56686         from such a stream is not portable.
56687
56688 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56689
56690         * lib/poll.c: Rewrite.
56691         * modules/poll: Depend on alloca.
56692
56693 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56694
56695         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56696         instead define prototypes for a full set of wrappers.  Ensure
56697         that Cygwin does not use the compatibility code, which is only
56698         for MinGW.
56699         * lib/winsock.c: New.
56700         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56701         * modules/sys_socket: Add lib/winsock.c.
56702
56703         * modules/poll-tests: Add errno and perror.
56704         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56705
56706 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56707
56708         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56709
56710 2008-09-23  Bruno Haible  <bruno@clisp.org>
56711
56712         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56713         * doc/glibc-functions/*: Likewise.
56714
56715 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56716
56717         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56718         success.
56719
56720 2008-09-22  Eric Blake  <ebb9@byu.net>
56721             Bruno Haible  <bruno@clisp.org>
56722
56723         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56724         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56725         supply %A but mishandle pseudo-NaN.
56726         Reported by Simon Josefsson.
56727
56728 2008-09-21  Bruno Haible  <bruno@clisp.org>
56729
56730         * tests/test-lock.c (main): Tweak skip message.
56731         * tests/test-tls.c (main): Likewise.
56732
56733 2008-09-21  Bruno Haible  <bruno@clisp.org>
56734
56735         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56736         whether 'struct sigaction' has sa_sigaction here...
56737         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56738         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56739
56740 2008-09-21  Bruno Haible  <bruno@clisp.org>
56741
56742         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56743         section.
56744         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56745         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56746         the new section.
56747         (Support for obsolete systems lacking POSIX:2001): New section.
56748         (String handling <string.h>): Move strdup to the new section.
56749         Suggested by Simon Josefsson and Paolo Bonzini.
56750
56751 2008-09-21  Bruno Haible  <bruno@clisp.org>
56752
56753         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56754         exponents in %e and %g results on 'long double'. Needed for mingw's
56755         improved *printf functions.
56756         * tests/test-vasprintf-posix.c (test_function): Likewise.
56757         * tests/test-snprintf-posix.h (test_function): Likewise.
56758         * tests/test-sprintf-posix.h (test_function): Likewise.
56759         Reported by Eric Blake.
56760
56761 2008-09-21  Bruno Haible  <bruno@clisp.org>
56762
56763         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56764         * tests/test-sprintf-posix.h (test_function): Likewise.
56765
56766 2008-09-21  Bruno Haible  <bruno@clisp.org>
56767
56768         * modules/getpass (Depends-on): Add strdup-posix.
56769
56770         New module 'strdup-posix'.
56771         * modules/strdup-posix: New file.
56772         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56773         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56775         REPLACE_STRDUP.
56776         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56777         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56779         strdup-posix.
56780
56781         * modules/strdup (Depends-on): Remove malloc-posix.
56782
56783 2008-09-20  Bruno Haible  <bruno@clisp.org>
56784
56785         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56786         Wildenhues.
56787
56788 2008-09-20  Bruno Haible  <bruno@clisp.org>
56789
56790         Ensure that wint_t gets defined on IRIX 5.3.
56791         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56792         * lib/wctype.in.h (wint_t): Likewise.
56793         (__wctype_wint_t): Remove type.
56794         (isw*): Use wint_t instead of __wctype_wint_t.
56795         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56796         * modules/wchar (Files): Add m4/wint_t.m4.
56797         (Makefile.am): Substitute HAVE_WINT_T.
56798         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56799         * tests/test-wctype.c: Check that wint_t is defined.
56800         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56801         * doc/posix-headers/wctype.texi: Likewise.
56802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56803
56804 2008-09-18  Bruno Haible  <bruno@clisp.org>
56805
56806         * gnulib-tool (func_exit): Update comment.
56807
56808 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56809
56810         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56811         assumes strdup exists and does not depend on strdup to return
56812         ENOMEM on out of memory conditions.
56813
56814 2008-09-18  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56817         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56818         digits for the exponent.
56819
56820 2008-09-18  Jim Meyering  <meyering@redhat.com>
56821             Bruno Haible  <bruno@clisp.org>
56822
56823         * lib/vasnprintf.c (decimal_point_char): Define also if
56824         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56825
56826 2008-09-16  Bruno Haible  <bruno@clisp.org>
56827         and Eric Blake  <ebb9@byu.net>
56828
56829         vasnprintf: support Irix 5.3
56830         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56831         that mishandle long double infinity.
56832         Reported by Tom G. Christensen.
56833
56834 2008-09-16  Bruno Haible  <bruno@clisp.org>
56835
56836         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56837         Solaris 9.
56838         * doc/glibc-functions/alphasort.texi: Likewise.
56839         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56840
56841 2008-09-16  Jim Meyering  <meyering@redhat.com>
56842
56843         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56844         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56845         a umask modification leak out of a subshell.  Otherwise, the
56846         opensolaris /bin/sh would be accepted and thus cause unwarranted
56847         failures in the coreutils test suite.
56848
56849 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56850
56851         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56852         to succeed.
56853
56854 2008-09-16  Jim Meyering  <meyering@redhat.com>
56855
56856         avoid spurious test failure when library is built without ACL support
56857         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56858         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56859         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56860         * tests/test-copy-acl.sh: Likewise.
56861
56862 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56863
56864         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56865         based on character occurrence counts.
56866
56867 2008-09-15  Eric Blake  <ebb9@byu.net>
56868
56869         tests: avoid some compiler warnings
56870         * tests/test-memchr.c (main): Pass NULL indirectly.
56871         * tests/test-closein.c (main): Avoid unused variable.
56872
56873 2008-09-15  Bruno Haible  <bruno@clisp.org>
56874
56875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56876         are missing on OpenBSD 4.0 individually.
56877         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56878
56879 2008-09-15  Bruno Haible  <bruno@clisp.org>
56880
56881         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56882         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56883         * doc/posix-functions/perror.texi: Likewise.
56884         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56885         is missing.
56886         Reported by Eric Blake.
56887
56888         * lib/errno.in.h: Use replacement values >= 2000.
56889         Reported by Eric Blake.
56890
56891 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56892
56893         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56894         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56895         limit.
56896         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56897         compareseq was aborted.
56898
56899 2008-09-14  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56902         yvec_edit_count.
56903         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56904         (fstrcmp_bounded): Simplify result computation accordingly.
56905
56906 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56907
56908         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56909         (fstrcmp): Define in terms of fstrcmp_bounded.
56910         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56911         lower_bound argument.
56912         Return quickly if the result is certainly < lower_bound.
56913         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56914
56915 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56916
56917         * lib/diffseq.h (EARLY_ABORT): New macro.
56918         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56919         evaluates to true.
56920
56921 2008-09-14  Bruno Haible  <bruno@clisp.org>
56922
56923         * modules/perror-tests: New file.
56924         * tests/test-perror.sh: New file.
56925         * tests/test-perror.c: New file.
56926
56927         New module 'perror'.
56928         * lib/stdio.in.h (perror): New declaration.
56929         * lib/perror.c: New file.
56930         * m4/perror.m4: New file.
56931         * modules/perror: New file.
56932         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56933         * doc/posix-functions/perror.texi: Mention the perror module.
56934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56935         REPLACE_PERROR.
56936         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56937         REPLACE_PERROR.
56938
56939 2008-09-14  Bruno Haible  <bruno@clisp.org>
56940
56941         * modules/stdio (Makefile.am): Reorder to match the order in
56942         lib/stdio.in.h.
56943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56944
56945 2008-09-13  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56948
56949 2008-09-13  Bruno Haible  <bruno@clisp.org>
56950
56951         Extend strerror to cover the added errno values.
56952         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56953         (rpl_strerror): Provide error messages for the added errno values and
56954         for the WSA* values.
56955         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56956         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56957         strerror.
56958         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56959         * modules/strerror (Depends-on): Add errno.
56960         * doc/posix-functions/strerror.texi: Document the change.
56961         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56962         and EOVERFLOW.
56963
56964 2008-09-13  Bruno Haible  <bruno@clisp.org>
56965
56966         * modules/EOVERFLOW: Remove file.
56967         * m4/eoverflow.m4: Remove file.
56968         * modules/EOVERFLOW-tests: Remove file.
56969         * tests/test-EOVERFLOW.c: Remove file.
56970         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56971         * modules/ftell (Depends-on): Likewise.
56972         * modules/getdelim (Depends-on): Likewise.
56973         * modules/getugroups (Depends-on): Likewise.
56974         * modules/poll (Depends-on): Likewise.
56975         * modules/snprintf (Depends-on): Likewise.
56976         * modules/sprintf-posix (Depends-on): Likewise.
56977         * modules/vasnprintf (Depends-on): Likewise.
56978         * modules/vasprintf (Depends-on): Likewise.
56979         * modules/vfprintf-posix (Depends-on): Likewise.
56980         * modules/vsnprintf (Depends-on): Likewise.
56981         * modules/vsprintf-posix (Depends-on): Likewise.
56982         * modules/xvasprintf (Depends-on): Likewise.
56983         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56984         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56985         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56986         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56987         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56988         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56989         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56990         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56991         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56992         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56993         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56994         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56995         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56996         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56997         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56998         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56999         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57000         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57001         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57002         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57003         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57004         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57005         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57006         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57007         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57008         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57009         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57010         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57011         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57012         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57013         * MODULES.html.sh: Remove EOVERFLOW.
57014         * NEWS: Mention the change.
57015
57016 2008-09-13  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/errno-tests: New file.
57019         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57020
57021         * lib/errno.in.h: New file.
57022         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57023         * modules/errno: New file.
57024         * doc/posix-headers/errno.texi: Update documentation.
57025         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57026
57027 2008-09-13  Bruno Haible  <bruno@clisp.org>
57028
57029         * tests/test-poll.c: Use #if for native Windows, rather than testing
57030         __MSVCRT__.
57031
57032 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57033             Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/glob.c: Don't include <pwd.h> on native Windows.
57036         (WINDOWS32): New macro.
57037         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57038
57039 2008-09-13  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57042         (ETIMEDOUT): Remove macro.
57043         (glthread_cond_timedwait_multithreaded): New declaration.
57044         (glthread_cond_timedwait): Use it.
57045         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57046         (glthread_cond_timedwait_multithreaded): New function.
57047
57048 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57049
57050         * modules/poll-tests: Do not check for io.h.
57051         * tests/test-poll.c: Check for __MSVCRT__ instead.
57052
57053 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57054
57055         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57056         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57057         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57058
57059 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57060
57061         * modules/poll-tests: New.
57062         * tests/test-poll.c: New.
57063
57064 2008-09-12  Eric Blake  <ebb9@byu.net>
57065
57066         frexp: test for NetBSD failure on -0.0
57067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57068         not all, bugs from NetBSD 3.0 have been fixed.
57069         * doc/posix-functions/frexp.texi (frexp): Document bug.
57070         Reported by Thomas Klausner.
57071
57072         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57073         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57074         literal -0.0.
57075         Reported by Jonathan C. Patschke <jp@centtech.com>.
57076
57077 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57078
57079         * lib/glthread/cond.h: Use dummy implementation also if
57080         USE_WIN32_THREADS.
57081
57082 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57083
57084         * modules/fnmatch-posix (License): Change to LGPLv2+.
57085         * modules/fnmatch-gnu (License): Likewise.
57086
57087 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57088
57089         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57090
57091 2008-09-11  Jim Meyering  <meyering@redhat.com>
57092
57093         * users.txt: Add gtk-vnc.
57094
57095 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57096
57097         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57098         rotate amounts.
57099
57100         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57101         required for 16-bit and 8-bit rotates.
57102         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57103         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57104         UINT8_MAX instead of hard-coded constants.
57105         Suggested by Paul Eggert.
57106
57107 2008-09-07  Bruno Haible  <bruno@clisp.org>
57108
57109         * tests/test-striconveh.c (main): Check behaviour when converting from
57110         UTF-7.
57111
57112         Make striconveh work better with stateful encodings.
57113         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57114         that iconv does not increment the inptr when returning -1/EINVAL.
57115
57116 2008-09-07  Bruno Haible  <bruno@clisp.org>
57117
57118         * build-aux/config.rpath: Update according to libtool-2.2.6.
57119         * build-aux/config.libpath: Likewise.
57120
57121 2008-09-06  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57124         * lib/freadptr.c (freadptr): Likewise.
57125         * lib/freadseek.c (freadptrinc): Likewise.
57126         Reported by Simon Josefsson.
57127
57128 2008-09-06  Bruno Haible  <bruno@clisp.org>
57129
57130         * modules/freadptr (License): Change to LGPLv2+.
57131         * modules/freadseek (License): Likewise.
57132         Suggested by Eric Blake.
57133
57134         * modules/memchr2 (License): Change to LGPLv2+.
57135         Approved by Eric Blake.
57136
57137 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57138             Bruno Haible  <bruno@clisp.org>
57139
57140         Make gnulib-tool work with native 'sed' on AIX.
57141         * gnulib-tool (sed_noop): New variable.
57142         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57143         func_add_or_update, func_create_testdir): Use it to initialize sed
57144         script variables.
57145         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57146
57147 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57148             Bruno Haible  <bruno@clisp.org>
57149
57150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57151         also works after #include directives.
57152
57153 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
57154
57155         getdate.y: reject an out-of-range timezone value
57156         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57157         the range [-24...+24].  When specified with only one or two digits,
57158         * tests/test-getdate.c: Tests for the fix.
57159         * doc/getdate.texi: Document this change.
57160
57161 2008-09-03  Bruno Haible  <bruno@clisp.org>
57162
57163         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57164
57165 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57166
57167         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57168         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57169         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57170         Blake <ebb9@byu.net>.
57171
57172         * tests/test-bitrotate.c: Add more test vectors.
57173
57174 2008-09-02  Eric Blake  <ebb9@byu.net>
57175
57176         vasnprintf-posix: handle large precision via %.*d
57177         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57178         when handling it ourselves.
57179         * tests/test-vasnprintf-posix.c (test_function): Add test.
57180         * tests/test-snprintf-posix.h (test_function): Likewise.
57181         * tests/test-sprintf-posix.h (test_function): Likewise.
57182         * tests/test-vasprintf-posix.c (test_function): Likewise.
57183         Reported by Alain Guibert.
57184
57185 2008-09-01  Eric Blake  <ebb9@byu.net>
57186
57187         c-stack: make configure-time check more robust
57188         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57189         successful sigaction call.
57190         Reported by Tom G. Christensen.
57191
57192 2008-09-01  Bruno Haible  <bruno@clisp.org>
57193
57194         New module 'findprog-lgpl'.
57195         * modules/findprog-lgpl: New file.
57196         * lib/findprog-lgpl.c: New file.
57197         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57198         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57199         to decide whether to use strdup or xstrdup, concatenated_filename or
57200         xconcatenated_filename.
57201
57202 2008-09-01  Bruno Haible  <bruno@clisp.org>
57203
57204         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57205         'xconcat-filename' (GPL).
57206         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57207         (License): Change to LGPLv2+.
57208         * modules/xconcat-filename: New file.
57209         * lib/concat-filename.h (concatenated_filename): Change specification.
57210         (xconcatenated_filename): New declaration.
57211         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57212         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57213         memory situations.
57214         * lib/xconcat-filename.c: New file.
57215         * NEWS: Mention the change.
57216         * lib/findprog.c: Include concat-filename.h, not filename.h.
57217         (find_in_path): Use xconcatenated_filename instead of
57218         concatenated_filename.
57219         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57220         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57221         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57222         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57223         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57224         instead of concatenated_filename.
57225         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57226         (execute_java_class): Use xconcatenated_filename instead of
57227         concatenated_filename.
57228         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57229         * modules/javacomp (Depends-on): Likewise.
57230         * modules/javaexec (Depends-on): Likewise.
57231
57232 2008-09-01  Bruno Haible  <bruno@clisp.org>
57233
57234         Split module 'filename' into 'filename' and 'concat-filename'.
57235         * modules/filename: Keep only lib/filename.h.
57236         (License): Change to LGPLv2+.
57237         * modules/concat-filename: New file, extracted from modules/filename.
57238         * lib/filename.h (concatenated_filename): Remove declaration.
57239         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57240         * lib/concat-filename.c: Include concat-filename.h.
57241         * NEWS: Mention the change.
57242
57243 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57244
57245         * lib/bitrotate.h (rotl8, rotr8): Add.
57246
57247         * modules/bitrotate (configure.ac): Need
57248         AC_REQUIRE([AC_C_INLINE]).
57249         (Description): Mention stdint.h.  Reported by Bruno Haible
57250         <bruno@clisp.org>.
57251
57252         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57253         Paolo Bonzini <bonzini@gnu.org>.
57254
57255 2008-08-31  Bruno Haible  <bruno@clisp.org>
57256
57257         Assume Solaris specific bi-arch conventions on Solaris systems.
57258         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57259         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57261         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57262         like acl_libdirstem.
57263         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57264         acl_libdirstem.
57265         * NEWS: Mention the change.
57266         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57267
57268 2008-08-31  Jim Meyering  <meyering@redhat.com>
57269
57270         * lib/strftime.h: Add comments describing the two added arguments.
57271
57272         remove duplicate #include directives
57273         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57274         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57275
57276 2008-08-31  Bruno Haible  <bruno@clisp.org>
57277
57278         New module 'sigpipe-die'.
57279         * modules/sigpipe-die: New file.
57280         * lib/sigpipe-die.h: New file.
57281         * lib/sigpipe-die.c: New file.
57282         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57283
57284 2008-08-31  Bruno Haible  <bruno@clisp.org>
57285
57286         Don't override previously installed signal handlers.
57287         * lib/fatal-signal.c (saved_sigactions): New variable.
57288         (uninstall_handlers): Reset the signal to the saved handler, not
57289         to SIG_DFL (except when ignored).
57290         (install_handlers): Save the previous handlers.
57291
57292 2008-08-30  Bruno Haible  <bruno@clisp.org>
57293
57294         * gnulib-tool (func_reset_sigpipe): New function.
57295         (func_get_automake_snippet, func_modules_transitive_closure,
57296         func_import): Invoke it before a join command that reads from stdin,
57297         to avoid "echo: write error: Broken pipe" error messages on stderr.
57298         Reported by Sam Steingold <sds@gnu.org>.
57299
57300 2008-08-30  Bruno Haible  <bruno@clisp.org>
57301
57302         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57303         Code copied from m4/open.m4.
57304         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57305         access and the filename ends in a slash. Code copied from lib/open.c.
57306         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57307         * tests/test-fopen.c (main): Check against bug with trailing slash.
57308
57309 2008-08-29  Bruno Haible  <bruno@clisp.org>
57310
57311         Avoid some "gcc -pedantic" warnings.
57312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57313         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57314         * lib/dirent.in.h: Likewise.
57315         * lib/fcntl.in.h: Likewise.
57316         * lib/float.in.h: Likewise.
57317         * lib/iconv.in.h: Likewise.
57318         * lib/inttypes.in.h: Likewise.
57319         * lib/locale.in.h: Likewise.
57320         * lib/math.in.h: Likewise.
57321         * lib/netinet_in.in.h: Likewise.
57322         * lib/search.in.h: Likewise.
57323         * lib/signal.in.h: Likewise.
57324         * lib/stdarg.in.h: Likewise.
57325         * lib/stdint.in.h: Likewise.
57326         * lib/stdio.in.h: Likewise.
57327         * lib/stdlib.in.h: Likewise.
57328         * lib/string.in.h: Likewise.
57329         * lib/strings.in.h: Likewise.
57330         * lib/sys_select.in.h: Likewise.
57331         * lib/sys_socket.in.h: Likewise.
57332         * lib/sys_stat.in.h: Likewise.
57333         * lib/sys_time.in.h: Likewise.
57334         * lib/sysexits.in.h: Likewise.
57335         * lib/time.in.h: Likewise.
57336         * lib/unistd.in.h: Likewise.
57337         * lib/wchar.in.h: Likewise.
57338         * lib/wctype.in.h: Likewise.
57339         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57340         * modules/fchdir (Makefile.am): Likewise.
57341         * modules/fcntl (Makefile.am): Likewise.
57342         * modules/float (Makefile.am): Likewise.
57343         * modules/iconv_open (Makefile.am): Likewise.
57344         * modules/inttypes (Makefile.am): Likewise.
57345         * modules/locale (Makefile.am): Likewise.
57346         * modules/math (Makefile.am): Likewise.
57347         * modules/netinet_in (Makefile.am): Likewise.
57348         * modules/search (Makefile.am): Likewise.
57349         * modules/signal (Makefile.am): Likewise.
57350         * modules/stdarg (Makefile.am): Likewise.
57351         * modules/stdint (Makefile.am): Likewise.
57352         * modules/stdio (Makefile.am): Likewise.
57353         * modules/stdlib (Makefile.am): Likewise.
57354         * modules/string (Makefile.am): Likewise.
57355         * modules/strings (Makefile.am): Likewise.
57356         * modules/sys_select (Makefile.am): Likewise.
57357         * modules/sys_socket (Makefile.am): Likewise.
57358         * modules/sys_stat (Makefile.am): Likewise.
57359         * modules/sys_time (Makefile.am): Likewise.
57360         * modules/sysexits (Makefile.am): Likewise.
57361         * modules/time (Makefile.am): Likewise.
57362         * modules/unistd (Makefile.am): Likewise.
57363         * modules/wchar (Makefile.am): Likewise.
57364         * modules/wctype (Makefile.am): Likewise.
57365         Reported by Reuben Thomas <rrt@sc3d.org>.
57366
57367 2008-08-29  Bruno Haible  <bruno@clisp.org>
57368
57369         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57370         any more.
57371
57372 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57373
57374         * MODULES.html.sh (Misc): Add bitrotate.
57375
57376         * modules/bitrotate: New file.
57377
57378         * lib/bitrotate.h: New file.
57379
57380         * modules/bitrotate-tests: New file.
57381
57382         * tests/test-bitrotate.c: New file.
57383
57384         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57385         on the bitrotate module.
57386
57387         * lib/arctwo.c: Use new bitrotate module.
57388
57389 2008-08-29  Jim Meyering  <meyering@redhat.com>
57390
57391         bootstrap: merge changes from coreutils
57392         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57393         of copied files.  Remove a kludge, now that this is fixed.
57394         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57395         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57396         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57397
57398 2008-08-29  Bruno Haible  <bruno@clisp.org>
57399
57400         * MODULES.html.sh: Remove --cvs-urls option.
57401
57402 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57403
57404         maint.mk: adjust to file name change
57405         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57406
57407 2008-08-28  Jim Meyering  <meyering@redhat.com>
57408
57409         * modules/getndelim2 (License): Relicense to LGPLv2+.
57410         Approved by Richard Stallman for the version of 1995, and by
57411         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57412
57413 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57414
57415         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57416         dummy if one is not available.  Do not touch them if
57417         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57418         (getc_maybe_unlocked): New.
57419         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57420
57421 2008-08-26  Eric Blake  <ebb9@byu.net>
57422
57423         doc/INSTALL: resync from autoconf
57424         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57425         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57426         moving...
57427         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57428         * INSTALL: Regenerate.
57429         * INSTALL.ISO: New file.
57430         * INSTALL.UTF-8: Likewise.
57431
57432 2008-08-26  Jim Meyering  <meyering@redhat.com>
57433
57434         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57435         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57436         these definitions conditional, so that they may be overridden, too.
57437
57438 2008-08-26  Bruno Haible  <bruno@clisp.org>
57439
57440         Generate INSTALL file variants with prettier quotes.
57441         * doc/Makefile (INSTALL_PRELUDE): New macro.
57442         (INSTALL): Use it.
57443         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57444
57445 2008-08-26  Bruno Haible  <bruno@clisp.org>
57446
57447         Run makeinfo in an English locale.
57448         * doc/Makefile (MAKEINFO): New variable.
57449
57450 2008-08-26  Bruno Haible  <bruno@clisp.org>
57451
57452         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57453         Suggested by Eric Blake.
57454
57455 2008-08-25  Bruno Haible  <bruno@clisp.org>
57456
57457         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57458
57459 2008-08-25  Eric Blake  <ebb9@byu.net>
57460
57461         c-stack: test that stack overflow can be caught
57462         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57463         that platform allows handling stack overflow; at least OS/2 EMX
57464         has sigaltstack, but crashes before transferring control to
57465         handler on stack overflow.
57466         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57467         check for HAVE_STACK_OVERFLOW_HANDLING.
57468         Reported by Elbert Pol.
57469
57470 2008-08-25  Bruno Haible  <bruno@clisp.org>
57471
57472         * doc/posix-functions/strftime.texi: Fix description of strftime
57473         module.
57474
57475 2008-08-24  Bruno Haible  <bruno@clisp.org>
57476
57477         * tests/uniwidth/test-uc_width2.c: New file.
57478         * tests/uniwidth/test-uc_width2.sh: New file.
57479         * modules/uniwidth/width-tests (Files): Add the new files.
57480         (TESTS): Add uniwidth/test-uc_width2.sh.
57481         (TESTS_ENVIRONMENT): New variable.
57482         (check_PROGRAMS): Add test-uc_width2.
57483         (test_uc_width2_SOURCES): New variable.
57484
57485         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57486         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57487         not 0x00AB.
57488         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57489
57490 2008-08-22  Eric Blake  <ebb9@byu.net>
57491
57492         test-lock, test-tls: mention why a test is skipped
57493         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57494         skipped.
57495         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57496
57497         count-one-bits: relax license
57498         * modules/count-one-bits (License): Relicense to LGPLv2+.
57499         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57500
57501 2008-08-22  Andreas Schwab  <schwab@suse.de>
57502
57503         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57504         Remove spurious space in assignment.
57505
57506 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57507
57508         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57509         Paul Eggert <eggert@CS.UCLA.EDU>.
57510
57511 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57512
57513         * modules/gettext: Add m4/threadlib.m4.
57514
57515 2008-08-19  Eric Blake  <ebb9@byu.net>
57516
57517         test-c-stack: fix compilation failure on FreeBSD 5.0
57518         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57519         headers before <sys/resource.h>.
57520         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57521         the bug.
57522         Reported by Nelson H. F. Beebe.
57523
57524         strverscmp: migrate from "strverscmp.h" to <string.h>
57525         * modules/string (Makefile.am): Add new hooks.
57526         * modules/strverscmp (Files): Remove strverscmp.h.
57527         (Depends-on): Add string.
57528         (configure.ac): Add indicator.
57529         (Include): Mention new header.
57530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57531         defaults.
57532         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57533         results.
57534         * lib/strverscmp.h: Delete.
57535         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57536         * tests/test-strverscmp.c (includes): Adjust client.
57537         * lib/check-version.c (includes): Likewise.
57538         * NEWS: Document the change.
57539
57540         strverscmp: add unit test
57541         * modules/strverscmp-tests: New file.
57542         * tests/test-strverscmp.c: Likewise.
57543
57544 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57545
57546         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57547         regarding Windows crypto stuff, from Mono.
57548
57549 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57550
57551         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57552         if present, for intel RND.  Return error on failures.
57553
57554 2008-08-18  Ben Pfaff  <blp@gnu.org>
57555
57556         gitlog-to-changelog: give better diagnostic for failed pipe-open
57557         * build-aux/gitlog-to-changelog: Improve error message: suggest
57558         that the version of Git may be too old.
57559
57560 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57561
57562         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57563         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57564
57565 2008-08-18  Bruno Haible  <bruno@clisp.org>
57566
57567         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57568         pthread_in_use().
57569
57570 2008-08-18  Bruno Haible  <bruno@clisp.org>
57571
57572         * lib/glthread/threadlib.c: Include <pthread.h>.
57573
57574 2008-08-18  Bruno Haible  <bruno@clisp.org>
57575
57576         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57577         glthread_recursive_lock_* macros.
57578         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57579         Fix syntax error.
57580
57581 2008-08-18  Bruno Haible  <bruno@clisp.org>
57582
57583         * lib/glthread/thread.c: Avoid forcing a context switch right after
57584         thread creation.
57585
57586 2008-08-17  Bruno Haible  <bruno@clisp.org>
57587
57588         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57589         * lib/glthread/thread.h: Provide Win32 specific implementation.
57590         * modules/thread (Files): Add lib/glthread/thread.c.
57591         (Depends-on): Add lock.
57592         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57593
57594 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57595
57596         New module 'yield'.
57597         * modules/yield: New file.
57598         * lib/glthread/yield.h: New file.
57599         * m4/yield.m4: New file.
57600         * MODULES.html.sh (Multithreading): Add yield.
57601
57602 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57603
57604         New module 'thread'.
57605         * modules/thread: New file.
57606         * lib/glthread/thread.h: New file.
57607         * m4/thread.m4: New file.
57608         * MODULES.html.sh (Multithreading): Add thread.
57609
57610 2008-08-17  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/glthread/lock.h: Include <stdlib.h> always.
57613         * lib/glthread/tls.h: Likewise.
57614         * lib/glthread/cond.h: Likewise.
57615
57616 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57617
57618         New module 'cond'.
57619         * modules/cond: New file.
57620         * lib/glthread/cond.h: New file.
57621         * lib/glthread/cond.c: New file.
57622         * m4/cond.m4: New file.
57623         * MODULES.html.sh (Multithreading): Add cond.
57624
57625 2008-08-16  Eric Blake  <ebb9@byu.net>
57626
57627         c-stack: fix regression on Irix 5.3 from 2008-06-21
57628         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57629         sa_sigaction...
57630         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57631         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57632         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57633         * modules/signal (Makefile.am): Use the value.
57634         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57635         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57636         * doc/posix-headers/signal.texi (signal.h): Document this
57637         portability issue.
57638         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57639         Reported by Tom G. Christensen.
57640
57641 2008-08-17  Bruno Haible  <bruno@clisp.org>
57642
57643         New module 'threadlib'.
57644         * modules/threadlib: New file.
57645         * lib/glthread/threadlib.c: New file, extracted from
57646         lib/glthread/lock.c.
57647         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57648         functions.
57649         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57650         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57651         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57652         macros.
57653         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57654         (gl_DISABLE_THREADS): Remove macro.
57655         * modules/lock (Files): Remove build-aux/config.rpath.
57656         (Depends-on): Remove havelib. Add threadlib.
57657         (configure.ac-early): Remove section.
57658         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57659         * modules/tls (Depends-on): Remove lock. Add threadlib.
57660         (Link): New section, copied from threadlib.
57661         * MODULES.html.sh (Multithreading): Add threadlib.
57662
57663 2008-08-14  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57666         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57667         glthread_rwlock_unlock, glthread_rwlock_destroy,
57668         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57669         glthread_recursive_lock_destroy): Define as macros always.
57670         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57671         glthread_lock_lock.
57672         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57673         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57674         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57675         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57676         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57677         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57678         (glthread_recursive_lock_lock_func): Renamed from
57679         glthread_recursive_lock_lock.
57680         (glthread_recursive_lock_unlock_func): Renamed from
57681         glthread_recursive_lock_unlock.
57682         (glthread_recursive_lock_destroy_func): Renamed from
57683         glthread_recursive_lock_destroy.
57684
57685 2008-08-14  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/glthread/lock.h: Renamed from lib/lock.h.
57688         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57689         * lib/glthread/tls.h: Renamed from lib/tls.h.
57690         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57691         * lib/fstrcmp.c: Update includes.
57692         * lib/strsignal.c: Update includes.
57693         * modules/lock (Files, Makefile.am): Update.
57694         (Include): Change to "glthread/lock.h".
57695         * modules/tls (Files, Makefile.am): Update.
57696         (Include): Change to "glthread/tls.h".
57697         * tests/test-lock.c: Update includes.
57698         * tests/test-tls.c: Update includes.
57699         * NEWS: Mention the renamed header files.
57700
57701 2008-08-11  Jim Meyering  <meyering@redhat.com>
57702
57703         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57704
57705 2008-08-11  Eric Blake  <ebb9@byu.net>
57706
57707         test-c-stack: avoid C99-ism
57708         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57709         before statement.
57710         Reported by Alain Guibert.
57711
57712 2008-08-10  Jim Meyering  <meyering@redhat.com>
57713
57714         ensure that return value of uinttostr et al are not ignored
57715         * lib/inttostr.h (__GNUC_PREREQ): Define.
57716         (__attribute_warn_unused_result__): Define.
57717         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57718
57719 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57720
57721         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57722         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57723
57724 2008-08-07  Jim Meyering  <meyering@redhat.com>
57725
57726         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57727
57728         * modules/mkstemp (License): Relicense under LGPLv2+.
57729         * modules/tempname (License): Likewise.
57730
57731 2008-08-06  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/poll.c (poll): Further micro-optimization.
57734
57735 2008-08-06  Jim Meyering  <meyering@redhat.com>
57736
57737         inet_pton.c: use locale-independent tolower
57738         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57739         (inet_pton6): Use c_tolower rather than tolower.
57740         * modules/inet_pton (Depends-on): Add c-ctype.
57741
57742 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57743
57744         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57745         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57746
57747 2008-08-06  Jim Meyering  <meyering@redhat.com>
57748
57749         * modules/inet_pton (License): Relicense under LGPLv2+.
57750
57751 2008-08-03  Bruno Haible  <bruno@clisp.org>
57752
57753         Additional non-aborting API for lock and tls.
57754         * lib/lock.h: Include <errno.h>.
57755         (glthread_lock_init): New macro/function.
57756         (gl_lock_init): Define as wrapper around glthread_lock_init.
57757         (glthread_lock_lock): New macro/function.
57758         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57759         (glthread_lock_unlock): New macro/function.
57760         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57761         (glthread_lock_destroy): New macro/function.
57762         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57763         (glthread_rwlock_init): New macro/function.
57764         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57765         (glthread_rwlock_rdlock): New macro/function.
57766         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57767         (glthread_rwlock_wrlock): New macro/function.
57768         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57769         (glthread_rwlock_unlock): New macro/function.
57770         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57771         (glthread_rwlock_destroy): New macro/function.
57772         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57773         (glthread_recursive_lock_init): New macro/function.
57774         (gl_recursive_lock_init): Define as wrapper around
57775         glthread_recursive_lock_init.
57776         (glthread_recursive_lock_lock): New macro/function.
57777         (gl_recursive_lock_lock): Define as wrapper around
57778         glthread_recursive_lock_lock.
57779         (glthread_recursive_lock_unlock): New macro/function.
57780         (gl_recursive_lock_unlock): Define as wrapper around
57781         glthread_recursive_lock_unlock.
57782         (glthread_recursive_lock_destroy): New macro/function.
57783         (gl_recursive_lock_destroy): Define as wrapper around
57784         glthread_recursive_lock_destroy.
57785         (glthread_once): New macro/function.
57786         (gl_once): Define as wrapper around glthread_once.
57787         Update function declarations.
57788         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57789         glthread_rwlock_init. Return error code.
57790         (glthread_rwlock_rdlock_multithreaded): Renamed from
57791         glthread_rwlock_rdlock. Return error code.
57792         (glthread_rwlock_wrlock_multithreaded): Renamed from
57793         glthread_rwlock_wrlock. Return error code.
57794         (glthread_rwlock_unlock_multithreaded): Renamed from
57795         glthread_rwlock_unlock. Return error code.
57796         (glthread_rwlock_destroy_multithreaded): Renamed from
57797         glthread_rwlock_destroy. Return error code.
57798         (glthread_recursive_lock_init_multithreaded): Renamed from
57799         glthread_recursive_lock_init. Return error code.
57800         (glthread_recursive_lock_lock_multithreaded): Renamed from
57801         glthread_recursive_lock_lock. Return error code.
57802         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57803         glthread_recursive_lock_unlock. Return error code.
57804         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57805         glthread_recursive_lock_destroy. Return error code.
57806         (glthread_once_call): Make static.
57807         (glthread_once_multithreaded): Renamed from glthread_once.
57808         * lib/tls.h: Include <errno.h>.
57809         (glthread_tls_key_init): New macro/function.
57810         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57811         (glthread_tls_set): New macro/function.
57812         (gl_tls_set): Define as wrapper around glthread_tls_set.
57813         (glthread_tls_key_destroy): New macro/function.
57814         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57815         Update function declarations.
57816         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57817         glthread_tls_get.
57818         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57819
57820 2008-08-04  Eric Blake  <ebb9@byu.net>
57821
57822         gnumakefile: use space, not TAB, outside of targets
57823         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57824
57825 2008-08-02  Jim Meyering  <meyering@redhat.com>
57826
57827         getdate.y: avoid locale-dependent date parsing failure
57828         In Turkish locales, getdate would fail to recognize keywords
57829         containing a lowercase "i".  The solution is not to rely on
57830         locale-sensitive case-conversion.
57831         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57832         (lookup_word): Use c_toupper in place of toupper.
57833         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57834         Reported by Vefa Bicakci <bicave@superonline.com> in
57835         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57836         * modules/getdate (Depends-on): Add c-ctype.
57837
57838 2008-08-02  Bruno Haible  <bruno@clisp.org>
57839
57840         * gnulib-tool (func_import): When updating or creating a .gitignore
57841         file, prepend each added line with a slash, and ignore leading slashes
57842         from the existing lines.
57843         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57844
57845 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57846
57847         Portability fix for GNU make 3.79.1.
57848         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57849         versions do not understand.
57850
57851 2008-08-01  Bruno Haible  <bruno@clisp.org>
57852
57853         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57854         * tests/test-isnanf.h (zero): New variable.
57855         (main): Avoid literal -0.0f.
57856         * tests/test-isnand.h (zero): New variable.
57857         (main): Avoid literal -0.0.
57858         * tests/test-isnanl.h (zero): New variable.
57859         (main): Avoid literal -0.0L.
57860         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57861         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57862         -0.0, -0.0L.
57863         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57864         (test_signbitd): Avoid literal -0.0.
57865         (test_signbitl): Avoid literal -0.0L.
57866         * tests/test-ceilf1.c (zero): New variable.
57867         (main): Avoid literal -0.0f.
57868         * tests/test-ceill.c (zero): New variable.
57869         (main): Avoid literal -0.0L.
57870         * tests/test-floorf1.c (zero): New variable.
57871         (main): Avoid literal -0.0f.
57872         * tests/test-floorl.c (zero): New variable.
57873         (main): Avoid literal -0.0L.
57874         * tests/test-roundf1.c (zero): New variable.
57875         (main): Avoid literal -0.0f.
57876         * tests/test-round1.c (zero): New variable.
57877         (main): Avoid literal -0.0.
57878         * tests/test-roundl.c (zero): New variable.
57879         (main): Avoid literal -0.0L.
57880         * tests/test-truncf1.c (zero): New variable.
57881         (main): Avoid literal -0.0f.
57882         * tests/test-trunc1.c (zero): New variable.
57883         (main): Avoid literal -0.0.
57884         * tests/test-truncl.c (zero): New variable.
57885         (main): Avoid literal -0.0L.
57886         * tests/test-frexp.c (zero): New variable.
57887         (main): Avoid literal -0.0.
57888         * tests/test-frexpl.c (zero): New variable.
57889         (main): Avoid literal -0.0L.
57890         * tests/test-ldexpl.c (zero): New variable.
57891         (main): Avoid literal -0.0L.
57892         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57893         (zerod, zerol): New variables.
57894         (test_function): Avoid literals -0.0, -0.0L.
57895         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57896         (zerod, zerol): New variables.
57897         (test_function): Avoid literals -0.0, -0.0L.
57898         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57899         (zerod, zerol): New variables.
57900         (test_function): Avoid literals -0.0, -0.0L.
57901         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57902         (zerod, zerol): New variables.
57903         (test_function): Avoid literals -0.0, -0.0L.
57904         * tests/test-strtod.c (zero): New variable.
57905         (main): Avoid literal -0.0.
57906         Reported by Jonathan C. Patschke <jp@centtech.com>.
57907
57908 2008-07-31  Jim Meyering  <meyering@redhat.com>
57909
57910         sha256.h: correct definition of SHA224_DIGEST_SIZE
57911         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57912         Reported by Paulie Pena IV <paulie4@gmail.com>.
57913         Define as 224 / 8, rather than as a literal.
57914         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57915         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57916         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57917
57918 2008-07-31  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57921         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57922         Reported by Jonathan Patschke <jp@centtech.com>.
57923
57924 2008-07-31  Bruno Haible  <bruno@clisp.org>
57925
57926         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57927         Reported by Paolo Bonzini <bonzini@gnu.org>.
57928
57929 2008-07-30  Eric Blake  <ebb9@byu.net>
57930
57931         test-strtod: allow compilation without -lm
57932         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57933         Reported by Dennis Clarke <blastwave@gmail.com>.
57934
57935 2008-07-28  Jim Meyering  <meyering@redhat.com>
57936
57937         bootstrap: work also when there are no .po files in po/
57938         * build-aux/bootstrap (update_po_files): Complete the change
57939         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57940
57941 2008-07-27  Jim Meyering  <meyering@redhat.com>
57942
57943         * users.txt: Add zile.
57944
57945 2008-07-26  Ben Pfaff  <blp@gnu.org>
57946
57947         Add missing dependencies on new m4/exponent[fdl].m4 files.
57948         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57949         * modules/isnand-nolibm: Add m4/exponentd.m4.
57950         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57951         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57952         m4/isnan[fdl].m4, because the macros actually used moved.
57953         Reported by Jim Meyering.
57954
57955 2008-07-14  Ben Pfaff  <blp@gnu.org>
57956
57957         Add isinf module.
57958         * lib/isinf.c: New file.
57959         * lib/math.in.h: Define isinf macro if we have decided to replace
57960         it.
57961         * m4/isinf.m4: New file.
57962         * m4/math_h.m4: Initialize and substitute variables for isinf
57963         module.
57964         * modules/isinf: New file.
57965         * modules/isinf-tests: New file.
57966         * modules/math: Add substitutions for new module.
57967         * tests/test-isinf.c: New file.
57968         * doc/posix-functions/isinf.texi: Mention new module.
57969         * MODULES.html.sh: Mention new module.
57970
57971 2008-07-14  Ben Pfaff  <blp@gnu.org>
57972
57973         Factor out some macros for use by additional modules.
57974         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57975         exponentf.m4.
57976         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57977         exponentd.m4.
57978         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57979         file exponentl.m4.
57980         * m4/exponentf.m4: New file.
57981         * m4/exponentd.m4: New file.
57982         * m4/exponentl.m4: New file.
57983         * modules/isnanf: Use new file m4/exponentf.m4.
57984         * modules/isnand: Use new file m4/exponentd.m4.
57985         * modules/isnanl: Use new file m4/exponentl.m4.
57986
57987 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57988
57989         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57990         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57991         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57992         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57993
57994         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57995         readlink on platforms without PATH_MAX.
57996
57997 2008-07-21  Eric Blake  <ebb9@byu.net>
57998
57999         Warn, not fail, on stale version.
58000         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58001
58002         Don't allow installation with stale devel version number.
58003         * top/GNUmakefile (_is-install-target): New macro.
58004         (_curr-ver): Forbid installation with stale version number.
58005
58006 2008-07-20  Bruno Haible  <bruno@clisp.org>
58007
58008         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58009         TESTS_ENVIRONMENT.
58010         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58011
58012 2008-07-20  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/c-stack.h (c_stack_action): Add documentation.
58015         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58016
58017 2008-07-20  Bruno Haible  <bruno@clisp.org>
58018
58019         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58020         * modules/readlink (License): Likewise.
58021
58022 2008-07-17  Eric Blake  <ebb9@byu.net>
58023
58024         * modules/c-stack (Link): Fix typo.
58025
58026         Make c-stack use libsigsegv, when available.
58027         * modules/c-stack (Depends-on): Add libsigsegv.
58028         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58029         needed.
58030         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58031         (segv_handler, overflow_handler, c_stack_action)
58032         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58033         implementation when libsigsegv is available, but only when using
58034         the library is necessary.
58035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58036         comment, explaining why XSI check fails on Linux.
58037         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58038         * tests/test-c-stack2.sh: Tweak skip message.
58039         * NEWS: Document new link-time requirements.
58040
58041 2008-07-16  Eric Blake  <ebb9@byu.net>
58042
58043         c-stack: Expose false positives when not using libsigsegv.
58044         * modules/c-stack-tests (Files): Expand test.
58045         * tests/test-c-stack.c (main): Add means to conditionally trigger
58046         non-overflow SIGSEGV.
58047         * tests/test-c-stack2.sh: New file.
58048
58049 2008-07-14  Bruno Haible  <bruno@clisp.org>
58050
58051         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58052         Reported by Eric Blake.
58053
58054 2008-07-14  Sam Steingold  <sds@gnu.org>
58055             Bruno Haible  <bruno@clisp.org>
58056
58057         New module libsigsegv.
58058         * modules/libsigsegv: New file.
58059         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58060         modifications.
58061         * MODULES.html.sh (Signal handling): New section.
58062
58063 2008-07-14  Bruno Haible  <bruno@clisp.org>
58064
58065         * modules/unictype/ctype-* (Description): Add the word "function".
58066         Improves the resulting doc in MODULES.html.
58067
58068 2008-07-12  Ben Pfaff  <blp@gnu.org>
58069
58070         Add longlong module.
58071         * modules/longlong: New file.
58072
58073 2008-07-12  Bruno Haible  <bruno@clisp.org>
58074
58075         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58076         to empty.
58077
58078 2008-07-10  Ben Pfaff  <blp@gnu.org>
58079
58080         Add isnan module.
58081         * doc/posix-functions/isnan.texi: Mention new module.
58082         * lib/math.in.h: Define isnan macro if we have decided to replace
58083         it.
58084         * m4/isnan.m4: New file.
58085         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58086         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58087         also.
58088         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58089         redundancy.
58090         * m4/math_h.m4: Initialize and substitute variables for isnan
58091         module.
58092         * modules/isnan: New file.
58093         * modules/isnan-tests: New file.
58094         * modules/math: Add substitutions for new module.
58095         * tests/test-isnan.c: New file.
58096         * MODULES.html.sh: Mention new module.
58097
58098 2008-07-10  Ben Pfaff  <blp@gnu.org>
58099
58100         Add isnanf module.
58101         * lib/isnanf.m4: New file.
58102         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58103         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58104         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58105         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58106         * modules/isnanf: New file.
58107         * modules/isnanf-tests: New file.
58108         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58109         files.
58110         * tests/test-isnanf-nolibm.c: factored most of its contents into
58111         new file tests/test-isnanf.h.
58112         * tests/test-isnanf.h: New file.
58113         * tests/test-isnanf.c: New file.
58114         * MODULES.html.sh: Mention new module.
58115         * doc/glibc-functions/isnanf.texi: Mention new module.
58116
58117 2008-07-10  Ben Pfaff  <blp@gnu.org>
58118
58119         Add isnand module.
58120         * lib/isnand.h: New file.
58121         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58122         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58123         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58124         functionality also.
58125         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58126         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58127         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58128         * modules/isnand: New file.
58129         * modules/isnand-tests: New file.
58130         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58131         files.
58132         * tests/test-isnand-nolibm.c: factored most of its contents into
58133         new file tests/test-isnand.h.
58134         * tests/test-isnand.h: New file.
58135         * tests/test-isnand.c: New file.
58136         * MODULES.html.sh: Mention new module.
58137
58138 2008-07-10  Ben Pfaff  <blp@gnu.org>
58139
58140         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58141         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58142         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58143         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58144         * modules/isnanf-nolibm: Update references to renamed files.
58145         * modules/isnand-nolibm: Likewise.
58146         * modules/isnanf-nolibm-tests: Likewise.
58147         * modules/isnand-nolibm-tests: Likewise.
58148         * lib/frexp.c: Likewise.
58149         * lib/isfinite.c: Likewise.
58150         * lib/signbitd.c: Likewise.
58151         * lib/signbitf.c: Likewise.
58152         * lib/vasnprintf.c: Likewise.
58153         * tests/test-ceilf1.c: Likewise.
58154         * tests/test-ceilf2.c: Likewise.
58155         * tests/test-floorf1.c: Likewise.
58156         * tests/test-floorf2.c: Likewise.
58157         * tests/test-frexp.c: Likewise.
58158         * tests/test-round1.c: Likewise.
58159         * tests/test-round2.c: Likewise.
58160         * tests/test-roundf1.c: Likewise.
58161         * tests/test-strtod.c: Likewise.
58162         * tests/test-trunc1.c: Likewise.
58163         * tests/test-trunc2.c: Likewise.
58164         * tests/test-truncf1.c: Likewise.
58165         * tests/test-truncf2.c: Likewise.
58166         * NEWS: Mention the renamed header files.
58167
58168 2008-07-11  Jim Meyering  <meyering@redhat.com>
58169
58170         vc-list-files: make the last-resort awk code more portable
58171         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58172         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58173         does not support it.
58174
58175 2008-07-10  Eric Blake  <ebb9@byu.net>
58176
58177         Work with tar's bootstrap.
58178         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58179         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58180         an m4 comment.
58181
58182 2008-07-09  Jim Meyering  <meyering@redhat.com>
58183
58184         posix-shell.m4: fix typo that made this test malfunction
58185         * m4/posix-shell.m4: Remove capitalization in variable name.
58186
58187 2008-07-08  Bruno Haible  <bruno@clisp.org>
58188
58189         * m4/onceonly.m4: Update comments.
58190         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58191
58192 2008-07-04  Jim Meyering  <meyering@redhat.com>
58193
58194         * users.txt: Add vc-dwim.
58195         (bison, coreutils): Use the gitweb URL.
58196
58197 2008-07-03  Jim Meyering  <meyering@redhat.com>
58198
58199         * users.txt: Add libffcall.  From Sam Steingold.
58200
58201 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
58202
58203         getdate.y: do not ignore TZ with relative day, month or year offset
58204         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58205         relative-date-handling, since otherwise, the latter would clobber the
58206         sole output (an updated Start value) of the tz-handling block.
58207         * tests/test-getdate.c: Tests for the fix
58208
58209 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58210
58211         Recognize 'foo_LIBRARIES += libgnu.a'.
58212         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58213         makefile snippet has already specified an installation location,
58214         also using '+='.
58215
58216 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
58217
58218         getdate.y: factor out common actions
58219         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58220         Use them in place of open-coded actions.
58221
58222 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58223
58224         Add self-test for getdate module.
58225         * modules/getdate-tests: New file.
58226         * tests/test-getdate.c: New file.
58227
58228 2008-06-29  Bruno Haible  <bruno@clisp.org>
58229
58230         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58231         .gitignore.
58232         Reported by Sylvain Beucler <beuc@beuc.net>.
58233
58234 2008-06-29  Bruno Haible  <bruno@clisp.org>
58235
58236         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58237         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58238
58239 2008-06-29  Bruno Haible  <bruno@clisp.org>
58240
58241         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58242         EXTRA_DIST.
58243         Reported by Sylvain Beucler <beuc@beuc.net>.
58244
58245 2008-06-26  Jim Meyering  <meyering@redhat.com>
58246
58247         make several modules depend on the "open" module
58248         This provides slightly increased consistency when opening-for-write
58249         the name of a non-directory spelled with a trailing slash.
58250         * modules/chdir-safer: Likewise.
58251         * modules/chown: Likewise.
58252         * modules/clean-temp: Likewise.
58253         * modules/copy-file: Likewise.
58254         * modules/fchdir: Likewise.
58255         * modules/fcntl-safer: Likewise.
58256         * modules/pipe: Likewise.
58257         * modules/utime: Likewise.
58258         Prompted by Eric Blake and Bruno Haible.
58259
58260 2008-06-24  Andreas Schwab  <schwab@suse.de>
58261
58262         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58263         literals can be used as initializers for global variables.
58264
58265 2008-06-23  Eric Blake  <ebb9@byu.net>
58266
58267         Make gnulib-cache.m4 easier to diff.
58268         * gnulib-tool (func_import): Allow newlines when reading cached
58269         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58270
58271 2008-06-23  Bruno Haible  <bruno@clisp.org>
58272
58273         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58274         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58275         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58276         m4/signalblocking.m4.
58277         (gl_PREREQ_SIGACTION): Don't invoke it.
58278         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58279         gl_PREREQ_SIG_HANDLER_H.
58280         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58281         Don't check for sigaction here.
58282
58283 2008-06-23  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58286         (install_handlers): Don't set the SA_RESETHAND flag.
58287
58288 2008-06-23  Bruno Haible  <bruno@clisp.org>
58289
58290         * m4/sigaction.m4: Comment fixes.
58291         * lib/signal.in.h: Likewise.
58292
58293 2008-06-23  Eric Blake  <ebb9@byu.net>
58294
58295         Fix typo.
58296         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58297
58298         Avoid SA_ namespace.
58299         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58300         Reported by Ralf Wildenhues.
58301
58302         Avoid test failure due to SA_RESTORER.
58303         * tests/test-sigaction.c (SA_MASK): New macro.
58304         (main): Avoid failing due to extension flags being set.
58305         Reported by Jim Meyering.
58306
58307         Revert use of sig-handler.h in sigprocmask.c.
58308         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58309         it requires the existence of struct sigaction.
58310         * lib/sigprocmask.c (handler_t): Restore typedef.
58311         (rpl_signal, old_handlers): Use local type.
58312
58313 2008-06-22  Bruno Haible  <bruno@clisp.org>
58314
58315         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58316         conditionally.
58317         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58318
58319 2008-06-22  Bruno Haible  <bruno@clisp.org>
58320
58321         * doc/posix-functions/siginterrupt.texi: Move note.
58322
58323         * lib/signal.in.h (SA_RESTART): New macro.
58324         * lib/sigaction.c: Update comment.
58325
58326         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58327
58328         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58329         (gl_PREREQ_SIGPROCMASK): Invoke it.
58330         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58331
58332         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58333
58334         * lib/sigprocmask.c: Update a comment.
58335
58336 2008-06-21  Eric Blake  <ebb9@byu.net>
58337
58338         Use sigaction module rather than signal().
58339         * modules/c-stack (Depends-on): Add sigaction.
58340         * modules/fatal-signal (Depends-on): Likewise.
58341         * modules/nanosleep (Depends-on): Likewise.
58342         * modules/sigprocmask (Files): Add sig-handler.h.
58343         * modules/sigaction (Files): Likewise.
58344         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58345         Eggert.
58346         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58347         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58348         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58349         (init_fatal_signals): Likewise.
58350         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58351         (siginterrupt): Delete fallback.
58352         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58353         instead.
58354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58355         siginterrupt.
58356
58357         New module sigaction, for mingw.
58358         * modules/sigaction: New module...
58359         * modules/sigaction-tests: ...and its test.
58360         * m4/sigaction.m4: New file.
58361         * lib/sigaction.c: Likewise.
58362         * tests/test-sigaction.c: Likewise.
58363         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58364         * modules/signal (Makefile.am): Likewise.
58365         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58366         needed.
58367         * doc/posix-headers/signal.texi (signal.h): Mention provided
58368         types.
58369         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58370         that sigaction is preferable.
58371         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58372         module.
58373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58374         sigaction.
58375
58376         Improve robustness of sigprocmask by overriding signal.
58377         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58378         is in use.
58379         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58380         (SIGKILL, SIGSTOP): Provide fallbacks.
58381         (rpl_signal): Implement.
58382         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58383         signal can be called inside handlers.
58384
58385         Fix nanosleep module on mingw.
58386         * modules/nanosleep (Depends-on): Add sys_select.
58387         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58388
58389         Fix licensing of sigprocmask.
58390         * modules/raise (License): Relicense as LGPL.
58391
58392 2008-06-21  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58395         result if it contains question marks.
58396         Reported by Michael Geng <linux@michaelgeng.de>.
58397
58398 2008-06-19  Bruno Haible  <bruno@clisp.org>
58399
58400         Fix CVS-ism.
58401         * doc/gnulib.texi: Include updated-stamp.texi.
58402         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58403         (updated-stamp.texi): New rule.
58404         (gnulib.info): Depend on it.
58405         * doc/.gitignore: Add updated-stamp.texi.
58406         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58407
58408 2008-06-19  Bruno Haible  <bruno@clisp.org>
58409
58410         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58411         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58412
58413 2008-06-19  Eric Blake  <ebb9@byu.net>
58414
58415         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58416         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58417         Reported by Stepan Kasal.
58418
58419 2008-06-18  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58422         Reported by Eric Blake.
58423
58424 2008-06-18  Eric Blake  <ebb9@byu.net>
58425
58426         Work around cygwin 1.5.25 strsignal bug.
58427         * tests/test-strsignal.c: Allow for const char *.
58428         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58429
58430 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58431
58432         * users.txt: Update URL to article and add author/date
58433         information.
58434
58435 2008-06-17  Bruno Haible  <bruno@clisp.org>
58436
58437         New macro gl_DISABLE_THREADS.
58438         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58439         if the user did not pass --enable-threads or --disable-threads option.
58440         (gl_DISABLE_THREADS): New macro.
58441         Reported by Eric Blake <ebb9@byu.net>.
58442
58443 2008-06-17  Bruno Haible  <bruno@clisp.org>
58444
58445         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58446         when the macro ignores it.
58447         Based on a patch by Eric Blake <ebb9@byu.net>.
58448
58449 2008-06-17  Bruno Haible  <bruno@clisp.org>
58450
58451         * modules/tls (License): Change to LGPLv2+.
58452         Reported by Eric Blake.
58453
58454 2008-06-17  Eric Blake  <ebb9@byu.net>
58455
58456         Simplify c-stack prerequisites.
58457         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58458         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58459         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58460         check.
58461         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58462         <sys/resource.h>.
58463
58464         Move c-stack test into testsuite.
58465         * modules/c-stack-tests: New file.
58466         * lib/c-stack.c [DEBUG]: Move test program...
58467         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58468         fail test if sigaltstack is lacking.
58469         * tests/test-c-stack.sh: New driver file.
58470
58471 2008-06-16  Eric Blake  <ebb9@byu.net>
58472
58473         Use raise module consistently.
58474         * modules/fatal-signal (Depends-on): Add raise.
58475         * modules/sigprocmask (Depends-on): Likewise.
58476         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58477         * lib/sigprocmask.c (sigprocmask): Likewise.
58478         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58479         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58480
58481         Fix compliance bug in sigpending.
58482         * lib/sigprocmask.c (sigpending): Return pending array via
58483         parameter, not return value.
58484
58485 2008-06-14  Eric Blake  <ebb9@byu.net>
58486
58487         Improve obstack-printf test code.
58488         * tests/test-obstack-printf.c (test_function): Fix comment, and
58489         simplify usage of obstack_* in macros.  Add a test for coverage.
58490         Reported by Bruno Haible.
58491
58492 2008-06-14  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58495         array size as a constant, not as a const variable.
58496         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58497         AC_USE_SYSTEM_EXTENSIONS.
58498         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58499         Test whether the obstack_printf function actually exists.
58500         * modules/obstack-printf (Depends-on): Add extensions.
58501         (Include): Remove obstack.h.
58502         * modules/obstack-printf-posix (Depends-on): Add extensions.
58503         (Include): Remove obstack.h.
58504
58505 2008-06-13  Eric Blake  <ebb9@byu.net>
58506
58507         Add obstack-printf and obstack-printf-posix modules.
58508         * modules/obstack-printf: New file.
58509         * modules/obstack-printf-posix: Likewise.
58510         * MODULES.html.sh (Misc): Mention them.
58511         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58512         Likewise.
58513         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58514         Likewise.
58515         * modules/stdio (Makefile.am): Accomodate new modules.
58516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58517         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58518         Declare.
58519         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58520         functions.
58521         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58522         (gl_REPLACE_OBSTACK_PRINTF): New macros
58523         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58524         * tests/test-obstack-printf.c: New file.
58525         * modules/obstack-printf-tests: Likewise.
58526         * modules/obstack-printf-posix-tests: Likewise.
58527
58528 2008-06-11  Bruno Haible  <bruno@clisp.org>
58529
58530         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58531         * lib/open.c: Include errno.h.
58532         (open): Fail when attempting to write to a file that has a trailing
58533         slash.
58534         * tests/test-open.c (main): Test against trailing slash bug.
58535         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58536
58537 2008-06-10  Bruno Haible  <bruno@clisp.org>
58538
58539         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58540         for $? to work inside the trap command, with various /bin/sh-s.
58541         * tests/test-vc-list-files-cvs.sh: Likewise.
58542
58543 2008-06-10  Bruno Haible  <bruno@clisp.org>
58544
58545         * lib/acl-internal.h: Don't include gettext.h here.
58546         * lib/set-mode-acl.c: Include gettext.h here.
58547         * lib/copy-acl.c: Likewise.
58548
58549 2008-06-10  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58552         * lib/wait-process.c (wait_subprocess): Likewise.
58553         * lib/execute.h (execute): Add termsigp argument.
58554         * lib/execute.c (execute): Likewise.
58555         * lib/csharpcomp.c (compile_csharp_using_pnet,
58556         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58557         * lib/csharpexec.c (execute_csharp_using_pnet,
58558         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58559         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58560         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58561         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58562         is_jikes_present): Update.
58563         * lib/javaexec.c (execute_java_class): Update.
58564         * lib/javaversion.c (execute_and_read_line): Update.
58565         * NEWS: Document the changes.
58566         Reported by Eric Blake.
58567
58568 2008-06-10  Eric Blake  <ebb9@byu.net>
58569
58570         Add missing include.
58571         * tests/test-strstr.c (includes): Add <signal.h>.
58572         * tests/test-strcasestr.c (includes): Likewise.
58573         * tests/test-memmem.c (includes): Likewise.
58574
58575 2008-06-10  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/wait-process.c (wait_subprocess): Add an assertion.
58578
58579 2008-06-10  Bruno Haible  <bruno@clisp.org>
58580
58581         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58582
58583 2008-06-10  Bruno Haible  <bruno@clisp.org>
58584
58585         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58586         using alarm().
58587         * tests/test-strcasestr.c (main): Likewise.
58588         * tests/test-strstr.c (main): Likewise.
58589
58590 2008-06-09  Bruno Haible  <bruno@clisp.org>
58591
58592         Work around the Solaris 10 ACE ACLs ABI change.
58593         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58594         declare if ACL_NO_TRIVIAL is present.
58595         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58596         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58597         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58598         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58599         define if ACL_NO_TRIVIAL is present.
58600         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58601         and use the current ABI.
58602         (file_has_acl): Use same #if condition as elsewhere.
58603         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58604         in use, and use the current ABI.
58605         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58606         Reported by Jim Meyering.
58607
58608 2008-06-09  Eric Blake  <ebb9@byu.net>
58609
58610         Work around environments that (stupidly) ignore SIGALRM.
58611         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58612         before using alarm().
58613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58614         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58615         Reported by Ian Beckwith <ianb@erislabs.net>.
58616
58617         Produce autobuild blurb earlier in log.
58618         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58619
58620 2008-06-09  Jim Meyering  <meyering@redhat.com>
58621         and OndÅ™ej Vašík  <ovasik@redhat.com>
58622
58623         utimens.c: correct kernel bug work-around
58624         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58625         failure, not success, and the kernel bug we're trying to work
58626         around affects not just the utimensat call, but also the fallback
58627         futimens call.
58628         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58629         not success.
58630         [HAVE_FUTIMENS]: Use the same work-around, here.
58631
58632 2008-06-09  Jim Meyering  <meyering@redhat.com>
58633
58634         add more guards around definition of ACE_-related code
58635         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58636         ALLOW and ACE_OWNER are also defined.
58637
58638 2008-06-08  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/acl-internal.h: Add me as co-author.
58641         * lib/file-has-acl.c: Likewise.
58642         * lib/set-mode-acl.c: Likewise.
58643         * lib/copy-acl.c: Likewise.
58644
58645 2008-06-08  Bruno Haible  <bruno@clisp.org>
58646
58647         Add support for AIX ACLs.
58648         * lib/acl-internal.h (acl_nontrivial): New declaration.
58649         * lib/file-has-acl.c (acl_nontrivial): New function.
58650         (file_has_acl): Add implementation using AIX 4 ACL API.
58651         * lib/set-mode-acl.c (qset_acl): Likewise.
58652         * lib/copy-acl.c (qcopy_acl): Likewise.
58653
58654 2008-06-08  Bruno Haible  <bruno@clisp.org>
58655
58656         Add support for HP-UX ACLs.
58657         * lib/acl-internal.h (acl_nontrivial): New declaration.
58658         * lib/file-has-acl.c (acl_nontrivial): New function.
58659         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58660         * lib/set-mode-acl.c (qset_acl): Likewise.
58661         * lib/copy-acl.c (qcopy_acl): Likewise.
58662
58663 2008-06-08  Bruno Haible  <bruno@clisp.org>
58664
58665         Add support for Cygwin ACLs.
58666         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58667         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58668         the chmod_or_fchmod call.
58669         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58670
58671 2008-06-08  Bruno Haible  <bruno@clisp.org>
58672
58673         Fix bug with setuid modes in Solaris 10+ code.
58674         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58675         succeeded, when the mode contains some special bits.
58676
58677 2008-06-08  Bruno Haible  <bruno@clisp.org>
58678
58679         Add support for Solaris 7..10 ACLs.
58680         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58681         declarations.
58682         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58683         functions.
58684         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58685         * lib/set-mode-acl.c (qset_acl): Likewise.
58686         * lib/copy-acl.c (qcopy_acl): Likewise.
58687
58688 2008-06-08  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58691         declaration.
58692         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58693         (acl_access_nontrivial): Remove MacOS X case.
58694         (file_has_acl): Use acl_extended_nontrivial.
58695         * lib/copy-acl.c (qcopy_acl): Likewise.
58696
58697 2008-06-08  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58700
58701 2008-06-08  Jim Meyering  <meyering@redhat.com>
58702
58703         * modules/acl (Maintainer): Add Bruno Haible.
58704
58705 2008-06-07  Bruno Haible  <bruno@clisp.org>
58706
58707         Improve support for Tru64 ACLs.
58708         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58709         ACL on OSF/1.
58710
58711 2008-06-07  Bruno Haible  <bruno@clisp.org>
58712
58713         Add support for MacOS X ACLs.
58714         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58715         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58716         * lib/set-mode-acl.c (qset_acl): Likewise.
58717         * lib/copy-acl.c (qcopy_acl): Likewise.
58718
58719 2008-06-07  Bruno Haible  <bruno@clisp.org>
58720
58721         Fix memory leak introduced on 2008-05-22.
58722         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58723         use.
58724
58725 2008-06-07  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58728         to construct an empty ACL.
58729
58730 2008-06-07  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58733         precisely.
58734         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58735
58736 2008-06-07  Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58739         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58740
58741 2008-06-07  Bruno Haible  <bruno@clisp.org>
58742
58743         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58744         regardless of POSIX.
58745         * doc/posix-functions/_longjmp.texi: Likewise.
58746         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58747         SystemV platform in this case.
58748
58749 2008-06-06  Eric Blake  <ebb9@byu.net>
58750
58751         Document abort() bugs.
58752         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58753
58754         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58755         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58756         sigsetjmp.
58757         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58758         siglongjmp, but only as a macro.
58759         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58760         is obsolete.
58761         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58762
58763         Tweak documentation to cover cygwin argz bugs.
58764         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58765         argz bug fix; no code change needed since no cygwin releases
58766         occurred between the last fix and the bug being tested.
58767         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58768         module and recently fixed cygwin bugs.
58769         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58770         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58771         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58772         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58773         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58774         Likewise.
58775         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58776         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58777         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58778         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58779         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58780         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58781         Likewise.
58782
58783         Avoid gcc warning on cygwin.
58784         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58785         !ACL_NO_TRIVIAL]: Avoid unused variable.
58786
58787 2008-06-05  Eric Blake  <ebb9@byu.net>
58788
58789         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58790         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58791         git-version-gen fails to come up with a version.
58792         Reported by Simon Josefsson.
58793
58794 2008-06-05  Jim Meyering  <meyering@redhat.com>
58795             Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         utimens.c: work around a probable Linux kernel bug
58798         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58799         appears to be a kernel bug that causes utimensat to return 280
58800         instead of 0, indicating success.
58801
58802 2008-06-04  Bruno Haible  <bruno@clisp.org>
58803
58804         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58805         2008-06-01 commit.
58806
58807 2008-06-04  Bruno Haible  <bruno@clisp.org>
58808
58809         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58810         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58811         (file_has_acl): Use it. Save errno afterwards.
58812         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58813
58814 2008-06-03  Bruno Haible  <bruno@clisp.org>
58815
58816         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58817         draft code. Simplify #ifs.
58818         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58819         Put Solaris code after POSIX-draft code. Fix comments regarding
58820         Solaris 10, HP-UX. Mention Cygwin.
58821         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58822
58823 2008-06-03  Eric Blake  <ebb9@byu.net>
58824
58825         Provide fallback for older kernels.
58826         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58827         Provide runtime fallback if kernel lacks support.
58828         Reported by Mike Frysinger.
58829
58830 2008-06-02  Bruno Haible  <bruno@clisp.org>
58831
58832         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58833         it exists.
58834
58835 2008-06-02  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58838         * lib/copy-acl.c (qcopy_acl): Update comment.
58839
58840 2008-06-02  Bruno Haible  <bruno@clisp.org>
58841
58842         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58843         like ACL APIs.
58844
58845 2008-06-02  Bruno Haible  <bruno@clisp.org>
58846
58847         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58848         * tests/test-set-mode-acl.sh: Likewise.
58849         * tests/test-copy-acl.sh: Likewise.
58850         * tests/test-copy-file.sh: Likewise.
58851
58852 2008-06-02  Bruno Haible  <bruno@clisp.org>
58853
58854         * tests/test-file-has-acl.sh: Remove unused code.
58855
58856 2008-06-01  Bruno Haible  <bruno@clisp.org>
58857
58858         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58859         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58860         messages.
58861         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58862
58863 2008-06-01  Bruno Haible  <bruno@clisp.org>
58864
58865         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58866         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58867         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58868         APIs.
58869         * modules/acl-tests (configure.ac): Remove tests now contained in
58870         m4/acl.m4.
58871
58872 2008-06-02  Jim Meyering  <meyering@redhat.com>
58873
58874         announce-gen: use a better key-server host name
58875         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58876         it may be more consistently reliable.  Suggested by Werner Koch
58877         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58878
58879 2008-06-01  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58882         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58883
58884 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58885
58886         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58887
58888 2008-06-01  Bruno Haible  <bruno@clisp.org>
58889
58890         New ACL tests.
58891         * tests/test-file-has-acl.sh: New file.
58892         * tests/test-file-has-acl.c: New file.
58893         * tests/test-set-mode-acl.sh: New file.
58894         * tests/test-set-mode-acl.c: New file.
58895         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58896         * tests/test-copy-acl.c: New file.
58897         * modules/acl-tests: New file, based on modules/copy-file-tests.
58898         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58899         (Depends-on): Add acl-tests.
58900         (configure.ac): Remove checks.
58901         (Makefile.am): Don't create test-sameacls program here any more.
58902
58903 2008-06-01  Bruno Haible  <bruno@clisp.org>
58904
58905         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58906         * tests/test-sameacls.c: Include progname.h.
58907         (main): Invoke set_program_name. Portability fixes for MacOS X,
58908         Solaris, HP-UX.
58909
58910 2008-06-01  Bruno Haible  <bruno@clisp.org>
58911
58912         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58913         function.
58914         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58915
58916 2008-06-01  Bruno Haible  <bruno@clisp.org>
58917
58918         * modules/rpmatch (Depends-on): Add strdup.
58919
58920 2008-06-01  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/pipe.c: Include unistd-safer.h.
58923         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58924         * modules/pipe (Depends-on): Add unistd-safer.
58925
58926 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58927
58928         * modules/autobuild (configure.ac): Call AB_INIT.
58929
58930 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58931
58932         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58933         Suggested by Bruno Haible <bruno@clisp.org>.
58934
58935 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58936
58937         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58938         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58939         <bruno@clisp.org>.
58940
58941 2008-05-29  Eric Blake  <ebb9@byu.net>
58942
58943         Prefer new POSIX 200x interfaces over futimesat.
58944         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58945         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58946         when available.
58947         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58948
58949 2008-05-28  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/stpcpy (License): Change to LGPLv2+.
58952         Requested by David Lutterkort <dlutter@redhat.com>.
58953
58954 2008-05-27  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58957         current mingw.
58958         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58959
58960 2008-05-27  Bruno Haible  <bruno@clisp.org>
58961
58962         * modules/iconv_open (Link): New section, from module 'iconv'.
58963         * modules/striconv (Link): Likewise.
58964         * modules/striconveh (Link): Likewise.
58965         * modules/xstriconv (Link): Likewise.
58966         * modules/unicodeio (Link): Likewise.
58967         * modules/propername (Link): Likewise.
58968         Reported by Jim Meyering.
58969
58970 2008-05-26  Jim Meyering  <meyering@redhat.com>
58971
58972         sha256: do not artificially restrict buffer length to be < 2^32
58973         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58974         uint32_t to size_t.
58975         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58976         to match.
58977
58978         avoid unaligned access errors, e.g., on sparc
58979         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58980         direct access through a possibly-unaligned uint64* pointer.
58981         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58982         direct access through a possibly-unaligned uint32* pointer.
58983         Prompted by this patch from Tom "spot" Callaway:
58984         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58985
58986         sha512.c: fix typo in comment
58987         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58988
58989 2008-05-25  Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58992         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58993         (Makefile.am): Update lib_SOURCES.
58994
58995 2008-05-25  Bruno Haible  <bruno@clisp.org>
58996
58997         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58998
58999 2008-05-25  Jim Meyering  <meyering@redhat.com>
59000
59001         useless-if-before-free: freed expr may have white-space differences
59002         * build-aux/useless-if-before-free: Recognize cases in which the
59003         freed expression differs from the tested one in embedded white
59004         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59005         $1 was used, so we can't make any regexp shy.  Improved tests now
59006         detect this.
59007
59008         useless-if-before-free: accept white space in the expression.
59009         * build-aux/useless-if-before-free: For now, any white space
59010         in the expression must be identical in the free argument.
59011
59012         useless-if-before-free: efficiency tweak
59013         * build-aux/useless-if-before-free: Make the expression-matching
59014         regexp "shy".
59015         Make the *outer* regexp shy, not the expr-matching one.
59016
59017         update code-in-comment to accept cast of free arg
59018         * build-aux/useless-if-before-free: Update regexp.
59019
59020 2008-05-25  Bruno Haible  <bruno@clisp.org>
59021
59022         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59023         * modules/copy-file-tests (Files, Makefile.am): Update.
59024         * tests/test-copy-file.c (func_test_copy): Update.
59025
59026 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59027
59028         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59029
59030 2008-05-23  Bruno Haible  <bruno@clisp.org>
59031
59032         Improve support for ACLs on OSF/1.
59033         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59034         Remove fallback for unknown flavors of ACLs.
59035
59036 2008-05-22  Bruno Haible  <bruno@clisp.org>
59037
59038         Add support for ACLs on OSF/1.
59039         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59040         replacements.
59041         (acl_free_text): New macro fallback.
59042         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59043         acl_free.
59044         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59045         acl_free_text function. Require AC_C_INLINE.
59046
59047 2008-05-22  Bruno Haible  <bruno@clisp.org>
59048
59049         Make copy_acl work on MacOS X 10.5.
59050         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59051         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59052         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59053         If MODE_INSIDE_ACL, don't assume that every system has the same text
59054         representation for ACLs as FreeBSD.
59055         * lib/copy-acl.c (copy_acl): Add support for platforms with
59056         !MODE_INSIDE_ACL.
59057         * lib/file-has-acl.c (file_has_acl): Likewise.
59058         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59059         FreeBSD, MacOS X, or IRIX, respectively.
59060
59061 2008-05-22  Bruno Haible  <bruno@clisp.org>
59062
59063         * lib/acl.h: Don't include <sys/acl.h>.
59064         (GETACLCNT): Move fallback to lib/acl-internal.h.
59065         * lib/acl-internal.h: Include <sys/acl.h> here.
59066         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59067
59068 2008-05-22  Bruno Haible  <bruno@clisp.org>
59069
59070         Split off copy_acl function to separate file.
59071         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59072         * lib/acl.c (copy_acl): Moved function to separate file.
59073         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59074         * modules/acl (Files): Add lib/copy-acl.c.
59075         (Makefiles.am): Augment lib_SOURCES.
59076
59077 2008-05-22  Bruno Haible  <bruno@clisp.org>
59078
59079         * modules/copy-file-tests: New file.
59080         * tests/test-copy-file.sh: New file.
59081         * tests/test-copy-file.c: New file.
59082         * tests/test-copy-file-sameacls.c: New file.
59083
59084 2008-05-22  Eric Blake  <ebb9@byu.net>
59085
59086         Avoid gcc warning.
59087         * tests/test-memcmp.c (main): Pass NULL indirectly.
59088
59089 2008-05-21  Bruno Haible  <bruno@clisp.org>
59090
59091         Add reference doc about ACLs.
59092         * doc/acl-resources.txt: New file.
59093         * doc/acl-cygwin.txt: New file.
59094
59095 2008-05-21  Bruno Haible  <bruno@clisp.org>
59096
59097         Avoid one more warning from gcc.
59098         * lib/vasnprintf.c (IF_LINT): Update comments.
59099         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59100
59101 2008-05-21  Jim Meyering  <meyering@redhat.com>
59102
59103         avoid a warning from gcc
59104         * lib/vasnprintf.c (IF_LINT): Define.
59105         (scale10_round_decimal_long_double):
59106         Use it to avoid a "may be used uninitialized" warning.
59107         (scale10_round_decimal_double): Likewise.
59108
59109 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59110
59111         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59112         declared.
59113
59114 2008-05-20  Bruno Haible  <bruno@clisp.org>
59115
59116         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59117         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59118
59119 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59120
59121         * modules/memcmp-tests: New file.
59122         * tests/test-memcmp.c: New file.
59123
59124 2008-05-19  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/propername (Notice, configure.ac): Put quoted "..." into
59127         --keyword option.
59128         * lib/propername.h: Update comments accordingly.
59129         Reported by Eric Blake.
59130
59131 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59132
59133         * modules/getpass-gnu (Depends-on): Add fseeko.
59134
59135 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59136
59137         * modules/base64-tests: New file.
59138
59139 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59140
59141         * lib/base64.c (base64_decode_ctx): If a decode context structure
59142         was passed in use it to ignore newlines.  If a context structure
59143         was _not_ passed in, continue to treat newlines as garbage (this
59144         is the historical behavior).  Formerly base64_decode.
59145         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59146         takes a decode context structure.
59147         * lib/base64.h (base64_decode): Macro for four-argument calls.
59148         (base64_decode_alloc): Likewise.
59149         * lib/base64.c (base64_decode_ctx): If a decode context structure
59150         was passed in use it to ignore newlines.  If a context structure
59151         was _not_ passed in, continue to treat newlines as garbage (this
59152         is the historical behavior).  Formerly base64_decode.
59153         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59154         takes a decode context structure.
59155         * lib/base64.h (base64_decode): Macro for four-argument calls.
59156         (base64_decode_alloc): Likewise.
59157
59158 2008-05-19  Jim Meyering  <meyering@redhat.com>
59159
59160         avoid a warning from gcc
59161         * lib/trim.c (IF_LINT): Define.
59162         (trim2): Use it to avoid a "may be used uninitialized" warning.
59163
59164         Fix doc typo.
59165         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59166
59167 2008-05-19  Bruno Haible  <bruno@clisp.org>
59168
59169         * doc/glibc-functions/getpass.texi: Document limits of other
59170         implementations.
59171
59172 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59173             Bruno Haible <bruno@clisp.org>
59174
59175         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59176
59177 2008-05-18  Bruno Haible  <bruno@clisp.org>
59178
59179         * modules/propername: New file, from GNU gettext.
59180         * lib/propername.h: New file, from GNU gettext.
59181         * lib/propername.c: New file, from GNU gettext.
59182         * MODULES.html.sh (Internationalization functions): Add propername.
59183
59184 2008-05-16  Jim Meyering  <meyering@redhat.com>
59185             Bruno Haible  <bruno@clisp.org>
59186
59187         Avoid some warnings from "gcc -Wshadow".
59188         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59189
59190 2008-05-15  Eric Blake  <ebb9@byu.net>
59191
59192         Extend previous patch to cygwin 1.7.0.
59193         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59194         fast implementation in cygwin >= 1.7.0.
59195         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59197
59198 2008-05-15  Bruno Haible  <bruno@clisp.org>
59199
59200         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59201         implementation in glibc >= 2.9.
59202         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59204
59205 2008-05-15  Bruno Haible  <bruno@clisp.org>
59206
59207         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59208         (Unicode string functions): Add unilbrk/*.
59209         Reported by Karl Berry.
59210
59211 2008-05-15  Eric Blake  <ebb9@byu.net>
59212
59213         Fix violation of <stdbool.h> replacement in regex.
59214         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59215         * lib/regexec.c (re_search_internal): Likewise.
59216         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59217
59218 2008-05-15  Jim Meyering  <meyering@redhat.com>
59219
59220         avoid distracting test output when git or cvs is not found
59221         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59222         * tests/test-vc-list-files-git.sh: Likewise.
59223
59224 2008-05-15  Eric Blake  <ebb9@byu.net>
59225
59226         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59227         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59228         glibc version.
59229         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59230         * doc/posix-functions/strstr.texi (strstr): Likewise.
59231         * lib/str-two-way.h (MAX): Sychronize with glibc.
59232
59233 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59234
59235         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59236         opr.ctx_type.
59237         (calc_first): Initialize constraint field.
59238         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59239         Fix grammar.
59240         (duplicate_node): Merge constraint field for all node types.
59241         (calc_eclosure_iter): Look at constraint field for all node types.
59242         * lib/regex_internal.c (create_cd_newstate): Don't look at
59243         opr.ctx_type.
59244
59245 2008-05-14  Bruno Haible  <bruno@clisp.org>
59246
59247         Help GCC to do better code generation.
59248         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59249         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59250         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59251         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59252         Declare with attribute 'malloc' if supported.
59253
59254 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59255
59256         use "echo STR|wc -c" rather than unportable "expr length STR"
59257         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59258         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59259
59260 2008-05-14  Jim Meyering  <meyering@redhat.com>
59261
59262         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59263         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59264         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59265         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59266         via Collin Lasse.
59267
59268 2008-05-14  Eric Blake  <ebb9@byu.net>
59269
59270         Avoid quadratic growth in gl_LIBSOURCES.
59271         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59272         Suggested by Bruno Haible.
59273
59274         Test xmemdup0.
59275         * modules/xmemdup0-tests: New file.
59276         * tests/test-xmemdup0.c: Likewise.
59277
59278 2008-05-13  Eric Blake  <ebb9@byu.net>
59279
59280         Split xmemdup0 into its own module.
59281         * modules/xmemdup0: New file.
59282         * lib/xmemdup0.h: Likewise.
59283         * lib/xmemdup0.c: Likewise.
59284         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59285         * lib/xalloc.h (xmemdup0): Remove.
59286         * lib/xmalloc.c (xmemdup0): Likewise.
59287
59288 2008-05-13  Eric Blake  <ebb9@byu.net>
59289             Bruno Haible  <bruno@clisp.org>
59290
59291         Reduce number of forks required during autoconf.
59292         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59293         and gl_LIBSOURCES_DIR.
59294         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59295         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59296         m4_syscmd per file.
59297         <m4_foreach_w>: Move...
59298         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59299
59300 2008-05-13  Eric Blake  <ebb9@byu.net>
59301
59302         * gnulib-tool: Fix various comment typos.
59303
59304 2008-05-12  Bruno Haible  <bruno@clisp.org>
59305
59306         Tailor the linebreaking algorithm.
59307         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59308
59309 2008-05-12  Bruno Haible  <bruno@clisp.org>
59310
59311         Update to Unicode 5.0.0.
59312         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59313         LBP_JV, LBP_JT. Redistribute values.
59314         (unilbrk_table): Change size.
59315         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59316         Unicode TR#14 rev. 22.
59317         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59318         LBP_JV, LBP_JT. Redistribute values.
59319         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59320         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59321         Update.
59322         * lib/unilbrk/lbrkprop1.h: Regenerated.
59323         * lib/unilbrk/lbrkprop2.h: Regenerated.
59324         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59325         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59326         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59327         Likewise.
59328         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59329         Likewise.
59330         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59331         result.
59332         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59333         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59334         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59335         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59336         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59337         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59338
59339 2008-05-11  Bruno Haible  <bruno@clisp.org>
59340
59341         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59342
59343 2008-05-11  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59346         * modules/unilbrk/gen-lbrk: New file.
59347
59348 2008-05-11  Bruno Haible  <bruno@clisp.org>
59349
59350         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59351         * m4/sha512.m4 (gl_SHA512): Likewise.
59352
59353 2008-05-11  Jim Meyering  <meyering@redhat.com>
59354
59355         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59356         * modules/crypto/sha256: New file.
59357         * modules/crypto/sha512: Likewise.
59358         * lib/sha256.c: Likewise.
59359         * lib/sha256.h: Likewise.
59360         * lib/sha512.c: Likewise.
59361         * lib/sha512.h: Likewise.
59362         * lib/u64.h: Likewise.
59363         * m4/sha256.m4: Likewise.
59364         * m4/sha512.m4: Likewise.
59365         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59366
59367 2008-05-10  Bruno Haible  <bruno@clisp.org>
59368
59369         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59370         (Input/Output <stdio.h>): Add xprintf.
59371         (Signal handling <signal.h>): Add strsignal.
59372         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59373         (Core language properties): Add func.
59374         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59375         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59376         strings.
59377         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59378         (Input/output): New section.
59379         (File system functions): Add openat-die, stat-macros.
59380         (Networking functions): Add sockets.
59381         (Unicode string functions): Add unictype/*.
59382         (Support for building libraries and executables): Add gperf.
59383         (Support for building documentation): Add agpl-3.0.
59384         (Misc): Add nocrash.
59385
59386 2008-05-10  Bruno Haible  <bruno@clisp.org>
59387
59388         * modules/unictype/gen-ctype: New file.
59389
59390 2008-05-10  Jim Meyering  <meyering@redhat.com>
59391
59392         Make chdir-safer.c more efficient on a system with no symlinks.
59393         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59394         also if ELOOP is zero.  Suggested by Bruno Haible.
59395
59396         Make chdir-safer.c slightly safer.
59397         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59398         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59399
59400         Avoid compile failure on systems without ELOOP (like mingw).
59401         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59402         Reported by Bruno Haible.
59403
59404 2008-05-10  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59407         (is_utf8_encoding): Use a case-insensitive comparison.
59408         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59409         streq.
59410
59411 2008-05-10  Bruno Haible  <bruno@clisp.org>
59412
59413         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59414         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59415         * lib/unilbrk/ulc-common.h (iconv_string_length,
59416         iconv_string_keeping_offsets): Remove declarations.
59417         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59418         Don't include <iconv.h>, streq.h, xsize.h.
59419         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59420         conversion.
59421         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59422         <iconv.h>, streq.h, xsize.h.
59423         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59424         conversion.
59425         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59426         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59427         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59428         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59429
59430 2008-05-10  Bruno Haible  <bruno@clisp.org>
59431
59432         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59433         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59434
59435         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59436         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59437
59438         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59439         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59440
59441         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59442         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59443
59444         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59445         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59446
59447         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59448         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59449
59450         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59451         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59452
59453         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59454         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59455
59456 2008-05-10  Bruno Haible  <bruno@clisp.org>
59457
59458         Split up 'linebreak' module.
59459         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59460         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59461         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59462         modifications.
59463         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59464         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59465         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59466         lib/linebreak.c.
59467         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59468         lib/linebreak.c.
59469         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59470         lib/linebreak.c.
59471         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59472         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59473         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59474         lib/linebreak.c.
59475         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59476         lib/linebreak.c.
59477         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59478         lib/linebreak.c.
59479         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59480         lib/linebreak.c.
59481         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59482         lib/linebreak.c.
59483         * modules/unilbrk/base: New file.
59484         * modules/unilbrk/tables: New file.
59485         * modules/unilbrk/u8-possible-linebreaks: New file.
59486         * modules/unilbrk/u16-possible-linebreaks: New file.
59487         * modules/unilbrk/u32-possible-linebreaks: New file.
59488         * modules/unilbrk/ulc-common: New file.
59489         * modules/unilbrk/ulc-possible-linebreaks: New file.
59490         * modules/unilbrk/u8-width-linebreaks: New file.
59491         * modules/unilbrk/u16-width-linebreaks: New file.
59492         * modules/unilbrk/u32-width-linebreaks: New file.
59493         * modules/unilbrk/ulc-width-linebreaks: New file.
59494         * lib/linebreak.h: Remove file.
59495         * lib/linebreak.c: Remove file.
59496         * m4/linebreak.m4: Remove file.
59497         * modules/linebreak: Remove file.
59498         * NEWS: Mention the changes.
59499
59500 2008-05-09  Eric Blake  <ebb9@byu.net>
59501
59502         Add xmemdup0.
59503         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59504         implementation.
59505         * lib/xmalloc.c (xmemdup0): New C implementation.
59506
59507 2008-05-08  Bruno Haible  <bruno@clisp.org>
59508
59509         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59510
59511 2008-05-07  Eric Blake  <ebb9@byu.net>
59512
59513         Support cross-compilation of <wctype.h>.
59514         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59515         AC_CACHE_CHECK.
59516
59517 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59518
59519         * build-aux/vc-list-files: Add support for bzr.
59520
59521 2008-05-03  Jim Meyering  <meyering@redhat.com>
59522
59523         avoid failed assertion with tight malloc
59524         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59525
59526 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59527
59528         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59529         are needed from arpa/inet.h.
59530         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59531         Reported by Bruno Haible.
59532
59533 2008-05-02  Jim Meyering  <meyering@redhat.com>
59534
59535         avoid compilation error on FreeBSD 6
59536         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59537
59538 2008-05-01  Jim Meyering  <meyering@redhat.com>
59539
59540         useless-if-before-free: correct --help's exit status description
59541         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59542         for one or more matches, etc.  Reported by Bruno Haible.
59543
59544         vc-list-files: make the stand-alone gnulib test work
59545         * modules/vc-list-files-tests (configure.ac):
59546         Define and AC_SUBST abs_aux_dir.
59547         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59548         $(abs_top_srcdir) to each script and having each of them
59549         duplicate the work of setting PATH, set PATH here, using
59550         the new variable, abs_aux_dir instead.
59551         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59552         * tests/test-vc-list-files-git.sh: Likewise.
59553         Reported by Bruno Haible.
59554
59555 2008-05-01  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59558         reallocation. Rename 'done' to 'found_delimiter'.
59559
59560 2008-05-01  Jim Meyering  <meyering@redhat.com>
59561
59562         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59563         * build-aux/vc-list-files: Use `...`, not $(...).
59564
59565 2008-04-30  Jim Meyering  <meyering@redhat.com>
59566
59567         add tests for vc-list-files
59568         * modules/vc-list-files-tests: New module.
59569         * tests/test-vc-list-files-cvs.sh: New file.
59570         * tests/test-vc-list-files-git.sh: New file.
59571
59572         avoid a warning from gcc
59573         * lib/getndelim2.c (IF_LINT): Define.
59574         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59575
59576         vc-list-files: work properly with build-aux/cvsu, too
59577         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59578         to all cvs-based clauses.
59579
59580         vc-list-files: work properly in the CVS+awk case, too
59581         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59582
59583         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59584         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59585         take more than one file argument, so .  Add quotes, just in case $dir
59586         ever contains a shell meta-character.  Prompted by Soren Hansen in
59587         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59588
59589 2008-04-29  Eric Blake  <ebb9@byu.net>
59590
59591         Optimize getndelim2 to use block operations when possible.
59592         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59593         freadseek, and memchr2.
59594         * lib/getndelim2.c (getndelim2): Use them for block reads.
59595
59596 2008-04-29  Bruno Haible  <bruno@clisp.org>
59597
59598         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59599         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59600         * modules/inet_ntop (Depends-on): Add extensions.
59601         * modules/inet_pton (Depends-on): Likewise.
59602         Reported by Simon Josefsson.
59603
59604 2008-04-29  Jim Meyering  <meyering@redhat.com>
59605
59606         When the is more than one match in a block, match all of them.
59607         * build-aux/useless-if-before-free: Iterate through each block
59608         until there are no more matches.
59609
59610         Fix broken useless-if-before-free script.
59611         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59612         the expression to match cast of argument to free-like function.
59613
59614 2008-04-29  Eric Blake  <ebb9@byu.net>
59615
59616         Use new header.
59617         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59618
59619 2008-04-29  Jim Meyering  <meyering@redhat.com>
59620
59621         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59622         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59623         by gnulib to exist and to declare e.g., inet_ntop.
59624         Don't include "inet_ntop.h", now removed.
59625
59626         * m4/arpa_inet_h.m4: Remove trailing blanks.
59627
59628 2008-04-29  Eric Blake  <ebb9@byu.net>
59629
59630         Silence valgrind on safe reads beyond potential array bounds.
59631         * lib/rawmemchr.valgrind: New file.
59632         * lib/strchrnul.valgrind: Likewise.
59633         * modules/rawmemchr (Files): Distribute new file.
59634         * modules/strchrnul (Files): Likewise.
59635         Suggested by Bruno Haible.
59636
59637 2008-04-29  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59640         (inet_ntop, inet_pton): Change portability warning's wording.
59641         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59642         Invoke gl_CHECK_NEXT_HEADERS.
59643         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59644         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59645         set ARPA_INET_H.
59646         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59647         * modules/arpa_inet (Description): No longer only for systems that
59648         lack it.
59649         (Depends-on): Add include_next.
59650         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59651         HAVE_ARPA_INET_H.
59652
59653 2008-04-29  Jim Meyering  <meyering@redhat.com>
59654
59655         * modules/mkdir (License): Re-license as LGPLv2+.
59656
59657 2008-04-29  Bruno Haible  <bruno@clisp.org>
59658
59659         * modules/rawmemchr (Maintainer): Set to Eric.
59660         * modules/strchrnul (Maintainer): Likewise.
59661
59662 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59663
59664         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59665         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59666
59667         * modules/arpa_inet (arpa/inet.h): Use them.
59668
59669 2008-04-28  Eric Blake  <ebb9@byu.net>
59670
59671         Test getndelim2.
59672         * modules/getndelim2-tests: New file.
59673         * tests/test-getndelim2.c: Likewise.
59674         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59675         stream.
59676         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59677
59678         * MODULES.html.sh: Document new module.
59679
59680 2008-04-20  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/c-stack.c (die): Use raise.
59683         * modules/c-stack (Depends-on): Add raise.
59684
59685 2008-04-28  Bruno Haible  <bruno@clisp.org>
59686
59687         Expect rpmatch to be declared.
59688         * lib/yesno.c (rpmatch): Remove declaration.
59689
59690         Declare rpmatch.
59691         * lib/stdlib.in.h (rpmatch): New declaration.
59692         * lib/rpmatch.c: Include <stdlib.h> first.
59693         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59694         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59696         HAVE_RPMATCH.
59697         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59699         (Include): Set to <stdlib.h>.
59700         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59701         HAVE_RPMATCH.
59702         * NEWS: Document the change.
59703
59704 2008-04-28  Bruno Haible  <bruno@clisp.org>
59705
59706         Change rpmatch to use nl_langinfo when appropriate.
59707         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59708         (N_): New macro.
59709         (localized_pattern): New function/macro.
59710         (try): Remove match, nomatch arguments. Copy the pattern into safe
59711         memory before caching it.
59712         (rpmatch): Use localized_pattern. Add translator comments.
59713         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59714         Suggested by Eric Blake.
59715         * modules/rpmatch (Depends-on): Add stdbool.
59716
59717 2008-04-28  Eric Blake  <ebb9@byu.net>
59718
59719         Add rawmemchr module, matching glibc.
59720         * modules/string (Makefile.am): New indicator.
59721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59722         * lib/string.in.h (rawmemchr): Declare when appropriate.
59723         * modules/rawmemchr: New file.
59724         * m4/rawmemchr.m4: Likewise.
59725         * lib/rawmemchr.c: Likewise.
59726         * modules/rawmemchr-tests: Likewise.
59727         * tests/test-rawmemchr.c: Likewise.
59728         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59729         module.
59730         * modules/strchrnul (Depends-on): Add rawmemchr.
59731         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59732
59733         Whitespace cleanup.
59734         * tests/test-strchrnul.c: Reindent.
59735         * lib/strchrnul.c: Likewise.
59736
59737         Optimize and test strchrnul.
59738         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59739         * modules/strchrnul-tests: New file.
59740         * tests/test-strchrnul.c: Likewise.
59741
59742         Remove intprops dependency.
59743         * modules/memchr (Depends-on): Remove intprops.
59744         * modules/memrchr (Depends-on): Likewise.
59745         * modules/memchr2 (Depends-on): Likewise.
59746         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59747         * lib/memrchr.c (__memrchr): Likewise.
59748         * lib/memrchr2.c (memchr2): Likewise.
59749         Reported by Simon Josefsson.
59750
59751 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59752
59753         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59754         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59755
59756 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59757
59758         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59759
59760         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59761
59762         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59763
59764         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59765         declarations.
59766         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59767
59768         * m4/inet_pton.m4: Don't check for header files.
59769
59770         * m4/inet_ntop.m4: Don't check for header files.
59771
59772 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59773
59774         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59775         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59776         trigger for cygwin).
59777         Reported by Bruno Haible  <bruno@clisp.org>.
59778
59779 2008-04-28  Bruno Haible  <bruno@clisp.org>
59780
59781         * doc/posix-functions/strdup.texi: Mention mingw problem.
59782
59783 2008-04-27  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/stat-time-tests (Depends-on): Add sleep.
59786         * tests/test-stat-time.c (force_unlink): New function.
59787         (cleanup): Use it.
59788         (test_mtime): Remove the ctime related tests.
59789         (test_ctime): New function, containing the ctime related tests.
59790         (main): Call test_ctime, except on native Windows platforms.
59791
59792 2008-04-27  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/rpmatch.c (rpmatch): Add some comments.
59795         Reported by James Youngman <jay@gnu.org>.
59796
59797 2008-04-27  Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59800         quiet NaNs.
59801
59802 2008-04-27  Bruno Haible  <bruno@clisp.org>
59803
59804         Make test-yesno.sh work on mingw.
59805         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59806         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59807         (main): Set stdin to binary mode.
59808         * modules/yesno-tests (Depends-on): Add binary-io.
59809
59810 2008-04-27  Bruno Haible  <bruno@clisp.org>
59811
59812         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59813         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59814         argument that lie outside the IEEE 854 domain.
59815         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59816         (gl_ISFINITE): Use it.
59817         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59818
59819 2008-04-27  Bruno Haible  <bruno@clisp.org>
59820
59821         Allow local renaming in config.h.
59822         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59823
59824 2008-04-27  Bruno Haible  <bruno@clisp.org>
59825
59826         * lib/memchr.c (__memchr): Change type of 'i'.
59827         * lib/memchr2.c (memchr2): Likewise.
59828
59829 2008-04-26  Eric Blake  <ebb9@byu.net>
59830         and Bruno Haible  <bruno@clisp.org>
59831
59832         Optimize and test memrchr.
59833         * modules/memrchr (Depends-on): Add intprops.
59834         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59835         * modules/memrchr-tests: New file.
59836         * tests/test-memrchr.c: New file.
59837
59838 2008-04-26  Bruno Haible  <bruno@clisp.org>
59839
59840         Add tentative support for DragonFly BSD.
59841         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59842         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59843         fp.
59844         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59845         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59846         * lib/fpurge.c (fpurge): Likewise.
59847         * lib/freadable.c (freaadable): Likewise.
59848         * lib/freadahead.c (freadahead): Likewise.
59849         * lib/freading.c (freading): Likewise.
59850         * lib/freadptr.c (freadptr): Likewise.
59851         * lib/freadseek.c (freadptrinc): Likewise.
59852         * lib/fseeko.c (fseeko): Likewise.
59853         * lib/fseterr.c (fseterr): Likewise.
59854         * lib/fwritable.c (fwritable): Likewise.
59855         * lib/fwriting.c (fwriting): Likewise.
59856
59857 2008-04-26  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/stdio-impl.h: New file.
59860         * lib/fbufmode.c: Include stdio-impl.h.
59861         (fbufmode): Use fp_, remove redundant #defines.
59862         * lib/fflush.c: Include stdio-impl.h.
59863         (clear_ungetc_buffer): Remove redundant #defines.
59864         * lib/fpurge.c: Include stdio-impl.h.
59865         (fpurge): Remove redundant #defines.
59866         * lib/freadable.c: Include stdio-impl.h.
59867         (freadable): Remove redundant #defines.
59868         * lib/freadahead.c: Include stdio-impl.h.
59869         (freadahead): Remove redundant #defines.
59870         * lib/freading.c: Include stdio-impl.h.
59871         (freading): Remove redundant #defines.
59872         * lib/freadptr.c: Include stdio-impl.h.
59873         (freadptr): Remove redundant #defines.
59874         * lib/freadseek.c: Include stdio-impl.h.
59875         (freadptrinc): Remove redundant #defines.
59876         * lib/fseeko.c: Include stdio-impl.h.
59877         (rpl_fseeko): Remove redundant #defines.
59878         * lib/fseterr.c: Include stdio-impl.h.
59879         (fseterr): Remove redundant #defines.
59880         * lib/fwritable.c: Include stdio-impl.h.
59881         (fwritable: Remove redundant #defines.
59882         * lib/fwriting.c: Include stdio-impl.h.
59883         (fwriting): Remove redundant #defines.
59884         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59885         * modules/fflush (Files): Likewise.
59886         * modules/fpurge (Files): Likewise.
59887         * modules/freadable (Files): Likewise.
59888         * modules/freadahead (Files): Likewise.
59889         * modules/freading (Files): Likewise.
59890         * modules/freadptr (Files): Likewise.
59891         * modules/freadseek (Files): Likewise.
59892         * modules/fseeko (Files): Likewise.
59893         * modules/fseterr (Files): Likewise.
59894         * modules/fwritable (Files): Likewise.
59895         * modules/fwriting (Files): Likewise.
59896
59897 2008-04-26  Bruno Haible  <bruno@clisp.org>
59898
59899         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59900         restore_seek_optimization, update_fpos_cache): New functions, extracted
59901         from rpl_fflush.
59902         (rpl_fflush): Use them.
59903         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59904         (gl_REPLACE_FFLUSH): Use it.
59905
59906 2008-04-26  Bruno Haible  <bruno@clisp.org>
59907
59908         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59909         on Solaris.
59910         * tests/test-xstrtoimax.sh: Likewise.
59911         * tests/test-xstrtoumax.sh: Likewise.
59912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59913
59914 2008-04-26  Bruno Haible  <bruno@clisp.org>
59915
59916         * modules/memchr-tests: New file.
59917         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59918
59919 2008-04-26  Eric Blake  <ebb9@byu.net>
59920             Bruno Haible  <bruno@clisp.org>
59921
59922         * lib/memchr.c: Include intprops.h.
59923         (__memchr): Optimize parallel detection of matching bytes. Rename local
59924         variables. Add explanatory comments.
59925
59926 2008-04-26  Bruno Haible  <bruno@clisp.org>
59927
59928         Fix module 'memchr', broken since 2000-10-28.
59929         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59930
59931 2008-04-26  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59934         comments.
59935
59936 2008-04-25  Eric Blake  <ebb9@byu.net>
59937
59938         Use native fstatat on cygwin 1.7.0.
59939         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59940         first.
59941
59942 2008-04-23  Eric Blake  <ebb9@byu.net>
59943
59944         Improve memchr2 performance.
59945         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59946         NUL bytes.
59947         * modules/memchr2 (Depends-on): Use intprops.h.
59948
59949 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59950
59951         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59952         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59953         <blp@cs.stanford.edu>.
59954
59955 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59956
59957         * lib/arpa_inet.in.h: New file.
59958
59959         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59960         (Makefile.am): Sed in substitute header file.
59961
59962         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59963         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59964
59965         * modules/inet_ntop (configure.ac): Use
59966         gl_ARPA_INET_MODULE_INDICATOR.
59967
59968         * modules/inet_pton (configure.ac): Use
59969         gl_ARPA_INET_MODULE_INDICATOR.
59970
59971 2008-04-22  Jim Meyering  <meyering@redhat.com>
59972
59973         * modules/verify (License): Re-license as LGPLv2+.
59974
59975 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59976
59977         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59978         parameter to void* as per POSIX standard (MinGW uses char*).
59979
59980 2008-04-21  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59983         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59984         Define to replacements if REPLACE_ISWCNTRL is 1.
59985         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59986         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59987         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59988         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59989         what it fixes.
59990         * doc/posix-functions/iswalpha.texi: Likewise.
59991         * doc/posix-functions/iswblank.texi: Likewise.
59992         * doc/posix-functions/iswcntrl.texi: Likewise.
59993         * doc/posix-functions/iswdigit.texi: Likewise.
59994         * doc/posix-functions/iswgraph.texi: Likewise.
59995         * doc/posix-functions/iswlower.texi: Likewise.
59996         * doc/posix-functions/iswprint.texi: Likewise.
59997         * doc/posix-functions/iswpunct.texi: Likewise.
59998         * doc/posix-functions/iswspace.texi: Likewise.
59999         * doc/posix-functions/iswupper.texi: Likewise.
60000         * doc/posix-functions/iswxdigit.texi: Likewise.
60001         Reported by Alain Guibert.
60002
60003 2008-04-21  Bruno Haible  <bruno@clisp.org>
60004
60005         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60006         Patch by Alain Guibert.
60007
60008 2008-04-21  Bruno Haible  <bruno@clisp.org>
60009
60010         Fix test failures on mingw.
60011         * tests/test-xstrtol.c (print_no_progname): New function.
60012         (main): Install it in error_print_progname hook.
60013         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60014         * tests/test-xstrtoimax.sh: Likewise.
60015         * tests/test-xstrtoumax.sh: Likewise.
60016
60017 2008-04-21  Bruno Haible  <bruno@clisp.org>
60018
60019         Fix test failure on mingw.
60020         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60021
60022 2008-04-21  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60025         Actually assign a value.
60026
60027 2008-04-20  Bruno Haible  <bruno@clisp.org>
60028
60029         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60030         take 2.
60031         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60032         'canonicalize-lgpl' module is also used.
60033         * lib/canonicalize-lgpl.c: Undo last change.
60034         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60035
60036 2008-04-20  Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60039         config.h. Provide _mkdir based fallback for mingw.
60040         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60041         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60042         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60043         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60044         rather than defining mkdir in config.h.
60045         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60046         (gl_SYS_STAT_H_DEFAULTS): New macro.
60047         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60048         HAVE_IO_H any more.
60049         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60050         HAVE_DECL_MKDIR and HAVE_IO_H.
60051
60052 2008-04-20  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/isapipe.c: Port to native Windows platforms.
60055
60056 2008-04-20  Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60059
60060 2008-04-21  Eric Blake  <ebb9@byu.net>
60061
60062         Work around preprocessors that don't handle UINTMAX_MAX.
60063         * lib/memchr2.c (memchr2): Avoid embedded #if.
60064         Reported by Alain Guibert, fix suggested by Bruno Haible.
60065
60066 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60067
60068         * doc/posix-functions/strftime.texi (strftime): Explain better
60069         Windows incompatibility.  Suggested by Micah Cowan
60070         <micah@cowan.name>.
60071
60072 2008-04-20  Bruno Haible  <bruno@clisp.org>
60073
60074         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60075         unistr/u8-mblen.
60076
60077 2008-04-20  Bruno Haible  <bruno@clisp.org>
60078
60079         Fix test failure on platforms with non-GNU iconv.
60080         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60081         (U_TO_U8): Use it, rather than u16_to_u8.
60082         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60083         units at the end of the input string.
60084         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60085
60086 2008-04-20  Bruno Haible  <bruno@clisp.org>
60087
60088         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60089         when the resulting length is 0.
60090         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60091
60092 2008-04-20  Bruno Haible  <bruno@clisp.org>
60093
60094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60095         works.
60096         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60097
60098 2008-04-20  Bruno Haible  <bruno@clisp.org>
60099
60100         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60101         * modules/tsearch-tests (configure.ac): Test for initstate function.
60102
60103 2008-04-20  Bruno Haible  <bruno@clisp.org>
60104
60105         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60106         for nlink_t if missing.
60107         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60108
60109 2008-04-19  Bruno Haible  <bruno@clisp.org>
60110
60111         Work around snprintf bug on Linux libc5.
60112         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60113         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60114         gl_SNPRINTF_SIZE1.
60115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60116         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60117         that test failed.
60118         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60119         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60120         * modules/snprintf (Files): Add m4/printf.m4.
60121         * modules/vsnprintf (Files): Likewise.
60122         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60123         * doc/posix-functions/vsnprintf.texi: Likewise.
60124
60125 2008-04-19  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60128         from 0.0058 to less than 10^-7.
60129
60130 2008-04-19  Bruno Haible  <bruno@clisp.org>
60131
60132         Fix rounding when a precision is given.
60133         * lib/vasnprintf.c (is_borderline): New function.
60134         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60135         9...9x.
60136         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60137         %e, %g.
60138         * tests/test-vasprintf-posix.c (test_function): Likewise.
60139         * tests/test-snprintf-posix.h (test_function): Likewise.
60140         * tests/test-sprintf-posix.h (test_function): Likewise.
60141         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60142         * tests/test-printf-posix.h (test_function): Likewise.
60143         * tests/test-printf-posix.output: Update.
60144         Reported by John Darrington <john@darrington.wattle.id.au> via
60145         Ben Pfaff <blp@cs.stanford.edu>.
60146
60147 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60148
60149         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60150         Suggested by Bruno Haible <bruno@clisp.org>.
60151
60152 2008-04-17  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60155         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60156         implementation.
60157         Patch by Bruce Merry <bmerry@gmail.com>.
60158
60159 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60160
60161         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60162         doesn't work under Windows.
60163
60164 2008-04-16  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60167         New macros.
60168         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60169         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60170         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60171         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60172         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60173         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60174         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60175         macros.
60176         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60177         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60178         Northern Sotho, Uighur.
60179
60180 2008-04-16  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60183         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60184         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60185         Reported by Daniel Bergström <daniel@octocode.com>.
60186
60187 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60188             Bruno Haible  <bruno@clisp.org>
60189
60190         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60191         function.
60192         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60193         New functions, mostly extracted from gl_locale_name_default.
60194         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60195
60196 2008-04-16  Eric Blake  <ebb9@byu.net>
60197
60198         Adjust strtod detection to catch glibc 2.7 bug.
60199         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60200         Reported by John Gatewood Ham.
60201
60202 2008-04-16  Bruno Haible  <bruno@clisp.org>
60203
60204         Add tentative support for Linux libc5.
60205         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60206         * lib/fpurge.c (fpurge): Likewise.
60207         * lib/freadable.c (freadable): Likewise.
60208         * lib/freadahead.c (freadahead): Likewise.
60209         * lib/freading.c (freading): Likewise.
60210         * lib/freadptr.c (freadptr): Likewise.
60211         * lib/freadseek.c (freadptrinc): Likewise.
60212         * lib/fseeko.c (rpl_fseeko): Likewise.
60213         * lib/fseterr.c (fseterr): Likewise.
60214         * lib/fwritable.c (fwritable): Likewise.
60215         * lib/fwriting.c (fwriting): Likewise.
60216         Reported by Alain Guibert <alguibert+bts@free.fr>.
60217
60218 2008-04-15  Bruno Haible  <bruno@clisp.org>
60219
60220         * modules/mathl (configure.ac): Define module indicator.
60221
60222 2008-04-15  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/logl.c (logl): Remove unused variables.
60225
60226 2008-04-15  Bruno Haible  <bruno@clisp.org>
60227
60228         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60229         fails.
60230
60231 2008-04-15  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/trim.c (trim2): Fix argument of isspace() macro.
60234
60235 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60236
60237         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60238         to 0.
60239         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60240
60241 2008-04-14  Bruno Haible  <bruno@clisp.org>
60242
60243         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60244         AC_LANG_PROGRAM argument.
60245         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60246         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60248         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60249         * m4/math_h.m4 (gl_MATH_H): Likewise.
60250         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60252         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60253         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60254         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60255         * m4/regex.m4 (gl_REGEX): Likewise.
60256         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60257         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60260         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60261         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60263         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60264
60265 2008-04-14  Jim Meyering  <meyering@redhat.com>
60266
60267         test-strtod: fix typos: s/abs/fabs/
60268         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60269
60270 2008-04-13  Bruno Haible  <bruno@clisp.org>
60271
60272         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60273         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60274         module is also used and while not building the reloc-wrapper.
60275
60276 2008-04-13  Bruno Haible  <bruno@clisp.org>
60277
60278         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60279
60280 2008-04-13  Bruno Haible  <bruno@clisp.org>
60281
60282         Fix AIX compilation failure introduced on 2008-04-02.
60283         * tests/test-frexp.c (exp): Undefine before redefining.
60284         * tests/test-frexpl.c (exp): Likewise.
60285
60286 2008-04-13  Bruno Haible  <bruno@clisp.org>
60287
60288         Work around a HP-UX stdio bug.
60289         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60290         * tests/test-ftello.c (main): Likewise.
60291         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60292         * doc/posix-functions/ftello.texi: Likewise.
60293
60294 2008-04-13  Bruno Haible  <bruno@clisp.org>
60295
60296         Make test-signbit pass on HP-UX/hppa.
60297         * tests/test-signbit.c (minus_zerol): New variable.
60298         (test_signbitl): Use it.
60299
60300 2008-04-13  Bruno Haible  <bruno@clisp.org>
60301
60302         Make truncl work on OSF/1 4.0.
60303         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60304         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60305         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60307         HAVE_DECL_TRUNCL.
60308         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60309         HAVE_DECL_TRUNCL.
60310         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60311
60312 2008-04-13  Bruno Haible  <bruno@clisp.org>
60313
60314         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60315
60316 2008-04-13  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60319         expression, so as to avoid HP-UX 11 cc compiler bug.
60320
60321 2008-04-13  Bruno Haible  <bruno@clisp.org>
60322
60323         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60324
60325 2008-04-13  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/git-merge-changelog.c: Remove empty declaration outside of
60328         functions.
60329
60330 2008-04-13  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60333
60334 2008-04-13  Bruno Haible  <bruno@clisp.org>
60335
60336         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60337         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60338         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60339         also if it exists but lacks definitions of the SHUT_* macros.
60340         * modules/sys_socket (Description): Update.
60341         Reported by Elbert Pol <e.pol@chello.nl>.
60342
60343 2008-04-13  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/localcharset.c (OS2): Don't redefine if already defined.
60346         Reported by Elbert Pol <e.pol@chello.nl>.
60347
60348 2008-04-13  Bruno Haible  <bruno@clisp.org>
60349
60350         * lib/binary-io.h [__EMX__]: Include <io.h>.
60351         Reported by Elbert Pol <e.pol@chello.nl>.
60352
60353 2008-04-12  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/fpucw.h: Enable the definitions also for x86_64.
60356         Needed for NetBSD/x86_64.
60357         Reported by Thomas Klausner <tk@giga.or.at>.
60358
60359 2008-04-12  Bruno Haible  <bruno@clisp.org>
60360
60361         * tests/test-strtod.c: Include isnand.h.
60362         (main): Use isnand instead of isnan.
60363         Reported by Jim Meyering.
60364
60365 2008-04-12  Bruno Haible  <bruno@clisp.org>
60366
60367         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60368         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60369
60370 2008-04-12  Jim Meyering  <meyering@redhat.com>
60371
60372         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60373
60374 2008-04-12  Bruno Haible  <bruno@clisp.org>
60375
60376         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60377         Reported by Elbert Pol <e.pol@chello.nl>.
60378
60379 2008-04-12  Eric Blake  <ebb9@byu.net>
60380
60381         Work around Solaris 10 math.h bug.
60382         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60383         (gl_MATH_H_DEFAULTS): Set up default.
60384         * modules/math (Makefile.am): Replace new indicators.
60385         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60386         * tests/test-math.c (main): Test this.
60387         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60388         * doc/posix-headers/math.texi (math.h): Mention bug.
60389         Reported by Nelson H. F. Beebe and Jim Meyering.
60390
60391 2008-04-11  Bruno Haible  <bruno@clisp.org>
60392
60393         Adapt to future versions of Apple GCC.
60394         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60395         Reported by Peter O'Gorman <peter@pogma.com>.
60396
60397 2008-04-11  Bruno Haible  <bruno@clisp.org>
60398
60399         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60400
60401 2008-04-11  Bruno Haible  <bruno@clisp.org>
60402
60403         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60404
60405         * modules/getaddrinfo-tests (Makefile.am): Define
60406         test_getaddrinfo_LDADD.
60407
60408 2008-04-11  Bruno Haible  <bruno@clisp.org>
60409
60410         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60411         (init): Fix syntax error.
60412         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60413         is declared.
60414
60415 2008-04-11  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60418         * modules/glob (Depends-on): Add stdbool.
60419
60420 2008-04-11  Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/trim.c: Include <string.h>.
60423
60424 2008-04-11  Eric Blake  <ebb9@byu.net>
60425
60426         Avoid compile failure on OS/2.
60427         * lib/regex_internal.h (internal_function): Disable optimization
60428         on OS/2 (__EMX__), where it caused compiler error.
60429         Reported by Elbert Pol.
60430
60431 2008-04-11  Bruno Haible  <bruno@clisp.org>
60432
60433         Flush the standard error stream before aborting. Needed on mingw.
60434         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60435         * tests/test-array_list.c (ASSERT): Likewise.
60436         * tests/test-array_oset.c (ASSERT): Likewise.
60437         * tests/test-avltree_list.c (ASSERT): Likewise.
60438         * tests/test-avltree_oset.c (ASSERT): Likewise.
60439         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60440         * tests/test-binary-io.c (ASSERT): Likewise.
60441         * tests/test-byteswap.c (ASSERT): Likewise.
60442         * tests/test-c-ctype.c (ASSERT): Likewise.
60443         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60444         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60445         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60446         * tests/test-c-strstr.c (ASSERT): Likewise.
60447         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60448         * tests/test-canonicalize.c (ASSERT): Likewise.
60449         * tests/test-carray_list.c (ASSERT): Likewise.
60450         * tests/test-ceilf1.c (ASSERT): Likewise.
60451         * tests/test-ceilf2.c (ASSERT): Likewise.
60452         * tests/test-ceill.c (ASSERT): Likewise.
60453         * tests/test-count-one-bits.c (ASSERT): Likewise.
60454         * tests/test-fbufmode.c (ASSERT): Likewise.
60455         * tests/test-fflush2.c (ASSERT): Likewise.
60456         * tests/test-floorf1.c (ASSERT): Likewise.
60457         * tests/test-floorf2.c (ASSERT): Likewise.
60458         * tests/test-floorl.c (ASSERT): Likewise.
60459         * tests/test-fopen.c (ASSERT): Likewise.
60460         * tests/test-fpending.c (ASSERT): Likewise.
60461         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60462         * tests/test-fpurge.c (ASSERT): Likewise.
60463         * tests/test-freadable.c (ASSERT): Likewise.
60464         * tests/test-freadahead.c (ASSERT): Likewise.
60465         * tests/test-freading.c (ASSERT): Likewise.
60466         * tests/test-freadptr.c (ASSERT): Likewise.
60467         * tests/test-freadptr2.c (ASSERT): Likewise.
60468         * tests/test-freadseek.c (ASSERT): Likewise.
60469         * tests/test-freopen.c (ASSERT): Likewise.
60470         * tests/test-frexp.c (ASSERT): Likewise.
60471         * tests/test-frexpl.c (ASSERT): Likewise.
60472         * tests/test-fseek.c (ASSERT): Likewise.
60473         * tests/test-fseeko.c (ASSERT): Likewise.
60474         * tests/test-fstrcmp.c (ASSERT): Likewise.
60475         * tests/test-ftell.c (ASSERT): Likewise.
60476         * tests/test-ftello.c (ASSERT): Likewise.
60477         * tests/test-func.c (ASSERT): Likewise.
60478         * tests/test-fwritable.c (ASSERT): Likewise.
60479         * tests/test-fwriting.c (ASSERT): Likewise.
60480         * tests/test-getdelim.c (ASSERT): Likewise.
60481         * tests/test-getline.c (ASSERT): Likewise.
60482         * tests/test-i-ring.c (ASSERT): Likewise.
60483         * tests/test-iconv-utf.c (ASSERT): Likewise.
60484         * tests/test-iconv.c (ASSERT): Likewise.
60485         * tests/test-isfinite.c (ASSERT): Likewise.
60486         * tests/test-isnand.c (ASSERT): Likewise.
60487         * tests/test-isnanf.c (ASSERT): Likewise.
60488         * tests/test-isnanl.h (ASSERT): Likewise.
60489         * tests/test-ldexpl.c (ASSERT): Likewise.
60490         * tests/test-linked_list.c (ASSERT): Likewise.
60491         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60492         * tests/test-localename.c (ASSERT): Likewise.
60493         * tests/test-lseek.c (ASSERT): Likewise.
60494         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60495         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60496         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60497         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60498         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60499         * tests/test-mbschr.c (ASSERT): Likewise.
60500         * tests/test-mbscspn.c (ASSERT): Likewise.
60501         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60502         * tests/test-mbspbrk.c (ASSERT): Likewise.
60503         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60504         * tests/test-mbsrchr.c (ASSERT): Likewise.
60505         * tests/test-mbsspn.c (ASSERT): Likewise.
60506         * tests/test-mbsstr1.c (ASSERT): Likewise.
60507         * tests/test-mbsstr2.c (ASSERT): Likewise.
60508         * tests/test-mbsstr3.c (ASSERT): Likewise.
60509         * tests/test-memchr2.c (ASSERT): Likewise.
60510         * tests/test-memmem.c (ASSERT): Likewise.
60511         * tests/test-open.c (ASSERT): Likewise.
60512         * tests/test-printf-frexp.c (ASSERT): Likewise.
60513         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60514         * tests/test-printf-posix.c (ASSERT): Likewise.
60515         * tests/test-quotearg.c (ASSERT): Likewise.
60516         * tests/test-rbtree_list.c (ASSERT): Likewise.
60517         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60518         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60519         * tests/test-round1.c (ASSERT): Likewise.
60520         * tests/test-roundf1.c (ASSERT): Likewise.
60521         * tests/test-roundl.c (ASSERT): Likewise.
60522         * tests/test-signbit.c (ASSERT): Likewise.
60523         * tests/test-sleep.c (ASSERT): Likewise.
60524         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60525         * tests/test-snprintf.c (ASSERT): Likewise.
60526         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60527         * tests/test-stat-time.c (ASSERT): Likewise.
60528         * tests/test-strcasestr.c (ASSERT): Likewise.
60529         * tests/test-strerror.c (ASSERT): Likewise.
60530         * tests/test-striconv.c (ASSERT): Likewise.
60531         * tests/test-striconveh.c (ASSERT): Likewise.
60532         * tests/test-striconveha.c (ASSERT): Likewise.
60533         * tests/test-strsignal.c (ASSERT): Likewise.
60534         * tests/test-strstr.c (ASSERT): Likewise.
60535         * tests/test-strtod.c (ASSERT): Likewise.
60536         * tests/test-trunc1.c (ASSERT): Likewise.
60537         * tests/test-trunc2.c (ASSERT): Likewise.
60538         * tests/test-truncf1.c (ASSERT): Likewise.
60539         * tests/test-truncf2.c (ASSERT): Likewise.
60540         * tests/test-truncl.c (ASSERT): Likewise.
60541         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60542         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60543         * tests/test-vasnprintf.c (ASSERT): Likewise.
60544         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60545         * tests/test-vasprintf.c (ASSERT): Likewise.
60546         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60547         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60548         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60549         * tests/test-vsnprintf.c (ASSERT): Likewise.
60550         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60551         * tests/test-wcwidth.c (ASSERT): Likewise.
60552         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60553         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60554         * tests/test-xvasprintf.c (ASSERT): Likewise.
60555         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60556         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60557         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60558         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60559         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60560         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60561         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60562         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60563         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60564         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60565         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60566         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60567         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60568         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60569         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60570         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60571         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60572         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60573         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60574         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60575         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60576         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60577         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60578         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60579         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60580         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60581         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60582         * tests/unictype/test-combining.c (ASSERT): Likewise.
60583         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60584         * tests/unictype/test-digit.c (ASSERT): Likewise.
60585         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60586         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60587         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60588         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60589         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60590         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60591         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60592         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60593         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60594         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60595         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60596         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60597         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60598         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60599         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60600         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60601         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60602         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60603         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60604         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60605         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60606         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60607         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60608         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60609         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60610         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60611         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60612         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60613         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60614         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60615         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60616         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60617         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60618         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60619         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60620         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60621         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60622         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60623         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60624         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60625         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60626         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60627         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60628         Reported by Eric Blake.
60629
60630 2008-04-11  Bruno Haible  <bruno@clisp.org>
60631
60632         * lib/wchar.in.h: Tweak comment.
60633
60634 2008-04-11  Bruno Haible  <bruno@clisp.org>
60635
60636         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60637         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60638         gl_COMMON.
60639         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60640
60641 2008-04-11  Bruno Haible  <bruno@clisp.org>
60642
60643         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60644
60645 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60646
60647         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60648         of attempting to use non-existing /dev/*random.  Based on patch
60649         from Adam Strzelecki <ono@java.pl> in
60650         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60651
60652 2008-04-08  Bruno Haible  <bruno@clisp.org>
60653
60654         Add tentative support for emx+gcc.
60655         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60656         * lib/fpurge.c (fpurge): Likewise.
60657         * lib/freadable.c (freadable): Likewise.
60658         * lib/freadahead.c (freadahead): Likewise.
60659         * lib/freading.c (freading): Likewise.
60660         * lib/freadptr.c (freadptr): Likewise.
60661         * lib/freadseek.c (freadptrinc): Likewise.
60662         * lib/fseeko.c (rpl_fseeko): Likewise.
60663         * lib/fseterr.c (fseterr): Likewise.
60664         * lib/fwritable.c (fwritable): Likewise.
60665         * lib/fwriting.c (fwriting): Likewise.
60666         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60667
60668 2008-04-09  Eric Blake  <ebb9@byu.net>
60669
60670         Avoid some autoconf warnings.
60671         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60672         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60673         * m4/afs.m4 (gl_AFS): Likewise.
60674         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60675         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60676         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60677         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60678         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60679         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60680         (AC_CHECK_DECLS_ONCE): Likewise.
60681         Rename file...
60682         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60683         gnulib-tool requires autoconf 2.59 or better.
60684         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60685
60686 2008-04-08  Eric Blake  <ebb9@byu.net>
60687
60688         Use 'git describe --match' if present (added in git 1.5.5).
60689         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60690         if possible.
60691
60692 2008-04-08  Bruno Haible  <bruno@clisp.org>
60693
60694         Add tentative support for OpenServer.
60695         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60696         _ptr, _cnt.
60697         * lib/fpurge.c (fpurge): Likewise.
60698         * lib/freadable.c (freadable): Likewise.
60699         * lib/freadahead.c (freadahead): Likewise.
60700         * lib/freading.c (freading): Likewise.
60701         * lib/freadptr.c (freadptr): Likewise.
60702         * lib/freadseek.c (freadptrinc): Likewise.
60703         * lib/fseeko.c (rpl_fseeko): Likewise.
60704         * lib/fseterr.c (fseterr): Likewise.
60705         * lib/fwritable.c (fwritable): Likewise.
60706         * lib/fwriting.c (fwriting): Likewise.
60707         Reported by Roger Cornelius <rac@tenzing.org> and
60708         Brian K. White <brian@aljex.com>.
60709
60710 2008-04-06  Jim Meyering  <meyering@redhat.com>
60711
60712         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60713
60714 2008-04-06  Bruno Haible  <bruno@clisp.org>
60715
60716         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60717         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60718         * tests/test-printf-posix.sh: Likewise.
60719         * tests/test-vfprintf-posix.sh: Likewise.
60720         * tests/test-vprintf-posix.sh: Likewise.
60721         * tests/test-xprintf-posix.sh: Likewise.
60722
60723 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60724
60725         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60726         hide error from 'ls', needed on OS/2.
60727         Report by Elbert Pol <elbert.pol@gmail.com>.
60728
60729 2008-04-04  Eric Blake  <ebb9@byu.net>
60730
60731         Make test-fseeko.c failures meaningful.
60732         * tests/test-fseeko.c: Print line number on failure.
60733         * tests/test-fseek.c: Likewise.
60734         Reported by Nelson H. F. Beebe.
60735
60736         Improve strtod bug detection check.
60737         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60738         required for Solaris 10.
60739         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60740
60741 2008-04-04  Bruno Haible  <bruno@clisp.org>
60742
60743         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60744         by m4/setenv.m4.
60745
60746 2008-04-03  Eric Blake  <ebb9@byu.net>
60747
60748         Ensure sane .version contents.
60749         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60750         version string.
60751         * build-aux/git-version-gen: Improve documentation.
60752
60753         Make GNU make output nicer.
60754         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60755         MAKECMDGOALS to enforce message for all command line targets.  Set
60756         srcdir for use in maint.mk.
60757
60758         Another maintainer tweak.
60759         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60760         a target that regenerates version.
60761
60762 2008-04-03  Jim Meyering  <meyering@redhat.com>
60763
60764         vc-list-files: don't cause coreutils "make po-check" failure
60765         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60766
60767 2008-04-03  Eric Blake  <ebb9@byu.net>
60768
60769         Allow VPATH usage of vc-list-files.
60770         * build-aux/vc-list-files (scriptversion): Add timestamp.
60771         (options): Add --help, --version, -C.
60772         (CVS): Support installed cvsu.
60773
60774 2008-04-02  Bruno Haible  <bruno@clisp.org>
60775
60776         Avoid some "statement with no effect" warnings from gcc.
60777         * tests/test-wctype.c (main): Explicitly ignore unused values.
60778         Reported by Jim Meyering.
60779
60780 2008-04-02  Jim Meyering  <meyering@redhat.com>
60781
60782         Avoid some warnings from "gcc -Wshadow".
60783         * tests/test-frexp.c (exp): Define to a different identifier.
60784         * tests/test-frexpl.c (exp): Likewise.
60785
60786 2008-04-03  Jim Meyering  <meyering@redhat.com>
60787
60788         bootstrap: remove dangling *.[ch] symlinks from lib
60789         * build-aux/bootstrap [dangling symlink removal]: Move find's
60790         -depth option to precede all others, to avoid a warning.
60791         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60792
60793 2008-04-02  Bruno Haible  <bruno@clisp.org>
60794
60795         Avoid some warnings from "gcc -Wshadow".
60796         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60797         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60798         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60799         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60800         Reported by Jim Meyering.
60801
60802 2008-04-01  Bruno Haible  <bruno@clisp.org>
60803
60804         Fix test to work on IRIX 6.5 with cc.
60805         * tests/test-math.c (numeric_equal): New function.
60806         (main): Use it.
60807
60808 2008-04-01  Bruno Haible  <bruno@clisp.org>
60809
60810         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60811
60812 2008-04-01  Bruno Haible  <bruno@clisp.org>
60813
60814         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60815         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60816         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60817         (Depends-on): Remove math.
60818
60819         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60820         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60821         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60822         (Depends-on): Remove math.
60823
60824         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60825         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60826         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60827         (Depends-on): Remove math.
60828         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60829         (Depends-on): Remove math.
60830
60831         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60832         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60833         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60834         (Depends-on): Remove math.
60835         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60836         (Depends-on): Remove math.
60837
60838         * tests/test-round1.c: Include nan.h.
60839         (main): Use NaNd instead of NAN.
60840         * modules/round-tests (Files): Add tests/nan.h.
60841
60842         * tests/test-trunc1.c: Include nan.h.
60843         (main): Use NaNd instead of NAN.
60844         * modules/trunc-tests (Files): Add tests/nan.h.
60845
60846         * tests/test-roundf1.c: Include nan.h.
60847         (main): Use NaNf instead of NAN.
60848         * modules/roundf-tests (Files): Add tests/nan.h.
60849
60850         * tests/test-truncf1.c: Include nan.h.
60851         (main): Use NaNf instead of NAN.
60852         * modules/truncf-tests (Files): Add tests/nan.h.
60853
60854         * tests/test-ceilf1.c: Include nan.h.
60855         (main): Use NaNf instead of NAN.
60856         * modules/ceilf-tests (Files): Add tests/nan.h.
60857
60858         * tests/test-floorf1.c: Include nan.h.
60859         (main): Use NaNf instead of NAN.
60860         * modules/floorf-tests (Files): Add tests/nan.h.
60861
60862         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60863         (main): Use NaNf instead of NAN.
60864         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60865
60866         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60867         (main): Use NaNd instead of NAN.
60868         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60869
60870         * tests/test-frexp.c: Include nan.h.
60871         (main): Use NaNd instead of NAN.
60872         * modules/frexp-tests (Files): Add tests/nan.h.
60873
60874         * lib/isnan.c: Don't include <math.h>.
60875         (FUNC): Don't use NAN macro.
60876         * modules/isnand-nolibm (Depends-on): Remove math.
60877         * modules/isnanf-nolibm (Depends-on): Remove math.
60878         * modules/isnanl (Depends-on): Remove math.
60879         * modules/isnanl-nolibm (Depends-on): Remove math.
60880
60881         * tests/nan.h: New file.
60882
60883 2008-04-01  Eric Blake  <ebb9@byu.net>
60884
60885         Fix typos.
60886         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60887         values to be the right type.
60888
60889         For now, cater to gnulib strtod inaccuracies.
60890         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60891         fractional results.  While not as nice from a QoI perspective, it
60892         is a quicker patch than correctly implementing decimal to binary
60893         rounding.
60894
60895 2008-03-31  Eric Blake  <ebb9@byu.net>
60896
60897         Guarantee a definition of NAN.
60898         * lib/math.in.h (NAN): Define if missing.
60899         * tests/test-math.c (main): Test it.
60900         * doc/posix-headers/math.texi (math.h): Document this.
60901         * lib/isnan.c (rpl_isnand): Use it.
60902         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60903         * tests/test-floorf1.c (NaN): Likewise.
60904         * tests/test-frexp.c (NaN): Likewise.
60905         * tests/test-isnand.c (NaN): Likewise.
60906         * tests/test-isnanf.c (NaN): Likewise.
60907         * tests/test-round1.c (NaN): Likewise.
60908         * tests/test-roundf1.c (NaN): Likewise.
60909         * tests/test-snprintf-posix.h (NaN): Likewise.
60910         * tests/test-sprintf-posix.h (NaN): Likewise.
60911         * tests/test-trunc1.c (NaN): Likewise.
60912         * tests/test-truncf1.c (NaN): Likewise.
60913         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60914         * tests/test-vasprintf-posix.c (NaN): Likewise.
60915         * modules/isnand-nolibm (Depends-on): Add math.
60916         * modules/isnanf-nolibm (Depends-on): Likewise.
60917         * modules/isnanl (Depends-on): Likewise.
60918         * modules/isnanl-nolibm (Depends-on): Likewise.
60919         * modules/snprintf-posix-tests (Depends-on): Likewise.
60920         * modules/sprintf-posix-tests (Depends-on): Likewise.
60921         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60922         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60923         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60924         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60925
60926 2008-03-31  Bruno Haible  <bruno@clisp.org>
60927
60928         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60929         * doc/posix-functions/strtod.texi: Likewise.
60930
60931 2008-03-31  Bruno Haible  <bruno@clisp.org>
60932
60933         * tests/test-strtod.c (main): Don't use C99 syntax.
60934
60935 2008-03-31  Bruno Haible  <bruno@clisp.org>
60936
60937         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60938         Reported by Eric Blake.
60939
60940 2008-03-31  Jim Meyering  <meyering@redhat.com>
60941
60942         Don't compare actual signbit return values.
60943         * tests/test-strtod.c (main): Rather, compare only their
60944         zero/non-zero nature.
60945
60946 2008-03-31  Eric Blake  <ebb9@byu.net>
60947
60948         More strtod documentation.
60949         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60950         failures as distinct bugs.
60951
60952 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60953
60954         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60955         Problem reported by Erik Benada in
60956         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60957
60958 2008-03-30  Bruno Haible  <bruno@clisp.org>
60959
60960         * tests/test-strtod.c: Add comments about which assertion fails on which
60961         platform.
60962         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60963
60964 2008-03-30  Eric Blake  <ebb9@byu.net>
60965
60966         Test signbit behavior on zeros.
60967         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60968         (test_signbitd, test_signbitl): Likewise.
60969
60970         More strtod touchups.
60971         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60972         sign of negative underflow, for now.  Use .5, not .1.
60973         * doc/posix-functions/strtod.texi (strtod): Mention these
60974         limitations.
60975         Reported by Jim Meyering.
60976
60977 2008-03-30  Bruno Haible  <bruno@clisp.org>
60978
60979         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60980         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60981
60982 2008-03-30  Bruno Haible  <bruno@clisp.org>
60983
60984         Avoid failure when attempting to return empty iconv results on some
60985         platforms.
60986         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60987         allocation, don't report ENOMEM when the resulting string is empty.
60988
60989 2008-03-30  Bruno Haible  <bruno@clisp.org>
60990
60991         Fix buffer overrun.
60992         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60993         Don't consider the width for tmp_length. Check count against tmp_length
60994         before doing the padding. Ensure enough allocation during padding.
60995
60996 2008-03-30  Eric Blake  <ebb9@byu.net>
60997
60998         strtod touchups.
60999         * lib/strtod.c (strtod): Avoid compiler warnings.
61000         Reported by Jim Meyering.
61001
61002 2008-03-30  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61005         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61006         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61007         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61008         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61009         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61010         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61011         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61012
61013         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61014         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61015         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61016         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61017         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61018         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61019         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61020         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61021
61022         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61023         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61024         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61025         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61026         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61027         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61028         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61029         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61030
61031         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61032         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61033
61034         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61035         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61036
61037         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61038         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61039
61040         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61042         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61043
61044         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61046         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61047
61048         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61050         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61051
61052         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61054         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61055
61056         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61057         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61059         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61060         (Depends-on): Add EOVERFLOW.
61061         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61062         (Depends-on): Add EOVERFLOW.
61063         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61064         (Depends-on): Add EOVERFLOW.
61065         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61066         (Depends-on): Add EOVERFLOW.
61067         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61068         (Depends-on): Add EOVERFLOW.
61069         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61070         (Depends-on): Add EOVERFLOW.
61071         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61072         (Depends-on): Add EOVERFLOW.
61073         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61074         (Depends-on): Add EOVERFLOW.
61075
61076         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61077         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61078         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61079
61080         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61082         * modules/snprintf (Depends-on): Add EOVERFLOW.
61083
61084         * lib/poll.c (EOVERFLOW): Remove fallback.
61085         * modules/poll (Depends-on): Add EOVERFLOW.
61086
61087         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61088         * modules/getugroups (Depends-on): Add EOVERFLOW.
61089
61090         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61091         * modules/getdelim (Depends-on): Add EOVERFLOW.
61092
61093         * lib/ftell.c (EOVERFLOW): Remove fallback.
61094         * modules/ftell (Depends-on): Add EOVERFLOW.
61095
61096         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61098         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61099
61100         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61101
61102         * modules/EOVERFLOW-tests: New file.
61103         * tests/test-EOVERFLOW.c: New file.
61104
61105         * modules/EOVERFLOW: New file.
61106         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61107
61108 2008-03-30  Bruno Haible  <bruno@clisp.org>
61109
61110         Fix bug introduced on 2007-06-10.
61111         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61112         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61113
61114 2008-03-30  Bruno Haible  <bruno@clisp.org>
61115
61116         Improve freadseek's efficiency after ungetc.
61117         * lib/freadseek.c: Include freadahead.h.
61118         (freadptrinc): New function, extracted from freadseek.
61119         (freadseek): Use it in a loop. Use freadahead to determine the number
61120         of loop iterations.
61121         * modules/freadseek (Depends-on): Add freadahead.
61122         (configure.ac): Require AC_C_INLINE.
61123
61124 2008-03-30  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/freadseek.c (freadseek): Don't ignore the return value of
61127         freadptr.
61128
61129 2008-03-29  Eric Blake  <ebb9@byu.net>
61130
61131         Add hex float support.
61132         * modules/strtod (Depends-on): Add c-ctype.
61133         (Link): Mention POW_LIB.
61134         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61135         whitespace between 'e' and exponent.
61136         * tests/test-strtod.c (main): Enable hex float tests.
61137         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61138         now provides.
61139
61140         Document various strtod bugs, with some fixes.
61141         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61142         "-0x", "inf", "nan", and hex constants.
61143         * doc/posix-functions/atof.texi (atof): Likewise.
61144         * modules/stdlib (Makefile.am): Support strtod.
61145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61146         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61147         detect additional strtod bugs.
61148         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61149         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61150         bool where appropriate.  Parse 'inf' and 'nan'.
61151         * tests/test-strtod.c: New file.
61152         * modules/strtod (Depends-on): Add stdbool, stdlib.
61153         (configure.ac): Turn on module indicator.
61154         * modules/strtod-tests: New module.
61155
61156 2008-03-29  Eric Blake  <ebb9@byu.net>
61157
61158         Fix ftell on mingw.
61159         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61160         * modules/ftell-tests (Depends-on): Add binary-io.
61161         * modules/ftello-tests (Depends-on): Likewise.
61162         * tests/test-ftell.c (main): Enhance test to cover behavior after
61163         ungetc.  Enforce binary mode.
61164         * tests/test-ftello.c (main): Likewise.
61165
61166         Pass test-freadseek on cygwin.
61167         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61168         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61169         ungetc buffer.
61170
61171         * tests/test-fflush2.c (main): Fix typo.
61172
61173 2008-03-29  Bruno Haible  <bruno@clisp.org>
61174
61175         * tests/test-fflush2.c (main): Temporarily disable the contents of
61176         this test.
61177         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61178         Reported by Eric Blake.
61179
61180 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61181
61182         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61183         (GC_SHA224_DIGEST_SIZE): Add.
61184
61185         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61186         (gc_hash_digest_length): Likewise.
61187         (gc_hash_buffer): Likewise.
61188
61189 2008-03-25  Bruno Haible  <bruno@clisp.org>
61190
61191         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61192         detail which gettext release to use.
61193         Reported by Simon Josefsson.
61194
61195 2008-03-26  Jim Meyering  <meyering@redhat.com>
61196
61197         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61198         * modules/gnumakefile (clean-GNUmakefile): Also, use
61199         test ... && ... || : syntax rather than if-then ... fi.
61200
61201         gnumakefile: Don't double-quote-expand $(VPATH) value.
61202         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61203
61204 2008-03-24  Eric Blake  <ebb9@byu.net>
61205
61206         Alter GNUmakefile to install into top directory.
61207         * modules/maintainer-makefile: Split, and add dependency...
61208         * modules/gnumakefile: to this new module.
61209         * build-aux/GNUmakefile: Move...
61210         * top/GNUmakefile: ...here.
61211         * build-aux/maint.mk: Move...
61212         * top/maint.mk: ...here.
61213         * MODULES.html.sh (Support for maintaining...): Document new
61214         module.
61215
61216 2008-03-23  Bruno Haible  <bruno@clisp.org>
61217
61218         * gnulib-tool: New options --vc-files, --no-vc-files.
61219         (func_usage): Document them.
61220         (vc_files): New variable.
61221         (func_import): Consider vc_files.
61222         (func_create_testdir): Set vc_files to empty.
61223         Suggested by Jim Meyering and Karl Berry.
61224
61225 2008-03-23  Bruno Haible  <bruno@clisp.org>
61226
61227         Fix regex compilation error on HP-UX 11.
61228         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61229         * modules/regex (Files): Add m4/mbstate_t.m4.
61230         Reported by Ton Voon <ton.voon@altinity.com>.
61231
61232 2008-03-23  Bruno Haible  <bruno@clisp.org>
61233
61234         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61235
61236 2008-03-23  Eric Blake  <ebb9@byu.net>
61237             Bruno Haible  <bruno@clisp.org>
61238
61239         Install files from top/ in the destination directory.
61240         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61241         augmentation also for the files from top/.
61242         (func_import, func_create_testdir): Rewrite file names:
61243         top/filename -> filename.
61244
61245 2008-03-23  Bruno Haible  <bruno@clisp.org>
61246
61247         Tweak "gnulib --version" output.
61248         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61249
61250 2008-03-23  Bruno Haible  <bruno@clisp.org>
61251
61252         Tweak "gnulib --version" output.
61253         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61254         rather than contents of ChangeLog, when possible.
61255
61256 2008-03-21  Eric Blake  <ebb9@byu.net>
61257
61258         More --version tweaks.
61259         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61260         date of last ChangeLog entry.
61261
61262 2008-03-21  Jim Meyering  <meyering@redhat.com>
61263
61264         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61265
61266 2008-03-20  Eric Blake  <ebb9@byu.net>
61267
61268         VPATH fix.
61269         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61270
61271 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61272
61273         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61274         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61275
61276 2008-03-20  Eric Blake  <ebb9@byu.net>
61277
61278         Sync GNUmakefile with coreutils.
61279         * build-aux/GNUmakefile (have-Makefile): Rename...
61280         (_have-Makefile): ...to this, for namespace consideration.
61281         (GNUmakefile.cfg): Include, if present.
61282         (_autoreconf): Define a default.
61283         (_is-dist-target): New rule for rebuilds to pick up intra-release
61284         version.
61285         (maint-cfg.mk): Rename...
61286         (cfg.mk): ...to this.
61287
61288 2008-03-18  Jim Meyering  <meyering@redhat.com>
61289
61290         New script and module: mktempd
61291         * MODULES.html.sh (maint+release support): Add mktempd.
61292         * build-aux/mktempd: New file.
61293         * modules/mktempd: New file.
61294
61295 2008-03-15  Jim Meyering  <meyering@redhat.com>
61296
61297         Undo last change.
61298         * lib/sha1.c, lib/md5.c: 63 != ~63.
61299         Reported by Andreas Schwab.
61300
61301         sha1.c, md5.c: Hoist a redundant expression.
61302         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61303         "ctx->buflen" only once, before calling *_process_block.
61304         * lib/md5.c (md5_process_bytes): Likewise.
61305
61306 2008-03-14  Eric Blake  <ebb9@byu.net>
61307
61308         Bump copyright year in files generated by gnulib-tool.
61309         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61310         gnulib-tool, rather than hard-coding it.
61311
61312         Fix 'gnulib-tool --version' output to work with git.
61313         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61314         (startup): ...here.
61315         (func_version): Use it to invoke git-version-gen, rather than
61316         relying on CVS keyword expansion.  Modernize wording.
61317         (cvsdatestamp, last_checkin_date, version): Kill unused
61318         variables.
61319
61320 2008-03-12  Jim Meyering  <meyering@redhat.com>
61321
61322         Recognize optional cast of the argument to free.
61323         * build-aux/useless-if-before-free: Update regexps.
61324
61325         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61326
61327 2008-03-11  Bruno Haible  <bruno@clisp.org>
61328
61329         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61330         by a single package.
61331         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61332         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61333         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61334         Reported by Sam Steingold <sds@gnu.org>.
61335
61336 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61337
61338         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61339         repositories.
61340
61341 2008-03-11  Bruno Haible  <bruno@clisp.org>
61342
61343         Avoid conflicts between local macro definitions.
61344         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61345         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61346
61347 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61348             Bruno Haible  <bruno@clisp.org>
61349
61350         Make va_copy work with some version of xlc on AIX 5.1.
61351         * lib/stdarg.in.h: New file.
61352         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61353         On AIX, use a <stdarg.h> file substitute.
61354         * modules/stdarg (Files): Add lib/stdarg.in.h.
61355         (Depends-on): Add include_next.
61356         (Makefile.am): Build a stdarg.h substitute if requested.
61357         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61358
61359 2008-03-10  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61363         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61364
61365 2008-03-10  Bruno Haible  <bruno@clisp.org>
61366
61367         * modules/stdlib (Depends-on): Add include_next, remove
61368         absolute-header.
61369
61370 2008-03-09  Bruno Haible  <bruno@clisp.org>
61371
61372         * lib/freadahead.h (freadahead): Document more precisely.
61373         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61374         the sum of both buffer sizes.
61375         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61376         * NEWS: Document the change.
61377
61378 2008-03-09  Bruno Haible  <bruno@clisp.org>
61379
61380         Extend freadptr to return also the buffer size.
61381         * lib/freadptr.h (freadptr): Add sizep argument.
61382         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61383         (freadptr): Add sizep argument. Determine buffer size like freadahead
61384         does.
61385         * tests/test-freadptr.c: Don't include freadahead.h.
61386         (main): Adapt for new calling convention of freadptr.
61387         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61388         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61389         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61390         tests/test-freadptr2.sh.
61391         (Depends): Remove freadahead.
61392         (TESTS): Add test-freadptr2.sh.
61393         (check_PROGRAMS): Add test-freadptr2.
61394
61395 2008-03-09  Bruno Haible  <bruno@clisp.org>
61396
61397         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61398         Report and solution by Simon Josefsson.
61399
61400 2008-03-06  Bruno Haible  <bruno@clisp.org>
61401
61402         Make fflush after ungetc work on BSD platforms.
61403         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61404         * tests/test-fflush2.c: New file.
61405         * tests/test-fflush2.sh: New file.
61406         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61407         tests/test-fflush2.c.
61408         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61409         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61410
61411 2008-03-06  Eric Blake  <ebb9@byu.net>
61412
61413         Likewise for ftello.
61414         * modules/ftello (Dependencies): Add extensions.
61415         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61416
61417 2008-03-06  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/fseeko (Dependencies): Add extensions.
61420         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61421         Needed on glibc systems.
61422
61423 2008-03-06  Bruno Haible  <bruno@clisp.org>
61424
61425         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61426         email address.
61427         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61428
61429 2008-03-06  Bruno Haible  <bruno@clisp.org>
61430
61431         * users.txt: Add libgnupdf.
61432
61433 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61434
61435         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61436         (Header File Substitutes, Function Substitutes,
61437         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61438         (Build robot for gnulib): Fix typo.
61439
61440 2008-03-06  Bruno Haible  <bruno@clisp.org>
61441
61442         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61443         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61444
61445 2008-03-06  Bruno Haible  <bruno@clisp.org>
61446
61447         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61448         * doc/gnulib.texi: Include it.
61449
61450 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61451
61452         * modules/func (License): Change license to unlimited; there was
61453         no LGPL parts in the module anyway.
61454
61455 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61456
61457         * modules/__func__: Renamed to modules/func.
61458         * modules/__func__-tests: Renamed to modules/func-tests.
61459         * tests/test-__func__.c: Renamed to tests/test-func.c.
61460         * m4/__func__.m4: Renamed to m4/func.m4.
61461         * doc/gnulib.texi (__func__): Section renamed to func.
61462         Suggested by Eric Blake <ebb9@byu.net>.
61463
61464 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61465
61466         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61467         about __func__.  Make example self-contained.  Suggested by Eric
61468         Blake <ebb9@byu.net>.
61469
61470         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61471         Suggested by Eric Blake <ebb9@byu.net>.
61472
61473 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61474
61475         * modules/__func__: New file.
61476         * modules/__func__-tests: New file.
61477         * tests/test-__func__.c: New file.
61478         * m4/__func__.m4: New file.
61479         * doc/gnulib.texi (__func__): Document __func__ module.
61480
61481 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61482
61483         * modules/byteswap (License): Re-license as LGPLv2+.
61484
61485 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61486
61487         * doc/Makefile: Add pdf target.
61488
61489 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61490
61491         * modules/inline (License): Use 'unlimited', since there are only
61492         *.m4 files in this module.
61493
61494 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61495             Bruno Haible  <bruno@clisp.org>
61496
61497         Add support for HP C 7.1 on OpenVMS 8.3.
61498         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61499
61500 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61501
61502         Update VMS specifics.
61503         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61504
61505 2008-03-02  Jim Meyering  <meyering@redhat.com>
61506
61507         Remove the last dependency on the "free" module.
61508         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61509         Reported by Bob Proulx.
61510
61511         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61512
61513         Remove useless "if" tests before free.  Deprecate "free" module.
61514         * doc/posix-functions/free.texi: Mention that this
61515         module is no longer useful.
61516         * modules/free (Notice): Say this module is obsolete.
61517         * modules/readutmp (Depends-on): Remove free.
61518         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61519         * lib/putenv.c (putenv): Likewise.
61520         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61521         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61522         * tests/test-c-strcasestr.c (main): Likewise.
61523         * tests/test-c-strstr.c (main): Likewise.
61524         * tests/test-mbscasestr1.c (main): Likewise.
61525         * tests/test-mbscasestr2.c (main): Likewise.
61526         * tests/test-mbsstr1.c (main): Likewise.
61527         * tests/test-mbsstr2.c (main): Likewise.
61528         * tests/test-memmem.c (main): Likewise.
61529         * tests/test-strcasestr.c (main): Likewise.
61530         * tests/test-striconv.c (main): Likewise.
61531         * tests/test-striconveh.c (main): Likewise.
61532         * tests/test-striconveha.c (main): Likewise.
61533         * tests/test-strstr.c (main): Likewise.
61534
61535         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61536
61537         bootstrap: sync from coreutils again
61538         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61539
61540 2008-03-01  Jim Meyering  <meyering@redhat.com>
61541
61542         bootstrap: sync from coreutils
61543         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61544         also when the target doesn't exist.
61545
61546 2008-03-01  Eric Blake  <ebb9@byu.net>
61547
61548         Fix bugs in last patch.
61549         * lib/memchr2.c (memchr2): Fix typo.
61550         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61551         extension.
61552         Reported by Bruce Korb.
61553
61554         New module 'memchr2'.
61555         * modules/memchr2: New file.
61556         * modules/memchr2-tests: Likewise.
61557         * lib/memchr2.h: Likewise.
61558         * lib/memchr2.c: Likewise, based on memchr.c.
61559         * tests/test-memchr2.c: New test.
61560         * MODULES.html.sh (String handling): Add memchr2.
61561
61562 2008-02-29  Bruno Haible  <bruno@clisp.org>
61563
61564         * modules/freadseek-tests: New file.
61565         * tests/test-freadseek.sh: New file.
61566         * tests/test-freadseek.c: New file.
61567
61568         New module 'freadseek'.
61569         * modules/freadseek: New file.
61570         * lib/freadseek.h: New file.
61571         * lib/freadseek.c: New file.
61572         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61573
61574 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61575
61576         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61577         wydawca.
61578
61579         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61580         program_invocation_name and program_invocation_short_name are
61581         present.
61582
61583 2008-02-28  Bruno Haible  <bruno@clisp.org>
61584
61585         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61586         * tests/test-freadptr.sh: Also test non-seekable stdin.
61587
61588 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61589
61590         * build-aux/bootstrap (source_base, m4_base)
61591         (doc_base, tests_base): New variables.
61592         (gnulib_tool_options): Do not hardcode base directories, use
61593         the above variables instead.
61594
61595 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61596
61597         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61598
61599 2008-02-28  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/freadptr-tests: New file.
61602         * tests/test-freadptr.sh: New file.
61603         * tests/test-freadptr.c: New file.
61604
61605         New module 'freadptr'.
61606         * modules/freadptr: New file.
61607         * lib/freadptr.h: New file.
61608         * lib/freadptr.c: New file.
61609         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61610
61611 2008-02-26  Karl Berry  <karl@freefriends.org>
61612
61613         Sync from Libtool:
61614         * libltdl/argz.c (argz_add, argz_count): New functions.
61615         * libltdl/argz.in.h: Declare them.
61616         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61617
61618 2008-02-22  Bruno Haible  <bruno@clisp.org>
61619
61620         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61621         is a pointer type.  Needed for HP-UX 10.
61622         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61623         * doc/posix-functions/gmtime_r.texi: Likewise.
61624         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61625
61626 2008-02-24  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/environ-tests: New file.
61629         * tests/test-environ.c: New file.
61630
61631         New module 'environ'.
61632         * modules/environ: New file.
61633         * lib/unistd.in.h (environ): New declaration.
61634         * m4/environ.m4: New file.
61635         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61636         after use.
61637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61638         HAVE_DECL_ENVIRON.
61639         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61640         HAVE_DECL_ENVIRON.
61641         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61642         wrong claim that 'environ' is missing on some systems.
61643         * modules/execute (Depends-on): Add environ.
61644         * lib/execute.c (environ): Remove fallback declaration.
61645         * modules/pipe (Depends-on): Add environ.
61646         * lib/pipe.c (environ): Remove fallback declaration.
61647         * modules/setenv (Depends-on): Add environ.
61648         * lib/setenv.c (environ): Remove fallback declaration.
61649         * modules/unsetenv (Depends-on): Add environ.
61650         * lib/unsetenv.c (environ): Remove fallback declaration.
61651         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61652         m4/environ.m4.
61653         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61654         (gl_PREREQ_UNSETENV): Likewise.
61655
61656 2008-02-24  Bruno Haible  <bruno@clisp.org>
61657
61658         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61659
61660 2008-02-20  Bob Proulx  <bob@proulx.com>
61661
61662         Enable use of older two part flavor 'git describe'.
61663         * build-aux/git-version-gen: If using the older two part flavor of
61664         git version then recreate the third part now present in the
61665         newer three part flavor of git describe.
61666
61667 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61668
61669         * lib/fts.c (fts_build): Typo correction to comment.
61670
61671 2008-02-17  Bruno Haible  <bruno@clisp.org>
61672
61673         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61674         generating no-op conflicts.
61675
61676 2008-02-17  Bruno Haible  <bruno@clisp.org>
61677
61678         Speed up by 10%.
61679         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61680         result_entries, rather than an index-based loop.
61681
61682 2008-02-17  Bruno Haible  <bruno@clisp.org>
61683
61684         Speed up by 25%.
61685         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61686         'hashcode_cached'.
61687         (entry_create): New function.
61688         (entry_hashcode): Use the cached hashcode if possible.
61689         (read_changelog_file, try_split_merged_entry): Use entry_create.
61690
61691 2008-02-17  Bruno Haible  <bruno@clisp.org>
61692
61693         Speed up from O(n^2) to O(n) for long ChangeLog files.
61694         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61695         (read_changelog_file): Change implementation of entries_reversed list
61696         to rbtreehash.
61697         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61698
61699 2008-02-17  Bruno Haible  <bruno@clisp.org>
61700
61701         New option --split-merged-entry.
61702         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61703         (find_paragraph_end, try_split_merged_entry): New functions.
61704         (long_options): Add option --split-merged-entry.
61705         (usage): Document option --split-merged-entry.
61706         (main): Implement option --split-merged-entry.
61707         Reported by Eric Blake.
61708
61709 2008-02-17  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/git-merge-changelog.c: Include c-strstr.h.
61712         (main): Support the "git pull --rebase" situation.
61713         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61714         Reported by Eric Blake.
61715
61716 2008-02-16  Eric Blake  <ebb9@byu.net>
61717
61718         Avoid doubling \ in common case of "c-maybe" quoting style.
61719         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61720         eliding outer quotes.
61721         * lib/quotearg.h: Document this.
61722         * tests/test-quotearg.c (result_strings, inputs, results_g)
61723         (flag_results, locale_results): Test it by adding a new string to
61724         each test group.
61725         (compare_strings): Test new string.
61726
61727 2008-02-13  Eric Blake  <ebb9@byu.net>
61728
61729         Avoid trigraph quoting in default output.
61730         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61731         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61732         unless explicitly requested.
61733         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61734
61735 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61736
61737         Don't rely on signed integer overflowing to negative value.
61738         * lib/getugroups.c (getugroups): Include <limits.h>.
61739         Instead, compare against INT_MAX, and increment only if the test passes.
61740
61741 2008-02-13  Jim Meyering  <meyering@redhat.com>
61742         and Eric Blake  <ebb9@byu.net>
61743
61744         Avoid shadowing warning and compile errors on Linux.
61745         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61746         forwarding macros on Linux.
61747         (dcgettext): Define a stub, for Linux.
61748         (results_g, main): Avoid warnings.
61749
61750 2008-02-12  Eric Blake  <ebb9@byu.net>
61751
61752         Silence warning in last patch.
61753         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61754
61755         Quotearg part 4: add tests, fix c-maybe colon quoting.
61756         * lib/quotearg.h: Improve documentation.
61757         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61758         escapes when adding outer quotes.  When quoting trigraphs, use
61759         valid C notation.  When quoting NUL, omit extra characters if next
61760         character is not digit.  Alter prototype.
61761         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61762         callers.
61763         * modules/quotearg-tests: New module.
61764         * tests/test-quotearg.c: New test.
61765
61766 2008-02-07  Eric Blake  <ebb9@byu.net>
61767
61768         Quotearg part 3: add flag to control outer quote elision.
61769         * lib/quotearg.h (c_maybe_quoting_style): New style.
61770         (enum quoting_flags): Better documentation of flags.
61771         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61772         c-maybe style.
61773         (quotearg_buffer_restyled): Handle new flag to elide outer
61774         quotes.
61775
61776         Quotearg part 2: add flag that can control NUL elision.
61777         * lib/quotearg.h (set_quoting_flags): New prototype.
61778         * lib/quotearg.c (struct quoting_options): Add flag field.
61779         (set_quoting_flags): New function.
61780         (quotearg_buffer_restyled): Add flags parameter.
61781         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61782         (quotearg_n_options): Set the flag, since length cannot be
61783         returned.
61784         (quoting_options_from_style): Default flags correctly.
61785
61786         Quotearg part 1: more wrappers, restore quotearg_char state.
61787         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61788         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61789         (quotearg_colon_mem): New wrappers.
61790         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61791         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61792         functions.
61793         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61794         (quotearg_colon_mem): New functions.
61795
61796 2008-02-11  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61799         library in the current directory: it does not work with parallel make.
61800         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61801
61802 2008-02-11  Bruno Haible  <bruno@clisp.org>
61803
61804         * .gitattributes: New file.
61805
61806 2008-02-11  Jim Meyering  <meyering@redhat.com>
61807
61808         useless-if-before-free: Fix reversed exit values.
61809         * build-aux/useless-if-before-free: Use correct values
61810         for EXIT_MATCH and EXIT_NO_MATCH.
61811
61812         * build-aux/useless-if-before-free: Close stdout carefully.
61813
61814 2008-02-10  Bruno Haible  <bruno@clisp.org>
61815
61816         New module 'git-merge-changelog'.
61817         * modules/git-merge-changelog: New file.
61818         * lib/git-merge-changelog.c: New file.
61819
61820 2008-02-10  Jim Meyering  <meyering@redhat.com>
61821
61822         useless-if-before-free: New option: --list (-l).
61823
61824         useless-if-before-free: Don't exit immediately upon open failure.
61825         * build-aux/useless-if-before-free: Exit 2 for errors.
61826         Upon failure to open a file, don't exit immediately.
61827         Rather, just warn and continue with any remaining files.
61828
61829 2008-02-10  Bruno Haible  <bruno@clisp.org>
61830
61831         New abstract list operation 'node_set_value'.
61832         * lib/gl_list.h (gl_list_node_set_value): New function.
61833         (struct gl_list_implementation): New field node_set_value.
61834         * lib/gl_list.c (gl_list_node_set_value): New function.
61835         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61836         (gl_array_list_implementation): Update.
61837         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61838         (gl_carray_list_implementation): Update.
61839         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61840         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61841         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61842         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61843         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61844         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61845         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61846         Update.
61847         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61848         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61849         (gl_sublist_list_implementation): Update.
61850
61851 2008-02-10  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61854         Needed when ELEMENT is #defined to 'some_type *'.
61855
61856 2008-02-10  Jim Meyering  <meyering@redhat.com>
61857
61858         New script and module: useless-if-before-free
61859         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61860         * build-aux/useless-if-before-free: New file.
61861         * modules/useless-if-before-free: New file.
61862
61863         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61864
61865         xstrtol_error: Fix typo.
61866         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61867         s/exit_failure/exit_status/.
61868
61869 2008-02-09  Jim Meyering  <meyering@redhat.com>
61870
61871         New script and module: gitlog-to-changelog
61872         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61873         * modules/gitlog-to-changelog: New file.
61874         * build-aux/gitlog-to-changelog: New file.
61875
61876 2008-02-08  Jim Meyering  <meyering@redhat.com>
61877
61878         Avoid two "parameter unused" warnings.
61879         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61880         Mark "st" as used.
61881
61882         Use "git COMMAND", not "git-COMMAND".
61883         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61884         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61885         * build-aux/git-version-gen: Use "git status", not "git-status".
61886
61887 2008-02-07  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61890         Avoids a crash on Windows Vista.
61891         Reported by Adam Strzelecki <ono@java.pl> via
61892         Simon Josefsson <simon@josefsson.org>.
61893
61894 2008-02-06  Bruno Haible  <bruno@clisp.org>
61895
61896         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61897         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61898         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61900         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61902         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61903         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61911         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61912         left-adjust flag.
61913         * tests/test-snprintf-posix.h (test_function): Likewise.
61914         * tests/test-sprintf-posix.h (test_function): Likewise.
61915         * tests/test-vasprintf-posix.c (test_function): Likewise.
61916         * doc/posix-functions/fprintf.texi: Update.
61917         * doc/posix-functions/printf.texi: Update.
61918         * doc/posix-functions/snprintf.texi: Update.
61919         * doc/posix-functions/sprintf.texi: Update.
61920         * doc/posix-functions/vfprintf.texi: Update.
61921         * doc/posix-functions/vprintf.texi: Update.
61922         * doc/posix-functions/vsnprintf.texi: Update.
61923         * doc/posix-functions/vsprintf.texi: Update.
61924         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61925
61926 2008-02-06  Bruno Haible  <bruno@clisp.org>
61927
61928         Fix bug introduced on 2008-01-26.
61929         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61930
61931 2008-02-06  Bruno Haible  <bruno@clisp.org>
61932
61933         Fix bug introduced on 2007-06-10.
61934         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61935         !NEED_PRINTF_FLAG_ZERO.
61936
61937 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61938
61939         getloadavg: use libperfstat on AIX5
61940         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61941
61942 2008-02-03  Bruno Haible  <bruno@clisp.org>
61943
61944         * lib/diffseq.h: Add comments about required #includes.
61945         Reported by Michael Biggs <gnulib@doubleplum.net>.
61946
61947 2008-02-01  Bruno Haible  <bruno@clisp.org>
61948
61949         * users.txt: Add gnuit.
61950
61951 2008-01-31  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/md4.c (set_uint32): Mark as inline.
61954         * lib/md5.c (set_uint32): Likewise.
61955         * lib/sha1.c (set_uint32): Likewise.
61956         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61957         * m4/md5.m4 (gl_MD5): Likewise.
61958         * m4/sha1.m4 (gl_SHA1): Likewise.
61959
61960 2008-01-31  Jim Meyering  <meyering@redhat.com>
61961
61962         Use "sizeof VAR", rather than a literal "4".
61963         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61964         * lib/md4.c (md4_read_ctx): Likewise.
61965         * lib/sha1.c (sha1_read_ctx): Likewise.
61966
61967 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61968
61969         * tests/test-sha1.c: New file, based on test-md5.c.
61970
61971         * modules/crypto/sha1-tests: New file.
61972
61973 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61974
61975         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61976
61977 2008-01-31  Jim Meyering  <meyering@redhat.com>
61978
61979         Prefer "sizeof v" over the equivalent "4".
61980         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61981         * lib/md5.c (set_uint32): Likewise.
61982         * lib/sha1.c (set_uint32): Likewise.
61983
61984 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61985
61986         * lib/sha1.c (set_uint32): Mark function as static.
61987
61988 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61989
61990         md2: clarify comments to say that alignment is not required.
61991         * lib/md2.h: Remove warning about alignment in comment.
61992         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61993         never been required.
61994
61995 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61996
61997         md4: adapt alignment constraint fix from sha1.
61998         * lib/md4.c (set_uint32): New function, from sha1.c
61999         (md4_read_ctx): Use it.
62000         (md4_finish_ctx): Doc fix.
62001         * lib/md4.h: Doc fix.
62002
62003 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62004
62005         md5: adapt alignment constraint fix from sha1.
62006         * lib/md5.c (set_uint32): New function, from sha1.c
62007         (md5_read_ctx): Use it.
62008         (md5_finish_ctx): Doc fix.
62009         * lib/md5.h: Doc fix.
62010
62011 2008-01-30  Peter Palfrader  <weasel@debian.org>
62012
62013         sha1: remove the result buffer alignment constraint
62014         * lib/sha1.c (set_uint32): New function.
62015         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62016         constraint.
62017         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62018         * lib/sha1.h: Likewise.
62019
62020 2008-01-30  Andreas Schwab  <schwab@suse.de>
62021             Bruno Haible  <bruno@clisp.org>
62022
62023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62024         correct definition of LDBL_MIN_EXP.
62025
62026 2008-01-30  Karl Berry  <karl@gnu.org>
62027
62028         * config/srclist-update: try to preserve x bit on updates.
62029         * config/srclistvars.sh: update for karl.
62030
62031 2008-01-29  Jim Meyering  <meyering@redhat.com>
62032
62033         vasnprintf.c: Avoid warning about unused label
62034         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62035         "overflow" label definition and associated code with the
62036         same cpp condition that guards the sole use of that label.
62037
62038 2008-01-26  Bruno Haible  <bruno@clisp.org>
62039
62040         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62041         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62042         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62043         * lib/isnanl-nolibm.h (isnanl): Likewise.
62044         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62045
62046 2008-01-26  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62049         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62050
62051 2008-01-26  Bruno Haible  <bruno@clisp.org>
62052
62053         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62054         GCC >= 4.0 built-in.
62055         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62056
62057 2008-01-26  Bruno Haible  <bruno@clisp.org>
62058
62059         Rename isnan, applicable to 'double' only, to isnand.
62060         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62061         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62062         (configure.ac): Update.
62063         (Include): Replace "isnan.h" with "isnand.h".
62064         * m4/isnand.m4: Renamed from m4/isnan.m4.
62065         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62066         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62067         instead of isnan.c.
62068         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62069         instead of HAVE_ISNAN_IN_LIBC.
62070         (isnand): Renamed from isnan.
62071         * lib/isnand.c: New file.
62072         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62073         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62074         (Makefile.am): Update.
62075         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62076         Include isnand.h instead of isnan.h.
62077         (main): Test isnand instead of isnan.
62078         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62079         isnan-nolibm.
62080         * modules/frexp (Depends-on): Likewise.
62081         * modules/frexp-tests (Depends-on): Likewise.
62082         * modules/frexp-nolibm (Depends-on): Likewise.
62083         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62084         * modules/isfinite (Depends-on): Likewise.
62085         * modules/round-tests (Depends-on): Likewise.
62086         * modules/signbit (Depends-on): Likewise.
62087         * modules/signbit-tests (Depends-on): Likewise.
62088         * modules/snprintf-posix (Depends-on): Likewise.
62089         * modules/sprintf-posix (Depends-on): Likewise.
62090         * modules/trunc-tests (Depends-on): Likewise.
62091         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62092         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62093         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62094         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62095         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62096         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62097         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62098         * modules/vasnprintf-posix (Depends-on): Likewise.
62099         * modules/vasprintf-posix (Depends-on): Likewise.
62100         * modules/vfprintf-posix (Depends-on): Likewise.
62101         * modules/vsnprintf-posix (Depends-on): Likewise.
62102         * modules/vsprintf-posix (Depends-on): Likewise.
62103         * lib/frexp.c: Include isnand.h instead of isnan.h.
62104         (ISNAN): Set to isnand instead of isnan.
62105         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62106         (gl_isfinited): Use isnand instead of isnan.
62107         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62108         (gl_signbitd): Use isnand instead of isnan.
62109         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62110         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62111         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62112         (main): Use isnand instead of isnan.
62113         * tests/test-round1.c: Include isnand.h.
62114         (main): Use isnand instead of isnan.
62115         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62116         (ISNAN): Set to isnand instead of isnan.
62117         * tests/test-trunc1.c: Include isnand.h.
62118         (main): Use isnand instead of isnan.
62119         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62120         (equal): Use isnand instead of isnan.
62121         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62122         isnand-nolibm.
62123         * NEWS: Mention the change.
62124
62125 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62126             Bruno Haible  <bruno@clisp.org>
62127
62128         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62129         the GCC builtins for signbits are present and set
62130         REPLACE_SIGNBIT_USING_GCC if so.
62131         * lib/math.in.h (signbit): Define using GCC builtins if
62132         REPLACE_SIGNBIT_USING_GCC is set.
62133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62134         REPLACE_SIGNBIT_USING_GCC.
62135         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62136
62137 2008-01-25  Jim Meyering  <meyering@redhat.com>
62138
62139         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62140         * lib/poll.c: Include <config.h>, not "config.h".
62141         * tests/test-getaddrinfo.c: Likewise.
62142
62143 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62144
62145         * modules/sockets-tests: New file.
62146
62147 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62148
62149         * modules/sockets: New module, can be used to call WSA_Startup and
62150         WSA_Cleanup when needed.
62151
62152         * lib/sockets.h, lib/sockets.c: New files.
62153
62154         * m4/sockets.m4: New file.
62155
62156         * tests/test-sockets.c: New file.
62157
62158 2008-01-19  Bruno Haible  <bruno@clisp.org>
62159
62160         * doc/posix-headers: Renamed from doc/headers.
62161         * doc/posix-functions: Renamed from doc/functions.
62162         * doc/gnulib.texi: Update.
62163
62164 2008-01-19  Bruno Haible  <bruno@clisp.org>
62165
62166         * doc/glibc-functions/strcasestr.texi: Include contents of
62167         doc/functions/strcasestr.texi, fixing the list of platforms.
62168         * doc/functions/strcasestr.texi: Remove file.
62169
62170 2008-01-19  Bruno Haible  <bruno@clisp.org>
62171
62172         * doc/glibc-functions/memmem.texi: Include contents of
62173         doc/functions/memmem.texi.
62174         * doc/functions/memmem.texi: Remove file.
62175
62176 2008-01-18  Bruno Haible  <bruno@clisp.org>
62177
62178         * doc/glibc-functions/*.texi: New files.
62179         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62180         to use the new files.
62181
62182 2008-01-17  Bruno Haible  <bruno@clisp.org>
62183
62184         * tests/test-gethostname.c (main): Fix printf statement.
62185
62186 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62187
62188         * modules/gethostname-tests: New file.
62189
62190         * tests/test-gethostname.c: New file.
62191
62192 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62193
62194         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62195         used by the UNAME case.  Reported by Bruno Haible
62196         <bruno@clisp.org>.
62197
62198 2008-01-17  Eric Blake  <ebb9@byu.net>
62199
62200         Convert c-strcasestr to be more efficient.
62201         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62202         (Depends-on): Add c-strcase, remove malloca, strnlen.
62203         * tests/test-c-strcasestr.c (main): Enhance test.
62204         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62205
62206 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62207
62208         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62209         Use it in creating po/Makevars.
62210
62211 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62212
62213         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62214         Applications that requires it should initialize libgcrypt
62215         manually.
62216
62217 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62218
62219         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62220
62221 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         Fix problem with getdate on mingw32 reported by Simon Josefsson
62224         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62225         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62226         tzname", when deciding whether to declare tzname.
62227         * lib/strftime.c (tzname): Likewise.
62228
62229 2008-01-15  Bruno Haible  <bruno@clisp.org>
62230
62231         Work around a MacOS X 10.5 bug in frexpl().
62232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62233         * doc/functions/frexpl.texi: Document the bug.
62234         Reported by Elias Pipping <pipping@gentoo.org>.
62235
62236 2008-01-14  Eric Blake  <ebb9@byu.net>
62237
62238         Touch up previous patch.
62239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62240         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62241
62242         Convert strcasestr module to use Two-Way algorithm.
62243         * modules/strcasestr-simple: New module, based on the old
62244         strcasestr, but with Two-Way rather than KMP.
62245         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62246         * lib/string.in.h (rpl_strcasestr): Declare.
62247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62248         performance.
62249         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62250         * modules/string (Makefile.am): Support strcasestr.
62251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62252         * modules/strcasestr-tests (Depends-on): Check for alarm.
62253         * tests/test-strcasestr.c: Augment test.
62254         * lib/str-two-way.h: Clean up stray macro.
62255         * NEWS: Document new module.
62256         * MODULES.html.sh (string handling): Likewise.
62257         * doc/functions/strcasestr.texi: New file.
62258         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62259         here, since it is not a POSIX function.
62260
62261 2008-01-14  Colin Watson  <cjwatson@debian.org>
62262             Bruno Haible  <bruno@clisp.org>
62263
62264         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62265         works fine; if not, set REPLACE_STRSIGNAL.
62266         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62268         REPLACE_STRSIGNAL.
62269         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62270         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62271         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62272
62273 2008-01-14  Bruno Haible  <bruno@clisp.org>
62274
62275         * modules/strsignal (Include): Change to <string.h>.
62276
62277 2008-01-14  Colin Watson  <cjwatson@debian.org>
62278
62279         * modules/argp (Notice): Add a notice recommending to change
62280         XGETTEXT_OPTIONS.
62281         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62282
62283 2008-01-13  Colin Watson  <cjwatson@debian.org>
62284
62285         * modules/strsignal-tests: New file.
62286         * tests/test-strsignal.c: New file.
62287
62288         * lib/strsignal.c: New file, from glibc with modifications.
62289         * lib/siglist.h: New file, from glibc with modifications.
62290         * lib/string.in.h (strsignal): New declaration.
62291         * m4/strsignal.m4: New file.
62292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62293         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62294         * modules/strsignal: New file.
62295         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62296         HAVE_DECL_STRSIGNAL.
62297
62298 2008-01-13  Bruno Haible  <bruno@clisp.org>
62299
62300         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62301         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62302         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62303         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62304
62305 2008-01-13  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62308         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62309         * lib/argp.h (__attribute__): Likewise.
62310         * lib/c-stack.c (__attribute__): Likewise.
62311         * lib/error.h (__attribute__): Likewise.
62312         * lib/fts.c (__attribute__): Likewise.
62313         * lib/openat.h (__attribute__): Likewise.
62314         * lib/stdio.in.h (__attribute__): Likewise.
62315         * lib/string.in.h (__attribute__): Likewise.
62316         * lib/utimens.c (__attribute__): Likewise.
62317         * lib/vasnprintf.h (__attribute__): Likewise.
62318         * lib/xalloc.h (__attribute__): Likewise.
62319         * lib/xprintf.h (__attribute__): Likewise.
62320         * lib/xstrtol.h (__attribute__): Likewise.
62321         * lib/xvasprintf.h (__attribute__): Likewise.
62322
62323 2008-01-12  Bruno Haible  <bruno@clisp.org>
62324
62325         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62326         * doc/glibc-headers/a.out.texi: New file.
62327         * doc/glibc-headers/aliases.texi: New file.
62328         * doc/glibc-headers/alloca.texi: New file.
62329         * doc/glibc-headers/ar.texi: New file.
62330         * doc/glibc-headers/argp.texi: New file.
62331         * doc/glibc-headers/argz.texi: New file.
62332         * doc/glibc-headers/byteswap.texi: New file.
62333         * doc/glibc-headers/crypt.texi: New file.
62334         * doc/glibc-headers/endian.texi: New file.
62335         * doc/glibc-headers/envz.texi: New file.
62336         * doc/glibc-headers/err.texi: New file.
62337         * doc/glibc-headers/error.texi: New file.
62338         * doc/glibc-headers/execinfo.texi: New file.
62339         * doc/glibc-headers/fpu_control.texi: New file.
62340         * doc/glibc-headers/fstab.texi: New file.
62341         * doc/glibc-headers/fts.texi: New file.
62342         * doc/glibc-headers/getopt.texi: New file.
62343         * doc/glibc-headers/ieee754.texi: New file.
62344         * doc/glibc-headers/ifaddrs.texi: New file.
62345         * doc/glibc-headers/libintl.texi: New file.
62346         * doc/glibc-headers/mcheck.texi: New file.
62347         * doc/glibc-headers/mntent.texi: New file.
62348         * doc/glibc-headers/obstack.texi: New file.
62349         * doc/glibc-headers/paths.texi: New file.
62350         * doc/glibc-headers/printf.texi: New file.
62351         * doc/glibc-headers/pty.texi: New file.
62352         * doc/glibc-headers/resolv.texi: New file.
62353         * doc/glibc-headers/shadow.texi: New file.
62354         * doc/glibc-headers/sysexits.texi: New file.
62355         * doc/glibc-headers/ttyent.texi: New file.
62356
62357 2008-01-12  Jim Meyering  <meyering@redhat.com>
62358
62359         announce-gen: emit Gnulib's git-based version string.
62360         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62361         New option --gnulib-version=V, where V is expected to be
62362         the output of running git describe in the gnulib directory.
62363         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62364         not useful, and plan to stop publishing an xdelta file with each
62365         coreutils release.
62366
62367         * build-aux/announce-gen: Also check for lzma-compressed files.
62368
62369 2008-01-11  Bruno Haible  <bruno@clisp.org>
62370
62371         * tests/test-memmem.c (main): Increase maximum allowed time.
62372         * tests/test-strstr.c (main): Likewise.
62373
62374 2008-01-11  Bruno Haible  <bruno@clisp.org>
62375
62376         * doc/functions/memmem.texi: Add more precisions about platforms.
62377         * doc/functions/strstr.texi: Likewise.
62378
62379 2008-01-10  Eric Blake  <ebb9@byu.net>
62380
62381         * m4/strstr.m4: Delete cruft from copy-n-paste.
62382         Reported by Bruno Haible.
62383
62384 2008-01-10  Bruno Haible  <bruno@clisp.org>
62385
62386         Make c-strstr rely on strstr.
62387         * lib/c-strstr.c: Don't include str-kmp.h.
62388         (c_strstr): Define in terms of strstr.
62389         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62390         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62391
62392 2008-01-10  Bruno Haible  <bruno@clisp.org>
62393
62394         * doc/gnulib.texi (String Functions in C Locale): New section.
62395         * doc/c-ctype.texi: New file.
62396         * doc/c-strcase.texi: New file.
62397         * doc/c-strcaseeq.texi: New file.
62398         * doc/c-strcasestr.texi: New file.
62399         * doc/c-strstr.texi: New file.
62400         * doc/c-strtod.texi: New file.
62401         * doc/c-strtold.texi: New file.
62402
62403 2008-01-10  Eric Blake  <ebb9@byu.net>
62404
62405         * lib/relocatable.h: Fix a comment.
62406
62407 2008-01-10  Eric Blake  <ebb9@byu.net>
62408
62409         Share two-way algorithm.
62410         * lib/str-two-way.h: New file, merged from...
62411         * lib/memmem.c: ...here...
62412         * lib/strstr.c: ...and here.
62413         * modules/memmem (Files): Use it.
62414         * modules/strstr (Files): Likewise.
62415
62416         Avoid quadratic strstr implementations.
62417         * lib/strstr.c: New file.
62418         * m4/strstr.m4: Likewise.
62419         * modules/strstr: Likewise.
62420         * modules/strstr-tests: Likewise.
62421         * tests/test-strstr.c: Likewise.
62422         * lib/string.in.h (rpl_strstr): Declare.
62423         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62425         * modules/string (Makefile.am): Likewise.
62426         * MODULES.html.sh (string handling): Mention new module.
62427         * doc/functions/strstr.texi (strstr): Document the bug.
62428
62429 2008-01-10  Bruno Haible  <bruno@clisp.org>
62430
62431         * lib/relocatable.h (relocate): State whether result is freshly
62432         allocated or not.
62433         * lib/relocatable.c (relocate): Return a freshly allocated string
62434         instead of a pointer to a privately held string.
62435         Reported by Sylvain Beucler <beuc@gnu.org>.
62436
62437 2008-01-10  Colin Watson  <cjwatson@debian.org>
62438
62439         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62440         s/S_ISNLK/S_ISLNK/.
62441
62442 2008-01-09  Bruno Haible  <bruno@clisp.org>
62443
62444         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62445         and other files.
62446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62447         if it's only a guess.
62448         * modules/memmem: Simplify by depending on memmem-simple.
62449
62450 2008-01-09  Bruno Haible  <bruno@clisp.org>
62451
62452         Work around OpenBSD 4.0 tdelete() bug.
62453         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62454         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62455         macros and don't redefine the enum values.
62456         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62457         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62458         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62459
62460 2008-01-09  Bruno Haible  <bruno@clisp.org>
62461
62462         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62463         (main): Don't perform the tests if setlocale did not install a UTF-8
62464         locale. Needed on OpenBSD 4.0.
62465         * modules/wcwidth-tests (Depends-on): Add localcharset.
62466
62467 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62468
62469         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62470         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62471         * NEWS: announce this.
62472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62473
62474 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62475         and Eric Blake  <ebb9@byu.net>
62476
62477         Add memmem-simple module.
62478         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62479         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62480         * modules/memmem-simple: New file.
62481         * modules/memmem (Description): Tweak.
62482         * MODULES.html.sh (string handling): Mention new module.
62483         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62484         addressed by memmem-simple.
62485         * NEWS: Document the difference.
62486
62487 2008-01-09  Eric Blake  <ebb9@byu.net>
62488
62489         Give gcc some memmem optimization hints.
62490         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62491         (strcasestr): Declare as pure.
62492         * modules/memmem (Maintainer): Claim my implementation.
62493
62494 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62495
62496         Support AIX 6.1 and higher.
62497         * build-aux/config.libpath: Likewise.
62498         * build-aux/config.rpath: Likewise.
62499
62500 2008-01-08  Jim Meyering  <meyering@redhat.com>
62501             Bruno Haible  <bruno@clisp.org>
62502
62503         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62504         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62505         Reported by Peter Fales in
62506         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62507
62508 2008-01-08  Bruno Haible  <bruno@clisp.org>
62509
62510         * modules/unictype/category-of (Depends-on): Add
62511         unictype/category-none.
62512         * modules/unictype/category-and-tests (Depends-on): Add
62513         unictype/category-{L,N,Lu,Nd}.
62514         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62515         * modules/unictype/category-or-tests (Depends-on): Add
62516         unictype/category-{L,N}.
62517         * modules/unictype/category-name-tests (Depends-on): Add
62518         unictype/category-{Z,Nl}.
62519         Reported by Simon Josefsson.
62520
62521 2008-01-08  Bruno Haible  <bruno@clisp.org>
62522
62523         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62524         convention better.
62525         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62526         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62527         Reported by Peter Miller <millerp@canb.auug.org.au>.
62528
62529 2008-01-08  Eric Blake  <ebb9@byu.net>
62530
62531         Rewrite memmem to guarantee linear complexity without malloc.
62532         * lib/memmem.c (memmem): Use Two-Way rather than
62533         Knuth-Morris-Pratt, to allow O(1) space usage.
62534         (critical_factorization, two_way_short_needle)
62535         (two_way_long_needle): New functions.
62536         (knuth_morris_pratt): Delete.
62537         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62538         Add stdint.
62539         * tests/test-memmem.c (main): Add tests for periodic needle and
62540         sublinear performance.
62541         * doc/functions/memmem.texi (memmem): Document other deficiencies
62542         in cygwin and older glibc.
62543
62544 2008-01-08  Bruno Haible  <bruno@clisp.org>
62545
62546         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62547         augmentation.
62548
62549 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62550
62551         Add a configure time option: --disable-acl.
62552         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62553         AC_ARG_ENABLE(acl).
62554
62555 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62556
62557         * tests/test-localename.c: Don't include obsolete "setenv.h".
62558
62559         * modules/localename-tests (Depends-on): Need unsetenv.
62560
62561 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62562
62563         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62564
62565 2008-01-06  Colin Watson  <cjwatson@debian.org>
62566
62567         * users.txt: Add man-db.
62568
62569 2008-01-07  Bruno Haible  <bruno@clisp.org>
62570
62571         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62572         previous section name.
62573
62574 2008-01-07  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/progname.c (set_program_name): Don't strip off a leading
62577         "lt-" prefix outside a .libs directory.
62578         Suggested by Paul Eggert.
62579
62580 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62581             Bruno Haible  <bruno@clisp.org>
62582
62583         Improve memory cleanup in 'relocatable' module.
62584         * lib/relocatable.h (compute_curr_prefix): Change return type to
62585         'char *'.
62586         * lib/relocatable.c (compute_curr_prefix): Change return type to
62587         'char *'. Free curr_installdir after use.
62588         (relocate): Free curr_prefix_better after use.
62589         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62590
62591 2008-01-01  Bruno Haible  <bruno@clisp.org>
62592
62593         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62594         failure on older glibc systems.
62595         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62596
62597 2008-01-05  Eric Blake  <ebb9@byu.net>
62598
62599         Avoid quadratic system memmem.
62600         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62601         Reported by Ralf Wildenhues.
62602
62603         Fix memmem test for mingw.
62604         * modules/memmem-tests (configure.ac): Check for alarm.
62605         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62606         it.
62607         * doc/functions/memmem.texi: New file.
62608         * doc/gnulib.texi (Function Substitutes): Add memmem.
62609         Reported by Bruno Haible.
62610
62611 2008-01-04  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62614         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62615         gl_HEADER_STRING_H_DEFAULTS.
62616
62617 2008-01-04  Eric Blake  <ebb9@byu.net>
62618
62619         Shorten duration of memmem test.
62620         * tests/test-memmem.c (main): Use alarm to declare failure if test
62621         is taking too long.
62622         Reported by Ralf Wildenhues.
62623
62624 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62625
62626         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62627         string, needed by strerror.
62628
62629 2008-01-03  Colin Watson  <cjwatson@debian.org>
62630             Bruno Haible  <bruno@clisp.org>
62631
62632         * doc/gnulib-tool.texi (Localization): New section.
62633
62634 2008-01-02  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62637         variables to 'unsigned char *' type.
62638         Reported by Paul Eggert.
62639
62640 2008-01-02  Jim Meyering  <jim@meyering.net>
62641
62642         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62643
62644 2007-12-31  Jim Meyering  <jim@meyering.net>
62645
62646         Avoid use of private FTS type name.
62647         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62648
62649 2007-12-30  Karl Berry  <karl@gnu.org>
62650
62651         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62652         work around defect in Texinfo and/or the standalone Info browser.
62653
62654 2007-12-30  Bruno Haible  <bruno@clisp.org>
62655
62656         Unify 5 copies of the KMP code.
62657         * lib/str-kmp.h: New file.
62658         * lib/c-strcasestr.c: Include str-kmp.h.
62659         (knuth_morris_pratt): Remove function.
62660         (c_strcasestr): Update.
62661         * lib/c-strstr.c: Include str-kmp.h.
62662         (knuth_morris_pratt): Remove function.
62663         (c_strcasestr): Update.
62664         * lib/mbscasestr.c: Include str-kmp.h.
62665         (knuth_morris_pratt_unibyte): Remove function.
62666         * lib/mbsstr.c: Include str-kmp.h.
62667         (knuth_morris_pratt_unibyte): Remove function.
62668         * lib/strcasestr.c: Include str-kmp.h.
62669         (knuth_morris_pratt): Remove function.
62670         (strcasestr): Update.
62671         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62672         * modules/c-strstr (Files): Likewise.
62673         * modules/mbscasestr (Files): Likewise.
62674         * modules/mbsstr (Files): Likewise.
62675         * modules/strcasestr (Files): Likewise.
62676         Suggested by Paul Eggert.
62677
62678 2007-12-30  Bruno Haible  <bruno@clisp.org>
62679
62680         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62681         defined.
62682
62683 2007-12-30  Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/xmalloca.h: Include xalloc.h.
62686         (xnmalloca): New macro.
62687
62688 2007-12-30  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/malloca.h (nmalloca): New macro.
62691         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62692         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62693         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62694         knuth_morris_pratt_multibyte): Likewise.
62695         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62696         knuth_morris_pratt_multibyte): Likewise.
62697         * lib/memmem.c (knuth_morris_pratt): Likewise.
62698         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62699
62700 2007-12-25  Bruno Haible  <bruno@clisp.org>
62701
62702         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62703         * lib/glob.c: Don't include openat.h.
62704         (link_exists2_p): Add back the code that deals with the
62705         !GLOB_ALTDIRFUNC case.
62706         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62707         let it do the filename concatenation.
62708         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62709         * modules/glob (Depends-on): Remove openat.
62710
62711 2007-12-31  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/dirfd (License): Change to LGPLv2+.
62714         Approved by Jim Meyering.
62715
62716 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62719         when multiplying M by sizeof (size_t).
62720
62721 2007-12-10  Martin Lambers  <marlam@marlam.de>
62722
62723         Override getpagesize on mingw.
62724         * lib/getpagesize.c: New file.
62725         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62726         * modules/getpagesize (Files): Add lib/getpagesize.c.
62727         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62729         REPLACE_GETPAGESIZE.
62730         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62731
62732 2007-12-25  Bruno Haible  <bruno@clisp.org>
62733
62734         * modules/localcharset (Notice): New field.
62735         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62736         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62737
62738 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62739             Bruno Haible  <bruno@clisp.org>
62740
62741         Avoid using the syntax symbol() in formatted documentation.
62742         * MODULES.html.sh (func_module): When replacing symbol() with a
62743         hyperlink, remove the parentheses. Show an error if some remain.
62744         Recognize and render the '...' syntax.
62745         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62746         Rework. Add paragraph about GCC's inlining.
62747         * doc/alloca.texi: Likewise.
62748         * doc/error.texi: Remove parentheses from symbol reference.
62749         * doc/gnulib-intro.texi: Likewise.
62750         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62751         * modules/fnmatch (Description): Reword to say "the ... function".
62752         * modules/full-read (Description): Likewise.
62753         * modules/full-write (Description): Likewise.
62754         * modules/safe-read (Description): Likewise.
62755         * modules/safe-write (Description): Likewise.
62756         * modules/strchrnul (Description): Likewise.
62757         * modules/trim (Description): Likewise.
62758         * modules/error (Description): Remove parentheses from symbol
62759         references.
62760         * modules/verror (Description): Likewise.
62761         Reported by Karl Berry.
62762
62763 2007-12-25  Bruno Haible  <bruno@clisp.org>
62764
62765         Fixup after 2007-10-16 commit.
62766         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62767
62768 2007-12-24  Bruno Haible  <bruno@clisp.org>
62769
62770         Make --enable-relocatable work with DESTDIR.
62771         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62772         to compute installdir from destprog.
62773         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62774         also set the RELOC_DESTDIR variable.
62775         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62776
62777 2007-12-24  Bruno Haible  <bruno@clisp.org>
62778
62779         Fix link error due to xalloc_die().
62780         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62781         of xreadlink.
62782         * lib/relocwrapper.c: Update comments.
62783         * build-aux/install-reloc: Remove xreadlink.c from file list.
62784         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62785         xreadlink.c.
62786         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62787
62788 2007-12-24  Bruno Haible  <bruno@clisp.org>
62789
62790         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62791         * lib/setenv.h: Remove file.
62792         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62793         lib/setenv.h.
62794         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62795         (Depends-on): Add stdlib.
62796         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62797         gl_FUNC_UNSETENV.
62798         (Include): Replace setenv.h with <stdlib.h>.
62799         * modules/unsetenv: New file.
62800         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62801         * lib/unsetenv.c: Include <stdlib.h> first.
62802         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62803         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62804         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62805         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62806         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62807         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62809         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62810         * doc/functions/unsetenv.texi: Update.
62811         * modules/xsetenv (Depends-on): Add unsetenv.
62812         * modules/getdate (Depends-on): Likewise.
62813         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62814         * lib/xsetenv.c: Don't include setenv.h.
62815         * lib/getdate.y: Likewise.
62816         * lib/relocwrapper.c: Likewise.
62817         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62818         (Depends-on): Add stdlib.
62819         * NEWS: Mention the changes.
62820         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62821
62822 2007-12-23  Bruno Haible  <bruno@clisp.org>
62823
62824         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62825         indentation.
62826
62827 2007-12-23  Bruno Haible  <bruno@clisp.org>
62828
62829         * lib/c-strcasestr.c: Add more comments.
62830         * lib/c-strstr.c: Likewise.
62831         * lib/mbscasestr.c: Likewise.
62832         * lib/mbsstr.c: Likewise.
62833         * lib/strcasestr.c: Likewise.
62834         * lib/memmem.c: Likewise.
62835
62836 2007-12-23  Bruno Haible  <bruno@clisp.org>
62837
62838         * tests/test-memmem.c: Include <string.h> first.
62839
62840 2007-12-22  Bruno Haible  <bruno@clisp.org>
62841
62842         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62843         the contents of $testsbase.
62844         Reported by Ralf Wildenhues.
62845
62846 2007-12-22  Bruno Haible  <bruno@clisp.org>
62847
62848         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62849         two variables local_ldadd_before, local_ldadd_last.
62850
62851 2007-12-20  Eric Blake  <ebb9@byu.net>
62852
62853         Work around circular library issue when cross-compiling.
62854         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62855         that progname.o does not need to pull in rpl_memcmp.
62856
62857 2007-12-19  Eric Blake  <ebb9@byu.net>
62858
62859         Fix memmem to avoid O(n^2) worst-case complexity.
62860         * lib/memmem.c (knuth_morris_pratt): New function.
62861         (memmem): Use it if first few naive iterations fail.
62862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62863         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62864         * modules/memchr (License): Likewise.
62865         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62866         malloca.
62867         * tests/test-memmem.c: Rewrite, borrowing ideas from
62868         test-mbsstr1.c; the old version wouldn't even compile!
62869         * modules/memmem-tests: New file.
62870         * lib/string.in.h (rpl_memmem): Add declaration.
62871         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62873         REPLACE_MEMMEM.
62874
62875 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62876
62877         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62878         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62879         before any system include files, and undef after them all.  This
62880         should fix a problem on VMS reported by John E. Malmberg in
62881         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62882
62883 2007-12-17  Eric Blake  <ebb9@byu.net>
62884
62885         Revert addition of verify, for BSD/OS.
62886         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62887         can't handle large files, for the sake of obsolete platforms.
62888         * modules/fseeko (Depends-on): Remove verify.
62889         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62890         * doc/functions/ftello.texi (ftello): Likewise.
62891         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62892         Reported by Larry Jones.
62893
62894 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62895
62896         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62897         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62898
62899 2007-12-17  Jim Meyering  <meyering@redhat.com>
62900
62901         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62902         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62903         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62904         * modules/getcwd (Depends-on): Add openat.
62905         Reported by Petr Salinger.
62906
62907 2007-12-17  Bruno Haible  <bruno@clisp.org>
62908
62909         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62910         avoid a segmentation fault of the configure test on x86_64 systems.
62911
62912 2007-12-15  Jim Meyering  <meyering@redhat.com>
62913
62914         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62915
62916 2007-12-13  Eric Blake  <ebb9@byu.net>
62917
62918         Another fseek test.
62919         * tests/test-fseek.c (main): Also test ungetc handling.
62920         * tests/test-fseeko.c (main): Likewise.
62921         * modules/fseeko (Depends-on): Add verify.
62922         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62923         large.
62924         Reported by Larry Jones.
62925
62926         Fix fseeko on mingw.
62927         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62928         seek.
62929
62930         Beef up fseek tests.
62931         * tests/test-fseek.c (main): Also test eof handling.
62932         * tests/test-fseeko.c (main): Likewise.
62933         Reported by Larry Jones.
62934
62935 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62936
62937         Fix fseeko on BSD-based platforms.
62938         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62939         successful seek.
62940
62941 2007-12-12  Eric Blake  <ebb9@byu.net>
62942
62943         Allow circular dependency of separate libtests.a
62944         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62945         when use_libtests.
62946
62947 2007-12-11  Eric Blake  <ebb9@byu.net>
62948
62949         Fix bug with -0.0L in previous patch.
62950         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62951         * tests/test-isnan.c (main): Also test on zeroes.
62952         * tests/test-isnanf.c (main): Likewise.
62953         * tests/test-isnanl.h (main): Likewise.
62954
62955         Detect pseudo-denormals on x86 even when cross-compiling.
62956         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62957         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62958         invalid bit patterns that happen to satisfy ==.
62959
62960         Avoid link failures with separate libtests.a.
62961         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62962         last, to satisfy circular dependencies.
62963
62964 2007-12-11  Eric Blake  <ebb9@byu.net>
62965         and Bruno Haible  <bruno@clisp.org>
62966
62967         Fix OpenBSD 4.0 <float.h> handling of long double.
62968         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62969         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62970         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62971
62972 2007-12-11  Jim Meyering  <meyering@redhat.com>
62973
62974         * users.txt: Add libvirt.
62975
62976         Support versions of autoconf prior to 2.59c.
62977         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62978         if it is not already defined.
62979
62980 2007-12-09  Bruno Haible  <bruno@clisp.org>
62981
62982         Let 'gnulib-tool --import' collect sources needed for the tests in
62983         tests/ rather than in lib/.
62984         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62985         argument. If true, add rules to generate libtests.a, and put libtests.a
62986         into $(LDADD). Consider source files in subdirectories and set
62987         uses_subdirs.
62988         (func_emit_initmacro_start, func_emit_initmacro_end,
62989         func_emit_initmacro_done): Pass all arguments explicitly.
62990         (func_import): Determine two module lists main_modules,
62991         testsrelated_modules. Determine use_libtests. Determine two variables
62992         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62993         instead of just sed_transform_lib_file. Determine two variables
62994         main_files and testsrelated_files. Compute 'files' as the union of
62995         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62996         func_add_or_update. In the generated gnulib-comp.m4, collect the
62997         object files for tests/ in different variables than those for lib/.
62998         Substitute LIBTESTS_LIBDEPS.
62999         (func_create_testdir): Combine the uses_subdirs results from
63000         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63001
63002 2007-12-09  Bruno Haible  <bruno@clisp.org>
63003
63004         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63005         the build-aux directory.
63006
63007 2007-12-09  Bruno Haible  <bruno@clisp.org>
63008
63009         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63010         introduced on 2006-09-09.
63011
63012 2007-12-07  Jim Meyering  <meyering@redhat.com>
63013
63014         Let these macros work also with autoconf-2.59.
63015         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63016         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63018
63019 2007-12-06  Jim Meyering  <meyering@redhat.com>
63020
63021         Avoid a configure-time syntax error in gl_FUNC_ACL.
63022         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63023         function in each branch, before testing the cache variable.
63024
63025 2007-12-04  Eric Blake  <ebb9@byu.net>
63026
63027         Make scripts executable.
63028         * build-aux/config.guess: Add execute permissions.
63029         * build-aux/config.sub: Likewise.
63030         * build-aux/gendocs.sh: Likewise.
63031
63032         Fix frexp on mingw.
63033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63034         cross-compiling.
63035         * doc/functions/frexp.texi (frexp): Document the bug.
63036
63037         Make cygwin fseeko check more reliable.
63038         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63039         version numbers, rather than unrelated feature check.
63040         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63041         * doc/functions/ftello.texi (ftello): Likewise.
63042         Reported by Bruno Haible.
63043
63044         * m4/strerror.m4: Bump version number.
63045
63046 2007-12-03  Bruno Haible  <bruno@clisp.org>
63047
63048         * doc/functions/mprotect.texi: Mention the mingw problem.
63049
63050 2007-12-03  Eric Blake  <ebb9@byu.net>
63051
63052         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63053         REPLACE_STRERROR is initialized before this macro.
63054
63055 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63058         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63059         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63060         put -lsec in even for programs other than 'ls'.  This fixes a problem
63061         for gettext reported by Bruno Haible in
63062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63063         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63064         Add support for Solaris 10.  This isn't efficient, but should get the
63065         job done for now.
63066
63067 2007-12-03  James Youngman  <jay@gnu.org>
63068
63069         * doc/regexprops-generic.texi: change "an close-group" to "a
63070         close-group" and "illegal" to "not allowed".
63071
63072 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63073
63074         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63075         pr_byname.h. Needed for the rare case when the maintainer has done
63076         "make maintainer-clean" in the source directory and then attempts a
63077         build outside the source directory.
63078         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63079         scripts_byname.h.
63080
63081 2007-12-02  Martin Lambers <marlam@marlam.de>
63082             Bruno Haible  <bruno@clisp.org>
63083
63084         * lib/getpagesize.h: Remove file.
63085         * lib/unistd.in.h: Include declaration of getpagesize here.
63086         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63087         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63088         HAVE_SYS_PARAM_H.
63089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63090         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63091         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63092         (Depends-on): Add unistd.
63093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63094         (Include): Use <unistd.h> instead of getpagesize.h.
63095         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63096         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63097         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63098         gl_GETPAGESIZE invocation, already handled by module dependency.
63099         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63100
63101 2007-12-02  Bruno Haible  <bruno@clisp.org>
63102
63103         * modules/strings-tests: New file.
63104         * tests/test-strings.c: New file.
63105
63106         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63107         * lib/strings.in.h: New file.
63108         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63109         * m4/strings_h.m4: New file.
63110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63111         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63112         * modules/strings: New file.
63113         * modules/string (Makefile.am): Update.
63114         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63115         Reported by Karl Berry.
63116
63117 2007-12-01  Eric Blake  <ebb9@byu.net>
63118
63119         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63120         accommodate fix in cygwin 1.5.25.
63121
63122 2007-12-01  Jim Meyering  <meyering@redhat.com>
63123
63124         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63125         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63126         that would inhibit utf8-optimization of a regexp containing line-
63127         or buffer-anchors, e.g., `^', `$'.
63128
63129 2007-11-30  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63132         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63133         glthread_recursive_lock_init.
63134         * lib/lock.c (glthread_recursive_lock_init)
63135         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63136         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63137
63138 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         New function qset_acl, like set_acl but with syscall semantics.
63141         * lib/acl.h (qset_acl): New decl.
63142         * lib/acl.c (qset_acl): New function.
63143         (set_acl): Use new function.  Use more-consistent diagnostics.
63144
63145 2007-11-28  Jim Meyering  <meyering@redhat.com>
63146
63147         * modules/physmem (License): Change from GPL to LGPLv2+.
63148
63149 2007-11-26  Bruno Haible  <bruno@clisp.org>
63150
63151         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63152         'long double' type has excess precision.
63153         Reported by Jim Meyering in
63154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63155
63156 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63157
63158         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63159         Sync from <http://gnu.org/licenses>.
63160         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63161         with license text from same location.
63162         * doc/maintain.texi, doc/standards.texi:  Sync from
63163         <http://savannah.gnu.org/projects/gnustandards>.
63164
63165 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
63166         and Jim Meyering  <meyering@redhat.com>
63167
63168         Adjust getdate' grammar to accept a slightly more regular language.
63169         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63170         Before, the former was rejected.
63171         * lib/getdate.y (digits_to_date_time): New function, factored
63172         out of ...
63173         (number): ...here.  Just call digits_to_date_time.
63174         (hybrid): New non-terminal to handle an <unsigned number,
63175         signed relative offset> sequence consistently.
63176
63177 2007-11-18  Jim Meyering  <meyering@redhat.com>
63178
63179         Pull my changes from coreutils:
63180         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63181         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63182         use of $gnulib_tool_option_extras, so that it's separated from the
63183         preceding argument.
63184
63185         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63186         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63187         parent destination directories before copying a file into place.
63188
63189 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63190
63191         bootstrap: work also with 4-argument variant of AC_INIT
63192         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63193
63194 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         Port test-getaddrinfo to Solaris.
63197         Problem reported by Bruno Haible in
63198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63199         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63200         explanation of setting 'hints'.
63201         Don't reject an implementation merely because it returns EAI_SERVICE.
63202         (EAI_SERVICE): Define to 0 if not defined.
63203
63204 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63205
63206         The license of gnu-make and posix-shell is now "GPLed build tool".
63207         * modules/gnu-make (License): Likewise.
63208         * modules/posix-shell (License): Likewise.
63209
63210         New module posix-shell, for determining a POSIX shell
63211         or perhaps something that is close enough to a POSIX shell.
63212         * m4/posix-shell.m4: New file.
63213         * modules/posix-shell: New file.
63214
63215         * MODULES.html.sh: Mention new module.
63216
63217         New module gnu-make, for determining whether we're using GNU Make.
63218         * m4/gnu-make.m4: New file.
63219         * modules/gnu-make: New file.
63220         * MODULES.html.sh: Mention new module.
63221
63222 2007-11-14  Jim Meyering  <meyering@redhat.com>
63223
63224         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63225         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63226         use this macro to create a function _definition_.
63227         Remove useless "#undef ARGMATCH_DIE".
63228
63229 2007-11-14  Bruno Haible  <bruno@clisp.org>
63230
63231         * lib/config.charset: Update for OpenBSD 4.1.
63232         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63233
63234 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         Document 64-bit #if problems in stdint.texi.
63237         * doc/headers/stdint.texi (stdint.h): Mention problems with
63238         64-bit-#if, and how to work around them.
63239
63240         Don't insist on 'long long int' support in the preprocessor.  It
63241         breaks too many things.  For example, PRIdMAX still uses a 'long
63242         long int' format with the latest Sun compiler, even though
63243         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63244         preprocessor problem.  This causes the latest coreutils to dump
63245         core on Solaris 10 sparc with the Sun C compiler.
63246         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63247         the troublesome expressions at configure-time, not at #if-time.
63248         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63249         preprocessor.
63250         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63251         compile-time C checks, done at 'configure'-time.
63252         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63253         * modules/inttypes (Makefile): Substitute the new symbols that
63254         gl_INTTYPES_H now generates.
63255         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63256
63257 2007-11-12  Bruno Haible  <bruno@clisp.org>
63258
63259         Tests for Unicode character classification functions.
63260
63261         * modules/unictype/bidicategory-byname-tests: New file.
63262         * modules/unictype/bidicategory-name-tests: New file.
63263         * modules/unictype/bidicategory-of-tests: New file.
63264         * modules/unictype/bidicategory-test-tests: New file.
63265         * modules/unictype/block-list-tests: New file.
63266         * modules/unictype/block-of-tests: New file.
63267         * modules/unictype/block-test-tests: New file.
63268         * modules/unictype/category-C-tests: New file.
63269         * modules/unictype/category-Cc-tests: New file.
63270         * modules/unictype/category-Cf-tests: New file.
63271         * modules/unictype/category-Cn-tests: New file.
63272         * modules/unictype/category-Co-tests: New file.
63273         * modules/unictype/category-Cs-tests: New file.
63274         * modules/unictype/category-L-tests: New file.
63275         * modules/unictype/category-Ll-tests: New file.
63276         * modules/unictype/category-Lm-tests: New file.
63277         * modules/unictype/category-Lo-tests: New file.
63278         * modules/unictype/category-Lt-tests: New file.
63279         * modules/unictype/category-Lu-tests: New file.
63280         * modules/unictype/category-M-tests: New file.
63281         * modules/unictype/category-Mc-tests: New file.
63282         * modules/unictype/category-Me-tests: New file.
63283         * modules/unictype/category-Mn-tests: New file.
63284         * modules/unictype/category-N-tests: New file.
63285         * modules/unictype/category-Nd-tests: New file.
63286         * modules/unictype/category-Nl-tests: New file.
63287         * modules/unictype/category-No-tests: New file.
63288         * modules/unictype/category-P-tests: New file.
63289         * modules/unictype/category-Pc-tests: New file.
63290         * modules/unictype/category-Pd-tests: New file.
63291         * modules/unictype/category-Pe-tests: New file.
63292         * modules/unictype/category-Pf-tests: New file.
63293         * modules/unictype/category-Pi-tests: New file.
63294         * modules/unictype/category-Po-tests: New file.
63295         * modules/unictype/category-Ps-tests: New file.
63296         * modules/unictype/category-S-tests: New file.
63297         * modules/unictype/category-Sc-tests: New file.
63298         * modules/unictype/category-Sk-tests: New file.
63299         * modules/unictype/category-Sm-tests: New file.
63300         * modules/unictype/category-So-tests: New file.
63301         * modules/unictype/category-Z-tests: New file.
63302         * modules/unictype/category-Zl-tests: New file.
63303         * modules/unictype/category-Zp-tests: New file.
63304         * modules/unictype/category-Zs-tests: New file.
63305         * modules/unictype/category-and-not-tests: New file.
63306         * modules/unictype/category-and-tests: New file.
63307         * modules/unictype/category-byname-tests: New file.
63308         * modules/unictype/category-name-tests: New file.
63309         * modules/unictype/category-none-tests: New file.
63310         * modules/unictype/category-of-tests: New file.
63311         * modules/unictype/category-or-tests: New file.
63312         * modules/unictype/category-test-withtable-tests: New file.
63313         * modules/unictype/combining-class-tests: New file.
63314         * modules/unictype/ctype-alnum-tests: New file.
63315         * modules/unictype/ctype-alpha-tests: New file.
63316         * modules/unictype/ctype-blank-tests: New file.
63317         * modules/unictype/ctype-cntrl-tests: New file.
63318         * modules/unictype/ctype-digit-tests: New file.
63319         * modules/unictype/ctype-graph-tests: New file.
63320         * modules/unictype/ctype-lower-tests: New file.
63321         * modules/unictype/ctype-print-tests: New file.
63322         * modules/unictype/ctype-punct-tests: New file.
63323         * modules/unictype/ctype-space-tests: New file.
63324         * modules/unictype/ctype-upper-tests: New file.
63325         * modules/unictype/ctype-xdigit-tests: New file.
63326         * modules/unictype/decimal-digit-tests: New file.
63327         * modules/unictype/digit-tests: New file.
63328         * modules/unictype/mirror-tests: New file.
63329         * modules/unictype/numeric-tests: New file.
63330         * modules/unictype/property-alphabetic-tests: New file.
63331         * modules/unictype/property-ascii-hex-digit-tests: New file.
63332         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63333         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63334         * modules/unictype/property-bidi-block-separator-tests: New file.
63335         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63336         * modules/unictype/property-bidi-common-separator-tests: New file.
63337         * modules/unictype/property-bidi-control-tests: New file.
63338         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63339         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63340         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63341         * modules/unictype/property-bidi-european-digit-tests: New file.
63342         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63343         * modules/unictype/property-bidi-left-to-right-tests: New file.
63344         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63345         * modules/unictype/property-bidi-other-neutral-tests: New file.
63346         * modules/unictype/property-bidi-pdf-tests: New file.
63347         * modules/unictype/property-bidi-segment-separator-tests: New file.
63348         * modules/unictype/property-bidi-whitespace-tests: New file.
63349         * modules/unictype/property-byname-tests: New file.
63350         * modules/unictype/property-combining-tests: New file.
63351         * modules/unictype/property-composite-tests: New file.
63352         * modules/unictype/property-currency-symbol-tests: New file.
63353         * modules/unictype/property-dash-tests: New file.
63354         * modules/unictype/property-decimal-digit-tests: New file.
63355         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63356         * modules/unictype/property-deprecated-tests: New file.
63357         * modules/unictype/property-diacritic-tests: New file.
63358         * modules/unictype/property-extender-tests: New file.
63359         * modules/unictype/property-format-control-tests: New file.
63360         * modules/unictype/property-grapheme-base-tests: New file.
63361         * modules/unictype/property-grapheme-extend-tests: New file.
63362         * modules/unictype/property-grapheme-link-tests: New file.
63363         * modules/unictype/property-hex-digit-tests: New file.
63364         * modules/unictype/property-hyphen-tests: New file.
63365         * modules/unictype/property-id-continue-tests: New file.
63366         * modules/unictype/property-id-start-tests: New file.
63367         * modules/unictype/property-ideographic-tests: New file.
63368         * modules/unictype/property-ids-binary-operator-tests: New file.
63369         * modules/unictype/property-ids-trinary-operator-tests: New file.
63370         * modules/unictype/property-ignorable-control-tests: New file.
63371         * modules/unictype/property-iso-control-tests: New file.
63372         * modules/unictype/property-join-control-tests: New file.
63373         * modules/unictype/property-left-of-pair-tests: New file.
63374         * modules/unictype/property-line-separator-tests: New file.
63375         * modules/unictype/property-logical-order-exception-tests: New file.
63376         * modules/unictype/property-lowercase-tests: New file.
63377         * modules/unictype/property-math-tests: New file.
63378         * modules/unictype/property-non-break-tests: New file.
63379         * modules/unictype/property-not-a-character-tests: New file.
63380         * modules/unictype/property-numeric-tests: New file.
63381         * modules/unictype/property-other-alphabetic-tests: New file.
63382         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63383         * modules/unictype/property-other-grapheme-extend-tests: New file.
63384         * modules/unictype/property-other-id-continue-tests: New file.
63385         * modules/unictype/property-other-id-start-tests: New file.
63386         * modules/unictype/property-other-lowercase-tests: New file.
63387         * modules/unictype/property-other-math-tests: New file.
63388         * modules/unictype/property-other-uppercase-tests: New file.
63389         * modules/unictype/property-paired-punctuation-tests: New file.
63390         * modules/unictype/property-paragraph-separator-tests: New file.
63391         * modules/unictype/property-pattern-syntax-tests: New file.
63392         * modules/unictype/property-pattern-white-space-tests: New file.
63393         * modules/unictype/property-private-use-tests: New file.
63394         * modules/unictype/property-punctuation-tests: New file.
63395         * modules/unictype/property-quotation-mark-tests: New file.
63396         * modules/unictype/property-radical-tests: New file.
63397         * modules/unictype/property-sentence-terminal-tests: New file.
63398         * modules/unictype/property-soft-dotted-tests: New file.
63399         * modules/unictype/property-space-tests: New file.
63400         * modules/unictype/property-terminal-punctuation-tests: New file.
63401         * modules/unictype/property-test-tests: New file.
63402         * modules/unictype/property-titlecase-tests: New file.
63403         * modules/unictype/property-unassigned-code-value-tests: New file.
63404         * modules/unictype/property-unified-ideograph-tests: New file.
63405         * modules/unictype/property-uppercase-tests: New file.
63406         * modules/unictype/property-variation-selector-tests: New file.
63407         * modules/unictype/property-white-space-tests: New file.
63408         * modules/unictype/property-xid-continue-tests: New file.
63409         * modules/unictype/property-xid-start-tests: New file.
63410         * modules/unictype/property-zero-width-tests: New file.
63411         * modules/unictype/scripts-tests: New file.
63412         * modules/unictype/syntax-c-ident-tests: New file.
63413         * modules/unictype/syntax-c-whitespace-tests: New file.
63414         * modules/unictype/syntax-java-ident-tests: New file.
63415         * modules/unictype/syntax-java-whitespace-tests: New file.
63416         * tests/unictype/test-bidi_byname.c: New file.
63417         * tests/unictype/test-bidi_name.c: New file.
63418         * tests/unictype/test-bidi_of.c: New file.
63419         * tests/unictype/test-bidi_test.c: New file.
63420         * tests/unictype/test-block_list.c: New file.
63421         * tests/unictype/test-block_of.c: New file.
63422         * tests/unictype/test-block_test.c: New file.
63423         * tests/unictype/test-categ_and.c: New file.
63424         * tests/unictype/test-categ_and_not.c: New file.
63425         * tests/unictype/test-categ_byname.c: New file.
63426         * tests/unictype/test-categ_name.c: New file.
63427         * tests/unictype/test-categ_none.c: New file.
63428         * tests/unictype/test-categ_of.c: New file.
63429         * tests/unictype/test-categ_or.c: New file.
63430         * tests/unictype/test-categ_test_withtable.c: New file.
63431         * tests/unictype/test-combining.c: New file.
63432         * tests/unictype/test-decdigit.c: New file.
63433         * tests/unictype/test-digit.c: New file.
63434         * tests/unictype/test-mirror.c: New file.
63435         * tests/unictype/test-numeric.c: New file.
63436         * tests/unictype/test-pr_byname.c: New file.
63437         * tests/unictype/test-pr_test.c: New file.
63438         * tests/unictype/test-predicate-part1.h: New file.
63439         * tests/unictype/test-predicate-part2.h: New file.
63440         * tests/unictype/test-scripts.c: New file.
63441         * tests/unictype/test-sy_c_ident.c: New file.
63442         * tests/unictype/test-sy_java_ident.c: New file.
63443
63444         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63445         for Unicode 5.0.0.
63446         * tests/unictype/test-categ_Cc.c: Likewise.
63447         * tests/unictype/test-categ_Cf.c: Likewise.
63448         * tests/unictype/test-categ_Cn.c: Likewise.
63449         * tests/unictype/test-categ_Co.c: Likewise.
63450         * tests/unictype/test-categ_Cs.c: Likewise.
63451         * tests/unictype/test-categ_L.c: Likewise.
63452         * tests/unictype/test-categ_Ll.c: Likewise.
63453         * tests/unictype/test-categ_Lm.c: Likewise.
63454         * tests/unictype/test-categ_Lo.c: Likewise.
63455         * tests/unictype/test-categ_Lt.c: Likewise.
63456         * tests/unictype/test-categ_Lu.c: Likewise.
63457         * tests/unictype/test-categ_M.c: Likewise.
63458         * tests/unictype/test-categ_Mc.c: Likewise.
63459         * tests/unictype/test-categ_Me.c: Likewise.
63460         * tests/unictype/test-categ_Mn.c: Likewise.
63461         * tests/unictype/test-categ_N.c: Likewise.
63462         * tests/unictype/test-categ_Nd.c: Likewise.
63463         * tests/unictype/test-categ_Nl.c: Likewise.
63464         * tests/unictype/test-categ_No.c: Likewise.
63465         * tests/unictype/test-categ_P.c: Likewise.
63466         * tests/unictype/test-categ_Pc.c: Likewise.
63467         * tests/unictype/test-categ_Pd.c: Likewise.
63468         * tests/unictype/test-categ_Pe.c: Likewise.
63469         * tests/unictype/test-categ_Pf.c: Likewise.
63470         * tests/unictype/test-categ_Pi.c: Likewise.
63471         * tests/unictype/test-categ_Po.c: Likewise.
63472         * tests/unictype/test-categ_Ps.c: Likewise.
63473         * tests/unictype/test-categ_S.c: Likewise.
63474         * tests/unictype/test-categ_Sc.c: Likewise.
63475         * tests/unictype/test-categ_Sk.c: Likewise.
63476         * tests/unictype/test-categ_Sm.c: Likewise.
63477         * tests/unictype/test-categ_So.c: Likewise.
63478         * tests/unictype/test-categ_Z.c: Likewise.
63479         * tests/unictype/test-categ_Zl.c: Likewise.
63480         * tests/unictype/test-categ_Zp.c: Likewise.
63481         * tests/unictype/test-categ_Zs.c: Likewise.
63482         * tests/unictype/test-ctype_alnum.c: Likewise.
63483         * tests/unictype/test-ctype_alpha.c: Likewise.
63484         * tests/unictype/test-ctype_blank.c: Likewise.
63485         * tests/unictype/test-ctype_cntrl.c: Likewise.
63486         * tests/unictype/test-ctype_digit.c: Likewise.
63487         * tests/unictype/test-ctype_graph.c: Likewise.
63488         * tests/unictype/test-ctype_lower.c: Likewise.
63489         * tests/unictype/test-ctype_print.c: Likewise.
63490         * tests/unictype/test-ctype_punct.c: Likewise.
63491         * tests/unictype/test-ctype_space.c: Likewise.
63492         * tests/unictype/test-ctype_upper.c: Likewise.
63493         * tests/unictype/test-ctype_xdigit.c: Likewise.
63494         * tests/unictype/test-decdigit.h: Likewise.
63495         * tests/unictype/test-digit.h: Likewise.
63496         * tests/unictype/test-numeric.h: Likewise.
63497         * tests/unictype/test-pr_alphabetic.c: Likewise.
63498         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63499         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63500         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63501         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63502         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63503         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63504         * tests/unictype/test-pr_bidi_control.c: Likewise.
63505         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63506         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63507         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63508         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63509         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63510         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63511         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63512         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63513         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63514         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63515         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63516         * tests/unictype/test-pr_combining.c: Likewise.
63517         * tests/unictype/test-pr_composite.c: Likewise.
63518         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63519         * tests/unictype/test-pr_dash.c: Likewise.
63520         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63521         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63522         * tests/unictype/test-pr_deprecated.c: Likewise.
63523         * tests/unictype/test-pr_diacritic.c: Likewise.
63524         * tests/unictype/test-pr_extender.c: Likewise.
63525         * tests/unictype/test-pr_format_control.c: Likewise.
63526         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63527         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63528         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63529         * tests/unictype/test-pr_hex_digit.c: Likewise.
63530         * tests/unictype/test-pr_hyphen.c: Likewise.
63531         * tests/unictype/test-pr_id_continue.c: Likewise.
63532         * tests/unictype/test-pr_id_start.c: Likewise.
63533         * tests/unictype/test-pr_ideographic.c: Likewise.
63534         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63535         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63536         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63537         * tests/unictype/test-pr_iso_control.c: Likewise.
63538         * tests/unictype/test-pr_join_control.c: Likewise.
63539         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63540         * tests/unictype/test-pr_line_separator.c: Likewise.
63541         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63542         * tests/unictype/test-pr_lowercase.c: Likewise.
63543         * tests/unictype/test-pr_math.c: Likewise.
63544         * tests/unictype/test-pr_non_break.c: Likewise.
63545         * tests/unictype/test-pr_not_a_character.c: Likewise.
63546         * tests/unictype/test-pr_numeric.c: Likewise.
63547         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63548         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63549         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63550         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63551         * tests/unictype/test-pr_other_id_start.c: Likewise.
63552         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63553         * tests/unictype/test-pr_other_math.c: Likewise.
63554         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63555         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63556         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63557         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63558         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63559         * tests/unictype/test-pr_private_use.c: Likewise.
63560         * tests/unictype/test-pr_punctuation.c: Likewise.
63561         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63562         * tests/unictype/test-pr_radical.c: Likewise.
63563         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63564         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63565         * tests/unictype/test-pr_space.c: Likewise.
63566         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63567         * tests/unictype/test-pr_titlecase.c: Likewise.
63568         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63569         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63570         * tests/unictype/test-pr_uppercase.c: Likewise.
63571         * tests/unictype/test-pr_variation_selector.c: Likewise.
63572         * tests/unictype/test-pr_white_space.c: Likewise.
63573         * tests/unictype/test-pr_xid_continue.c: Likewise.
63574         * tests/unictype/test-pr_xid_start.c: Likewise.
63575         * tests/unictype/test-pr_zero_width.c: Likewise.
63576         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63577         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63578
63579 2007-11-12  Bruno Haible  <bruno@clisp.org>
63580
63581         Unicode character classification functions.
63582         * lib/unictype.h: New file.
63583         * modules/unictype/base: New file.
63584         * modules/unictype/category-L: New file.
63585         * modules/unictype/category-Lu: New file.
63586         * modules/unictype/category-Ll: New file.
63587         * modules/unictype/category-Lt: New file.
63588         * modules/unictype/category-Lm: New file.
63589         * modules/unictype/category-Lo: New file.
63590         * modules/unictype/category-M: New file.
63591         * modules/unictype/category-Mn: New file.
63592         * modules/unictype/category-Mc: New file.
63593         * modules/unictype/category-Me: New file.
63594         * modules/unictype/category-N: New file.
63595         * modules/unictype/category-Nd: New file.
63596         * modules/unictype/category-Nl: New file.
63597         * modules/unictype/category-No: New file.
63598         * modules/unictype/category-P: New file.
63599         * modules/unictype/category-Pc: New file.
63600         * modules/unictype/category-Pd: New file.
63601         * modules/unictype/category-Ps: New file.
63602         * modules/unictype/category-Pe: New file.
63603         * modules/unictype/category-Pi: New file.
63604         * modules/unictype/category-Pf: New file.
63605         * modules/unictype/category-Po: New file.
63606         * modules/unictype/category-S: New file.
63607         * modules/unictype/category-Sm: New file.
63608         * modules/unictype/category-Sc: New file.
63609         * modules/unictype/category-Sk: New file.
63610         * modules/unictype/category-So: New file.
63611         * modules/unictype/category-Z: New file.
63612         * modules/unictype/category-Zs: New file.
63613         * modules/unictype/category-Zl: New file.
63614         * modules/unictype/category-Zp: New file.
63615         * modules/unictype/category-C: New file.
63616         * modules/unictype/category-Cc: New file.
63617         * modules/unictype/category-Cf: New file.
63618         * modules/unictype/category-Cs: New file.
63619         * modules/unictype/category-Co: New file.
63620         * modules/unictype/category-Cn: New file.
63621         * modules/unictype/category-or: New file.
63622         * modules/unictype/category-of: New file.
63623         * modules/unictype/category-test: New file.
63624         * modules/unictype/category-test-withtable: New file.
63625         * modules/unictype/category-byname: New file.
63626         * modules/unictype/category-none: New file.
63627         * modules/unictype/category-and: New file.
63628         * modules/unictype/category-and-not: New file.
63629         * modules/unictype/category-name: New file.
63630         * modules/unictype/combining-class: New file.
63631         * modules/unictype/category-all: New file.
63632         * modules/unictype/bidicategory-all: New file.
63633         * modules/unictype/bidicategory-byname: New file.
63634         * modules/unictype/bidicategory-name: New file.
63635         * modules/unictype/bidicategory-of: New file.
63636         * modules/unictype/bidicategory-test: New file.
63637         * modules/unictype/decimal-digit: New file.
63638         * modules/unictype/digit: New file.
63639         * modules/unictype/numeric: New file.
63640         * modules/unictype/mirror: New file.
63641         * modules/unictype/property-white-space: New file.
63642         * modules/unictype/property-alphabetic: New file.
63643         * modules/unictype/property-other-alphabetic: New file.
63644         * modules/unictype/property-not-a-character: New file.
63645         * modules/unictype/property-default-ignorable-code-point: New file.
63646         * modules/unictype/property-other-default-ignorable-code-point: New
63647         file.
63648         * modules/unictype/property-deprecated: New file.
63649         * modules/unictype/property-logical-order-exception: New file.
63650         * modules/unictype/property-variation-selector: New file.
63651         * modules/unictype/property-private-use: New file.
63652         * modules/unictype/property-unassigned-code-value: New file.
63653         * modules/unictype/property-uppercase: New file.
63654         * modules/unictype/property-other-uppercase: New file.
63655         * modules/unictype/property-lowercase: New file.
63656         * modules/unictype/property-other-lowercase: New file.
63657         * modules/unictype/property-titlecase: New file.
63658         * modules/unictype/property-soft-dotted: New file.
63659         * modules/unictype/property-id-start: New file.
63660         * modules/unictype/property-other-id-start: New file.
63661         * modules/unictype/property-id-continue: New file.
63662         * modules/unictype/property-other-id-continue: New file.
63663         * modules/unictype/property-xid-start: New file.
63664         * modules/unictype/property-xid-continue: New file.
63665         * modules/unictype/property-pattern-white-space: New file.
63666         * modules/unictype/property-pattern-syntax: New file.
63667         * modules/unictype/property-join-control: New file.
63668         * modules/unictype/property-grapheme-base: New file.
63669         * modules/unictype/property-grapheme-extend: New file.
63670         * modules/unictype/property-other-grapheme-extend: New file.
63671         * modules/unictype/property-grapheme-link: New file.
63672         * modules/unictype/property-bidi-control: New file.
63673         * modules/unictype/property-bidi-left-to-right: New file.
63674         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63675         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63676         * modules/unictype/property-bidi-european-digit: New file.
63677         * modules/unictype/property-bidi-eur-num-separator: New file.
63678         * modules/unictype/property-bidi-eur-num-terminator: New file.
63679         * modules/unictype/property-bidi-arabic-digit: New file.
63680         * modules/unictype/property-bidi-common-separator: New file.
63681         * modules/unictype/property-bidi-block-separator: New file.
63682         * modules/unictype/property-bidi-segment-separator: New file.
63683         * modules/unictype/property-bidi-whitespace: New file.
63684         * modules/unictype/property-bidi-non-spacing-mark: New file.
63685         * modules/unictype/property-bidi-boundary-neutral: New file.
63686         * modules/unictype/property-bidi-pdf: New file.
63687         * modules/unictype/property-bidi-embedding-or-override: New file.
63688         * modules/unictype/property-bidi-other-neutral: New file.
63689         * modules/unictype/property-hex-digit: New file.
63690         * modules/unictype/property-ascii-hex-digit: New file.
63691         * modules/unictype/property-ideographic: New file.
63692         * modules/unictype/property-unified-ideograph: New file.
63693         * modules/unictype/property-radical: New file.
63694         * modules/unictype/property-ids-binary-operator: New file.
63695         * modules/unictype/property-ids-trinary-operator: New file.
63696         * modules/unictype/property-zero-width: New file.
63697         * modules/unictype/property-space: New file.
63698         * modules/unictype/property-non-break: New file.
63699         * modules/unictype/property-iso-control: New file.
63700         * modules/unictype/property-format-control: New file.
63701         * modules/unictype/property-dash: New file.
63702         * modules/unictype/property-hyphen: New file.
63703         * modules/unictype/property-punctuation: New file.
63704         * modules/unictype/property-line-separator: New file.
63705         * modules/unictype/property-paragraph-separator: New file.
63706         * modules/unictype/property-quotation-mark: New file.
63707         * modules/unictype/property-sentence-terminal: New file.
63708         * modules/unictype/property-terminal-punctuation: New file.
63709         * modules/unictype/property-currency-symbol: New file.
63710         * modules/unictype/property-math: New file.
63711         * modules/unictype/property-other-math: New file.
63712         * modules/unictype/property-paired-punctuation: New file.
63713         * modules/unictype/property-left-of-pair: New file.
63714         * modules/unictype/property-combining: New file.
63715         * modules/unictype/property-composite: New file.
63716         * modules/unictype/property-decimal-digit: New file.
63717         * modules/unictype/property-numeric: New file.
63718         * modules/unictype/property-diacritic: New file.
63719         * modules/unictype/property-extender: New file.
63720         * modules/unictype/property-ignorable-control: New file.
63721         * modules/unictype/property-test: New file.
63722         * modules/unictype/property-byname: New file.
63723         * modules/unictype/property-all: New file.
63724         * modules/unictype/scripts: New file.
63725         * modules/unictype/scripts-all: New file.
63726         * modules/unictype/block-of: New file.
63727         * modules/unictype/block-test: New file.
63728         * modules/unictype/block-list: New file.
63729         * modules/unictype/block-all: New file.
63730         * modules/unictype/syntax-c-whitespace: New file.
63731         * modules/unictype/syntax-java-whitespace: New file.
63732         * modules/unictype/syntax-c-ident: New file.
63733         * modules/unictype/syntax-java-ident: New file.
63734         * modules/unictype/ctype-alnum: New file.
63735         * modules/unictype/ctype-alpha: New file.
63736         * modules/unictype/ctype-cntrl: New file.
63737         * modules/unictype/ctype-digit: New file.
63738         * modules/unictype/ctype-graph: New file.
63739         * modules/unictype/ctype-lower: New file.
63740         * modules/unictype/ctype-print: New file.
63741         * modules/unictype/ctype-punct: New file.
63742         * modules/unictype/ctype-space: New file.
63743         * modules/unictype/ctype-upper: New file.
63744         * modules/unictype/ctype-xdigit: New file.
63745         * modules/unictype/ctype-blank: New file.
63746         * lib/unictype/bidi_byname.c: New file.
63747         * lib/unictype/bidi_name.c: New file.
63748         * lib/unictype/bidi_of.c: New file.
63749         * lib/unictype/bidi_test.c: New file.
63750         * lib/unictype/bitmap.h: New file.
63751         * lib/unictype/block_test.c: New file.
63752         * lib/unictype/blocks.c: New file.
63753         * lib/unictype/categ_C.c: New file.
63754         * lib/unictype/categ_Cc.c: New file.
63755         * lib/unictype/categ_Cf.c: New file.
63756         * lib/unictype/categ_Cn.c: New file.
63757         * lib/unictype/categ_Co.c: New file.
63758         * lib/unictype/categ_Cs.c: New file.
63759         * lib/unictype/categ_L.c: New file.
63760         * lib/unictype/categ_Ll.c: New file.
63761         * lib/unictype/categ_Lm.c: New file.
63762         * lib/unictype/categ_Lo.c: New file.
63763         * lib/unictype/categ_Lt.c: New file.
63764         * lib/unictype/categ_Lu.c: New file.
63765         * lib/unictype/categ_M.c: New file.
63766         * lib/unictype/categ_Mc.c: New file.
63767         * lib/unictype/categ_Me.c: New file.
63768         * lib/unictype/categ_Mn.c: New file.
63769         * lib/unictype/categ_N.c: New file.
63770         * lib/unictype/categ_Nd.c: New file.
63771         * lib/unictype/categ_Nl.c: New file.
63772         * lib/unictype/categ_No.c: New file.
63773         * lib/unictype/categ_P.c: New file.
63774         * lib/unictype/categ_Pc.c: New file.
63775         * lib/unictype/categ_Pd.c: New file.
63776         * lib/unictype/categ_Pe.c: New file.
63777         * lib/unictype/categ_Pf.c: New file.
63778         * lib/unictype/categ_Pi.c: New file.
63779         * lib/unictype/categ_Po.c: New file.
63780         * lib/unictype/categ_Ps.c: New file.
63781         * lib/unictype/categ_S.c: New file.
63782         * lib/unictype/categ_Sc.c: New file.
63783         * lib/unictype/categ_Sk.c: New file.
63784         * lib/unictype/categ_Sm.c: New file.
63785         * lib/unictype/categ_So.c: New file.
63786         * lib/unictype/categ_Z.c: New file.
63787         * lib/unictype/categ_Zl.c: New file.
63788         * lib/unictype/categ_Zp.c: New file.
63789         * lib/unictype/categ_Zs.c: New file.
63790         * lib/unictype/categ_and.c: New file.
63791         * lib/unictype/categ_and_not.c: New file.
63792         * lib/unictype/categ_byname.c: New file.
63793         * lib/unictype/categ_name.c: New file.
63794         * lib/unictype/categ_none.c: New file.
63795         * lib/unictype/categ_of.c: New file.
63796         * lib/unictype/categ_or.c: New file.
63797         * lib/unictype/categ_test.c: New file.
63798         * lib/unictype/combining.c: New file.
63799         * lib/unictype/ctype_alnum.c: New file.
63800         * lib/unictype/ctype_alpha.c: New file.
63801         * lib/unictype/ctype_blank.c: New file.
63802         * lib/unictype/ctype_cntrl.c: New file.
63803         * lib/unictype/ctype_digit.c: New file.
63804         * lib/unictype/ctype_graph.c: New file.
63805         * lib/unictype/ctype_lower.c: New file.
63806         * lib/unictype/ctype_print.c: New file.
63807         * lib/unictype/ctype_punct.c: New file.
63808         * lib/unictype/ctype_space.c: New file.
63809         * lib/unictype/ctype_upper.c: New file.
63810         * lib/unictype/ctype_xdigit.c: New file.
63811         * lib/unictype/decdigit.c: New file.
63812         * lib/unictype/digit.c: New file.
63813         * lib/unictype/identsyntaxmap.h: New file.
63814         * lib/unictype/mirror.c: New file.
63815         * lib/unictype/numeric.c: New file.
63816         * lib/unictype/pr_alphabetic.c: New file.
63817         * lib/unictype/pr_ascii_hex_digit.c: New file.
63818         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63819         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63820         * lib/unictype/pr_bidi_block_separator.c: New file.
63821         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63822         * lib/unictype/pr_bidi_common_separator.c: New file.
63823         * lib/unictype/pr_bidi_control.c: New file.
63824         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63825         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63826         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63827         * lib/unictype/pr_bidi_european_digit.c: New file.
63828         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63829         * lib/unictype/pr_bidi_left_to_right.c: New file.
63830         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63831         * lib/unictype/pr_bidi_other_neutral.c: New file.
63832         * lib/unictype/pr_bidi_pdf.c: New file.
63833         * lib/unictype/pr_bidi_segment_separator.c: New file.
63834         * lib/unictype/pr_bidi_whitespace.c: New file.
63835         * lib/unictype/pr_byname.c: New file.
63836         * lib/unictype/pr_byname.gperf: New file.
63837         * lib/unictype/pr_combining.c: New file.
63838         * lib/unictype/pr_composite.c: New file.
63839         * lib/unictype/pr_currency_symbol.c: New file.
63840         * lib/unictype/pr_dash.c: New file.
63841         * lib/unictype/pr_decimal_digit.c: New file.
63842         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63843         * lib/unictype/pr_deprecated.c: New file.
63844         * lib/unictype/pr_diacritic.c: New file.
63845         * lib/unictype/pr_extender.c: New file.
63846         * lib/unictype/pr_format_control.c: New file.
63847         * lib/unictype/pr_grapheme_base.c: New file.
63848         * lib/unictype/pr_grapheme_extend.c: New file.
63849         * lib/unictype/pr_grapheme_link.c: New file.
63850         * lib/unictype/pr_hex_digit.c: New file.
63851         * lib/unictype/pr_hyphen.c: New file.
63852         * lib/unictype/pr_id_continue.c: New file.
63853         * lib/unictype/pr_id_start.c: New file.
63854         * lib/unictype/pr_ideographic.c: New file.
63855         * lib/unictype/pr_ids_binary_operator.c: New file.
63856         * lib/unictype/pr_ids_trinary_operator.c: New file.
63857         * lib/unictype/pr_ignorable_control.c: New file.
63858         * lib/unictype/pr_iso_control.c: New file.
63859         * lib/unictype/pr_join_control.c: New file.
63860         * lib/unictype/pr_left_of_pair.c: New file.
63861         * lib/unictype/pr_line_separator.c: New file.
63862         * lib/unictype/pr_logical_order_exception.c: New file.
63863         * lib/unictype/pr_lowercase.c: New file.
63864         * lib/unictype/pr_math.c: New file.
63865         * lib/unictype/pr_non_break.c: New file.
63866         * lib/unictype/pr_not_a_character.c: New file.
63867         * lib/unictype/pr_numeric.c: New file.
63868         * lib/unictype/pr_other_alphabetic.c: New file.
63869         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63870         * lib/unictype/pr_other_grapheme_extend.c: New file.
63871         * lib/unictype/pr_other_id_continue.c: New file.
63872         * lib/unictype/pr_other_id_start.c: New file.
63873         * lib/unictype/pr_other_lowercase.c: New file.
63874         * lib/unictype/pr_other_math.c: New file.
63875         * lib/unictype/pr_other_uppercase.c: New file.
63876         * lib/unictype/pr_paired_punctuation.c: New file.
63877         * lib/unictype/pr_paragraph_separator.c: New file.
63878         * lib/unictype/pr_pattern_syntax.c: New file.
63879         * lib/unictype/pr_pattern_white_space.c: New file.
63880         * lib/unictype/pr_private_use.c: New file.
63881         * lib/unictype/pr_punctuation.c: New file.
63882         * lib/unictype/pr_quotation_mark.c: New file.
63883         * lib/unictype/pr_radical.c: New file.
63884         * lib/unictype/pr_sentence_terminal.c: New file.
63885         * lib/unictype/pr_soft_dotted.c: New file.
63886         * lib/unictype/pr_space.c: New file.
63887         * lib/unictype/pr_terminal_punctuation.c: New file.
63888         * lib/unictype/pr_test.c: New file.
63889         * lib/unictype/pr_titlecase.c: New file.
63890         * lib/unictype/pr_unassigned_code_value.c: New file.
63891         * lib/unictype/pr_unified_ideograph.c: New file.
63892         * lib/unictype/pr_uppercase.c: New file.
63893         * lib/unictype/pr_variation_selector.c: New file.
63894         * lib/unictype/pr_white_space.c: New file.
63895         * lib/unictype/pr_xid_continue.c: New file.
63896         * lib/unictype/pr_xid_start.c: New file.
63897         * lib/unictype/pr_zero_width.c: New file.
63898         * lib/unictype/scripts.c: New file.
63899         * lib/unictype/sy_c_ident.c: New file.
63900         * lib/unictype/sy_c_whitespace.c: New file.
63901         * lib/unictype/sy_java_ident.c: New file.
63902         * lib/unictype/sy_java_whitespace.c: New file.
63903
63904         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63905         Unicode 5.0.0.
63906         * lib/unictype/blocks.h: Likewise.
63907         * lib/unictype/categ_C.h: Likewise.
63908         * lib/unictype/categ_Cc.h: Likewise.
63909         * lib/unictype/categ_Cf.h: Likewise.
63910         * lib/unictype/categ_Cn.h: Likewise.
63911         * lib/unictype/categ_Co.h: Likewise.
63912         * lib/unictype/categ_Cs.h: Likewise.
63913         * lib/unictype/categ_L.h: Likewise.
63914         * lib/unictype/categ_Ll.h: Likewise.
63915         * lib/unictype/categ_Lm.h: Likewise.
63916         * lib/unictype/categ_Lo.h: Likewise.
63917         * lib/unictype/categ_Lt.h: Likewise.
63918         * lib/unictype/categ_Lu.h: Likewise.
63919         * lib/unictype/categ_M.h: Likewise.
63920         * lib/unictype/categ_Mc.h: Likewise.
63921         * lib/unictype/categ_Me.h: Likewise.
63922         * lib/unictype/categ_Mn.h: Likewise.
63923         * lib/unictype/categ_N.h: Likewise.
63924         * lib/unictype/categ_Nd.h: Likewise.
63925         * lib/unictype/categ_Nl.h: Likewise.
63926         * lib/unictype/categ_No.h: Likewise.
63927         * lib/unictype/categ_P.h: Likewise.
63928         * lib/unictype/categ_Pc.h: Likewise.
63929         * lib/unictype/categ_Pd.h: Likewise.
63930         * lib/unictype/categ_Pe.h: Likewise.
63931         * lib/unictype/categ_Pf.h: Likewise.
63932         * lib/unictype/categ_Pi.h: Likewise.
63933         * lib/unictype/categ_Po.h: Likewise.
63934         * lib/unictype/categ_Ps.h: Likewise.
63935         * lib/unictype/categ_S.h: Likewise.
63936         * lib/unictype/categ_Sc.h: Likewise.
63937         * lib/unictype/categ_Sk.h: Likewise.
63938         * lib/unictype/categ_Sm.h: Likewise.
63939         * lib/unictype/categ_So.h: Likewise.
63940         * lib/unictype/categ_Z.h: Likewise.
63941         * lib/unictype/categ_Zl.h: Likewise.
63942         * lib/unictype/categ_Zp.h: Likewise.
63943         * lib/unictype/categ_Zs.h: Likewise.
63944         * lib/unictype/categ_of.h: Likewise.
63945         * lib/unictype/combining.h: Likewise.
63946         * lib/unictype/ctype_alnum.h: Likewise.
63947         * lib/unictype/ctype_alpha.h: Likewise.
63948         * lib/unictype/ctype_blank.h: Likewise.
63949         * lib/unictype/ctype_cntrl.h: Likewise.
63950         * lib/unictype/ctype_digit.h: Likewise.
63951         * lib/unictype/ctype_graph.h: Likewise.
63952         * lib/unictype/ctype_lower.h: Likewise.
63953         * lib/unictype/ctype_print.h: Likewise.
63954         * lib/unictype/ctype_punct.h: Likewise.
63955         * lib/unictype/ctype_space.h: Likewise.
63956         * lib/unictype/ctype_upper.h: Likewise.
63957         * lib/unictype/ctype_xdigit.h: Likewise.
63958         * lib/unictype/decdigit.h: Likewise.
63959         * lib/unictype/digit.h: Likewise.
63960         * lib/unictype/mirror.h: Likewise.
63961         * lib/unictype/numeric.h: Likewise.
63962         * lib/unictype/pr_alphabetic.h: Likewise.
63963         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63964         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63965         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63966         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63967         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63968         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63969         * lib/unictype/pr_bidi_control.h: Likewise.
63970         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63971         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63972         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63973         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63974         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63975         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63976         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63977         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63978         * lib/unictype/pr_bidi_pdf.h: Likewise.
63979         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63980         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63981         * lib/unictype/pr_combining.h: Likewise.
63982         * lib/unictype/pr_composite.h: Likewise.
63983         * lib/unictype/pr_currency_symbol.h: Likewise.
63984         * lib/unictype/pr_dash.h: Likewise.
63985         * lib/unictype/pr_decimal_digit.h: Likewise.
63986         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63987         * lib/unictype/pr_deprecated.h: Likewise.
63988         * lib/unictype/pr_diacritic.h: Likewise.
63989         * lib/unictype/pr_extender.h: Likewise.
63990         * lib/unictype/pr_format_control.h: Likewise.
63991         * lib/unictype/pr_grapheme_base.h: Likewise.
63992         * lib/unictype/pr_grapheme_extend.h: Likewise.
63993         * lib/unictype/pr_grapheme_link.h: Likewise.
63994         * lib/unictype/pr_hex_digit.h: Likewise.
63995         * lib/unictype/pr_hyphen.h: Likewise.
63996         * lib/unictype/pr_id_continue.h: Likewise.
63997         * lib/unictype/pr_id_start.h: Likewise.
63998         * lib/unictype/pr_ideographic.h: Likewise.
63999         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64000         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64001         * lib/unictype/pr_ignorable_control.h: Likewise.
64002         * lib/unictype/pr_iso_control.h: Likewise.
64003         * lib/unictype/pr_join_control.h: Likewise.
64004         * lib/unictype/pr_left_of_pair.h: Likewise.
64005         * lib/unictype/pr_line_separator.h: Likewise.
64006         * lib/unictype/pr_logical_order_exception.h: Likewise.
64007         * lib/unictype/pr_lowercase.h: Likewise.
64008         * lib/unictype/pr_math.h: Likewise.
64009         * lib/unictype/pr_non_break.h: Likewise.
64010         * lib/unictype/pr_not_a_character.h: Likewise.
64011         * lib/unictype/pr_numeric.h: Likewise.
64012         * lib/unictype/pr_other_alphabetic.h: Likewise.
64013         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64014         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64015         * lib/unictype/pr_other_id_continue.h: Likewise.
64016         * lib/unictype/pr_other_id_start.h: Likewise.
64017         * lib/unictype/pr_other_lowercase.h: Likewise.
64018         * lib/unictype/pr_other_math.h: Likewise.
64019         * lib/unictype/pr_other_uppercase.h: Likewise.
64020         * lib/unictype/pr_paired_punctuation.h: Likewise.
64021         * lib/unictype/pr_paragraph_separator.h: Likewise.
64022         * lib/unictype/pr_pattern_syntax.h: Likewise.
64023         * lib/unictype/pr_pattern_white_space.h: Likewise.
64024         * lib/unictype/pr_private_use.h: Likewise.
64025         * lib/unictype/pr_punctuation.h: Likewise.
64026         * lib/unictype/pr_quotation_mark.h: Likewise.
64027         * lib/unictype/pr_radical.h: Likewise.
64028         * lib/unictype/pr_sentence_terminal.h: Likewise.
64029         * lib/unictype/pr_soft_dotted.h: Likewise.
64030         * lib/unictype/pr_space.h: Likewise.
64031         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64032         * lib/unictype/pr_titlecase.h: Likewise.
64033         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64034         * lib/unictype/pr_unified_ideograph.h: Likewise.
64035         * lib/unictype/pr_uppercase.h: Likewise.
64036         * lib/unictype/pr_variation_selector.h: Likewise.
64037         * lib/unictype/pr_white_space.h: Likewise.
64038         * lib/unictype/pr_xid_continue.h: Likewise.
64039         * lib/unictype/pr_xid_start.h: Likewise.
64040         * lib/unictype/pr_zero_width.h: Likewise.
64041         * lib/unictype/scripts.h: Likewise.
64042         * lib/unictype/scripts_byname.gperf: Likewise.
64043         * lib/unictype/sy_c_ident.h: Likewise.
64044         * lib/unictype/sy_c_whitespace.h: Likewise.
64045         * lib/unictype/sy_java_ident.h: Likewise.
64046         * lib/unictype/sy_java_whitespace.h: Likewise.
64047
64048         * lib/unictype/Makefile: New file.
64049         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64050         glibc.
64051         * lib/unictype/3level.h: New file, copied from glibc.
64052         * lib/unictype/3levelbit.h: New file.
64053
64054 2007-11-11  Bruno Haible  <bruno@clisp.org>
64055
64056         * modules/gperf: New file.
64057         * modules/iconv_open (Depends-on): Add it.
64058         (Makefile.am): Remove the GPERF definition.
64059
64060 2007-11-11  Bruno Haible  <bruno@clisp.org>
64061
64062         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64063         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64064
64065 2007-11-11  Bruno Haible  <bruno@clisp.org>
64066
64067         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64068         (usage): Remove function.
64069
64070 2007-11-11  Bruno Haible  <bruno@clisp.org>
64071
64072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64073         gl_FUNC_CEILF_LIBS.
64074         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64075         gl_FUNC_CEIL_LIBS.
64076         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64077         gl_FUNC_CEILL_LIBS.
64078         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64079         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64080         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64081
64082 2007-11-11  Bruno Haible  <bruno@clisp.org>
64083
64084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64085         roundf were declared but do not exist on functions.
64086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64087         roundl were declared but do not exist on functions.
64088         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64089         HAVE_FLOORL_AND_CEILL, respectively.
64090         Needed for Sun C on Solaris 10.
64091
64092 2007-11-11  Bruno Haible  <bruno@clisp.org>
64093
64094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64095         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64096         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64097         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64098         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64099         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64100         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64101         HAVE_DECL_ROUNDF.
64102         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64103         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64105         of HAVE_DECL_ROUND*.
64106         * modules/math (Makefile.am): Update.
64107
64108 2007-11-10  Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64111         ptrdiff_t as m4/intl.m4.
64112
64113 2007-11-10  Jim Meyering  <meyering@redhat.com>
64114
64115         Avoid link failure for the argmatch test.
64116         * tests/test-argmatch.c (usage): Define function to avoid a link
64117         failure: argmatch_die requires a usage function.
64118
64119 2007-11-09  Bruno Haible  <bruno@clisp.org>
64120
64121         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64122         * doc/functions/vsnprintf.texi: Likewise.
64123         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64124         with a size argument < 2.
64125
64126 2007-11-09  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64129         buffer. Fixes an inefficiency introduced on 2007-11-03.
64130
64131 2007-11-09  Bruno Haible  <bruno@clisp.org>
64132
64133         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64134         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64135
64136 2007-11-08  Jim Meyering  <meyering@redhat.com>
64137
64138         Change cache variable name prefix "jm_" to "gl_" everywhere.
64139         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64140         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64141         * m4/uptime.m4: s/gl_/jm_/
64142
64143 2007-11-07  Bruno Haible  <bruno@clisp.org>
64144
64145         Update to GNU gettext 0.17.
64146         * m4/intl.m4: Update to GNU gettext 0.17.
64147         * m4/po.m4: Likewise.
64148         * modules/gettext (Files): Remove m4/ulonglong.m4.
64149         (configure.ac): Require gettext infrastructure from version 0.17.
64150
64151 2007-11-06  Bruno Haible  <bruno@clisp.org>
64152
64153         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64154         symbolic values are not defined in a public header.
64155         * lib/freadable.c (freadable) [QNX]: Likewise.
64156         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64157         * lib/freading.c (freading) [QNX]: Likewise.
64158         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64159         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64160         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64161         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64162         Reported by Alain Magloire.
64163
64164         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64165
64166 2007-11-05  Bruno Haible  <bruno@clisp.org>
64167
64168         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64169         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64170         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64171         Reported by Eric Blake.
64172
64173 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64174             Bruno Haible  <bruno@clisp.org>
64175
64176         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64177         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64178         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64179         (malloc): Undefine also before including <stdlib.h>.
64180         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64181         Needed on OSF/1 4.0.
64182
64183 2007-11-05  Jim Meyering  <meyering@redhat.com>
64184
64185         git-version-gen: sync from coreutils.
64186         * build-aux/git-version-gen: Add comments.
64187         Change the first '-' to '.' in the snapshot version string,
64188         e.g., 6.9-377-08144 -> 6.9.377-08144
64189         Remove first parameter.
64190         Don't declare a version "-dirty" merely because a time
64191         stamp has changed.
64192
64193 2007-11-04  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/lock.h: Protect all macro definitions containing an 'if'
64196         statement through a "do { ... } while (0)".
64197         * lib/tls.h: Likewise.
64198
64199 2007-11-04  Bruno Haible  <bruno@clisp.org>
64200
64201         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64202
64203 2007-11-04  Bruno Haible  <bruno@clisp.org>
64204
64205         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64206         * modules/fprintf-posix (Depends-on): Add nocrash.
64207         * modules/snprintf-posix (Depends-on): Likewise.
64208         * modules/sprintf-posix (Depends-on): Likewise.
64209         * modules/vasnprintf-posix (Depends-on): Likewise.
64210         * modules/vasprintf-posix (Depends-on): Likewise.
64211         * modules/vfprintf-posix (Depends-on): Likewise.
64212         * modules/vsnprintf-posix (Depends-on): Likewise.
64213         * modules/vsprintf-posix (Depends-on): Likewise.
64214         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64215         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64216         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64217         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64218         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64219         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64220         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64221
64222 2007-11-04  Bruno Haible  <bruno@clisp.org>
64223
64224         * modules/nocrash: New file.
64225         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64226         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64227
64228 2007-11-04  Bruno Haible  <bruno@clisp.org>
64229
64230         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64231         precision handling.
64232         * tests/test-vasprintf-posix.c (test_function): Likewise.
64233         * tests/test-snprintf-posix.h (test_function): Likewise.
64234         * tests/test-sprintf-posix.h (test_function): Likewise.
64235
64236         Fix *printf behaviour for large precisions on mingw and BeOS.
64237         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64238         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64240         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64242         gl_PRINTF_PRECISION and test its result. Invoke
64243         gl_PREREQ_VASNPRINTF_PRECISION.
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         * doc/functions/fprintf.texi: Update.
64252         * doc/functions/printf.texi: Update.
64253         * doc/functions/snprintf.texi: Update.
64254         * doc/functions/sprintf.texi: Update.
64255         * doc/functions/vfprintf.texi: Update.
64256         * doc/functions/vprintf.texi: Update.
64257         * doc/functions/vsnprintf.texi: Update.
64258         * doc/functions/vsprintf.texi: Update.
64259
64260 2007-11-04  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64263
64264 2007-11-04  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64267         Reported by Sylvain Beucler <beuc@gnu.org>.
64268
64269 2007-11-03  Bruno Haible  <bruno@clisp.org>
64270
64271         * tests/test-fprintf-posix2.sh: New file.
64272         * tests/test-fprintf-posix2.c: New file.
64273         * modules/fprintf-posix-tests (Files): Add them.
64274         (TESTS): Add test-fprintf-posix2.sh.
64275         (configure.ac): Check for getrlimit and setrlimit.
64276         (check_PROGRAMS): Add test-fprintf-posix2.
64277
64278         * tests/test-printf-posix2.sh: New file.
64279         * tests/test-printf-posix2.c: New file.
64280         * modules/printf-posix-tests (Files): Add them.
64281         (TESTS): Add test-printf-posix2.sh.
64282         (configure.ac): Check for getrlimit and setrlimit.
64283         (check_PROGRAMS): Add test-printf-posix2.
64284
64285         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64286         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64287         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64288         (decode_double): New function, copied from decode_long_double.
64289         (scale10_round_decimal_decoded): New function, extracted from
64290         scale10_round_decimal_long_double.
64291         (scale10_round_decimal_long_double): Use it.
64292         (scale10_round_decimal_double): New function.
64293         (floorlog10): New function.
64294         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64296         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64298         gl_PRINTF_ENOMEM and test its result. Invoke
64299         gl_PREREQ_VASNPRINTF_ENOMEM.
64300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64307         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64308         * modules/snprintf-posix (Depends-on): Likewise.
64309         * modules/sprintf-posix (Depends-on): Likewise.
64310         * modules/vasnprintf-posix (Depends-on): Likewise.
64311         * modules/vasprintf-posix (Depends-on): Likewise.
64312         * modules/vfprintf-posix (Depends-on): Likewise.
64313         * modules/vsnprintf-posix (Depends-on): Likewise.
64314         * modules/vsprintf-posix (Depends-on): Likewise.
64315         * doc/functions/fprintf.texi: Update.
64316         * doc/functions/printf.texi: Update.
64317         * doc/functions/snprintf.texi: Update.
64318         * doc/functions/sprintf.texi: Update.
64319         * doc/functions/vfprintf.texi: Update.
64320         * doc/functions/vprintf.texi: Update.
64321         * doc/functions/vsnprintf.texi: Update.
64322         * doc/functions/vsprintf.texi: Update.
64323
64324 2007-11-03  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/frexp-nolibm-tests: New file.
64327
64328         * modules/frexp-nolibm: New file.
64329         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64330
64331 2007-11-03  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64334         value is C99 compliant.
64335         Needed for OSF/1 5.1.
64336
64337 2007-11-03  Bruno Haible  <bruno@clisp.org>
64338
64339         Fix out-of-memory handling of vasnprintf.
64340         * lib/printf-parse.c: Include <errno.h>.
64341         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64342         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64343         is already set.
64344
64345 2007-11-02  Eric Blake  <ebb9@byu.net>
64346
64347         Fix tests on cygwin.
64348         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64349
64350 2007-11-01  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64353         warning.
64354         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64355         needed for POSIX compatibility.
64356
64357 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64360         for compatibility with GNU.
64361
64362 2007-11-01  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64365         (putenv): Renamed from rpl_putenv. Change argument type from
64366         'const char *' to 'char *'.
64367         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64368         of defining putenv in config.h, just set REPLACE_PUTENV.
64369         * modules/putenv (Depends-on): Add stdlib.
64370         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64371         (Include): Use <stdlib.h>.
64372         * lib/stdlib.in.h (putenv): New declaration.
64373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64374         REPLACE_PUTENV.
64375         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64376         REPLACE_PUTENV.
64377         Needed for MacOS X 10.5.0.
64378         Reported by Peter O'Gorman <peter@pogma.com>.
64379
64380 2007-11-01  Jim Meyering  <meyering@redhat.com>
64381
64382         Treat an empty date string exactly like "0".
64383         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64384         if the remaining date string (to be parsed) is empty, use "0".
64385         Reported by Mischa Molhoek and discussed in this thread:
64386         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64387
64388 2007-10-31  Bruno Haible  <bruno@clisp.org>
64389
64390         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64391         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64392         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64393         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64394         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64395         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64396
64397 2007-10-31  Bruno Haible  <bruno@clisp.org>
64398
64399         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64400         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64401         (AC_TYPE_LONG_LONG_INT): Use it.
64402         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64403         it as well.
64404         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64405         to m4/longlong.m4.
64406         * modules/stdint (Files): Remove m4/ulonglong.m4.
64407         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64408         m4/ulonglong.m4.
64409         * modules/strtoumax (Files): Likewise.
64410
64411 2007-10-30  Bruno Haible  <bruno@clisp.org>
64412
64413         * modules/xvasprintf-posix: New file.
64414         Suggested by Eric Blake.
64415
64416 2007-10-30  Bruno Haible  <bruno@clisp.org>
64417
64418         * modules/xprintf-posix-tests: New file.
64419         * tests/test-xprintf-posix.sh: New file.
64420         * tests/test-xprintf-posix.c: New file.
64421         * tests/test-xfprintf-posix.c: New file.
64422
64423         * modules/xprintf-posix: New file.
64424
64425 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64426
64427         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64428         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64429         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64430
64431 2007-10-29  Bruno Haible  <bruno@clisp.org>
64432
64433         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64434         contain the special marker '_cv_'.
64435         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64436         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64437         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64438         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64439         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64440         Reported by Ralf Wildenhues.
64441
64442 2007-10-29  Bruno Haible  <bruno@clisp.org>
64443
64444         * gnulib-tool (func_import): When --lgpl is not specified, set
64445         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64446         GPLv3.
64447         Reported by Simon Josefsson.
64448
64449 2007-10-28  Bruno Haible  <bruno@clisp.org>
64450
64451         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64452         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64453         HAVE_DECL_ISFINITE.
64454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64455         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64456         HAVE_DECL_ISFINITE.
64457
64458 2007-10-28  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64461         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64462
64463 2007-10-28  Bruno Haible  <bruno@clisp.org>
64464
64465         Fix link errors with Sun C 5.0 on Solaris 10.
64466         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64467         function is declared but not present in the compiler's libm.
64468         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64469         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64470         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64471         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64472         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64473         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64474         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64476         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64477         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64478         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64479         HAVE_DECL_FLOORL.
64480
64481 2007-10-28  Bruno Haible  <bruno@clisp.org>
64482
64483         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64484         gl_FUNC_FLOORL. Cache the result.
64485         (gl_FUNC_FLOORL): Use it.
64486         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64487         gl_FUNC_CEILL. Cache the result.
64488         (gl_FUNC_CEILL): Use it.
64489
64490         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64491         gl_FUNC_FLOOR. Cache the result.
64492         (gl_FUNC_FLOOR): Use it.
64493         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64494         gl_FUNC_CEIL. Cache the result.
64495         (gl_FUNC_CEIL): Use it.
64496
64497         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64498         gl_FUNC_FLOORF. Cache the result.
64499         (gl_FUNC_FLOORF): Use it.
64500         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64501         gl_FUNC_CEILF. Cache the result.
64502         (gl_FUNC_CEILF): Use it.
64503
64504 2007-10-28  Bruno Haible  <bruno@clisp.org>
64505
64506         * gnulib-tool: Allow specifying the LGPL version number through
64507         --lgpl=2 or --lgpl=3.
64508         (func_usage): Document --lgpl with argument.
64509         Handle --lgpl=... arguments.
64510         (func_import): Recognize also gl_LGPL calls with an argument. When
64511         --lgpl=2 is used and the module's license is just LGPL, report an
64512         error. Set sed_transform_lib_file according to the lgpl variable. In
64513         the generated files, use --lgpl or gl_LGPL invocations with argument,
64514         if necessary.
64515         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64516         an LGPv2+ license.
64517         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64518         gl_LGPL macro.
64519
64520 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64521             Bruno Haible  <bruno@clisp.org>
64522
64523         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64524         (u16_uctomb_aux): Likewise.
64525         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64526         !HAVE_INLINE.
64527         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64528
64529 2007-10-28  Bruno Haible  <bruno@clisp.org>
64530
64531         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64532         Invoke AM_GETTEXT_OPTION if it exists.
64533         * modules/vasprintf: Likewise.
64534         * modules/verror: Likewise.
64535         * modules/xprintf: Likewise.
64536         * modules/xvasprintf: Likewise.
64537
64538 2007-10-27  Ben Pfaff  <blp@gnu.org>
64539
64540         * lib/math.in.h: Define isfinite macro and prototypes for
64541         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64542         implementations.
64543         * m4/math_h.m4: New substitutions for isfinite module.
64544         * lib/isfinite.c: New file.
64545         * m4/isfinite.m4: New file.
64546         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64547         * modules/isfinite: New file.
64548         * modules/isfinite-tests: New file.
64549         * tests/tests-isfinite.c: New file.
64550         * doc/functions/isfinite.texi: Mention isfinite module.
64551         * MODULES.html.sh: Mention new module.
64552
64553 2007-10-27  Ben Pfaff  <blp@gnu.org>
64554
64555         Ralf Wildenhues reported that Tru64 4.0D declares the round
64556         functions but does not have definitions.
64557         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64558         cannot be found in any library, set the output variable to
64559         "missing" instead of "".
64560         * m4/round.m4: Also use our substitute if we cannot find round in
64561         any library, even if it is declared.
64562         * m4/roundf.m4: Likewise for roundf.
64563         * m4/roundl.m4: Likewise for roundl.
64564         * lib/math.in.h: Undefine roundf, round, roundl before defining
64565         their replacements, to allow for hypothetical systems where these
64566         may be defined as macros but not available in libraries.
64567
64568 2007-10-27  Bruno Haible  <bruno@clisp.org>
64569
64570         * doc/gnulib.texi: Invoke @firstparagraphindent.
64571         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64572         changes in gnulib.
64573         (Source changes): New section.
64574
64575 2007-10-26  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64578         borrowed from autoconf.
64579
64580 2007-10-26  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64583         strerror returned the empty string. Needed on HP-UX 11.00.
64584
64585 2007-10-24  Micah Cowan  <micah@cowan.name>
64586
64587         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64588         * build-aux/bootstrap: Remove support for now-unnecessary option,
64589         --cvs-user, and envvars CVS_USER, CVS_RSH.
64590
64591 2007-10-24  Jim Meyering  <meyering@redhat.com>
64592
64593         Avoid diagnostics from sha1sum when there is no cached checksum.
64594         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64595         if the po.s1 file hasn't been created yet.
64596
64597         * build-aux/bootstrap: Sync from coreutils:
64598         2007-10-24  Jim Meyering  <meyering@redhat.com>
64599         Get gnulib from the git repository, not from an obsolete cvs one.
64600         * build-aux/bootstrap: Suggestion from Micah Cowan.
64601         2007-10-04  Jim Meyering  <jim@meyering.net>
64602         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64603         (update_po_files): Work also when there are no .po files in po/.
64604
64605 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64606
64607         * README: Append ".git" to git and cg examples.
64608         Problem reported by Benoit Sigoure.
64609
64610 2007-10-23  Micah Cowan  <micah@cowan.name>
64611
64612         * users.txt: Add wget.
64613
64614 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64615
64616         Fix linking of some unistdio tests on FreeBSD.
64617         * modules/unistdio/u16-vsnprintf-tests
64618         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64619         * modules/unistdio/u16-vsprintf-tests
64620         (test_u16_vsnprintf1_LDADD): Likewise.
64621         * modules/unistdio/u32-vsnprintf-tests
64622         (test_u32_vsnprintf1_LDADD): Likewise.
64623         * modules/unistdio/u32-vsprintf-tests
64624         (test_u32_vsprintf1_LDADD): Likewise.
64625         * modules/unistdio/u8-vsnprintf-tests
64626         (test_u8_vsnprintf1_LDADD): Likewise.
64627         * modules/unistdio/u8-vsprintf-tests
64628         (test_u8_vsprintf1_LDADD): Likewise.
64629         * modules/unistdio/ulc-vsnprintf-tests
64630         (test_ulc_vsnprintf1_LDADD): Likewise.
64631         * modules/unistdio/ulc-vsprintf-tests
64632         (test_ulc_vsprintf1_LDADD): Likewise.
64633
64634         Fix linking of some uniconv tests on FreeBSD.
64635         * modules/uniconv/u16-conv-from-enc-tests
64636         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64637         * modules/uniconv/u16-conv-to-enc-tests
64638         (test_u16_conv_to_enc_LDADD): Likewise.
64639         * modules/uniconv/u16-strconv-from-enc-tests
64640         (test_u16_strconv_from_enc_LDADD): Likewise.
64641         * modules/uniconv/u16-strconv-to-enc-tests
64642         (test_u16_strconv_to_enc_LDADD): Likewise.
64643         * modules/uniconv/u32-conv-from-enc-tests
64644         (test_u32_conv_from_enc_LDADD): Likewise.
64645         * modules/uniconv/u32-conv-to-enc-tests
64646         (test_u32_conv_to_enc_LDADD): Likewise.
64647         * modules/uniconv/u32-strconv-from-enc-tests
64648         (test_u32_strconv_from_enc_LDADD): Likewise.
64649         * modules/uniconv/u32-strconv-to-enc-tests
64650         (test_u32_strconv_to_enc_LDADD): Likewise.
64651         * modules/uniconv/u8-conv-from-enc-tests
64652         (test_u8_conv_from_enc_LDADD): Likewise.
64653         * modules/uniconv/u8-conv-to-enc-tests
64654         (test_u8_conv_to_enc_LDADD): Likewise.
64655         * modules/uniconv/u8-strconv-from-enc-tests
64656         (test_u8_strconv_from_enc_LDADD): Likewise.
64657         * modules/uniconv/u8-strconv-to-enc-tests
64658         (test_u8_strconv_to_enc_LDADD): Likewise.
64659
64660 2007-10-22  Bruno Haible  <bruno@clisp.org>
64661
64662         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64663         size.
64664
64665 2007-10-22  Eric Blake  <ebb9@byu.net>
64666
64667         Tweak x*printf documentation.
64668         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64669         variable name and comments.
64670         Suggested by Bruno Haible.
64671
64672 2007-10-22  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/acl.c (copy_acl): Fix file name in comment.
64675
64676 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         Fix Tru64 problem with stdbool.h.
64679         * lib/stdbool.in.h (false, true):
64680         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64681         Don't declare as an enum in this situation; it runs afoul of Tru64.
64682         Problem reported by Steven M. Schweda in
64683         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64684
64685 2007-10-22  Eric Blake  <ebb9@byu.net>
64686
64687         Also wrap vf?printf.
64688         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64689         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64690         (xvprintf, xvfprintf): New functions.
64691
64692 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64693
64694         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64695         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64696
64697         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64698         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64699
64700 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64703         by Bruno Haible.
64704
64705 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64706
64707         * lib/getloadavg.c
64708         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64709         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64710
64711         * tests/test-i-ring.c: Work for C89.
64712
64713 2007-10-22  Bruno Haible  <bruno@clisp.org>
64714
64715         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64716         -1u, in preprocessor expression, so that we don't test for the bug
64717         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64719
64720 2007-10-22  Eric Blake  <ebb9@byu.net>
64721
64722         * tests/test-yesno.sh: Silence stderr during test.
64723
64724 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64725
64726         * modules/crypto/gc-camellia: New file.
64727
64728         * m4/gc-camellia.m4: New file.
64729
64730         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64731
64732         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64733
64734 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64735
64736         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64737         --help to stdout.  Reported by sms@antinode.org (Steven
64738         M. Schweda).
64739
64740 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64741
64742         * users.txt: Fix link to libksba.
64743
64744 2007-10-21  Ben Pfaff  <blp@gnu.org>
64745
64746         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64747         round.c roundf implementation that depends on floorf and ceilf to
64748         be tested unconditionally.
64749
64750 2007-10-21  Ben Pfaff  <blp@gnu.org>
64751
64752         * m4/check-libm-func.m4: Removed.
64753         * m4/check-math-lib.m4: New file.
64754         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64755         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64756         definition and lack of AC_LIBOBJ([roundf]).
64757         * m4/roundl.m4: Ditto, and similarly for roundl.
64758         * modules/round: Reference new m4 file.
64759         * modules/roundf: Ditto.
64760         * modules/roundl: Ditto.
64761         * tests/test-round2.c (main): Use ROUND instead of round.
64762         Bug report from Bruno Haible.
64763
64764 2007-10-21  Bruno Haible  <bruno@clisp.org>
64765
64766         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64767         context.
64768
64769 2007-10-21  Bruno Haible  <bruno@clisp.org>
64770
64771         * tests/test-wcwidth.c (main): Allow negative result for some control
64772         characters.
64773
64774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64775         Needed on OSF/1 5.1.
64776
64777 2007-10-21  Bruno Haible  <bruno@clisp.org>
64778
64779         * tests/test-floorf1.c: Include isnanf.h.
64780         (main): Use isnanf() instead of isnan().
64781         * tests/test-ceilf1.c: Include isnanf.h.
64782         (main): Use isnanf() instead of isnan().
64783         * tests/test-truncf1.c: Include isnanf.h.
64784         (main): Use isnanf() instead of isnan().
64785         * tests/test-roundf1.c: Include isnanf.h.
64786         (main): Use isnanf() instead of isnan().
64787
64788 2007-10-21  Eric Blake  <ebb9@byu.net>
64789
64790         * users.txt: Update URL for m4.
64791
64792 2007-10-21  Bruno Haible  <bruno@clisp.org>
64793
64794         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64795
64796 2007-10-21  Bruno Haible  <bruno@clisp.org>
64797
64798         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64799         Git's management files if the CVS files are not present.
64800
64801 2007-10-20  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64804         gcc-3.4.x.
64805
64806 2007-10-20  Ben Pfaff  <blp@gnu.org>
64807
64808         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64809         implementations.
64810         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64811         * lib/round.c: New file.
64812         * lib/roundf.c: New file.
64813         * lib/roundl.c: New file.
64814         * m4/round.m4: New file.
64815         * m4/roundf.m4: New file.
64816         * m4/roundl.m4: New file.
64817         * m4/check-libm-func-m4: New file.
64818         * modules/math: Replace round, roundf, roundl related @VARS@ in
64819         math.in.h.
64820         * modules/round: New file.
64821         * modules/round-tests: New file.
64822         * modules/roundf: New file.
64823         * modules/roundf-tests: New file.
64824         * modules/roundl: New file.
64825         * modules/roundl-tests: New file.
64826         * tests/test-round1.c: New file.
64827         * tests/test-round2.c: New file.
64828         * tests/test-roundf1.c: New file.
64829         * tests/test-roundf2.c: New file.
64830         * tests/test-roundl.c: New file.
64831         * doc/functions/round.texi: Mention round module.
64832         * doc/functions/roundf.texi: Mention roundf module.
64833         * doc/functions/roundl.texi: Mention roundl module.
64834         * MODULES.html.sh: Mention new modules.
64835         Thanks to Bruno Haible for suggestions.
64836
64837 2007-10-20  Jim Meyering  <meyering@redhat.com>
64838
64839         * lib/xprintf.c: Include <config.h> unconditionally.
64840
64841         Change xprintf's license to GPL.
64842         * modules/xprintf (License): s/LGPL/GPL/, since this module
64843         depends on modules (exit and exitfail) which are GPL.
64844         Suggestion from Bruno Haible.
64845
64846         xprintf fixes.
64847         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64848         Use a clearer diagnostic.
64849         Patch from Bruno Haible.
64850
64851 2007-10-20  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64854         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64856
64857 2007-10-20  Bruno Haible  <bruno@clisp.org>
64858
64859         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64860         precision in the comparison result > x - 1 or similar.
64861         * tests/test-ceilf2.c (correct_result_p): Likewise.
64862         * tests/test-truncf2.c (correct_result_p): Likewise.
64863         * tests/test-trunc2.c (correct_result_p): Likewise.
64864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64865
64866 2007-10-20  Bruno Haible  <bruno@clisp.org>
64867
64868         * modules/ceil: New file.
64869         * m4/ceil.m4: New file.
64870         * doc/functions/ceil.texi: Mention the 'ceil' module.
64871
64872 2007-10-20  Bruno Haible  <bruno@clisp.org>
64873
64874         * modules/floor: New file.
64875         * m4/floor.m4: New file.
64876         * doc/functions/floor.texi: Mention the 'floor' module.
64877
64878 2007-10-20  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64881         of %a.
64882         * modules/floorf-tests (Depends-on): Likewise.
64883         * modules/truncf-tests (Depends-on): Likewise.
64884         * modules/trunc-tests (Depends-on): Likewise.
64885         Reported by Ben Pfaff.
64886
64887 2007-10-19  Jim Meyering  <meyering@redhat.com>
64888
64889         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64890         Don't bother testing specific errno values.  Just test ferror.
64891
64892         New module: xprintf
64893         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64894
64895 2007-10-19  Bruno Haible  <bruno@clisp.org>
64896
64897         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64898         syntax.
64899         * modules/javaexec (Makefile.am): Likewise.
64900         * modules/relocatable-prog (Makefile.am): Likewise.
64901         Suggested by Jim Meyering.
64902
64903 2007-10-18  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64906         Reported by Jim Meyering.
64907
64908 2007-10-18  Eric Blake  <ebb9@byu.net>
64909
64910         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64911
64912 2007-10-18  Bruno Haible  <bruno@clisp.org>
64913
64914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64915         the format string into writable memory. Needed in Fortify conditions.
64916
64917 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64918             Bruno Haible  <bruno@clisp.org>
64919
64920         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64921         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64922         * modules/trim (Depends-on): Add mbchar.
64923         (configure.ac): Add gl_FUNC_MBRTOWC.
64924         (Makefile.am): Augment lib_SOURCES.
64925
64926 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         Modify glob.c to use fstatat and dirfd, to simplify it.
64929         Suggested by Eric Blake.
64930         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64931         Don't include <stdbool.h>; not used.
64932         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64933         (link_exists_p): Simplify implementation, since we can now assume
64934         dirfd and fstatat.
64935         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64936
64937 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64938
64939         * gnulib-tool (func_get_dependencies): Fix sed script to
64940         match only tests.
64941
64942 2007-10-17  Bruno Haible  <bruno@clisp.org>
64943
64944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64945         allow locale names without encoding suffix.
64946         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64947         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64948
64949 2007-10-16  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64952         * lib/getgroups.c (getgroups): Likewise.
64953         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64954
64955 2007-10-16  Bruno Haible  <bruno@clisp.org>
64956
64957         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64958         * modules/malloc-posix (License): Likewise.
64959         * modules/realloc-posix (License): Likewise.
64960         * modules/calloc-posix (License): Likewise.
64961         * modules/intprops (License): Change from GPL to LGPL, with
64962         Paul Eggert's approval.
64963
64964 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64965
64966         Merge glibc changes into lib/glob.c.
64967
64968         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64969         2007-10-15 04:59:03 UTC.  Here are the changes:
64970
64971         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64972
64973         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64974
64975         * lib/glob.c: Add some branch prediction throughout.
64976
64977         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64978
64979         [BZ #5103]
64980         * lib/glob.c (glob): Recognize patterns starting \/.
64981
64982         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64983
64984         [BZ #3996]
64985         * lib/glob.c (attribute_hidden): Define if not defined.
64986         (glob): Unescape dirname, filename or username when needed and not
64987         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64988         is NULL.  Handle unescaped [ in pattern without closing ].
64989         Don't pass GLOB_CHECK down to recursive glob for directories.
64990         (__glob_pattern_type): New function.
64991         (__glob_pattern_p): Implement using __glob_pattern_type.
64992         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64993         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64994         Remove unreachable code.
64995
64996         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64997
64998         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64999         explain why there are no leaks.
65000
65001         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65002
65003         [BZ #3253]
65004         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65005         time, rather allocate increasingly bigger arrays of pointers, if
65006         possible with alloca, if too large with malloc.
65007
65008 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65009
65010         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65011         Problem reported by H.Merijn Brand in
65012         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65014         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65015
65016 2007-10-15  Bruno Haible  <bruno@clisp.org>
65017
65018         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65019         with explicit rpl_ prefix.
65020         * lib/fopen.c (fopen): Likewise.
65021         * lib/freopen.c (freopen): Likewise.
65022         * lib/iconv.c (iconv): Likewise.
65023         * lib/iconv_close.c (iconv_close): Likewise.
65024
65025 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65026
65027         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65028
65029 2007-10-15  Bruno Haible  <bruno@clisp.org>
65030
65031         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65032         <stddef.h> instead of <stdlib.h> since we only need NULL.
65033         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65034
65035 2007-10-15  Bruno Haible  <bruno@clisp.org>
65036
65037         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65038         Replace paragraph talking about LIBOBJS.
65039         Reported by Colin Watson <cjwatson@debian.org>.
65040
65041 2007-10-15  Bruno Haible  <bruno@clisp.org>
65042
65043         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65044         <stdlib.h> before using NULL.
65045
65046 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65047
65048         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65049         Reported by Albert Chin <china@thewrittenword.com>.
65050
65051 2007-10-14  Bruno Haible  <bruno@clisp.org>
65052
65053         * modules/iconv_open-utf-tests: New file.
65054         * tests/test-iconv-utf.c: New file.
65055
65056         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65057         * modules/iconv_open-utf: New file.
65058         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65059         (iconv, iconv_close): New declarations.
65060         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65061         be defined.
65062         (iconv_open): Add special handling of conversion between UTF-8 and
65063         UTF-{16,32}{BE,LE}.
65064         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65065         * lib/iconv_close.c: New file.
65066         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65067         gl_FUNC_ICONV_OPEN.
65068         (gl_FUNC_ICONV_OPEN): Use it.
65069         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65070         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65071         and REPLACE_ICONV_UTF.
65072         * modules/iconv_open (Depends-on): Add c-strcase.
65073         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65074         ICONV_CONST.
65075         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65076
65077 2007-10-13  Albert Chin  <china@thewrittenword.com>
65078             Bruno Haible  <bruno@clisp.org>
65079
65080         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65081         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65082
65083 2007-10-13  Bruno Haible  <bruno@clisp.org>
65084
65085         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65086         defined, use the ISO C99 inline semantics.
65087         * lib/argp.h (ARGP_EI): Likewise.
65088
65089 2007-10-13  Bruno Haible  <bruno@clisp.org>
65090
65091         Handle 'inline' change in gcc 4.3.0.
65092         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65093         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65094         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65095         argp_fmtstream_point): Disable 'extern' declaration if the function
65096         definition is going to be provided inline.
65097         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65098         semantics, not the ISO C99 inline semantics.
65099         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65100         'extern' declaration if the function definition is going to be provided
65101         inline.
65102         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65103         the GNU C inline semantics, not the ISO C99 inline semantics. With
65104         GCC 4.2, avoid a warning.
65105
65106 2007-10-13  Bruno Haible  <bruno@clisp.org>
65107
65108         * lib/freading.h (freading): Enable the use of __freading for
65109         glibc >= 2.7.
65110         * lib/freading.c (freading): Likewise.
65111
65112 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65113
65114         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65115         "warning: C99 inline functions are not supported; using GNU89".
65116
65117 2007-10-12  Bruno Haible  <bruno@clisp.org>
65118
65119         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65120         of 2.
65121         * tests/test-ceilf2.c: New file.
65122         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65123
65124         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65125         * modules/ceilf-tests: Update.
65126
65127 2007-10-12  Bruno Haible  <bruno@clisp.org>
65128
65129         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65130         of 2.
65131         * tests/test-floorf2.c: New file.
65132         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65133
65134         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65135         * modules/floorf-tests: Update.
65136
65137 2007-10-12  Bruno Haible  <bruno@clisp.org>
65138
65139         * tests/test-trunc2.c: New file.
65140         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65141
65142         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65143         * modules/trunc-tests: Update.
65144
65145 2007-10-12  Bruno Haible  <bruno@clisp.org>
65146
65147         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65148         of 2.
65149         * tests/test-truncf2.c: New file.
65150         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65151
65152         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65153         * modules/truncf-tests: Update.
65154
65155 2007-10-11  Eric Blake  <ebb9@byu.net>
65156
65157         Don't claim strerror is broken on Interix.
65158         * doc/functions/strerror.texi (strerror): Known broken systems are
65159         now Solaris 8, and not Interix.
65160         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65161         Interix on cross-compile.
65162         Reported by Martin Koeppe in
65163         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65164
65165 2007-10-11  Bruno Haible  <bruno@clisp.org>
65166
65167         * modules/i-ring-tests: New file.
65168         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65169         instead of assert.
65170
65171 2007-10-11  Bruno Haible  <bruno@clisp.org>
65172
65173         * modules/filenamecat-tests: New file.
65174         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65175         * lib/filenamecat.c: Remove test code.
65176
65177 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65180
65181         * lib/strerror.c: Include <string.h> always, to test interface,
65182         and to remove the need for the dummy.
65183         Include intprops.h to compute width instead of doing it ourselves
65184         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65185         (strerror): Define it to return NULL if there's no system strerror.
65186         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65187         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65188         ancient pre-strerror Unix systems well any more.  Saying "unknown
65189         system error" is enough.
65190         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65191         simpler strerror.c implementation.
65192         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65193         Simplify the tests to reflect the simpler strerror implementation.
65194         * modules/strerror (Depends-on): Add intprops.
65195
65196 2007-10-09  Eric Blake  <ebb9@byu.net>
65197
65198         Silence test-fpending.
65199         * modules/fpending-tests (Files): Add wrapper script.
65200         * tests/test-fpending.sh: New file.
65201
65202 2007-10-09  Bruno Haible  <bruno@clisp.org>
65203
65204         * MODULES.html.sh (func_module): Don't create a hyperlink for
65205         function names like 'printf_frexp'.
65206         (Misc): Add crc, memxor.
65207         (Characteristics of floating types): New section.
65208         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65209         isnanf-nolibm, signbit, trunc, truncf, truncl.
65210         (Enhancements for ISO C 99 functions): New subsection Input/output.
65211         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65212         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65213         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65214         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65215         (Enhancements for POSIX:2001 functions): Add chdir-long.
65216         (File system functions): Add areadlink, chdir-safer, read-file.
65217         Remove cycle-check.
65218         (File system as inode set): New section.
65219         (Date and time): Add gethrxtime.
65220         (Multithreading): Add openmp.
65221         (Internationalization functions): Add localename.
65222         (Unicode string functions): Add unistr/u*-mbsnlen.
65223         (Support for maintaining and releasing projects): Add git-version-gen.
65224         (Lone files): Remove directories.
65225
65226 2007-10-08  Ben Pfaff  <blp@gnu.org>
65227
65228         * lib/xmalloca.h: Fix typo in comment.
65229
65230 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65233         when avoiding problems with integer overflow.  Use a portable test
65234         instead.
65235
65236 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65237
65238         * modules/dummy (License): Change to LGPLv2+.
65239         * modules/float (License): Likewise
65240         * modules/realloc (License): Likewise
65241         * modules/stdlib (License): Likewise
65242
65243 2007-10-07  Bruno Haible  <bruno@clisp.org>
65244
65245         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65246         * floor.c (TWO_MANT_DIG): Likewise.
65247         * ceil.c (TWO_MANT_DIG): Likewise.
65248         Reported by Ben Pfaff.
65249
65250 2007-10-07  Bruno Haible  <bruno@clisp.org>
65251
65252         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65253         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65254         * lib/frexp.c (FUNC): Likewise.
65255         * lib/printf-frexp.h (printf_frexp): Likewise.
65256         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65257         * lib/printf-frexp.c (FUNC): Likewise.
65258         Suggested by Jim Meyering.
65259
65260 2007-10-07  Jim Meyering  <meyering@redhat.com>
65261
65262         Make xnanosleep's integer overflow test more robust.
65263         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65264         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65265
65266 2007-10-07  Bruno Haible  <bruno@clisp.org>
65267
65268         * NEWS: Mention the license change.
65269
65270         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65271         abbreviations in the modules files.
65272
65273         Change copyright notice from GPLv2+ to GPLv3+.
65274         * README: Change copyright notice.
65275         * MODULES.html.sh: Likewise.
65276         * build-aux/bootstrap.conf: Likewise.
65277         * build-aux/config.libpath: Likewise.
65278         * build-aux/csharpcomp.sh.in: Likewise.
65279         * build-aux/csharpexec.sh.in: Likewise.
65280         * build-aux/install-reloc: Likewise.
65281         * build-aux/javacomp.sh.in: Likewise.
65282         * build-aux/javaexec.sh.in: Likewise.
65283         * build-aux/ldd.sh.in: Likewise.
65284         * build-aux/reloc-ldflags: Likewise.
65285         * build-aux/relocatable.sh.in: Likewise.
65286         * build-aux/x-to-1.in: Likewise.
65287         * check-module: Likewise.
65288         * config/srclistvars.sh: Likewise.
65289         * gnulib-tool: Likewise.
65290         * lib/acl-internal.h: Likewise.
65291         * lib/acl.c: Likewise.
65292         * lib/acl.h: Likewise.
65293         * lib/acl_entries.c: Likewise.
65294         * lib/areadlink-with-size.c: Likewise.
65295         * lib/areadlink.c: Likewise.
65296         * lib/areadlink.h: Likewise.
65297         * lib/argmatch.c: Likewise.
65298         * lib/argmatch.h: Likewise.
65299         * lib/argp-ba.c: Likewise.
65300         * lib/argp-eexst.c: Likewise.
65301         * lib/argp-fmtstream.c: Likewise.
65302         * lib/argp-fmtstream.h: Likewise.
65303         * lib/argp-fs-xinl.c: Likewise.
65304         * lib/argp-help.c: Likewise.
65305         * lib/argp-namefrob.h: Likewise.
65306         * lib/argp-parse.c: Likewise.
65307         * lib/argp-pin.c: Likewise.
65308         * lib/argp-pv.c: Likewise.
65309         * lib/argp-pvh.c: Likewise.
65310         * lib/argp-xinl.c: Likewise.
65311         * lib/argp.h: Likewise.
65312         * lib/at-func.c: Likewise.
65313         * lib/atanl.c: Likewise.
65314         * lib/backupfile.c: Likewise.
65315         * lib/backupfile.h: Likewise.
65316         * lib/basename.c: Likewise.
65317         * lib/binary-io.h: Likewise.
65318         * lib/byteswap.in.h: Likewise.
65319         * lib/c-stack.c: Likewise.
65320         * lib/c-stack.h: Likewise.
65321         * lib/c-strcasestr.c: Likewise.
65322         * lib/c-strcasestr.h: Likewise.
65323         * lib/c-strstr.c: Likewise.
65324         * lib/c-strstr.h: Likewise.
65325         * lib/c-strtod.c: Likewise.
65326         * lib/calloc.c: Likewise.
65327         * lib/canon-host.c: Likewise.
65328         * lib/canon-host.h: Likewise.
65329         * lib/canonicalize-lgpl.c: Likewise.
65330         * lib/canonicalize.c: Likewise.
65331         * lib/canonicalize.h: Likewise.
65332         * lib/ceil.c: Likewise.
65333         * lib/ceilf.c: Likewise.
65334         * lib/ceill.c: Likewise.
65335         * lib/chdir-long.c: Likewise.
65336         * lib/chdir-long.h: Likewise.
65337         * lib/chdir-safer.c: Likewise.
65338         * lib/chdir-safer.h: Likewise.
65339         * lib/chown.c: Likewise.
65340         * lib/classpath.c: Likewise.
65341         * lib/classpath.h: Likewise.
65342         * lib/clean-temp.c: Likewise.
65343         * lib/clean-temp.h: Likewise.
65344         * lib/cloexec.c: Likewise.
65345         * lib/close-stream.c: Likewise.
65346         * lib/closein.c: Likewise.
65347         * lib/closein.h: Likewise.
65348         * lib/closeout.c: Likewise.
65349         * lib/closeout.h: Likewise.
65350         * lib/concat-filename.c: Likewise.
65351         * lib/copy-file.c: Likewise.
65352         * lib/copy-file.h: Likewise.
65353         * lib/count-one-bits.h: Likewise.
65354         * lib/crc.c: Likewise.
65355         * lib/crc.h: Likewise.
65356         * lib/creat-safer.c: Likewise.
65357         * lib/csharpcomp.c: Likewise.
65358         * lib/csharpcomp.h: Likewise.
65359         * lib/csharpexec.c: Likewise.
65360         * lib/csharpexec.h: Likewise.
65361         * lib/cycle-check.c: Likewise.
65362         * lib/cycle-check.h: Likewise.
65363         * lib/diacrit.c: Likewise.
65364         * lib/diacrit.h: Likewise.
65365         * lib/diffseq.h: Likewise.
65366         * lib/dirchownmod.c: Likewise.
65367         * lib/dirent.in.h: Likewise.
65368         * lib/dirfd.c: Likewise.
65369         * lib/dirfd.h: Likewise.
65370         * lib/dirname.c: Likewise.
65371         * lib/dirname.h: Likewise.
65372         * lib/dummy.c: Likewise.
65373         * lib/dup-safer.c: Likewise.
65374         * lib/dup2.c: Likewise.
65375         * lib/eealloc.h: Likewise.
65376         * lib/error.c: Likewise.
65377         * lib/error.h: Likewise.
65378         * lib/euidaccess.c: Likewise.
65379         * lib/exclude.c: Likewise.
65380         * lib/exclude.h: Likewise.
65381         * lib/execute.c: Likewise.
65382         * lib/execute.h: Likewise.
65383         * lib/exitfail.c: Likewise.
65384         * lib/exitfail.h: Likewise.
65385         * lib/expl.c: Likewise.
65386         * lib/fatal-signal.c: Likewise.
65387         * lib/fatal-signal.h: Likewise.
65388         * lib/fbufmode.c: Likewise.
65389         * lib/fbufmode.h: Likewise.
65390         * lib/fchdir.c: Likewise.
65391         * lib/fchmodat.c: Likewise.
65392         * lib/fchownat.c: Likewise.
65393         * lib/fcntl--.h: Likewise.
65394         * lib/fcntl-safer.h: Likewise.
65395         * lib/fcntl.in.h: Likewise.
65396         * lib/fd-safer.c: Likewise.
65397         * lib/fflush.c: Likewise.
65398         * lib/file-has-acl.c: Likewise.
65399         * lib/file-set.c: Likewise.
65400         * lib/file-type.c: Likewise.
65401         * lib/file-type.h: Likewise.
65402         * lib/fileblocks.c: Likewise.
65403         * lib/filemode.c: Likewise.
65404         * lib/filemode.h: Likewise.
65405         * lib/filename.h: Likewise.
65406         * lib/filenamecat.c: Likewise.
65407         * lib/filenamecat.h: Likewise.
65408         * lib/findprog.c: Likewise.
65409         * lib/findprog.h: Likewise.
65410         * lib/float.in.h: Likewise.
65411         * lib/floor.c: Likewise.
65412         * lib/floorf.c: Likewise.
65413         * lib/floorl.c: Likewise.
65414         * lib/fopen-safer.c: Likewise.
65415         * lib/fopen.c: Likewise.
65416         * lib/fpending.c: Likewise.
65417         * lib/fpending.h: Likewise.
65418         * lib/fprintf.c: Likewise.
65419         * lib/fprintftime.h: Likewise.
65420         * lib/fpucw.h: Likewise.
65421         * lib/fpurge.c: Likewise.
65422         * lib/fpurge.h: Likewise.
65423         * lib/freadable.c: Likewise.
65424         * lib/freadable.h: Likewise.
65425         * lib/freadahead.c: Likewise.
65426         * lib/freadahead.h: Likewise.
65427         * lib/freading.c: Likewise.
65428         * lib/freading.h: Likewise.
65429         * lib/free.c: Likewise.
65430         * lib/freopen.c: Likewise.
65431         * lib/frexp.c: Likewise.
65432         * lib/frexpl.c: Likewise.
65433         * lib/fseek.c: Likewise.
65434         * lib/fseterr.c: Likewise.
65435         * lib/fseterr.h: Likewise.
65436         * lib/fstatat.c: Likewise.
65437         * lib/fstrcmp.c: Likewise.
65438         * lib/fstrcmp.h: Likewise.
65439         * lib/fsusage.c: Likewise.
65440         * lib/fsusage.h: Likewise.
65441         * lib/ftell.c: Likewise.
65442         * lib/ftello.c: Likewise.
65443         * lib/fts-cycle.c: Likewise.
65444         * lib/fts.c: Likewise.
65445         * lib/fts_.h: Likewise.
65446         * lib/full-read.c: Likewise.
65447         * lib/full-read.h: Likewise.
65448         * lib/full-write.c: Likewise.
65449         * lib/full-write.h: Likewise.
65450         * lib/fwritable.c: Likewise.
65451         * lib/fwritable.h: Likewise.
65452         * lib/fwriteerror.c: Likewise.
65453         * lib/fwriteerror.h: Likewise.
65454         * lib/fwriting.c: Likewise.
65455         * lib/fwriting.h: Likewise.
65456         * lib/gcd.c: Likewise.
65457         * lib/gcd.h: Likewise.
65458         * lib/getcwd.c: Likewise.
65459         * lib/getdate.h: Likewise.
65460         * lib/getdate.y: Likewise.
65461         * lib/getdomainname.c: Likewise.
65462         * lib/getdomainname.h: Likewise.
65463         * lib/getgroups.c: Likewise.
65464         * lib/gethostname.c: Likewise.
65465         * lib/gethrxtime.c: Likewise.
65466         * lib/gethrxtime.h: Likewise.
65467         * lib/getloadavg.c: Likewise.
65468         * lib/getndelim2.c: Likewise.
65469         * lib/getndelim2.h: Likewise.
65470         * lib/getnline.c: Likewise.
65471         * lib/getnline.h: Likewise.
65472         * lib/getopt.c: Likewise.
65473         * lib/getopt.in.h: Likewise.
65474         * lib/getopt1.c: Likewise.
65475         * lib/getopt_int.h: Likewise.
65476         * lib/getpagesize.h: Likewise.
65477         * lib/getsubopt.c: Likewise.
65478         * lib/gettime.c: Likewise.
65479         * lib/getugroups.c: Likewise.
65480         * lib/getugroups.h: Likewise.
65481         * lib/getusershell.c: Likewise.
65482         * lib/gl_anyavltree_list1.h: Likewise.
65483         * lib/gl_anyavltree_list2.h: Likewise.
65484         * lib/gl_anyhash_list1.h: Likewise.
65485         * lib/gl_anyhash_list2.h: Likewise.
65486         * lib/gl_anylinked_list1.h: Likewise.
65487         * lib/gl_anylinked_list2.h: Likewise.
65488         * lib/gl_anyrbtree_list1.h: Likewise.
65489         * lib/gl_anyrbtree_list2.h: Likewise.
65490         * lib/gl_anytree_list1.h: Likewise.
65491         * lib/gl_anytree_list2.h: Likewise.
65492         * lib/gl_anytree_oset.h: Likewise.
65493         * lib/gl_anytreehash_list1.h: Likewise.
65494         * lib/gl_anytreehash_list2.h: Likewise.
65495         * lib/gl_array_list.c: Likewise.
65496         * lib/gl_array_list.h: Likewise.
65497         * lib/gl_array_oset.c: Likewise.
65498         * lib/gl_array_oset.h: Likewise.
65499         * lib/gl_avltree_list.c: Likewise.
65500         * lib/gl_avltree_list.h: Likewise.
65501         * lib/gl_avltree_oset.c: Likewise.
65502         * lib/gl_avltree_oset.h: Likewise.
65503         * lib/gl_avltreehash_list.c: Likewise.
65504         * lib/gl_avltreehash_list.h: Likewise.
65505         * lib/gl_carray_list.c: Likewise.
65506         * lib/gl_carray_list.h: Likewise.
65507         * lib/gl_linked_list.c: Likewise.
65508         * lib/gl_linked_list.h: Likewise.
65509         * lib/gl_linkedhash_list.c: Likewise.
65510         * lib/gl_linkedhash_list.h: Likewise.
65511         * lib/gl_list.c: Likewise.
65512         * lib/gl_list.h: Likewise.
65513         * lib/gl_oset.c: Likewise.
65514         * lib/gl_oset.h: Likewise.
65515         * lib/gl_rbtree_list.c: Likewise.
65516         * lib/gl_rbtree_list.h: Likewise.
65517         * lib/gl_rbtree_oset.c: Likewise.
65518         * lib/gl_rbtree_oset.h: Likewise.
65519         * lib/gl_rbtreehash_list.c: Likewise.
65520         * lib/gl_rbtreehash_list.h: Likewise.
65521         * lib/gl_sublist.c: Likewise.
65522         * lib/gl_sublist.h: Likewise.
65523         * lib/group-member.c: Likewise.
65524         * lib/group-member.h: Likewise.
65525         * lib/hard-locale.c: Likewise.
65526         * lib/hard-locale.h: Likewise.
65527         * lib/hash-pjw.c: Likewise.
65528         * lib/hash-pjw.h: Likewise.
65529         * lib/hash-triple.c: Likewise.
65530         * lib/hash.c: Likewise.
65531         * lib/hash.h: Likewise.
65532         * lib/human.c: Likewise.
65533         * lib/human.h: Likewise.
65534         * lib/i-ring.c: Likewise.
65535         * lib/i-ring.h: Likewise.
65536         * lib/idcache.c: Likewise.
65537         * lib/imaxabs.c: Likewise.
65538         * lib/imaxdiv.c: Likewise.
65539         * lib/inet_pton.c: Likewise.
65540         * lib/inet_pton.h: Likewise.
65541         * lib/intprops.h: Likewise.
65542         * lib/inttostr.c: Likewise.
65543         * lib/inttostr.h: Likewise.
65544         * lib/inttypes.in.h: Likewise.
65545         * lib/isapipe.c: Likewise.
65546         * lib/isdir.c: Likewise.
65547         * lib/isnan.c: Likewise.
65548         * lib/isnan.h: Likewise.
65549         * lib/isnanf.c: Likewise.
65550         * lib/isnanf.h: Likewise.
65551         * lib/isnanl-nolibm.h: Likewise.
65552         * lib/isnanl.c: Likewise.
65553         * lib/isnanl.h: Likewise.
65554         * lib/javacomp.c: Likewise.
65555         * lib/javacomp.h: Likewise.
65556         * lib/javaexec.c: Likewise.
65557         * lib/javaexec.h: Likewise.
65558         * lib/javaversion.c: Likewise.
65559         * lib/javaversion.h: Likewise.
65560         * lib/javaversion.java: Likewise.
65561         * lib/lbrkprop.h: Likewise.
65562         * lib/lchmod.h: Likewise.
65563         * lib/lchown.c: Likewise.
65564         * lib/ldexpl.c: Likewise.
65565         * lib/linebreak.c: Likewise.
65566         * lib/linebreak.h: Likewise.
65567         * lib/linebuffer.c: Likewise.
65568         * lib/linebuffer.h: Likewise.
65569         * lib/locale.in.h: Likewise.
65570         * lib/logl.c: Likewise.
65571         * lib/long-options.c: Likewise.
65572         * lib/long-options.h: Likewise.
65573         * lib/lstat.c: Likewise.
65574         * lib/lstat.h: Likewise.
65575         * lib/math.in.h: Likewise.
65576         * lib/mbchar.c: Likewise.
65577         * lib/mbchar.h: Likewise.
65578         * lib/mbfile.h: Likewise.
65579         * lib/mbiter.h: Likewise.
65580         * lib/mbscasecmp.c: Likewise.
65581         * lib/mbscasestr.c: Likewise.
65582         * lib/mbschr.c: Likewise.
65583         * lib/mbscspn.c: Likewise.
65584         * lib/mbslen.c: Likewise.
65585         * lib/mbsncasecmp.c: Likewise.
65586         * lib/mbsnlen.c: Likewise.
65587         * lib/mbspbrk.c: Likewise.
65588         * lib/mbspcasecmp.c: Likewise.
65589         * lib/mbsrchr.c: Likewise.
65590         * lib/mbssep.c: Likewise.
65591         * lib/mbsspn.c: Likewise.
65592         * lib/mbsstr.c: Likewise.
65593         * lib/mbstok_r.c: Likewise.
65594         * lib/mbswidth.c: Likewise.
65595         * lib/mbswidth.h: Likewise.
65596         * lib/mbuiter.h: Likewise.
65597         * lib/memcasecmp.c: Likewise.
65598         * lib/memcasecmp.h: Likewise.
65599         * lib/memchr.c: Likewise.
65600         * lib/memcmp.c: Likewise.
65601         * lib/memcoll.c: Likewise.
65602         * lib/memcoll.h: Likewise.
65603         * lib/memcpy.c: Likewise.
65604         * lib/memrchr.c: Likewise.
65605         * lib/mkancesdirs.c: Likewise.
65606         * lib/mkdir-p.c: Likewise.
65607         * lib/mkdir-p.h: Likewise.
65608         * lib/mkdir.c: Likewise.
65609         * lib/mkdirat.c: Likewise.
65610         * lib/mkdtemp.c: Likewise.
65611         * lib/mkstemp-safer.c: Likewise.
65612         * lib/mkstemp.c: Likewise.
65613         * lib/modechange.c: Likewise.
65614         * lib/modechange.h: Likewise.
65615         * lib/mountlist.c: Likewise.
65616         * lib/mountlist.h: Likewise.
65617         * lib/mpsort.c: Likewise.
65618         * lib/nanosleep.c: Likewise.
65619         * lib/obstack.c: Likewise.
65620         * lib/obstack.h: Likewise.
65621         * lib/open-safer.c: Likewise.
65622         * lib/open.c: Likewise.
65623         * lib/openat-die.c: Likewise.
65624         * lib/openat-priv.h: Likewise.
65625         * lib/openat-proc.c: Likewise.
65626         * lib/openat.c: Likewise.
65627         * lib/openat.h: Likewise.
65628         * lib/pagealign_alloc.c: Likewise.
65629         * lib/pagealign_alloc.h: Likewise.
65630         * lib/physmem.c: Likewise.
65631         * lib/physmem.h: Likewise.
65632         * lib/pipe-safer.c: Likewise.
65633         * lib/pipe.c: Likewise.
65634         * lib/pipe.h: Likewise.
65635         * lib/posixtm.c: Likewise.
65636         * lib/posixtm.h: Likewise.
65637         * lib/posixver.c: Likewise.
65638         * lib/printf-frexp.c: Likewise.
65639         * lib/printf-frexp.h: Likewise.
65640         * lib/printf-frexpl.c: Likewise.
65641         * lib/printf-frexpl.h: Likewise.
65642         * lib/printf.c: Likewise.
65643         * lib/progname.c: Likewise.
65644         * lib/progname.h: Likewise.
65645         * lib/progreloc.c: Likewise.
65646         * lib/putenv.c: Likewise.
65647         * lib/quote.c: Likewise.
65648         * lib/quote.h: Likewise.
65649         * lib/quotearg.c: Likewise.
65650         * lib/quotearg.h: Likewise.
65651         * lib/raise.c: Likewise.
65652         * lib/readline.c: Likewise.
65653         * lib/readline.h: Likewise.
65654         * lib/readlink.c: Likewise.
65655         * lib/readtokens.c: Likewise.
65656         * lib/readtokens.h: Likewise.
65657         * lib/readtokens0.c: Likewise.
65658         * lib/readtokens0.h: Likewise.
65659         * lib/readutmp.c: Likewise.
65660         * lib/readutmp.h: Likewise.
65661         * lib/realloc.c: Likewise.
65662         * lib/relocwrapper.c: Likewise.
65663         * lib/rename-dest-slash.c: Likewise.
65664         * lib/rename.c: Likewise.
65665         * lib/rmdir.c: Likewise.
65666         * lib/rpmatch.c: Likewise.
65667         * lib/safe-read.c: Likewise.
65668         * lib/safe-read.h: Likewise.
65669         * lib/safe-write.c: Likewise.
65670         * lib/safe-write.h: Likewise.
65671         * lib/same-inode.h: Likewise.
65672         * lib/same.c: Likewise.
65673         * lib/same.h: Likewise.
65674         * lib/save-cwd.c: Likewise.
65675         * lib/save-cwd.h: Likewise.
65676         * lib/savedir.c: Likewise.
65677         * lib/savedir.h: Likewise.
65678         * lib/savewd.c: Likewise.
65679         * lib/savewd.h: Likewise.
65680         * lib/search.in.h: Likewise.
65681         * lib/setenv.c: Likewise.
65682         * lib/setenv.h: Likewise.
65683         * lib/settime.c: Likewise.
65684         * lib/sh-quote.c: Likewise.
65685         * lib/sh-quote.h: Likewise.
65686         * lib/sig2str.c: Likewise.
65687         * lib/sig2str.h: Likewise.
65688         * lib/signal.in.h: Likewise.
65689         * lib/signbitd.c: Likewise.
65690         * lib/signbitf.c: Likewise.
65691         * lib/signbitl.c: Likewise.
65692         * lib/sigprocmask.c: Likewise.
65693         * lib/sincosl.c: Likewise.
65694         * lib/sleep.c: Likewise.
65695         * lib/sprintf.c: Likewise.
65696         * lib/sqrtl.c: Likewise.
65697         * lib/stat-time.h: Likewise.
65698         * lib/stdio--.h: Likewise.
65699         * lib/stdio-safer.h: Likewise.
65700         * lib/stdlib--.h: Likewise.
65701         * lib/stdlib-safer.h: Likewise.
65702         * lib/stdlib.in.h: Likewise.
65703         * lib/stpcpy.c: Likewise.
65704         * lib/stpncpy.c: Likewise.
65705         * lib/strchrnul.c: Likewise.
65706         * lib/strcspn.c: Likewise.
65707         * lib/strerror.c: Likewise.
65708         * lib/strftime.c: Likewise.
65709         * lib/strftime.h: Likewise.
65710         * lib/striconveh.c: Likewise.
65711         * lib/striconveh.h: Likewise.
65712         * lib/striconveha.c: Likewise.
65713         * lib/striconveha.h: Likewise.
65714         * lib/stripslash.c: Likewise.
65715         * lib/strnlen1.c: Likewise.
65716         * lib/strnlen1.h: Likewise.
65717         * lib/strtod.c: Likewise.
65718         * lib/strtoimax.c: Likewise.
65719         * lib/strtok_r.c: Likewise.
65720         * lib/strtol.c: Likewise.
65721         * lib/strtoll.c: Likewise.
65722         * lib/strtoul.c: Likewise.
65723         * lib/strtoull.c: Likewise.
65724         * lib/sysexits.in.h: Likewise.
65725         * lib/tempname.c: Likewise.
65726         * lib/tempname.h: Likewise.
65727         * lib/timespec.h: Likewise.
65728         * lib/tls.c: Likewise.
65729         * lib/tls.h: Likewise.
65730         * lib/tmpdir.c: Likewise.
65731         * lib/tmpdir.h: Likewise.
65732         * lib/tmpfile-safer.c: Likewise.
65733         * lib/tmpfile.c: Likewise.
65734         * lib/trigl.c: Likewise.
65735         * lib/trigl.h: Likewise.
65736         * lib/trim.c: Likewise.
65737         * lib/trim.h: Likewise.
65738         * lib/trunc.c: Likewise.
65739         * lib/truncf.c: Likewise.
65740         * lib/truncl.c: Likewise.
65741         * lib/tsearch.c: Likewise.
65742         * lib/unicodeio.c: Likewise.
65743         * lib/unicodeio.h: Likewise.
65744         * lib/unistd--.h: Likewise.
65745         * lib/unistd-safer.h: Likewise.
65746         * lib/unistdio/ulc-fprintf.c: Likewise.
65747         * lib/unistdio/ulc-vfprintf.c: Likewise.
65748         * lib/unlinkdir.c: Likewise.
65749         * lib/unlinkdir.h: Likewise.
65750         * lib/unlocked-io.h: Likewise.
65751         * lib/unsetenv.c: Likewise.
65752         * lib/userspec.c: Likewise.
65753         * lib/utime.c: Likewise.
65754         * lib/utimecmp.c: Likewise.
65755         * lib/utimecmp.h: Likewise.
65756         * lib/utimens.c: Likewise.
65757         * lib/verify.h: Likewise.
65758         * lib/verror.c: Likewise.
65759         * lib/verror.h: Likewise.
65760         * lib/version-etc-fsf.c: Likewise.
65761         * lib/version-etc.c: Likewise.
65762         * lib/version-etc.h: Likewise.
65763         * lib/vfprintf.c: Likewise.
65764         * lib/vprintf.c: Likewise.
65765         * lib/vsprintf.c: Likewise.
65766         * lib/w32spawn.h: Likewise.
65767         * lib/wait-process.c: Likewise.
65768         * lib/wait-process.h: Likewise.
65769         * lib/wcwidth.c: Likewise.
65770         * lib/write-any-file.c: Likewise.
65771         * lib/xalloc-die.c: Likewise.
65772         * lib/xalloc.h: Likewise.
65773         * lib/xasprintf.c: Likewise.
65774         * lib/xgetcwd.c: Likewise.
65775         * lib/xgetcwd.h: Likewise.
65776         * lib/xgetdomainname.c: Likewise.
65777         * lib/xgetdomainname.h: Likewise.
65778         * lib/xgethostname.c: Likewise.
65779         * lib/xmalloc.c: Likewise.
65780         * lib/xmalloca.c: Likewise.
65781         * lib/xmalloca.h: Likewise.
65782         * lib/xmemcoll.c: Likewise.
65783         * lib/xnanosleep.c: Likewise.
65784         * lib/xreadlink.c: Likewise.
65785         * lib/xreadlink.h: Likewise.
65786         * lib/xsetenv.c: Likewise.
65787         * lib/xsetenv.h: Likewise.
65788         * lib/xstriconv.c: Likewise.
65789         * lib/xstriconv.h: Likewise.
65790         * lib/xstrndup.c: Likewise.
65791         * lib/xstrndup.h: Likewise.
65792         * lib/xstrtod.c: Likewise.
65793         * lib/xstrtod.h: Likewise.
65794         * lib/xstrtol-error.c: Likewise.
65795         * lib/xstrtol.c: Likewise.
65796         * lib/xstrtol.h: Likewise.
65797         * lib/xtime.h: Likewise.
65798         * lib/xvasprintf.c: Likewise.
65799         * lib/xvasprintf.h: Likewise.
65800         * lib/yesno.c: Likewise.
65801         * lib/yesno.h: Likewise.
65802         * posix-modules: Likewise.
65803         * tests/test-alloca-opt.c: Likewise.
65804         * tests/test-arcfour.c: Likewise.
65805         * tests/test-arctwo.c: Likewise.
65806         * tests/test-argmatch.c: Likewise.
65807         * tests/test-argp-2.sh: Likewise.
65808         * tests/test-argp.c: Likewise.
65809         * tests/test-arpa_inet.c: Likewise.
65810         * tests/test-array_list.c: Likewise.
65811         * tests/test-array_oset.c: Likewise.
65812         * tests/test-atexit.c: Likewise.
65813         * tests/test-avltree_list.c: Likewise.
65814         * tests/test-avltree_oset.c: Likewise.
65815         * tests/test-avltreehash_list.c: Likewise.
65816         * tests/test-base64.c: Likewise.
65817         * tests/test-binary-io.c: Likewise.
65818         * tests/test-byteswap.c: Likewise.
65819         * tests/test-c-ctype.c: Likewise.
65820         * tests/test-c-strcasecmp.c: Likewise.
65821         * tests/test-c-strcasestr.c: Likewise.
65822         * tests/test-c-strncasecmp.c: Likewise.
65823         * tests/test-c-strstr.c: Likewise.
65824         * tests/test-canonicalize-lgpl.c: Likewise.
65825         * tests/test-canonicalize.c: Likewise.
65826         * tests/test-carray_list.c: Likewise.
65827         * tests/test-ceilf.c: Likewise.
65828         * tests/test-ceill.c: Likewise.
65829         * tests/test-count-one-bits.c: Likewise.
65830         * tests/test-crc.c: Likewise.
65831         * tests/test-dirname.c: Likewise.
65832         * tests/test-fbufmode.c: Likewise.
65833         * tests/test-fcntl.c: Likewise.
65834         * tests/test-fflush.c: Likewise.
65835         * tests/test-floorf.c: Likewise.
65836         * tests/test-floorl.c: Likewise.
65837         * tests/test-fopen.c: Likewise.
65838         * tests/test-fprintf-posix.c: Likewise.
65839         * tests/test-fprintf-posix.h: Likewise.
65840         * tests/test-fpurge.c: Likewise.
65841         * tests/test-freadable.c: Likewise.
65842         * tests/test-freadahead.c: Likewise.
65843         * tests/test-freading.c: Likewise.
65844         * tests/test-freopen.c: Likewise.
65845         * tests/test-frexp.c: Likewise.
65846         * tests/test-frexpl.c: Likewise.
65847         * tests/test-fseek.c: Likewise.
65848         * tests/test-fseeko.c: Likewise.
65849         * tests/test-fseterr.c: Likewise.
65850         * tests/test-fstrcmp.c: Likewise.
65851         * tests/test-ftell.c: Likewise.
65852         * tests/test-ftello.c: Likewise.
65853         * tests/test-fwritable.c: Likewise.
65854         * tests/test-fwriting.c: Likewise.
65855         * tests/test-getaddrinfo.c: Likewise.
65856         * tests/test-getpass.c: Likewise.
65857         * tests/test-gettimeofday.c: Likewise.
65858         * tests/test-hmac-md5.c: Likewise.
65859         * tests/test-hmac-sha1.c: Likewise.
65860         * tests/test-iconv.c: Likewise.
65861         * tests/test-iconvme.c: Likewise.
65862         * tests/test-inttypes.c: Likewise.
65863         * tests/test-isnan.c: Likewise.
65864         * tests/test-isnanf.c: Likewise.
65865         * tests/test-isnanl-nolibm.c: Likewise.
65866         * tests/test-isnanl.c: Likewise.
65867         * tests/test-isnanl.h: Likewise.
65868         * tests/test-ldexpl.c: Likewise.
65869         * tests/test-linked_list.c: Likewise.
65870         * tests/test-linkedhash_list.c: Likewise.
65871         * tests/test-locale.c: Likewise.
65872         * tests/test-localename.c: Likewise.
65873         * tests/test-lock.c: Likewise.
65874         * tests/test-lseek.c: Likewise.
65875         * tests/test-malloca.c: Likewise.
65876         * tests/test-math.c: Likewise.
65877         * tests/test-mbscasecmp.c: Likewise.
65878         * tests/test-mbscasestr1.c: Likewise.
65879         * tests/test-mbscasestr2.c: Likewise.
65880         * tests/test-mbscasestr3.c: Likewise.
65881         * tests/test-mbscasestr4.c: Likewise.
65882         * tests/test-mbschr.c: Likewise.
65883         * tests/test-mbscspn.c: Likewise.
65884         * tests/test-mbsncasecmp.c: Likewise.
65885         * tests/test-mbspbrk.c: Likewise.
65886         * tests/test-mbspcasecmp.c: Likewise.
65887         * tests/test-mbsrchr.c: Likewise.
65888         * tests/test-mbsspn.c: Likewise.
65889         * tests/test-mbsstr1.c: Likewise.
65890         * tests/test-mbsstr2.c: Likewise.
65891         * tests/test-mbsstr3.c: Likewise.
65892         * tests/test-md5.c: Likewise.
65893         * tests/test-memmem.c: Likewise.
65894         * tests/test-netinet_in.c: Likewise.
65895         * tests/test-open.c: Likewise.
65896         * tests/test-printf-frexp.c: Likewise.
65897         * tests/test-printf-frexpl.c: Likewise.
65898         * tests/test-printf-posix.c: Likewise.
65899         * tests/test-printf-posix.h: Likewise.
65900         * tests/test-rbtree_list.c: Likewise.
65901         * tests/test-rbtree_oset.c: Likewise.
65902         * tests/test-rbtreehash_list.c: Likewise.
65903         * tests/test-read-file.c: Likewise.
65904         * tests/test-rijndael.c: Likewise.
65905         * tests/test-search.c: Likewise.
65906         * tests/test-signbit.c: Likewise.
65907         * tests/test-sleep.c: Likewise.
65908         * tests/test-snprintf-posix.c: Likewise.
65909         * tests/test-snprintf-posix.h: Likewise.
65910         * tests/test-snprintf.c: Likewise.
65911         * tests/test-sprintf-posix.c: Likewise.
65912         * tests/test-sprintf-posix.h: Likewise.
65913         * tests/test-stat-time.c: Likewise.
65914         * tests/test-stdbool.c: Likewise.
65915         * tests/test-stdint.c: Likewise.
65916         * tests/test-stdio.c: Likewise.
65917         * tests/test-stdlib.c: Likewise.
65918         * tests/test-stpncpy.c: Likewise.
65919         * tests/test-strcasestr.c: Likewise.
65920         * tests/test-striconv.c: Likewise.
65921         * tests/test-striconveh.c: Likewise.
65922         * tests/test-striconveha.c: Likewise.
65923         * tests/test-string.c: Likewise.
65924         * tests/test-sys_select.c: Likewise.
65925         * tests/test-sys_socket.c: Likewise.
65926         * tests/test-sys_stat.c: Likewise.
65927         * tests/test-sys_time.c: Likewise.
65928         * tests/test-sysexits.c: Likewise.
65929         * tests/test-time.c: Likewise.
65930         * tests/test-tls.c: Likewise.
65931         * tests/test-trunc.c: Likewise.
65932         * tests/test-truncf.c: Likewise.
65933         * tests/test-truncl.c: Likewise.
65934         * tests/test-unistd.c: Likewise.
65935         * tests/test-vasnprintf-posix.c: Likewise.
65936         * tests/test-vasnprintf-posix2.c: Likewise.
65937         * tests/test-vasnprintf.c: Likewise.
65938         * tests/test-vasprintf-posix.c: Likewise.
65939         * tests/test-vasprintf.c: Likewise.
65940         * tests/test-verify.c: Likewise.
65941         * tests/test-vfprintf-posix.c: Likewise.
65942         * tests/test-vprintf-posix.c: Likewise.
65943         * tests/test-vsnprintf-posix.c: Likewise.
65944         * tests/test-vsnprintf.c: Likewise.
65945         * tests/test-vsprintf-posix.c: Likewise.
65946         * tests/test-wchar.c: Likewise.
65947         * tests/test-wctype.c: Likewise.
65948         * tests/test-wcwidth.c: Likewise.
65949         * tests/test-xstrtol.c: Likewise.
65950         * tests/test-xvasprintf.c: Likewise.
65951         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65952         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65953         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65954         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65955         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65956         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65957         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65958         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65959         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65960         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65961         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65962         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65963         * tests/uniname/test-uninames.c: Likewise.
65964         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65965         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65966         * tests/unistdio/test-u16-printf1.h: Likewise.
65967         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65968         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65969         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65970         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65971         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65972         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65973         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65974         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65975         * tests/unistdio/test-u32-printf1.h: Likewise.
65976         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65977         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65978         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65979         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65980         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65981         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65982         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65983         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65984         * tests/unistdio/test-u8-printf1.h: Likewise.
65985         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65986         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65987         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65988         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65989         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65990         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65991         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65992         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65993         * tests/unistdio/test-ulc-printf1.h: Likewise.
65994         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65995         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65996         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65997         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65998         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65999         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66000         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66001         * tests/uniwidth/test-u16-width.c: Likewise.
66002         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66003         * tests/uniwidth/test-u32-width.c: Likewise.
66004         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66005         * tests/uniwidth/test-u8-width.c: Likewise.
66006         * tests/uniwidth/test-uc_width.c: Likewise.
66007         * config/srclist-update: Likewise.
66008         (fixlicense): Update to GPLv3+.
66009
66010         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66011         * tests/test-tsearch.c: Change copyright notice.
66012
66013         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66014         * lib/c-strcaseeq.h: Change copyright notice.
66015         * lib/streq.h: Likewise.
66016         * lib/uniconv.h: Likewise.
66017         * lib/uniconv/u-conv-from-enc.h: Likewise.
66018         * lib/uniconv/u-conv-to-enc.h: Likewise.
66019         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66020         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66021         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66022         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66023         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66024         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66025         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66026         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66027         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66028         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66029         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66030         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66031         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66032         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66033         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66034         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66035         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66036         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66037         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66038         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66039         * lib/uniname.h: Likewise.
66040         * lib/uniname/uniname.c: Likewise.
66041         * lib/unistdio.h: Likewise.
66042         * lib/unistdio/u-asnprintf.h: Likewise.
66043         * lib/unistdio/u-asprintf.h: Likewise.
66044         * lib/unistdio/u-printf-args.c: Likewise.
66045         * lib/unistdio/u-printf-args.h: Likewise.
66046         * lib/unistdio/u-printf-parse.h: Likewise.
66047         * lib/unistdio/u-snprintf.h: Likewise.
66048         * lib/unistdio/u-sprintf.h: Likewise.
66049         * lib/unistdio/u-vasprintf.h: Likewise.
66050         * lib/unistdio/u-vsnprintf.h: Likewise.
66051         * lib/unistdio/u-vsprintf.h: Likewise.
66052         * lib/unistdio/u16-asnprintf.c: Likewise.
66053         * lib/unistdio/u16-asprintf.c: Likewise.
66054         * lib/unistdio/u16-printf-parse.c: Likewise.
66055         * lib/unistdio/u16-snprintf.c: Likewise.
66056         * lib/unistdio/u16-sprintf.c: Likewise.
66057         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66058         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66059         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66060         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66061         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66062         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66063         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66064         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66065         * lib/unistdio/u16-vasnprintf.c: Likewise.
66066         * lib/unistdio/u16-vasprintf.c: Likewise.
66067         * lib/unistdio/u16-vsnprintf.c: Likewise.
66068         * lib/unistdio/u16-vsprintf.c: Likewise.
66069         * lib/unistdio/u32-asnprintf.c: Likewise.
66070         * lib/unistdio/u32-asprintf.c: Likewise.
66071         * lib/unistdio/u32-printf-parse.c: Likewise.
66072         * lib/unistdio/u32-snprintf.c: Likewise.
66073         * lib/unistdio/u32-sprintf.c: Likewise.
66074         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66075         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66076         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66077         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66078         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66079         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66080         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66081         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66082         * lib/unistdio/u32-vasnprintf.c: Likewise.
66083         * lib/unistdio/u32-vasprintf.c: Likewise.
66084         * lib/unistdio/u32-vsnprintf.c: Likewise.
66085         * lib/unistdio/u32-vsprintf.c: Likewise.
66086         * lib/unistdio/u8-asnprintf.c: Likewise.
66087         * lib/unistdio/u8-asprintf.c: Likewise.
66088         * lib/unistdio/u8-printf-parse.c: Likewise.
66089         * lib/unistdio/u8-snprintf.c: Likewise.
66090         * lib/unistdio/u8-sprintf.c: Likewise.
66091         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66092         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66093         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66094         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66095         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66096         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66097         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66098         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66099         * lib/unistdio/u8-vasnprintf.c: Likewise.
66100         * lib/unistdio/u8-vasprintf.c: Likewise.
66101         * lib/unistdio/u8-vsnprintf.c: Likewise.
66102         * lib/unistdio/u8-vsprintf.c: Likewise.
66103         * lib/unistdio/ulc-asnprintf.c: Likewise.
66104         * lib/unistdio/ulc-asprintf.c: Likewise.
66105         * lib/unistdio/ulc-printf-parse.c: Likewise.
66106         * lib/unistdio/ulc-snprintf.c: Likewise.
66107         * lib/unistdio/ulc-sprintf.c: Likewise.
66108         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66109         * lib/unistdio/ulc-vasprintf.c: Likewise.
66110         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66111         * lib/unistdio/ulc-vsprintf.c: Likewise.
66112         * lib/unistr.h: Likewise.
66113         * lib/unistr/u-cpy-alloc.h: Likewise.
66114         * lib/unistr/u-cpy.h: Likewise.
66115         * lib/unistr/u-endswith.h: Likewise.
66116         * lib/unistr/u-move.h: Likewise.
66117         * lib/unistr/u-set.h: Likewise.
66118         * lib/unistr/u-startswith.h: Likewise.
66119         * lib/unistr/u-stpcpy.h: Likewise.
66120         * lib/unistr/u-stpncpy.h: Likewise.
66121         * lib/unistr/u-strcat.h: Likewise.
66122         * lib/unistr/u-strcpy.h: Likewise.
66123         * lib/unistr/u-strcspn.h: Likewise.
66124         * lib/unistr/u-strdup.h: Likewise.
66125         * lib/unistr/u-strlen.h: Likewise.
66126         * lib/unistr/u-strncat.h: Likewise.
66127         * lib/unistr/u-strncpy.h: Likewise.
66128         * lib/unistr/u-strnlen.h: Likewise.
66129         * lib/unistr/u-strpbrk.h: Likewise.
66130         * lib/unistr/u-strspn.h: Likewise.
66131         * lib/unistr/u-strstr.h: Likewise.
66132         * lib/unistr/u-strtok.h: Likewise.
66133         * lib/unistr/u16-check.c: Likewise.
66134         * lib/unistr/u16-chr.c: Likewise.
66135         * lib/unistr/u16-cmp.c: Likewise.
66136         * lib/unistr/u16-cpy-alloc.c: Likewise.
66137         * lib/unistr/u16-cpy.c: Likewise.
66138         * lib/unistr/u16-endswith.c: Likewise.
66139         * lib/unistr/u16-mblen.c: Likewise.
66140         * lib/unistr/u16-mbsnlen.c: Likewise.
66141         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66142         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66143         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66144         * lib/unistr/u16-mbtouc.c: Likewise.
66145         * lib/unistr/u16-mbtoucr.c: Likewise.
66146         * lib/unistr/u16-move.c: Likewise.
66147         * lib/unistr/u16-next.c: Likewise.
66148         * lib/unistr/u16-prev.c: Likewise.
66149         * lib/unistr/u16-set.c: Likewise.
66150         * lib/unistr/u16-startswith.c: Likewise.
66151         * lib/unistr/u16-stpcpy.c: Likewise.
66152         * lib/unistr/u16-stpncpy.c: Likewise.
66153         * lib/unistr/u16-strcat.c: Likewise.
66154         * lib/unistr/u16-strchr.c: Likewise.
66155         * lib/unistr/u16-strcmp.c: Likewise.
66156         * lib/unistr/u16-strcpy.c: Likewise.
66157         * lib/unistr/u16-strcspn.c: Likewise.
66158         * lib/unistr/u16-strdup.c: Likewise.
66159         * lib/unistr/u16-strlen.c: Likewise.
66160         * lib/unistr/u16-strmblen.c: Likewise.
66161         * lib/unistr/u16-strmbtouc.c: Likewise.
66162         * lib/unistr/u16-strncat.c: Likewise.
66163         * lib/unistr/u16-strncmp.c: Likewise.
66164         * lib/unistr/u16-strncpy.c: Likewise.
66165         * lib/unistr/u16-strnlen.c: Likewise.
66166         * lib/unistr/u16-strpbrk.c: Likewise.
66167         * lib/unistr/u16-strrchr.c: Likewise.
66168         * lib/unistr/u16-strspn.c: Likewise.
66169         * lib/unistr/u16-strstr.c: Likewise.
66170         * lib/unistr/u16-strtok.c: Likewise.
66171         * lib/unistr/u16-to-u32.c: Likewise.
66172         * lib/unistr/u16-to-u8.c: Likewise.
66173         * lib/unistr/u16-uctomb-aux.c: Likewise.
66174         * lib/unistr/u16-uctomb.c: Likewise.
66175         * lib/unistr/u32-check.c: Likewise.
66176         * lib/unistr/u32-chr.c: Likewise.
66177         * lib/unistr/u32-cmp.c: Likewise.
66178         * lib/unistr/u32-cpy-alloc.c: Likewise.
66179         * lib/unistr/u32-cpy.c: Likewise.
66180         * lib/unistr/u32-endswith.c: Likewise.
66181         * lib/unistr/u32-mblen.c: Likewise.
66182         * lib/unistr/u32-mbsnlen.c: Likewise.
66183         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66184         * lib/unistr/u32-mbtouc.c: Likewise.
66185         * lib/unistr/u32-mbtoucr.c: Likewise.
66186         * lib/unistr/u32-move.c: Likewise.
66187         * lib/unistr/u32-next.c: Likewise.
66188         * lib/unistr/u32-prev.c: Likewise.
66189         * lib/unistr/u32-set.c: Likewise.
66190         * lib/unistr/u32-startswith.c: Likewise.
66191         * lib/unistr/u32-stpcpy.c: Likewise.
66192         * lib/unistr/u32-stpncpy.c: Likewise.
66193         * lib/unistr/u32-strcat.c: Likewise.
66194         * lib/unistr/u32-strchr.c: Likewise.
66195         * lib/unistr/u32-strcmp.c: Likewise.
66196         * lib/unistr/u32-strcpy.c: Likewise.
66197         * lib/unistr/u32-strcspn.c: Likewise.
66198         * lib/unistr/u32-strdup.c: Likewise.
66199         * lib/unistr/u32-strlen.c: Likewise.
66200         * lib/unistr/u32-strmblen.c: Likewise.
66201         * lib/unistr/u32-strmbtouc.c: Likewise.
66202         * lib/unistr/u32-strncat.c: Likewise.
66203         * lib/unistr/u32-strncmp.c: Likewise.
66204         * lib/unistr/u32-strncpy.c: Likewise.
66205         * lib/unistr/u32-strnlen.c: Likewise.
66206         * lib/unistr/u32-strpbrk.c: Likewise.
66207         * lib/unistr/u32-strrchr.c: Likewise.
66208         * lib/unistr/u32-strspn.c: Likewise.
66209         * lib/unistr/u32-strstr.c: Likewise.
66210         * lib/unistr/u32-strtok.c: Likewise.
66211         * lib/unistr/u32-to-u16.c: Likewise.
66212         * lib/unistr/u32-to-u8.c: Likewise.
66213         * lib/unistr/u32-uctomb.c: Likewise.
66214         * lib/unistr/u8-check.c: Likewise.
66215         * lib/unistr/u8-chr.c: Likewise.
66216         * lib/unistr/u8-cmp.c: Likewise.
66217         * lib/unistr/u8-cpy-alloc.c: Likewise.
66218         * lib/unistr/u8-cpy.c: Likewise.
66219         * lib/unistr/u8-endswith.c: Likewise.
66220         * lib/unistr/u8-mblen.c: Likewise.
66221         * lib/unistr/u8-mbsnlen.c: Likewise.
66222         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66223         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66224         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66225         * lib/unistr/u8-mbtouc.c: Likewise.
66226         * lib/unistr/u8-mbtoucr.c: Likewise.
66227         * lib/unistr/u8-move.c: Likewise.
66228         * lib/unistr/u8-next.c: Likewise.
66229         * lib/unistr/u8-prev.c: Likewise.
66230         * lib/unistr/u8-set.c: Likewise.
66231         * lib/unistr/u8-startswith.c: Likewise.
66232         * lib/unistr/u8-stpcpy.c: Likewise.
66233         * lib/unistr/u8-stpncpy.c: Likewise.
66234         * lib/unistr/u8-strcat.c: Likewise.
66235         * lib/unistr/u8-strchr.c: Likewise.
66236         * lib/unistr/u8-strcmp.c: Likewise.
66237         * lib/unistr/u8-strcpy.c: Likewise.
66238         * lib/unistr/u8-strcspn.c: Likewise.
66239         * lib/unistr/u8-strdup.c: Likewise.
66240         * lib/unistr/u8-strlen.c: Likewise.
66241         * lib/unistr/u8-strmblen.c: Likewise.
66242         * lib/unistr/u8-strmbtouc.c: Likewise.
66243         * lib/unistr/u8-strncat.c: Likewise.
66244         * lib/unistr/u8-strncmp.c: Likewise.
66245         * lib/unistr/u8-strncpy.c: Likewise.
66246         * lib/unistr/u8-strnlen.c: Likewise.
66247         * lib/unistr/u8-strpbrk.c: Likewise.
66248         * lib/unistr/u8-strrchr.c: Likewise.
66249         * lib/unistr/u8-strspn.c: Likewise.
66250         * lib/unistr/u8-strstr.c: Likewise.
66251         * lib/unistr/u8-strtok.c: Likewise.
66252         * lib/unistr/u8-to-u16.c: Likewise.
66253         * lib/unistr/u8-to-u32.c: Likewise.
66254         * lib/unistr/u8-uctomb-aux.c: Likewise.
66255         * lib/unistr/u8-uctomb.c: Likewise.
66256         * lib/unitypes.h: Likewise.
66257         * lib/uniwidth.h: Likewise.
66258         * lib/uniwidth/cjk.h: Likewise.
66259         * lib/uniwidth/u16-strwidth.c: Likewise.
66260         * lib/uniwidth/u16-width.c: Likewise.
66261         * lib/uniwidth/u32-strwidth.c: Likewise.
66262         * lib/uniwidth/u32-width.c: Likewise.
66263         * lib/uniwidth/u8-strwidth.c: Likewise.
66264         * lib/uniwidth/u8-width.c: Likewise.
66265         * lib/uniwidth/width.c: Likewise.
66266
66267 2007-10-07  Bruno Haible  <bruno@clisp.org>
66268
66269         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66270         The file is still under LGPL (see modules/inttypes).
66271
66272 2007-10-06  Bruno Haible  <bruno@clisp.org>
66273
66274         * modules/trunc (Dependencies): Add 'extensions'.
66275         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66276         Reported by Ben Pfaff <blp@gnu.org>.
66277
66278 2007-10-06  Bruno Haible  <bruno@clisp.org>
66279
66280         * modules/freopen-tests: New file.
66281         * tests/test-freopen.c: New file.
66282
66283         * modules/fopen-tests: New file.
66284         * tests/test-fopen.c: New file.
66285
66286         * modules/fopen: New file.
66287         * lib/fopen.c: New file.
66288         * m4/fopen.m4: New file.
66289         * modules/freopen: New file.
66290         * lib/freopen.c: New file.
66291         * m4/freopen.m4: New file.
66292         * lib/stdio.in.h (fopen, freopen): New declarations.
66293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66294         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66295         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66296         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66297         * doc/functions/fopen.texi: Mention the 'fopen' module.
66298         * doc/functions/freopen.texi: Mention the 'freopen' module.
66299
66300 2007-10-06  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/open-tests: New file.
66303         * tests/test-open.c: New file.
66304
66305         * modules/open: New file.
66306         * lib/open.c: New file.
66307         * m4/open.m4: New file.
66308         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66309         lib/open.c does.
66310         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66311         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66312         macros.
66313         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66314         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66315         REPLACE_OPEN.
66316         * doc/functions/open.texi: Mention the 'open' module.
66317
66318 2007-10-04  Bruno Haible  <bruno@clisp.org>
66319
66320         * modules/ceill-tests: New file.
66321         * tests/test-ceill.c: New file.
66322
66323         * modules/ceill: New file.
66324         * lib/ceill.c: Replace entire file.
66325         * m4/ceill.m4: New file.
66326         * lib/math.in.h (ceill): Replace declaration.
66327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66328         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66329         * doc/functions/ceill.texi: Mention the 'ceill' module.
66330         * modules/mathl (Files): Remove lib/ceill.c.
66331         (Depends-on): Add ceill.
66332
66333 2007-10-04  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/ceilf-tests: New file.
66336         * tests/test-ceilf.c: New file.
66337
66338         * modules/ceilf: New file.
66339         * lib/ceil.c: New file.
66340         * lib/ceilf.c: New file.
66341         * m4/ceilf.m4: New file.
66342         * lib/math.in.h (ceilf): New declaration.
66343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66344         HAVE_DECL_CEILF.
66345         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66346         HAVE_DECL_CEILF.
66347         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66348
66349 2007-10-04  Bruno Haible  <bruno@clisp.org>
66350
66351         * modules/floorl-tests: New file.
66352         * tests/test-floorl.c: New file.
66353
66354         * modules/floorl: New file.
66355         * lib/floorl.c: Replace entire file.
66356         * m4/floorl.m4: New file.
66357         * lib/math.in.h (floorl): Replace declaration.
66358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66359         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66360         * doc/functions/floorl.texi: Mention the 'floorl' module.
66361         * modules/mathl (Files): Remove lib/floorl.c.
66362         (Depends-on): Add floorl.
66363
66364 2007-10-04  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/floorf-tests: New file.
66367         * tests/test-floorf.c: New file.
66368
66369         * modules/floorf: New file.
66370         * lib/floor.c: New file.
66371         * lib/floorf.c: New file.
66372         * m4/floorf.m4: New file.
66373         * lib/math.in.h (floorf): New declaration.
66374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66375         HAVE_DECL_FLOORF.
66376         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66377         HAVE_DECL_FLOORF.
66378         * doc/functions/floorf.texi: Mention the 'floorf' module.
66379
66380 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66381             Bruno Haible  <bruno@clisp.org>
66382
66383         Advertise for the Git server instead of the CVS server.
66384         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66385         repository instead of the CVS one.
66386         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66387         about all VCS systems generically.
66388         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66389
66390 2007-10-04  Bruno Haible  <bruno@clisp.org>
66391
66392         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66393         means.
66394         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66395
66396 2007-10-04  Bruno Haible  <bruno@clisp.org>
66397
66398         * modules/truncl-tests: New file.
66399         * tests/test-truncl.c: New file.
66400
66401         * modules/truncl: New file.
66402         * lib/truncl.c: New file.
66403         * m4/truncl.m4: New file.
66404         * lib/math.in.h (truncl): New declaration.
66405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66406         HAVE_DECL_TRUNCL.
66407         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66408         HAVE_DECL_TRUNCL.
66409         * doc/functions/truncl.texi: Mention the 'truncl' module.
66410
66411 2007-10-04  Bruno Haible  <bruno@clisp.org>
66412
66413         * modules/truncf-tests: New file.
66414         * tests/test-truncf.c: New file.
66415
66416         * modules/truncf: New file.
66417         * lib/trunc.c: Make paramerizable through USE_* macros.
66418         * lib/truncf.c: New file.
66419         * m4/truncf.m4: New file.
66420         * lib/math.in.h (truncf): New declaration.
66421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66422         HAVE_DECL_TRUNCF.
66423         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66424         HAVE_DECL_TRUNCF.
66425         * doc/functions/truncf.texi: Mention the 'truncf' module.
66426
66427 2007-10-03  Bruno Haible  <bruno@clisp.org>
66428
66429         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66430         augmentation also for tests modules.
66431         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66432         * modules/atexit-tests (Makefile.am): Likewise.
66433         * modules/binary-io-tests (Makefile.am): Likewise.
66434         * modules/c-strcase-tests (Makefile.am): Likewise.
66435         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66436         * modules/canonicalize-tests (Makefile.am): Likewise.
66437         * modules/closein-tests (Makefile.am): Likewise.
66438         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66439         * modules/freadahead-tests (Makefile.am): Likewise.
66440         * modules/fseek-tests (Makefile.am): Likewise.
66441         * modules/fseeko-tests (Makefile.am): Likewise.
66442         * modules/ftell-tests (Makefile.am): Likewise.
66443         * modules/ftello-tests (Makefile.am): Likewise.
66444         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66445         * modules/isnanl-tests (Makefile.am): Likewise.
66446         * modules/lseek-tests (Makefile.am): Likewise.
66447         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66448         * modules/mbscasestr-tests (Makefile.am): Likewise.
66449         * modules/mbschr-tests (Makefile.am): Likewise.
66450         * modules/mbscspn-tests (Makefile.am): Likewise.
66451         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66452         * modules/mbspbrk-tests (Makefile.am): Likewise.
66453         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66454         * modules/mbsrchr-tests (Makefile.am): Likewise.
66455         * modules/mbsspn-tests (Makefile.am): Likewise.
66456         * modules/mbsstr-tests (Makefile.am): Likewise.
66457         * modules/printf-posix-tests (Makefile.am): Likewise.
66458         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66459         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66460         * modules/tsearch-tests (Makefile.am): Likewise.
66461         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66462         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66463         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66464         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66465         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66466         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66467         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66468         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66469         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66470         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66471         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66472         * modules/xstrtol-tests (Makefile.am): Likewise.
66473         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66474         * modules/yesno-tests (Makefile.am): Likewise.
66475
66476 2007-10-03  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/trunc-tests: New file.
66479         * tests/test-trunc.c: New file.
66480
66481         * modules/trunc: New file.
66482         * lib/trunc.c: New file.
66483         * m4/trunc.m4: New file.
66484         * lib/math.in.h (trunc): New declaration.
66485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66486         HAVE_DECL_TRUNC.
66487         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66488         HAVE_DECL_TRUNC.
66489         * doc/functions/trunc.texi: Mention the 'trunc' module.
66490
66491 2007-10-03  Bruno Haible  <bruno@clisp.org>
66492
66493         * tests/test-fpending.c: New file, mostly copied
66494         from coreutils/lib/t-fpending.c.
66495         * modules/fpending-tests: New file.
66496
66497 2007-10-03  Bruno Haible  <bruno@clisp.org>
66498
66499         Port the stdio extensions to QNX (untested).
66500         * lib/fseterr.c (fseterr): Add support for QNX.
66501         * lib/fbufmode.c (fbufmode): Likewise.
66502         * lib/freadable.c (freadable): Likewise.
66503         * lib/fwritable.c (fwritable): Likewise.
66504         * lib/freading.c (freading): Likewise.
66505         * lib/fwriting.c (fwriting): Likewise.
66506         * lib/freadahead.c (freadahed): Likewise.
66507         * lib/fpurge.c (fpurge): Likewise.
66508         * lib/fseeko.c (rpl_fseeko): Likewise.
66509
66510 2007-10-03  Bruno Haible  <bruno@clisp.org>
66511             Jim Meyering  <jim@meyering.net>
66512             Eric Blake  <ebb9@byu.net>
66513
66514         * doc/relocatable.texi: Use @command instead of @program.
66515
66516 2007-10-02  Jim Meyering  <jim@meyering.net>
66517
66518         Perform one more "_.h" -> ".in.h" substitution.
66519         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66520         instead of unistd_.h here, too.
66521
66522 2007-10-01  Bruno Haible  <bruno@clisp.org>
66523
66524         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66525         Needed for the alloca-opt module.
66526
66527 2007-09-30  Bruno Haible  <bruno@clisp.org>
66528
66529         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66530         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66531         alloca_.h.
66532         * lib/argz.in.h: Renamed from lib/argz_.h.
66533         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66534         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66535         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66536         byteswap_.h.
66537         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66538         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66539         dirent_.h.
66540         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66541         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66542         fcntl_.h.
66543         * lib/float.in.h: Renamed from lib/float_.h.
66544         * modules/float (Files, Makefile.am): Use float.in.h instead of
66545         float_.h.
66546         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66547         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66548         fnmatch_.h.
66549         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66550         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66551         getopt_.h.
66552         * lib/glob.in.h: Renamed from lib/glob_.h.
66553         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66554         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66555         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66556         iconv_.h.
66557         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66558         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66559         inttypes_.h.
66560         * lib/locale.in.h: Renamed from lib/locale_.h.
66561         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66562         locale_.h.
66563         * lib/math.in.h: Renamed from lib/math_.h.
66564         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66565         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66566         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66567         of netinet_in_.h. Add dependency.
66568         * lib/poll.in.h: Renamed from lib/poll_.h.
66569         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66570         * lib/search.in.h: Renamed from lib/search_.h.
66571         * modules/search (Files, Makefile.am): Use search.in.h instead of
66572         search_.h.
66573         * lib/signal.in.h: Renamed from lib/signal_.h.
66574         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66575         _signal.h.
66576         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66577         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66578         stdbool_.h.
66579         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66580         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66581         stdint_.h.
66582         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66583         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66584         stdio_.h.
66585         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66586         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66587         stdlib_.h.
66588         * lib/string.in.h: Renamed from lib/string_.h.
66589         * modules/string (Files, Makefile.am): Use string.in.h instead of
66590         string_.h.
66591         * doc/gnulib-tool.texi (Initial import): Update.
66592         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66593         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66594         of sys_select_.h. Add dependency.
66595         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66596         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66597         of sys_socket_.h.
66598         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66599         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66600         sys_stat_.h.
66601         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66602         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66603         sys_time_.h.
66604         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66605         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66606         sysexits_.h.
66607         * lib/time.in.h: Renamed from lib/time_.h.
66608         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66609         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66610         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66611         unistd_.h.
66612         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66613         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66614         wchar_.h.
66615         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66616         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66617         wctype_.h.
66618         * build-aux/bootstrap (slurp): Update.
66619         * lib/.cppi-disable: Update.
66620
66621 2007-09-30  Bruno Haible  <bruno@clisp.org>
66622
66623         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66624         Needed on BeOS.
66625
66626 2007-09-30  Bruno Haible  <bruno@clisp.org>
66627
66628         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66629
66630 2007-09-29  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66633
66634 2007-09-29  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66637         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66638         * build-aux/install-reloc: Compile also areadlink.c.
66639         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66640
66641 2007-09-29  Bruno Haible  <bruno@clisp.org>
66642
66643         * gnulib-tool (func_emit_initmacro_done): Indentation.
66644
66645 2007-09-29  Bruno Haible  <bruno@clisp.org>
66646
66647         * README: Add CVS checkout update instructions.
66648         Info from Bob Proulx <bob@proulx.com>.
66649
66650 2007-09-28  Eric Blake  <ebb9@byu.net>
66651
66652         Provide move-if-change.
66653         * build-aux/move-if-change: New file, based on best practice
66654         rather than any canonical upstream location.
66655
66656 2007-09-28  Jim Meyering  <jim@meyering.net>
66657
66658         Fix canonicalize loop-detection corner case.
66659         Do not attempt to stat the symlink values stored via seen_triple.
66660         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66661         on linux-2.6.18, (but not 2.6.22).
66662         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66663         triple_compare.  The former compares dev,ino,filename, while the latter
66664         would actually stat dirname(filename) when dev and ino were equal.
66665         * lib/hash-triple.c: Install <string.h>.
66666         (STREQ): Define.
66667         (triple_compare_ino_str): New function.
66668         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66669
66670 2007-09-28  Eric Blake  <ebb9@byu.net>
66671
66672         Enforce that AC_REPLACE_FUNCS files exist.
66673         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66674         override check for typos.
66675
66676         Fix test-closein on Solaris 10.
66677         * tests/test-closein.c (main): Don't assume stdin can be inherited
66678         closed on all systems.
66679         * tests/test-closein.sh: Likewise.
66680         Reported by Piotr Tarnowski.
66681
66682 2007-09-28  Jim Meyering  <jim@meyering.net>
66683
66684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66685
66686 2007-09-27  Jim Meyering  <jim@meyering.net>
66687
66688         canonicalize: Avoid a false-positive cycle failure.
66689         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66690         Sort.  Remove cycle-check.
66691         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66692         not cycle-check.h.
66693         (seen_triple): New function.
66694         (canonicalize_filename_mode): Use it instead of cycle-check.
66695         * tests/test-canonicalize.c: Add a test for this bug.
66696         * tests/test-canonicalize.sh: Set up and run the test.
66697
66698         New module, file-set, from coreutils.
66699         * modules/file-set: Define it.
66700         * lib/file-set.c, lib/file-set.h: Implement.
66701
66702         New module, hash-triple, from coreutils.
66703         * modules/hash-triple: Define it.
66704         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66705
66706 2007-09-25  Eric Blake  <ebb9@byu.net>
66707
66708         Fix strerror on Interix.
66709         * lib/string_.h (strerror): Declare replacement.
66710         * doc/functions/strerror.texi (strerror): Document the Interix
66711         shortcoming.
66712         * modules/string (Makefile.am): Support new hooks.
66713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66714         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66715         gl_FUNC_STRERROR_SEPARATE.
66716         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66717         * lib/strerror.c (rpl_strerror): Provide replacement.
66718         * modules/strerror (Depends-on): Add string.
66719         (configure.ac): Detect use of module.
66720         * tests/test-strerror.c: New file.
66721         * modules/strerror-tests: New test module.
66722         * modules/argp (Depends-on): Add strerror.
66723         * modules/error (Depends-on): Likewise.
66724         Reported by Martin Koeppe.
66725
66726 2007-09-24  Bruno Haible  <bruno@clisp.org>
66727
66728         * README: Update git instructions.
66729
66730 2007-09-24  Eric Blake  <ebb9@byu.net>
66731
66732         Revert fpending breakage from 2007-09-08.
66733         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66734         __fpending.c.
66735
66736 2007-09-24  Jim Meyering  <jim@meyering.net>
66737
66738         filenamecat.c: Add a test.
66739         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66740         showing how the function works when DIR is the empty string.
66741
66742 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66743
66744         * tests/test-canonicalize.sh: Turn on executable bit.
66745
66746 2007-09-19  Eric Blake  <ebb9@byu.net>
66747
66748         * README: Update CVS instructions.
66749
66750 2007-09-18  Bruno Haible  <bruno@clisp.org>
66751
66752         * modules/areadlink: New file.
66753         * lib/areadlink.h (areadlink): New declaration.
66754         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66755
66756 2007-09-17  Jim Meyering  <jim@meyering.net>
66757
66758         * lib/savewd.c (ESTALE) [!defined]: Define.
66759         Reported to be required on Interix by Martin Koeppe.
66760
66761 2007-09-17  Bruno Haible  <bruno@clisp.org>
66762
66763         * gnulib-tool (func_version): Use $version.
66764
66765 2007-09-16  Bruno Haible  <bruno@clisp.org>
66766
66767         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66768         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66769         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66770         Reported by Greg Schafer <gschafer@zip.com.au>.
66771
66772 2007-09-15  Bruno Haible  <bruno@clisp.org>
66773
66774         * gnulib-tool (sed): Try a little harder to make bash understand the
66775         alias.
66776         Reported by Bruce Korb <bruce.korb@gmail.com>.
66777
66778 2007-09-13  Eric Blake  <ebb9@byu.net>
66779
66780         * ChangeLog: Remove conflict markers.
66781
66782 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66783
66784         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66785         Reported by Bruno Haible <bruno@clisp.org>.
66786
66787 2007-09-12  Bruno Haible  <bruno@clisp.org>
66788
66789         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66790         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66791         is not defined.
66792
66793 2007-09-12  Eric Blake  <ebb9@byu.net>
66794
66795         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66796         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66797         Autoconf definition.
66798         * modules/euidaccess (Depends-on): Add extensions, for
66799         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66800         * modules/fnmatch (Depends-on): Likewise.
66801         * modules/getaddrinfo (Depends-on): Likewise.
66802         * modules/getdelim (Depends-on): Likewise.
66803         * modules/getline (Depends-on): Likewise.
66804         * modules/getsubopt (Depends-on): Likewise.
66805         * modules/gettext (Depends-on): Likewise.
66806         * modules/group-member (Depends-on): Likewise.
66807         * modules/mbchar (Depends-on): Likewise.
66808         * modules/memmem (Depends-on): Likewise.
66809         * modules/mempcpy (Depends-on): Likewise.
66810         * modules/memrchr (Depends-on): Likewise.
66811         * modules/pagealign_alloc (Depends-on): Likewise.
66812         * modules/readutmp (Depends-on): Likewise.
66813         * modules/stpcpy (Depends-on): Likewise.
66814         * modules/stpncpy (Depends-on): Likewise.
66815         * modules/strchrnul (Depends-on): Likewise.
66816         * modules/strndup (Depends-on): Likewise.
66817         * modules/strsep (Depends-on): Likewise.
66818         * modules/strverscmp (Depends-on): Likewise.
66819         * modules/vasprintf (Depends-on): Likewise.
66820         * modules/wcwidth (Depends-on): Likewise.
66821         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66822         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66823         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66825         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66826         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66827         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66828         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66829         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66830         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66831         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66832         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66833         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66834         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66835         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66836         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66837         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66838         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66840         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66841         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66842         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66843         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66844         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66845         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66847         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66848         so that lock.m4 can be used in gettext without extensions module.
66849
66850 2007-09-11  Bruno Haible  <bruno@clisp.org>
66851
66852         * m4/isc-posix.m4: Remove file.
66853         Suggested by Eric Blake.
66854
66855 2007-09-11  Eric Blake  <ebb9@byu.net>
66856
66857         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66858
66859 2007-09-10  Bruno Haible  <bruno@clisp.org>
66860
66861         * posix-modules: Fix typo in error message.
66862         Reported by Matt <mkraai@beckman.com>.
66863
66864 2007-09-09  Bruno Haible  <bruno@clisp.org>
66865
66866         * doc/functions/getdelim.texi: Update list of platforms lacking the
66867         function.
66868         * doc/functions/getline.texi: Likewise.
66869
66870 2007-09-09  Jim Meyering  <jim@meyering.net>
66871
66872         * lib/hash.c (hash_initialize): Detect calloc failure.
66873         Reported by Bruno Haible.
66874
66875 2007-09-09  Bruno Haible  <bruno@clisp.org>
66876
66877         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66878         malloc or realloc fails.
66879
66880 2007-09-09  Bruno Haible  <bruno@clisp.org>
66881
66882         * modules/getcwd (Depends-on): Add malloc-posix.
66883         * modules/glob (Depends-on): Likewise.
66884         * modules/putenv (Depends-on): Likewise.
66885         * modules/strdup (Depends-on): Likewise.
66886         * modules/getdelim (Depends-on): Add realloc-posix.
66887         * modules/read-file (Depends-on): Likewise.
66888
66889 2007-09-09  Bruno Haible  <bruno@clisp.org>
66890
66891         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66892         (gl_FUNC_MALLOC_POSIX): Require it.
66893         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66894         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66895         * modules/realloc (Files): Add m4/malloc.m4.
66896         * modules/calloc (Files): Likewise.
66897
66898 2007-09-09  Bruno Haible  <bruno@clisp.org>
66899
66900         * modules/malloc-posix: New file.
66901         * modules/malloc (Depends-on): Add malloc-posix.
66902         * lib/malloc.c: Include errno.h.
66903         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66904         and a POSIX-compatible malloc into a single function. Set ENOMEM
66905         when returning NULL.
66906         * m4/malloc.m4: New file.
66907         * doc/functions/malloc.texi: Mention the malloc-posix module.
66908         * lib/stdlib_.h (malloc): New declaration.
66909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66910         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66911         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66912         and HAVE_MALLOC_POSIX.
66913
66914 2007-09-09  Bruno Haible  <bruno@clisp.org>
66915
66916         * modules/realloc-posix: New file.
66917         * modules/realloc (Depends-on): Add realloc-posix.
66918         * lib/realloc.c: Include errno.h.
66919         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66920         and a POSIX-compatible realloc into a single function. Set ENOMEM
66921         when returning NULL.
66922         * m4/realloc.m4: New file.
66923         * doc/functions/realloc.texi: Mention the realloc-posix module.
66924         * lib/stdlib_.h (realloc): New declaration.
66925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66926         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66927         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66928         and HAVE_REALLOC_POSIX.
66929
66930 2007-09-09  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/calloc-posix: New file.
66933         * modules/calloc (Depends-on): Add calloc-posix.
66934         * lib/calloc.c: Include errno.h.
66935         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66936         and a POSIX-compatible calloc into a single function. Set ENOMEM
66937         when returning NULL.
66938         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66939         * doc/functions/calloc.texi: Mention the calloc-posix module.
66940         * lib/stdlib_.h (calloc): New declaration.
66941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66942         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66943         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66944         and HAVE_CALLOC_POSIX.
66945
66946 2007-09-09  Bruno Haible  <bruno@clisp.org>
66947
66948         Allow for modules to show an arbitrary notice.
66949         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66950         * gnulib-tool: New option --extract-notice.
66951         (func_usage): Document it.
66952         (sed_extract_prog): Update.
66953         (func_get_notice): New function.
66954         (func_modules_notice): New function.
66955         (func_import, func_create_testdir): Invoke it.
66956         Suggested by Jim Meyering.
66957
66958 2007-09-09  Bruno Haible  <bruno@clisp.org>
66959
66960         * gnulib-tool: New options --verbose, --quiet.
66961         (func_usage): Document them.
66962         (verbose): New variable.
66963         (func_execute_command): New function.
66964         (func_import): Don't show the module list and the file list if
66965         $verbose < 0.
66966         (func_create_testdir): Likewise. Use func_execute_command.
66967         (func_create_megatestdir): Use func_execute_command.
66968
66969 2007-09-08  Bruno Haible  <bruno@clisp.org>
66970
66971         * gnulib-tool (func_import): Prefer rsync over wget when available,
66972         for fetching the PO files.
66973
66974 2007-09-08  Bruno Haible  <bruno@clisp.org>
66975
66976         * posix-modules: New file. Portions copied from gnulib-tool.
66977         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66978
66979 2007-09-08  Jim Meyering  <jim@meyering.net>
66980
66981         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66982         * lib/fpending.h: Rename from __fpending.h.
66983         * lib/fpending.c: Rename from __fpending.c.
66984         Include "fpending.h", not "__fpending.h".
66985         * lib/__fpending.h, lib/__fpending.c: Remove files.
66986         * modules/fpending (Files): Reflect new file names.
66987         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66988
66989 2007-09-08  Bruno Haible  <bruno@clisp.org>
66990
66991         * m4/inttypes-h.m4: Remove stub file.
66992
66993 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66994
66995         * doc/headers/stdint.texi: Discuss #include_next issue.
66996
66997 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67000
67001 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67002
67003         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67004         in variable name.
67005
67006 2007-09-03  Jim Meyering  <jim@meyering.net>
67007
67008         New module: git-version-gen.
67009         * modules/git-version-gen: New file.
67010
67011         Import changes from coreutils for bootstrap script.
67012
67013         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67014
67015         bootstrap: uses rsync to download the .po files
67016         * build-aux/bootstrap (po_download_command_format): New global.
67017         (download_po_files): Use rsync.
67018         (update_po_files): Don't remove .po files after download,
67019         so future rsync runs can take advantage of the copies.
67020
67021         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67022
67023         Solve the unnecessary-.po-file-regeneration problem once and for all.
67024         * build-aux/bootstrap (download_po_files): New function, renamed from
67025         get_translations.  Now, downloads, but doesn't update LINGUAS.
67026         (update_po_files): New function.
67027
67028         bootstrap: Ignore more.
67029         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67030         uniwidth to e.g., lib/.gitignore.
67031         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67032
67033         * build-aux/bootstrap: New setting: vc_ignore.
67034         (insert_sorted_if_absent): Create $file if absent.
67035         Adapt to new, possibly empty, list: $vc_ignore.
67036
67037         bootstrap: generate more ignorable names
67038         * build-aux/bootstrap (slurp): When generating ignorable names,
67039         also map .sin to .sed, .gperf to .c, and .y to .c.
67040
67041 2007-09-03  Jim Meyering  <jim@meyering.net>
67042
67043         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67044         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67045
67046 2007-09-02  Bruno Haible  <bruno@clisp.org>
67047
67048         Fix mis-recognition of 'mcs' on QNX 6.
67049         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67050         output contains the string "Mono".
67051         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67052         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67053
67054 2007-09-01  Bruno Haible  <bruno@clisp.org>
67055
67056         Fix collision between uniwidth/* and linebreak modules.
67057         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67058         u32_width): Remove declarations.
67059         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67060         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67061         streq3, streq2, streq1, streq0): Remove functions.
67062         (STREQ): Remove macro.
67063         (is_cjk_encoding): Remove function.
67064         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67065         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67066         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67067         * NEWS: Document the change.
67068
67069 2007-09-01  Bruno Haible  <bruno@clisp.org>
67070
67071         * lib/streq.h: Add double-inclusion guard.
67072
67073 2007-09-01  Karl Berry  <karl@gnu.org>
67074
67075         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67076
67077 2007-08-28  Jim Meyering  <jim@meyering.net>
67078
67079         Rename mreadlink_with_size to areadlink_with_size.
67080         * NEWS: Document the change.
67081         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67082         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67083         * lib/mreadlink.h: Rename this to...
67084         * lib/areadlink.h: ...this.
67085         * modules/mreadlink-with-size: Rename this to...
67086         * modules/areadlink-with-size: ...this.
67087         * lib/canonicalize.c: Reflect the renaming.
67088         * modules/canonicalize: Likewise.
67089
67090 2007-08-26  Bruno Haible  <bruno@clisp.org>
67091
67092         * gnulib-tool (func_import): When deciding which files to remove,
67093         consider also dangling symbolic links.
67094         Reported by Eric Blake.
67095
67096 2007-08-26  Bruno Haible  <bruno@clisp.org>
67097
67098         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67099
67100 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67101
67102         * lib/readline.c: Don't include getline.h, the prototype is now
67103         found in stdio.h.
67104
67105 2007-08-23  Jim Meyering  <jim@meyering.net>
67106
67107         Getdelim touchup.
67108         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67109         around the funlockfile call, since funlockfile never sets errno.
67110         Don't set errno upon failed realloc.
67111
67112 2007-08-22  Eric Blake  <ebb9@byu.net>
67113
67114         Getline touchups.
67115         * lib/getdelim.c (getdelim): Revert regression that required *n to
67116         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67117         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67118         getdelim, rather than whether implementation is missing.
67119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67120         * lib/stdio_.h (getline): Also declare if replacement is
67121         required.
67122         * doc/functions/getdelim.texi: New file.
67123         * doc/functions/getline.texi: Likewise.
67124         * doc/gnulib.texi (Function Substitutes): Add new files.
67125         Reported by Bruno Haible.
67126
67127 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67128
67129         * users.txt: Add Guile.
67130
67131 2007-08-22  Eric Blake  <ebb9@byu.net>
67132
67133         * tests/test-getdelim.c (main): Use remove, not unlink.
67134         * tests/test-getline.c (main): Likewise.
67135
67136         Move getline and getdelim into stdio.h, per POSIX 200x.
67137         * modules/getline (Files): Remove getline.h.
67138         (Depends-on): Add stdio.
67139         (configure.ac): Add module indicator.
67140         * modules/getdelim (Files): Remove getdelim.h.
67141         (Depends-on): Add stdio.
67142         (configure.ac): Add module indicator.
67143         * modules/stdio (Makefile.am): Work with new indicators.
67144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67146         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67147         * lib/getdelim.h: Delete.
67148         * lib/getline.h: Delete.
67149         * lib/stdio_.h (getdelim, getline): Declare.
67150         * modules/getdelim-tests: New module.
67151         * modules/getline-tests: Likewise.
67152         * tests/test-getdelim.c: New file.
67153         * tests/test-getline.c: Likewise.
67154         * NEWS: Document the change.
67155         * lib/getline.c: Update choice of header.
67156         * lib/csharpcomp.c: Likewise.
67157         * lib/getpass.c: Likewise.
67158         * lib/javacomp.c: Likewise.
67159         * lib/javaversion.c: Likewise.
67160         * lib/yesno.c: Likewise.
67161         * lib/getdelim.c: Likewise.
67162         (getdelim): Set errno on failure, and avoid memory leak.
67163
67164 2007-08-19  Bruno Haible  <bruno@clisp.org>
67165
67166         * modules/closein (Depends-on): Add freadahead.
67167         * lib/closein.c: Include freadahead.h.
67168         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67169         is zero.
67170
67171 2007-08-19  Bruno Haible  <bruno@clisp.org>
67172
67173         * modules/freadahead-tests: New file.
67174         * tests/test-freadahead.sh: New file.
67175         * tests/test-freadahead.c: New file.
67176
67177         * modules/freadahead: New file.
67178         * lib/freadahead.h: New file.
67179         * lib/freadahead.c: New file.
67180         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67181         fbufmode, fpurge, freadable, fwritable.
67182
67183 2007-08-19  Eric Blake  <ebb9@byu.net>
67184
67185         Test yesno in combination with closein.
67186         * lib/yesno.c (yesno): Document use of stdin.
67187         * modules/yesno-tests (Files): New module.
67188         * tests/test-yesno.c (main): New file.
67189         * tests/test-yesno.sh: Likewise.
67190
67191 2007-08-19  Bruno Haible  <bruno@clisp.org>
67192
67193         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67194         * lib/fseeko.c (rpl_fseeko): Likewise.
67195         * lib/fseterr.c (fseterr): Likewise.
67196
67197 2007-08-19  Bruno Haible  <bruno@clisp.org>
67198
67199         * tests/test-lseek.c (main): Disable a test for BeOS.
67200         * doc/functions/lseek.texi: Document the BeOS bug.
67201
67202 2007-08-19  Bruno Haible  <bruno@clisp.org>
67203             Eric Blake  <ebb9@byu.net>
67204
67205         * lib/lseek.c: Include <sys/stat.h>.
67206         (rpl_lseek): Add workaround code also for Unix platforms.
67207         Needed for BeOS.
67208         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67209         * doc/functions/lseek.texi: Document BeOS definiency.
67210
67211 2007-08-18  Bruno Haible  <bruno@clisp.org>
67212
67213         * modules/fstrcmp-tests: New file.
67214         * tests/test-fstrcmp.c: New file.
67215
67216 2007-08-18  Bruno Haible  <bruno@clisp.org>
67217
67218         * modules/fstrcmp: New file, from GNU gettext with modifications.
67219         * lib/fstrcmp.h: New file, from GNU gettext.
67220         * lib/fstrcmp.c: New file, from GNU gettext.
67221         * MODULES.html.sh (String handling): Add fstrcmp.
67222
67223 2007-08-18  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67226         'bool'.
67227         (diag, compareseq): Remove const from the ctxt argument.
67228         (USE_HEURISTIC): Undefine at the end.
67229
67230 2007-08-18  Jim Meyering  <jim@meyering.net>
67231
67232         New file: lib/idcache.h
67233         * NEWS: Mention the addition.
67234         * modules/idcache (Files): Add lib/idcache.h
67235         * lib/idcache.c: Include "idcache.h".
67236         Don't include <sys/types.h>.
67237         Add a FIXME comment.
67238         Move file-scoped "static" declarations to the top.
67239         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67240
67241 2007-08-17  Bruno Haible  <bruno@clisp.org>
67242         and Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * MODULES.html.sh: Add diffseq.
67245         * modules/diffseq: New file.
67246         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67247         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67248
67249 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         Import changes from coreutils for bootstrap script.
67252
67253         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         * build-aux/bootstrap (slurp): Work even in environments where
67256         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67257         current code does not slurp files whose names start with ".", and
67258         this looks like it might be a troublesome area.
67259
67260         2007-07-11  Jim Meyering  <jim@meyering.net>
67261
67262         If there's a GPL vN copyright comment, require that N == 3.
67263
67264         2007-07-08  Jim Meyering  <jim@meyering.net>
67265
67266         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67267         * build-aux/bootstrap (mam_template): Move definition out of loop.
67268
67269         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67270
67271         * build-aux/bootstrap (symlink_to_dir): Rename function from
67272         symlink_to_gnulib.  Add a directory parameter.  Update all
67273         callers.
67274         (cp_mark_as_generated): Also check for -- and link to -- files in
67275         gl/.
67276
67277         2007-07-08  Jim Meyering  <jim@meyering.net>
67278
67279         Adapt to deeper hierarchy in gnulib.
67280         * build-aux/bootstrap (symlink_to_dir): If the destination
67281         directory doesn't exist, create it. This is required at least for
67282         "lib/uniwidth/cjk.h".
67283
67284         2007-05-15  Jim Meyering  <jim@meyering.net>
67285
67286         * build-aux/bootstrap: Now that generated Makefile.am files
67287         are no longer under version control, they must be created at
67288         bootstrap time.
67289
67290 2007-08-14  Ben Pfaff  <blp@gnu.org>
67291
67292         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67293
67294 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67295
67296         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67297         given the changes below.
67298         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67299         even on hosts that have padding bits beyond the supported 64.
67300
67301 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67304         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67305         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67306         depends on it.
67307         (xstrtol_error): Remove.
67308         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67309         but with a different signature.
67310         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67311         * lib/xstrtol-error.c: Include exitfail.h.
67312         (xstrtol_fatal): New function, with a different signature from the
67313         old xstrtol_error, so that the caller need not worry about passing
67314         in an exit status, or about storage management of the option argument.
67315         (xstrtol_error): Now a static function.  Redo signature to
67316         implement xstrtol_fatal.  Output the correct number of hyphens in
67317         front of the option so that the caller need not worry about
67318         storage management.
67319         (N_): New macro.
67320         (_): Remove; not used now.
67321         * modules/xstrtol: Depend on getopt.
67322         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67323         of old STRTOL_FATAL_ERROR macro.
67324         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67325         of test program.
67326         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67327         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67328
67329 2007-08-08  Eric Blake  <ebb9@byu.net>
67330
67331         * lib/xstrtol-error.c: Add missing include.
67332
67333         Move xstrtol messages into gnulib domain, when --pobase is used.
67334         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67335         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67336         * modules/xstrtol (Files): Distribute new file.
67337         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67338         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67339         * tests/test-xstrtol.c: ...into new file.
67340         * tests/test-xstrtoul.c: Also test xstrtoul.
67341         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67342         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67343         * tests/test-xstrtol.sh: Drive the tests.
67344         * tests/test-xstrtoimax.sh: Likewise.
67345         * tests/test-xstrtoumax.sh: Likewise.
67346         * modules/xstrtol-tests: New module.
67347         * modules/xstrtoimax-tests: Likewise.
67348         * modules/xstrtoumax-tests: Likewise.
67349
67350 2007-08-08  Jim Meyering  <jim@meyering.net>
67351
67352         New function: mfile_name_concat.
67353         * lib/filenamecat.c (mfile_name_concat): New function, just like
67354         file_name_concat, but return NULL upon failure rather than exiting
67355         with a diagnostic.
67356         * lib/filenamecat.h: Declare it.
67357
67358 2007-08-07  Bruno Haible  <bruno@clisp.org>
67359
67360         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67361         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67362         warning from gcc.
67363         Reported by Eric Blake.
67364
67365 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67366
67367         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67368         * modules/crypto/arcfour (License): Likewise.
67369         * modules/crypto/des-tests (License): Likewise.
67370         * modules/crypto/gc-arctwo-tests (License): Likewise.
67371         * modules/crypto/gc-des-tests (License): Likewise.
67372         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67373         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67374         * modules/crypto/gc-md2-tests (License): Likewise.
67375         * modules/crypto/gc-md4-tests (License): Likewise.
67376         * modules/crypto/gc-md5-tests (License): Likewise.
67377         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67378         * modules/crypto/gc-rijndael-tests (License): Likewise.
67379         * modules/crypto/gc-sha1-tests (License): Likewise.
67380         * modules/crypto/gc-tests (License): Likewise.
67381         * modules/crypto/hmac-md5 (License): Likewise.
67382         * modules/crypto/hmac-sha1 (License): Likewise.
67383         * modules/crypto/md2-tests (License): Likewise.
67384         * modules/crypto/md4-tests (License): Likewise.
67385         * modules/crypto/md5 (License): Likewise.
67386         * modules/crypto/rijndael (License): Likewise.
67387         * modules/crypto/sha1 (License): Likewise.
67388         * modules/memxor (License): Likewise.
67389
67390 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67391         and Bruno Haible  <bruno@clisp.org>
67392
67393         * NEWS: Describe interface changes to human, xstrtol.
67394         * lib/human.h: Include <xstrtol.h>.
67395         (human_options): Return enum strtol_error, not int.  Remove
67396         bool arg; take int * instead.
67397         * lib/human.c: Don't include "gettext.h".
67398         (_): Remove; no longer used.
67399         Don't include <xstrtol.h>, since human.h does it.
67400         (human_options): Adjust to abovementioned interface changes.
67401         Do not report error to stderr; that's now the caller's
67402         responsibility.
67403         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67404         interface change.
67405         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67406         Str, Argument_type_string.  All uses changed.  Put " argument"
67407         in diagnostics to make them clearer.  Change wording of suffix
67408         message for clarity.
67409         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67410         Argument_type_string.
67411         (STRTOL_FATAL_WARN): Remove; no longer used.
67412         * modules/human (Depends-on): Remove gettext-h.
67413
67414 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67415
67416         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67417
67418 2007-07-31  Bruno Haible  <bruno@clisp.org>
67419
67420         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67421         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67422         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67423
67424 2007-07-31  Bruno Haible  <bruno@clisp.org>
67425
67426         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67427         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67428
67429 2007-07-30  Bruno Haible  <bruno@clisp.org>
67430
67431         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67432         * modules/c-ctype (License): Likewise.
67433         * modules/c-strcase (License): Likewise.
67434         * modules/check-version (License): Likewise.
67435         * modules/iconv (License): Likewise.
67436         * modules/iconv_open (License): Likewise.
67437         * modules/read-file (License): Likewise.
67438         * modules/striconv (License): Likewise.
67439         * modules/strverscmp (License): Likewise.
67440         * modules/vasprintf (License): Likewise.
67441         * modules/crypto/des (License): Likewise.
67442         * modules/crypto/gc (License): Likewise.
67443         * modules/crypto/gc-arcfour (License): Likewise.
67444         * modules/crypto/gc-arctwo (License): Likewise.
67445         * modules/crypto/gc-des (License): Likewise.
67446         * modules/crypto/gc-hmac-md5 (License): Likewise.
67447         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67448         * modules/crypto/gc-md2 (License): Likewise.
67449         * modules/crypto/gc-md4 (License): Likewise.
67450         * modules/crypto/gc-md5 (License): Likewise.
67451         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67452         * modules/crypto/gc-random (License): Likewise.
67453         * modules/crypto/gc-rijndael (License): Likewise.
67454         * modules/crypto/gc-sha1 (License): Likewise.
67455         * modules/crypto/md2 (License): Likewise.
67456         * modules/crypto/md4 (License): Likewise.
67457
67458 2007-07-30  Jim Meyering  <jim@meyering.net>
67459
67460         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67461         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67462         it has valid stat data.  This bug would cause du not to count the
67463         sizes of inaccessible directories.
67464         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67465         in <http://bugzilla.redhat.com/250077>.
67466
67467 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67468             Bruno Haible  <bruno@clisp.org>
67469
67470         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67471         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67472         #include_next, gives a diagnostic about it, but reports no error in
67473         the exit code.
67474         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67475
67476 2007-07-24  Ben Pfaff  <blp@gnu.org>
67477
67478         Improve name: "count-one-bits" is better than "popcount".
67479         * MODULES.html.sh: Update name.
67480         * lib/popcount.h: Renamed lib/count-one-bits.h.
67481         (popcount): Renamed count_one_bits.
67482         (popcountl): Renamed count_one_bits_l.
67483         (popcountll): Renamed count_one_bits_ll.
67484         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67485         * modules/popcount: Renamed module/count-one-bits.
67486         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67487         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67488
67489 2007-07-23  Ben Pfaff  <blp@gnu.org>
67490
67491         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67492         better code generation, and add U to large constants to avoid
67493         warnings, in non-GCC case.
67494         Suggested by Bruno Haible.
67495
67496 2007-07-23  Ben Pfaff  <blp@gnu.org>
67497
67498         * lib/popcount.h: Use verify_true instead of if...abort.
67499         * modules/popcount: Depend on verify module.
67500         Suggested by Jim Meyering.
67501
67502 2007-07-23  Bruno Haible  <bruno@clisp.org>
67503
67504         * gnulib-tool (func_import): Create a .cvsignore file also when the
67505         directory is not yet in CVS but the toplevel directory is. When
67506         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67507         Reported by Karl Berry.
67508
67509 2007-07-22  Ben Pfaff  <blp@gnu.org>
67510
67511         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67512         case.
67513         Suggested by Eric Blake.
67514
67515 2007-07-22  Ben Pfaff  <blp@gnu.org>
67516
67517         New module: popcount.
67518         * MODULES.html.sh: Add popcount.
67519         * modules/popcount: New file.
67520         * modules/popcount-tests: New file.
67521         * tests/test-popcount.c: New file.
67522         * lib/popcount.h: New file.
67523         * m4/popcount.m4: New file.
67524
67525 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * build-aux/announce-gen: Update to GPLv3.
67528
67529         * build-aux/config.guess: Update from config.
67530
67531 2007-07-21  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67534         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67535
67536 2007-07-20  Jim Meyering  <jim@meyering.net>
67537
67538         * check-module: Diagnose a self-dependency.
67539
67540 2007-07-19  Bruno Haible  <bruno@clisp.org>
67541
67542         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67543         empty.
67544         Reported by Eric Blake.
67545
67546 2007-07-18  Bruno Haible  <bruno@clisp.org>
67547
67548         * gnulib-tool: New options --po-base, --po-domain.
67549         (func_usage): Document them.
67550         (pobase, po_domain): New variables.
67551         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67552         DEFAULT_TEXT_DOMAIN.
67553         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67554         (func_import): Consider pobase and po_domain. Create a po/ directory.
67555         (func_create_testdir): Set pobase and po_domain to empty.
67556         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67557         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67558
67559 2007-07-18  Bruno Haible  <bruno@clisp.org>
67560
67561         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67562         EXTRA_DIST augmentation for files in build-aux/.
67563
67564 2007-07-16  Bruno Haible  <bruno@clisp.org>
67565
67566         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67567         * modules/getdelim (License): Likewise.
67568
67569 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67570
67571         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67572         * modules/d-type (License): Likewise.
67573         * modules/extensions (License): Likewise.
67574         * modules/fnmatch (License): Likewise.
67575         * modules/fseeko (License): Likewise.
67576         * modules/getaddrinfo (License): Likewise.
67577         * modules/getline (License): Likewise.
67578         * modules/getlogin_r (License): Likewise.
67579         * modules/getpass (License): Likewise.
67580         * modules/gettimeofday (License): Likewise.
67581         * modules/glob (License): Likewise.
67582         * modules/inet_ntop (License): Likewise.
67583         * modules/malloc (License): Likewise.
67584         * modules/malloca (License): Likewise.
67585         * modules/memmem (License): Likewise.
67586         * modules/mempcpy (License): Likewise.
67587         * modules/memset (License): Likewise.
67588         * modules/minmax (License): Likewise.
67589         * modules/mktime (License): Likewise.
67590         * modules/netinet_in (License): Likewise.
67591         * modules/pathmax (License): Likewise.
67592         * modules/poll (License): Likewise.
67593         * modules/regex (License): Likewise.
67594         * modules/snprintf (License): Likewise.
67595         * modules/stdbool (License): Likewise.
67596         * modules/stdint (License): Likewise.
67597         * modules/stdio (License): Likewise.
67598         * modules/strcase (License): Likewise.
67599         * modules/strcasestr (License): Likewise.
67600         * modules/strdup (License): Likewise.
67601         * modules/string (License): Likewise.
67602         * modules/strndup (License): Likewise.
67603         * modules/strnlen (License): Likewise.
67604         * modules/strpbrk (License): Likewise.
67605         * modules/strptime (License): Likewise.
67606         * modules/strsep (License): Likewise.
67607         * modules/sys_select (License): Likewise.
67608         * modules/sys_socket (License): Likewise.
67609         * modules/sys_stat (License): Likewise.
67610         * modules/sys_time (License): Likewise.
67611         * modules/time (License): Likewise.
67612         * modules/time_r (License): Likewise.
67613         * modules/timegm (License): Likewise.
67614         * modules/unistd (License): Likewise.
67615         * modules/vsnprintf (License): Likewise.
67616         * modules/wctype (License): Likewise.
67617
67618 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67619
67620         * modules/argz (License): LGPLv2+.
67621
67622 2007-07-15  Karl Berry  <karl@gnu.org>
67623
67624         * doc/gnulib.texi: revise node structure per new fdl.texi.
67625
67626 2007-07-14  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67629         the output file.
67630         * lib/uniname/uninames.h: Regenerated.
67631
67632 2007-07-14  Karl Berry  <karl@gnu.org>
67633
67634         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67635         omitting sectioning and index commands.
67636
67637 2007-07-13  Bruno Haible  <bruno@clisp.org>
67638
67639         New gnulib-tool option --more-symlinks.
67640         * gnulib-tool (func_usage): Document --more-symlinks.
67641         (do_copyrights): New variable.
67642         Recognize option --more-symlinks.
67643         (func_import): Don't add a copyright notice transform to
67644         sed_transform_lib_file if do_copyrights is empty.
67645
67646 2007-07-13  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/vasnprintf.c (decimal_point_char): Define also if
67649         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67650         && !NEED_PRINTF_DIRECTIVE_A.
67651         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67652         Gary V. Vaughan <gary@gnu.org>.
67653
67654 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * lib/inttypes_.h: Undo previous change, since it was fixed
67657         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67658
67659 2007-07-13  Bruno Haible  <bruno@clisp.org>
67660
67661         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67662         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67663
67664 2007-07-13  Jim Meyering  <jim@meyering.net>
67665
67666         df: Don't fail for Tru64's "file-on-file mount".
67667         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67668         so we fall through and use statfs instead.  Details here:
67669         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67670         Reported by Albert Chin.
67671
67672 2007-07-13  Bruno Haible  <bruno@clisp.org>
67673
67674         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67675         * modules/configmake (License): Likewise.
67676         * modules/gettext (License): Likewise.
67677         * modules/gettext-h (License): Likewise.
67678         * modules/include_next (License): Likewise.
67679         * modules/link-warning (License): Likewise.
67680         * modules/localcharset (License): Likewise.
67681         * modules/localename (License): Likewise.
67682         * modules/lock (License): Likewise.
67683         * modules/relocatable-lib-lgpl (License): Likewise.
67684         * modules/size_max (License): Likewise.
67685         * modules/vasnprintf (License): Likewise.
67686         * modules/wchar (License): Likewise.
67687         * modules/xsize (License): Likewise.
67688
67689 2007-07-13  Bruno Haible  <bruno@clisp.org>
67690
67691         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67692         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67693
67694 2007-07-12  Bruno Haible  <bruno@clisp.org>
67695
67696         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67697         in the modules files.
67698
67699 2007-07-11  Karl Berry  <karl@gnu.org>
67700
67701         * MODULES.html.sh (func_module): use
67702          sed -e '\|^'"${includefile}"'$|d'
67703          instead of /.../d, to avoid errors on $includefile's containing /.
67704
67705 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67706
67707         * gnulib-tool (func_import): Avoid duplication of --avoid
67708         statements
67709         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67710         names to `_' in variable names.
67711
67712 2007-07-10  Eric Blake  <ebb9@byu.net>
67713
67714         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67715         * NEWS: Document this change.
67716
67717 2007-07-08  Bruno Haible  <bruno@clisp.org>
67718
67719         Update to Unicode 5.0.
67720         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67721         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67722         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67723         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67724         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67725         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67726         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67727         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67728         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67729         U+10A3F, U+1D242..U+1D244.
67730         (nonspacing_table_ind): Update.
67731         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67732         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67733
67734 2007-07-08  Bruno Haible  <bruno@clisp.org>
67735
67736         Update to Unicode 5.0.
67737         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67738         code transform. Extend the name index field of unicode_name_to_code and
67739         unicode_code_to_name from 16 to 24 bits.
67740         * lib/uniname/uniname.c (unicode_character_name,
67741         unicode_name_character): Add the range 0x12xxx to the code transform.
67742         * lib/uniname/uninames.h: Regenerated.
67743         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67744
67745 2007-07-07  Bruno Haible  <bruno@clisp.org>
67746
67747         * modules/wcwidth-tests: New file.
67748         * tests/test-wcwidth.c: New file.
67749
67750         Work around MacOS X wcwidth() bug.
67751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67752         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67753         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67754         original wcwidth in non-UTF-8 locales.
67755         * modules/wcwidth (Depends-on): Add localcharset, streq,
67756         uniwidth/width.
67757         * doc/functions/wcwidth.texi: Update.
67758
67759 2007-07-07  Bruno Haible  <bruno@clisp.org>
67760
67761         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67762         (wcwidth): New declaration.
67763         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67764         macros.
67765         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67766         here. Prepare for creating <wchar.h> unconditionally.
67767         * modules/wchar (Depends-on): Add link-warning.
67768         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67769         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67770         * lib/wcwidth.h: Remove file.
67771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67772         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67773         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67774         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67775         (Include): Replace wcwidth.h with <wchar.h>.
67776         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67777         * lib/mbchar.h: Don't include wcwidth.h.
67778         * lib/mbswidth.c: Likewise.
67779         * NEWS: Mention the change.
67780
67781 2007-07-07  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67784         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67785         definition with an external declaration.
67786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67787         defined as a function. Remove AC_C_INLINE requirement.
67788         * modules/wcwidth (Files): Add lib/wcwidth.c.
67789         (Makefile.am): Remove redundant statement.
67790
67791 2007-07-07  Bruno Haible  <bruno@clisp.org>
67792
67793         * MODULES.html.sh (Unicode string functions): Add the new modules.
67794
67795         * tests/uniwidth/test-u32-strwidth.c: New file.
67796         * modules/uniwidth/u32-strwidth-tests: New file.
67797
67798         * lib/uniwidth/u32-strwidth.c: New file.
67799         * modules/uniwidth/u32-strwidth: New file.
67800
67801         * tests/uniwidth/test-u16-strwidth.c: New file.
67802         * modules/uniwidth/u16-strwidth-tests: New file.
67803
67804         * lib/uniwidth/u16-strwidth.c: New file.
67805         * modules/uniwidth/u16-strwidth: New file.
67806
67807         * tests/uniwidth/test-u8-strwidth.c: New file.
67808         * modules/uniwidth/u8-strwidth-tests: New file.
67809
67810         * lib/uniwidth/u8-strwidth.c: New file.
67811         * modules/uniwidth/u8-strwidth: New file.
67812
67813         * tests/uniwidth/test-u32-width.c: New file.
67814         * modules/uniwidth/u32-width-tests: New file.
67815
67816         * lib/uniwidth/u32-width.c: New file.
67817         * modules/uniwidth/u32-width: New file.
67818
67819         * tests/uniwidth/test-u16-width.c: New file.
67820         * modules/uniwidth/u16-width-tests: New file.
67821
67822         * lib/uniwidth/u16-width.c: New file.
67823         * modules/uniwidth/u16-width: New file.
67824
67825         * tests/uniwidth/test-u8-width.c: New file.
67826         * modules/uniwidth/u8-width-tests: New file.
67827
67828         * lib/uniwidth/u8-width.c: New file.
67829         * modules/uniwidth/u8-width: New file.
67830
67831         * tests/uniwidth/test-uc_width.c: New file.
67832         * modules/uniwidth/width-tests: New file.
67833
67834         * lib/uniwidth/width.c: New file, from GNU libiconv.
67835         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67836         * modules/uniwidth/width: New file.
67837
67838         * lib/uniwidth.h: New file, from GNU libiconv.
67839         * modules/uniwidth/base: New file.
67840
67841 2007-07-07  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/uniname.h: New file, from GNU gettext.
67844         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67845         * lib/uniname/uninames.h: New file, from GNU gettext.
67846         * lib/uniname/uniname.c: New file, from GNU gettext.
67847         * tests/uniname/test-uninames.sh: New file.
67848         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67849         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67850         * modules/uniname/base: New file.
67851         * modules/uniname/uniname: New file.
67852         * modules/uniname/uniname-tests: New file.
67853         * MODULES.html.sh (Unicode string functions): Add the new modules.
67854
67855 2007-07-06  Bruno Haible  <bruno@clisp.org>
67856
67857         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67858
67859 2007-07-06  Bruno Haible  <bruno@clisp.org>
67860
67861         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67862         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67863         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67864         include <sys/time.h>.
67865         Reported by Eric Blake.
67866
67867 2007-07-06  Eric Blake  <ebb9@byu.net>
67868
67869         Fix testing canonicalize on cygwin.
67870         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67871         Revert patch from 2007-06-19.
67872         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67873         canonicalize module is also in use.
67874         * tests/test-canonicalize.c: New file.
67875         * tests/test-canonicalize.sh: Likewise.
67876         * modules/canonicalize-tests: Likewise.
67877
67878 2007-07-06  Jim Meyering  <jim@meyering.net>
67879
67880         * lib/getugroups.c (getugroups): Detect getgrent failure.
67881         Adjust comment to reflect reality: this function may return -1.
67882
67883 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67884
67885         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67886         the new TP address.
67887         (usage): Fix typo
67888         (gnulib_mk): New variable.
67889
67890 2007-07-05  Jim Meyering  <jim@meyering.net>
67891
67892         Don't let endgrent clobber errno, no matter how improbable.
67893         * lib/getugroups.c (getugroups): Save and restore errno around
67894         endgrent call.
67895
67896         Close the group DB even when failing with 2^31 or more members.
67897         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67898
67899 2007-07-04  Jim Meyering  <jim@meyering.net>
67900
67901         * lib/getugroups.h: New file.
67902         * lib/getugroups.c: Include "getugroups.h".
67903         Remove uses of "register" keyword.
67904         Move local variable, "cp", down into scope where used.
67905         Give "username" parameter the "const" attribute.
67906         * modules/getugroups (Files): Add lib/getugroups.h
67907
67908 2007-07-04  Karl Berry  <karl@gnu.org>
67909
67910         * MODULES.html.sh (func_all_modules): Complete rename of
67911         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67912
67913 2007-07-02  Bruno Haible  <bruno@clisp.org>
67914
67915         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67916         mode, when inttypes.h comes from gnulib.
67917         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67918
67919 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67920
67921         * NEWS: Mention lgpl module name change.
67922
67923         * modules/lgpl-2.1: Renamed from lgpl.
67924
67925         * NEWS: Mention gpl module name change.
67926
67927         * modules/gpl-3.0: New file, based on gpl-2.0.
67928
67929         * modules/gpl-2.0: Renamed from gpl.
67930
67931         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67932         doc/gpl-2.0.texi.
67933
67934 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67937         #define __STDC_LIMIT_MACROS temporarily while including
67938         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67939         Problem reported by Joel E. Denny in
67940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67941
67942 2007-07-01  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/unistdio.h: New file.
67945         * lib/unistdio/u-asnprintf.h: New file.
67946         * lib/unistdio/u-asprintf.h: New file.
67947         * lib/unistdio/u-printf-args.c: New file.
67948         * lib/unistdio/u-printf-args.h: New file.
67949         * lib/unistdio/u-printf-parse.h: New file.
67950         * lib/unistdio/u-snprintf.h: New file.
67951         * lib/unistdio/u-sprintf.h: New file.
67952         * lib/unistdio/u-vasprintf.h: New file.
67953         * lib/unistdio/u-vsnprintf.h: New file.
67954         * lib/unistdio/u-vsprintf.h: New file.
67955         * lib/unistdio/ulc-asnprintf.c: New file.
67956         * lib/unistdio/ulc-asprintf.c: New file.
67957         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67958         * lib/unistdio/ulc-printf-parse.c: New file.
67959         * lib/unistdio/ulc-snprintf.c: New file.
67960         * lib/unistdio/ulc-sprintf.c: New file.
67961         * lib/unistdio/ulc-vasnprintf.c: New file.
67962         * lib/unistdio/ulc-vasprintf.c: New file.
67963         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67964         * lib/unistdio/ulc-vsnprintf.c: New file.
67965         * lib/unistdio/ulc-vsprintf.c: New file.
67966         * lib/unistdio/u8-asnprintf.c: New file.
67967         * lib/unistdio/u8-asprintf.c: New file.
67968         * lib/unistdio/u8-printf-parse.c: New file.
67969         * lib/unistdio/u8-snprintf.c: New file.
67970         * lib/unistdio/u8-sprintf.c: New file.
67971         * lib/unistdio/u8-vasnprintf.c: New file.
67972         * lib/unistdio/u8-vasprintf.c: New file.
67973         * lib/unistdio/u8-vsnprintf.c: New file.
67974         * lib/unistdio/u8-vsprintf.c: New file.
67975         * lib/unistdio/u8-u8-asnprintf.c: New file.
67976         * lib/unistdio/u8-u8-asprintf.c: New file.
67977         * lib/unistdio/u8-u8-snprintf.c: New file.
67978         * lib/unistdio/u8-u8-sprintf.c: New file.
67979         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67980         * lib/unistdio/u8-u8-vasprintf.c: New file.
67981         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67982         * lib/unistdio/u8-u8-vsprintf.c: New file.
67983         * lib/unistdio/u16-asnprintf.c: New file.
67984         * lib/unistdio/u16-asprintf.c: New file.
67985         * lib/unistdio/u16-printf-parse.c: New file.
67986         * lib/unistdio/u16-snprintf.c: New file.
67987         * lib/unistdio/u16-sprintf.c: New file.
67988         * lib/unistdio/u16-vasnprintf.c: New file.
67989         * lib/unistdio/u16-vasprintf.c: New file.
67990         * lib/unistdio/u16-vsnprintf.c: New file.
67991         * lib/unistdio/u16-vsprintf.c: New file.
67992         * lib/unistdio/u16-u16-asnprintf.c: New file.
67993         * lib/unistdio/u16-u16-asprintf.c: New file.
67994         * lib/unistdio/u16-u16-snprintf.c: New file.
67995         * lib/unistdio/u16-u16-sprintf.c: New file.
67996         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67997         * lib/unistdio/u16-u16-vasprintf.c: New file.
67998         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67999         * lib/unistdio/u16-u16-vsprintf.c: New file.
68000         * lib/unistdio/u32-asnprintf.c: New file.
68001         * lib/unistdio/u32-asprintf.c: New file.
68002         * lib/unistdio/u32-printf-parse.c: New file.
68003         * lib/unistdio/u32-snprintf.c: New file.
68004         * lib/unistdio/u32-sprintf.c: New file.
68005         * lib/unistdio/u32-vasnprintf.c: New file.
68006         * lib/unistdio/u32-vasprintf.c: New file.
68007         * lib/unistdio/u32-vsnprintf.c: New file.
68008         * lib/unistdio/u32-vsprintf.c: New file.
68009         * lib/unistdio/u32-u32-asnprintf.c: New file.
68010         * lib/unistdio/u32-u32-asprintf.c: New file.
68011         * lib/unistdio/u32-u32-snprintf.c: New file.
68012         * lib/unistdio/u32-u32-sprintf.c: New file.
68013         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68014         * lib/unistdio/u32-u32-vasprintf.c: New file.
68015         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68016         * lib/unistdio/u32-u32-vsprintf.c: New file.
68017         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68018         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68019         * tests/unistdio/test-ulc-printf1.h: New file.
68020         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68021         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68022         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68023         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68024         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68025         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68026         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68027         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68028         * tests/unistdio/test-u8-asnprintf1.c: New file.
68029         * tests/unistdio/test-u8-asnprintf1.h: New file.
68030         * tests/unistdio/test-u8-printf1.h: New file.
68031         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68032         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68033         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68034         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68035         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68036         * tests/unistdio/test-u8-vasprintf1.c: New file.
68037         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68038         * tests/unistdio/test-u8-vsprintf1.c: New file.
68039         * tests/unistdio/test-u16-asnprintf1.c: New file.
68040         * tests/unistdio/test-u16-asnprintf1.h: New file.
68041         * tests/unistdio/test-u16-printf1.h: New file.
68042         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68043         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68044         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68045         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68046         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68047         * tests/unistdio/test-u16-vasprintf1.c: New file.
68048         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68049         * tests/unistdio/test-u16-vsprintf1.c: New file.
68050         * tests/unistdio/test-u32-asnprintf1.c: New file.
68051         * tests/unistdio/test-u32-asnprintf1.h: New file.
68052         * tests/unistdio/test-u32-printf1.h: New file.
68053         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68054         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68055         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68056         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68057         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68058         * tests/unistdio/test-u32-vasprintf1.c: New file.
68059         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68060         * tests/unistdio/test-u32-vsprintf1.c: New file.
68061         * modules/unistdio/base: New file.
68062         * modules/unistdio/u-printf-args: New file.
68063         * modules/unistdio/ulc-asnprintf: New file.
68064         * modules/unistdio/ulc-asprintf: New file.
68065         * modules/unistdio/ulc-fprintf: New file.
68066         * modules/unistdio/ulc-printf-parse: New file.
68067         * modules/unistdio/ulc-snprintf: New file.
68068         * modules/unistdio/ulc-sprintf: New file.
68069         * modules/unistdio/ulc-vasnprintf: New file.
68070         * modules/unistdio/ulc-vasprintf: New file.
68071         * modules/unistdio/ulc-vfprintf: New file.
68072         * modules/unistdio/ulc-vsnprintf: New file.
68073         * modules/unistdio/ulc-vsprintf: New file.
68074         * modules/unistdio/u8-asnprintf: New file.
68075         * modules/unistdio/u8-asprintf: New file.
68076         * modules/unistdio/u8-printf-parse: New file.
68077         * modules/unistdio/u8-snprintf: New file.
68078         * modules/unistdio/u8-sprintf: New file.
68079         * modules/unistdio/u8-vasnprintf: New file.
68080         * modules/unistdio/u8-vasprintf: New file.
68081         * modules/unistdio/u8-vsnprintf: New file.
68082         * modules/unistdio/u8-vsprintf: New file.
68083         * modules/unistdio/u8-u8-asnprintf: New file.
68084         * modules/unistdio/u8-u8-asprintf: New file.
68085         * modules/unistdio/u8-u8-snprintf: New file.
68086         * modules/unistdio/u8-u8-sprintf: New file.
68087         * modules/unistdio/u8-u8-vasnprintf: New file.
68088         * modules/unistdio/u8-u8-vasprintf: New file.
68089         * modules/unistdio/u8-u8-vsnprintf: New file.
68090         * modules/unistdio/u8-u8-vsprintf: New file.
68091         * modules/unistdio/u16-asnprintf: New file.
68092         * modules/unistdio/u16-asprintf: New file.
68093         * modules/unistdio/u16-printf-parse: New file.
68094         * modules/unistdio/u16-snprintf: New file.
68095         * modules/unistdio/u16-sprintf: New file.
68096         * modules/unistdio/u16-vasnprintf: New file.
68097         * modules/unistdio/u16-vasprintf: New file.
68098         * modules/unistdio/u16-vsnprintf: New file.
68099         * modules/unistdio/u16-vsprintf: New file.
68100         * modules/unistdio/u16-u16-asnprintf: New file.
68101         * modules/unistdio/u16-u16-asprintf: New file.
68102         * modules/unistdio/u16-u16-snprintf: New file.
68103         * modules/unistdio/u16-u16-sprintf: New file.
68104         * modules/unistdio/u16-u16-vasnprintf: New file.
68105         * modules/unistdio/u16-u16-vasprintf: New file.
68106         * modules/unistdio/u16-u16-vsnprintf: New file.
68107         * modules/unistdio/u16-u16-vsprintf: New file.
68108         * modules/unistdio/u32-asnprintf: New file.
68109         * modules/unistdio/u32-asprintf: New file.
68110         * modules/unistdio/u32-printf-parse: New file.
68111         * modules/unistdio/u32-snprintf: New file.
68112         * modules/unistdio/u32-sprintf: New file.
68113         * modules/unistdio/u32-vasnprintf: New file.
68114         * modules/unistdio/u32-vasprintf: New file.
68115         * modules/unistdio/u32-vsnprintf: New file.
68116         * modules/unistdio/u32-vsprintf: New file.
68117         * modules/unistdio/u32-u32-asnprintf: New file.
68118         * modules/unistdio/u32-u32-asprintf: New file.
68119         * modules/unistdio/u32-u32-snprintf: New file.
68120         * modules/unistdio/u32-u32-sprintf: New file.
68121         * modules/unistdio/u32-u32-vasnprintf: New file.
68122         * modules/unistdio/u32-u32-vasprintf: New file.
68123         * modules/unistdio/u32-u32-vsnprintf: New file.
68124         * modules/unistdio/u32-u32-vsprintf: New file.
68125         * modules/unistdio/ulc-asnprintf-tests: New file.
68126         * modules/unistdio/ulc-vasnprintf-tests: New file.
68127         * modules/unistdio/ulc-vasprintf-tests: New file.
68128         * modules/unistdio/ulc-vsnprintf-tests: New file.
68129         * modules/unistdio/ulc-vsprintf-tests: New file.
68130         * modules/unistdio/u8-asnprintf-tests: New file.
68131         * modules/unistdio/u8-vasnprintf-tests: New file.
68132         * modules/unistdio/u8-vasprintf-tests: New file.
68133         * modules/unistdio/u8-vsnprintf-tests: New file.
68134         * modules/unistdio/u8-vsprintf-tests: New file.
68135         * modules/unistdio/u16-asnprintf-tests: New file.
68136         * modules/unistdio/u16-vasnprintf-tests: New file.
68137         * modules/unistdio/u16-vasprintf-tests: New file.
68138         * modules/unistdio/u16-vsnprintf-tests: New file.
68139         * modules/unistdio/u16-vsprintf-tests: New file.
68140         * modules/unistdio/u32-asnprintf-tests: New file.
68141         * modules/unistdio/u32-vasnprintf-tests: New file.
68142         * modules/unistdio/u32-vasprintf-tests: New file.
68143         * modules/unistdio/u32-vsnprintf-tests: New file.
68144         * modules/unistdio/u32-vsprintf-tests: New file.
68145         * MODULES.html.sh (Unicode string functions): Add the new modules.
68146
68147 2007-07-01  Bruno Haible  <bruno@clisp.org>
68148
68149         * lib/sprintf.c (sprintf): Limit the available length estimation,
68150         to avoid address wraparound.
68151         * lib/vsprintf.c (vsprintf): Likewise.
68152         * modules/sprintf-posix (Dependencies): Add stdint.
68153         * modules/vsprintf-posix (Dependencies): Likewise.
68154
68155 2007-07-01  Bruno Haible  <bruno@clisp.org>
68156
68157         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68158         Windows PATH as well. Conservative double-quoting. Comments.
68159
68160 2007-07-01  Bruno Haible  <bruno@clisp.org>
68161             Eric Blake  <ebb9@byu.net>
68162             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68163
68164         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68165         empty components in $PATH, denoting '.'.
68166
68167 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68168
68169         * gnulib-tool: Fix indentation.
68170         (func_create_megatestdir): Likewise.
68171         Report by Bruno Haible.
68172
68173 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68174
68175         Sync from Automake.
68176         * build-aux/gnupload: Fix shell portability issues with for loops.
68177         Report by Karl Berry.
68178
68179 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68180
68181         * build-aux/maint.mk (POURL): Use translationproject.org.
68182
68183 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68184             Bruno Haible  <bruno@clisp.org>
68185
68186         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68187         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68188         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68189         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68190         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68191
68192 2007-06-27  Bruno Haible  <bruno@clisp.org>
68193
68194         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68195         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68196
68197 2007-06-26  Karl Berry  <karl@gnu.org>
68198
68199         * MODULES.html.sh: remove xreadlink-with-size.
68200
68201 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68204         method that I hope also handles the double-include problem noted
68205         by Bruno Haible in
68206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68207
68208 2007-06-23  Bruno Haible  <bruno@clisp.org>
68209
68210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68211         Don't let the 'mostlyclean' target fail if the last subdirectory could
68212         not be removed.
68213         Reported by Karl Berry.
68214
68215 2007-06-23  Bruno Haible  <bruno@clisp.org>
68216
68217         * gnulib-tool (echo): Add a speedier workaround for ksh.
68218         * tests/test-echo.sh: Likewise.
68219
68220 2007-06-23  Bruno Haible  <bruno@clisp.org>
68221
68222         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68223         * tests/test-echo.sh: Likewise.
68224
68225 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68226
68227         * gnulib-tool (IFS): Initialize early, so we don't set it to
68228         empty later.
68229         (self_abspathname): Rewrite algorithm to set it, reindent.
68230         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68231         (func_create_megatestdir): Merge some sed scripts.
68232
68233 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68234
68235         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68236         exposed by Sun Studio 11 cc on Solaris 8.
68237
68238 2007-06-22  Bruno Haible  <bruno@clisp.org>
68239
68240         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68241         backslashes.
68242         * tests/test-echo.sh: New file.
68243
68244 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68245
68246         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68247         simplify `sed_replace_build_aux' scripts, they are portable but
68248         echoing them with `echo' is not.
68249         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68250
68251 2007-06-21  Karl Berry  <karl@gnu.org>
68252
68253         * config/srclist.txt: guess we can't handle the licenses via
68254         srclist at the moment.
68255
68256 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * MODULES.html.sh: Add include_next.
68259         * modules/include_next: New file.
68260
68261 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68264         INCLUDE_NEXT.
68265         (gl_CHECK_NEXT_HEADERS): New macro.
68266         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68267         the obsolescent gl_ABSOLUTE_HEADER.
68268         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68269         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68270         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68272         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68273         * m4/math_h.m4 (gl_MATH_H): Likewise.
68274         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68275         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68276         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68277         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68278         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68279         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68280         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68285         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68286         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68287         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68288         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68289         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68290         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68291         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68292         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68293         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68294         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68295         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68296         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68297         * lib/float_.h: Likewise.
68298         * lib/inttypes_.h: Likewise.
68299         * lib/math_.h: Likewise.
68300         * lib/search_.h: Likewise.
68301         * lib/signal_.h: Likewise.
68302         * lib/stdint_.h: Likewise.
68303         * lib/stdio_.h: Likewise.
68304         * lib/stdlib_.h: Likewise.
68305         * lib/string_.h: Likewise.
68306         * lib/sys_stat_.h: Likewise.
68307         * lib/sys_time_.h: Likewise.
68308         * lib/time_.h: Likewise.
68309         * lib/unistd_.h: Likewise.
68310         * lib/wchar_.h: Likewise.
68311         * lib/wctype_.h: Likewise.
68312         * lib/dirent_.h: Likewise.
68313         * lib/iconv_.h: Likewise.
68314         * lib/locale_.h: Likewise.
68315         * lib/netinet_in_.h: Likewise.
68316         * lib/sys_select_.h: Likewise.
68317         * lib/sys_socket_.h: Likewise.
68318         * lib/sysexits_.h: Likewise.
68319         * modules/fcntl (Depends-on): Depend on include_next, not
68320         absolute_header.
68321         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68322         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68323         * modules/fchdir: Likewise.
68324         * modules/float: Likewise.
68325         * modules/iconv_open: Likewise.
68326         * modules/inttypes: Likewise.
68327         * modules/locale: Likewise.
68328         * modules/math: Likewise.
68329         * modules/netinet_in: Likewise.
68330         * modules/search: Likewise.
68331         * modules/signal: Likewise.
68332         * modules/stdint: Likewise.
68333         * modules/stdio: Likewise.
68334         * modules/stdlib: Likewise.
68335         * modules/string: Likewise.
68336         * modules/sys_select: Likewise.
68337         * modules/sys_socket: Likewise.
68338         * modules/sys_stat: Likewise.
68339         * modules/sys_time: Likewise.
68340         * modules/sysexits: Likewise.
68341         * modules/time: Likewise.
68342         * modules/unistd: Likewise.
68343         * modules/wchar: Likewise.
68344         * modules/wctype: Likewise.
68345         * modules/sys_stat: Change maintainer to "all".
68346         * modules/unistd: Likewise.
68347
68348 2007-06-20  Karl Berry  <karl@gnu.org>
68349
68350         * config/srclist.txt: track www changes in license files.
68351
68352 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68353
68354         * build-aux/bootstrap: Remove stray dot.
68355         Make sure build_aux settings are honored when linking
68356         gnulib_extra_files.
68357
68358 2007-06-19  Eric Blake  <ebb9@byu.net>
68359
68360         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68361         Allow compilation on cygwin.
68362
68363 2007-06-19  Jim Meyering  <jim@meyering.net>
68364
68365         xreadlink-with-size: Remove module.  No longer used.
68366         Ex-callers now use xreadlink or mreadlink-with-size.
68367         * modules/xreadlink-with-size: Remove module.
68368         * lib/xreadlink-with-size.c: Remove file.
68369         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68370         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68371         just before the function definition *is* accurate.
68372
68373         Eliminate one way canonicalize_filename_mode could exit.
68374         * lib/canonicalize.c (canonicalize_filename_mode):
68375         Use mreadlink_with_size, not xreadlink_with_size.
68376
68377 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         Detect porting problems to FreeBSD/arm, which has time_t wider than
68380         long int.  Original problem reported for GNU diff by Xin Li in
68381         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68382         * modules/getdate (Depends-on): Add intprops, verify.
68383         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68384         is an integer type no wider than long int.
68385
68386 2007-06-18  Jim Meyering  <jim@meyering.net>
68387
68388         New module: mreadlink-with-size.
68389         * MODULES.html.sh: Add mreadlink-with-size.
68390         * modules/mreadlink-with-size: New module
68391         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68392         not xreadlink-with-size.
68393         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68394
68395 2007-06-16  Bruno Haible  <bruno@clisp.org>
68396
68397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68398         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68399         Reported by Gary V. Vaughan <gary@gnu.org>.
68400
68401 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         Revamp lchown so that it lives in unistd.h where it belongs.
68404         * lib/lchown.h: Remove.
68405         * lib/dirchownmod.c: Don't include lib/lchown.h.
68406         * lib/fchownat.c: Likewise.
68407         * lib/openat.c: Likewise.
68408         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68409         does not follow symlinks.
68410         (EOPNOTSUPP): Define if not defined.
68411         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68412         is defined to 0.
68413         (lchown): New decl.
68414         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68415         Do not check for lchown decl.
68416         Set REPLACE_LCHOWN.
68417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68418         REPLACE_LCHOWN.
68419         * modules/chown: Make it clear it follows symlinks.
68420         * modules/lchown: Make it clear it doesn't follow symlinks.
68421         (Files): Remove lib/lchown.h
68422         (Depends-on): Add unistd.
68423         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68424         (Include): Include <unistd.h>, not "lchown.h".
68425         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68426         REPLACE_LCHOWN.
68427
68428 2007-06-15  Jim Meyering  <jim@meyering.net>
68429
68430         Change license (GPL to LGPL) of fsusage and dependents.
68431         * modules/fsusage (License): Change to LGPL.
68432         * modules/full-read (License): Likewise.
68433         * modules/full-write (License): Likewise.
68434         * modules/safe-read (License): Likewise.
68435         * modules/safe-write (License): Likewise.
68436
68437 2007-06-14  Ben Pfaff  <blp@gnu.org>
68438
68439         Missing part of allocsa -> malloca transition.
68440         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68441         gl_MALLOCA.
68442
68443 2007-06-12  Bruno Haible  <bruno@clisp.org>
68444
68445         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68446         to ia64, x86_64, i386.
68447         Reported by Eric Blake.
68448
68449 2007-06-12  Bruno Haible  <bruno@clisp.org>
68450
68451         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68452         cross-compiling to x86_64.
68453
68454 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68457         glitch reported by Ralf Wildenhues in
68458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68459
68460         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68461         Vin Shelton.
68462
68463 2007-06-11  Bruno Haible  <bruno@clisp.org>
68464
68465         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68466         replacement string.
68467         Reported by Eric Blake.
68468
68469 2007-06-10  Bruno Haible  <bruno@clisp.org>
68470
68471         Prepare vasnprintf code for use with Unicode strings.
68472         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68473         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68474         TYPE_U32_STRING.
68475         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68476         a_u32_string variants.
68477         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68478         * lib/printf-args.c: Don't include config.h and the specification
68479         header if PRINTF_FETCHARGS is already defined.
68480         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68481         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68482         TYPE_U16_STRING, TYPE_U32_STRING.
68483         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68484         u16_directive, u16_directives, u32_directive, u32_directives): New
68485         types.
68486         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68487         New declarations.
68488         * lib/printf-parse.c: Don't include config.h and the specification
68489         header if PRINTF_PARSE is already defined. Eliminate the set of
68490         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68491         them now. Include c-ctype.h.
68492         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68493         directive and CHAR_T_ONLY_ASCII.
68494         * lib/vasnprintf.c: Don't include config.h and the specification header
68495         if VASNPRINTF is already defined.
68496         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68497         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68498         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68499         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68500         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68501         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68502         code accordingly.
68503         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68504         pad_ourselves also in this case, with the 'c' and 's' directives, and
68505         with a different notion of "width".
68506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68507
68508 2007-06-10  Bruno Haible  <bruno@clisp.org>
68509
68510         * modules/unistr/u32-mbsnlen: New file.
68511         * lib/unistr/u32-mbsnlen.c: New file.
68512
68513         * modules/unistr/u16-mbsnlen: New file.
68514         * lib/unistr/u16-mbsnlen.c: New file.
68515
68516         * modules/unistr/u8-mbsnlen: New file.
68517         * lib/unistr/u8-mbsnlen.c: New file.
68518
68519         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68520         declarations.
68521
68522 2007-06-10  Bruno Haible  <bruno@clisp.org>
68523
68524         * lib/string_.h (mbsnlen): New declaration.
68525         * lib/mbsnlen.c: New file.
68526         * m4/mbsnlen.m4: New file.
68527         * modules/mbsnlen: New file.
68528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68529         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68530         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68531
68532 2007-06-10  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68535
68536 2007-06-10  Bruno Haible  <bruno@clisp.org>
68537
68538         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68539         * lib/mbuiter.h: Likewise.
68540
68541 2007-06-10  Bruno Haible  <bruno@clisp.org>
68542
68543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68544         declaration.
68545
68546 2007-06-10  Karl Berry  <karl@gnu.org>
68547
68548         * config/srclist.txt: remove gettext entries, Bruno prefers
68549         to update individually.
68550
68551 2007-06-10  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68554         'maxlen'. Ensure only length + width bytes are allocated, not
68555         length + 1 + width.
68556
68557 2007-06-09  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68560         (CHAR_T): Remove macro.
68561         (VASNPRINTF): Update.
68562
68563 2007-06-09  Bruno Haible  <bruno@clisp.org>
68564
68565         * MODULES.html.sh (Unicode string functions): Add the new modules.
68566
68567         * modules/uniconv/u32-conv-to-enc: New file.
68568         * lib/uniconv/u32-conv-to-enc.c: New file.
68569         * modules/uniconv/u32-conv-to-enc-tests: New file.
68570         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68571
68572         * modules/uniconv/u16-conv-to-enc: New file.
68573         * lib/uniconv/u16-conv-to-enc.c: New file.
68574         * lib/uniconv/u-conv-to-enc.h: New file.
68575         * modules/uniconv/u16-conv-to-enc-tests: New file.
68576         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68577
68578         * modules/uniconv/u8-conv-to-enc: New file.
68579         * lib/uniconv/u8-conv-to-enc.c: New file.
68580         * modules/uniconv/u8-conv-to-enc-tests: New file.
68581         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68582
68583         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68584         u32_conv_to_encoding): New declarations.
68585
68586 2007-06-09  Bruno Haible  <bruno@clisp.org>
68587
68588         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68589
68590 2007-06-09  Bruno Haible  <bruno@clisp.org>
68591
68592         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68593         * modules/malloca: Renamed from modules/allocsa, updated.
68594         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68595         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68596         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68597         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68598         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68599         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68600         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68601         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68602         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68603         * modules/c-strcasestr (Depends-on): Update.
68604         * lib/c-strcasestr.c: Update.
68605         * modules/c-strstr (Depends-on): Update.
68606         * lib/c-strstr.c: Update.
68607         * modules/canonicalize-lgpl (Depends-on): Update.
68608         * lib/canonicalize-lgpl.c: Update.
68609         * modules/clean-temp (Depends-on): Update.
68610         * lib/clean-temp.c: Update.
68611         * modules/csharpcomp (Depends-on): Update.
68612         * lib/csharpcomp.c: Update.
68613         * modules/csharpexec (Depends-on): Update.
68614         * lib/csharpexec.c: Update.
68615         * modules/javacomp (Depends-on): Update.
68616         * lib/javacomp.c: Update.
68617         * modules/javaexec (Depends-on): Update.
68618         * lib/javaexec.c: Update.
68619         * modules/mbscasestr (Depends-on): Update.
68620         * lib/mbscasestr.c: Update.
68621         * modules/mbsstr (Depends-on): Update.
68622         * lib/mbsstr.c: Update.
68623         * modules/setenv (Depends-on): Update.
68624         * lib/setenv.c: Update.
68625         * modules/strcasestr (Depends-on): Update.
68626         * lib/strcasestr.c: Update.
68627         * modules/striconveha (Depends-on): Update.
68628         * lib/striconveha.c: Update.
68629         * modules/relocatable-prog-wrapper (Files): Update.
68630         * lib/relocwrapper.c: Update.
68631         * build-aux/install-reloc: Update.
68632         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68633
68634 2007-06-08  Bruno Haible  <bruno@clisp.org>
68635
68636         Port to uClibc.
68637         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68638         * lib/fpurge.c (fpurge): Likewise.
68639         * lib/freading.c (freading): Likewise.
68640         * lib/fseeko.c (rpl_fseeko): Likewise.
68641         * lib/fseterr.c (fseterr): Likewise.
68642         * lib/fwriting.c (fwriting): Likewise.
68643         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68644
68645 2007-06-08  Bruno Haible  <bruno@clisp.org>
68646
68647         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68648         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68649         * modules/gettext (Files): Add m4/intlmacosx.m4.
68650
68651 2007-06-07  Bruno Haible  <bruno@clisp.org>
68652
68653         * modules/localename-tests: New file.
68654         * tests/test-localename.c: New file.
68655
68656         New module 'localename'.
68657         * lib/localename.h: New file.
68658         * lib/localename.c: New file, from GNU gettext.
68659         * m4/localename.m4: New file.
68660         * modules/localename: New file.
68661
68662 2007-06-07  Bruno Haible  <bruno@clisp.org>
68663
68664         Work around the lack of <wchar.h> on some builds of uClibc.
68665         * doc/headers/wchar.texi: Update.
68666         * lib/wchar_.h: Include <wchar.h> only if it exists.
68667         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68668         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68669         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68670         doesn't exist.
68671         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68672         * modules/mbfile (Depends-on): Add wchar.
68673         * modules/mbiter (Depends-on): Likewise.
68674         * modules/mbuiter (Depends-on): Likewise.
68675         Reported by Simon Josefsson.
68676
68677 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         Work around problem reported by Steven M. Schweda in
68680         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68681         Tru64 5.1B with the Compaq compiler environment installed declares
68682         an 'isblank' function but does not define it in the C library.
68683         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68684         * lib/regex_internal.h (isblank): Likewise.
68685         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68686         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68687
68688 2007-06-05  Bruno Haible  <bruno@clisp.org>
68689
68690         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68691         ia64.
68692         * modules/printf-safe: New file.
68693         * modules/fprintf-posix (Depends-on): Add printf-safe.
68694         * modules/printf-posix (Depends-on): Likewise.
68695         * modules/snprintf-posix (Depends-on): Likewise.
68696         * modules/sprintf-posix (Depends-on): Likewise.
68697         * modules/vasnprintf-posix (Depends-on): Likewise.
68698         * modules/vasprintf-posix (Depends-on): Likewise.
68699         * modules/vfprintf-posix (Depends-on): Likewise.
68700         * modules/vprintf-posix (Depends-on): Likewise.
68701         * modules/vsnprintf-posix (Depends-on): Likewise.
68702         * modules/vsprintf-posix (Depends-on): Likewise.
68703         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68704         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68705         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68706         "no" on i386, x86_64, ia64.
68707         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68708         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68709         on i386, x86_64, ia64.
68710         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68711         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68712         on i386, x86_64, ia64.
68713         * tests/test-vasnprintf-posix.c: Include float.h.
68714         (LDBL80_WORDS): New macro.
68715         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68716         on i386, x86_64, ia64.
68717         * tests/test-vasprintf-posix.c: Include float.h.
68718         (LDBL80_WORDS): New macro.
68719         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68720         on i386, x86_64, ia64.
68721         * tests/test-snprintf-posix.c: Include float.h.
68722         * tests/test-sprintf-posix.c: Likewise.
68723         * tests/test-vsnprintf-posix.c: Likewise.
68724         * tests/test-vsprintf-posix.c: Likewise.
68725
68726 2007-06-05  Bruno Haible  <bruno@clisp.org>
68727
68728         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68729         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68730         non-IEEE numbers on i386, x86_64, ia64.
68731         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68732         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68733         * tests/test-isnanl.h: Include float.h.
68734         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68735
68736 2007-06-05  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68739         also the %a / %A. Handle the %a / %A code before this extra handling.
68740
68741 2007-06-05  Bruno Haible  <bruno@clisp.org>
68742
68743         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68744         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68745
68746 2007-06-05  Bruno Haible  <bruno@clisp.org>
68747
68748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68749         typo in variable name.
68750
68751 2007-06-05  Eric Blake  <ebb9@byu.net>
68752
68753         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68754         Reported by Simon Josefsson.
68755
68756 2007-06-04  Bruno Haible  <bruno@clisp.org>
68757
68758         Avoid test failures on some PowerPC platforms.
68759         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68760         Define differently for PowerPC.
68761         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68762         Reported by Gary V. Vaughan <gary@gnu.org>.
68763
68764 2007-06-02  Bruno Haible  <bruno@clisp.org>
68765
68766         Fix test-stdint failure on FreeBSD/ia64.
68767         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68768         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68769         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68770         * doc/headers/stdint.texi: Update.
68771
68772 2007-06-01  Bruno Haible  <bruno@clisp.org>
68773
68774         * tests/test-binary-io.c (main): Pass a third argument to open().
68775         Reported by Gary V. Vaughan <gary@gnu.org>.
68776
68777 2007-06-01  Bruno Haible  <bruno@clisp.org>
68778
68779         * doc/functions/frexpl.texi: Update for mingw.
68780
68781 2007-06-01  Bruno Haible  <bruno@clisp.org>
68782
68783         * tests/test-lseek.c (main): Disable test of errno for invalid third
68784         argument.
68785         * doc/functions/lseek.texi: Update.
68786         Reported by Gary V. Vaughan <gary@gnu.org>.
68787
68788 2007-05-28  Bruno Haible  <bruno@clisp.org>
68789
68790         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68791
68792 2007-05-31  Eric Blake  <ebb9@byu.net>
68793
68794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68795         cross compiling.
68796
68797 2007-05-30  Eric Blake  <ebb9@byu.net>
68798         and Bruno Haible  <bruno@clisp.org>
68799
68800         Work around mingw test failures exposed by m4-1.4.9b.
68801         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68802         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68803         moment.
68804
68805 2007-05-30  Bruno Haible  <bruno@clisp.org>
68806
68807         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68808         assuming that they are closed. Needed on HP-UX 11.
68809
68810 2007-05-29  Bruno Haible  <bruno@clisp.org>
68811
68812         Fix a problem with #include_next.
68813         * lib/dirent_.h: Split the double-inclusion guard.
68814         * lib/fcntl_.h: Likewise.
68815         * lib/float_.h: Likewise.
68816         * lib/iconv_.h: Likewise.
68817         * lib/inttypes_.h: Likewise.
68818         * lib/locale_.h: Likewise.
68819         * lib/math_.h: Likewise.
68820         * lib/netinet_in_.h: Likewise.
68821         * lib/search_.h: Likewise.
68822         * lib/signal_.h: Likewise.
68823         * lib/stdint_.h: Likewise.
68824         * lib/stdio_.h: Likewise.
68825         * lib/stdlib_.h: Likewise.
68826         * lib/string_.h: Likewise.
68827         * lib/sys_select_.h: Likewise.
68828         * lib/sys_socket_.h: Likewise.
68829         * lib/sys_stat_.h: Likewise.
68830         * lib/sys_time_.h: Likewise.
68831         * lib/sysexits_.h: Likewise.
68832         * lib/time_.h: Likewise.
68833         * lib/unistd_.h: Likewise.
68834         * lib/wchar_.h: Likewise.
68835         * lib/wctype_.h: Likewise.
68836
68837 2007-05-29  Bruno Haible  <bruno@clisp.org>
68838
68839         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68840         for the moment.
68841
68842 2007-05-29  Bruno Haible  <bruno@clisp.org>
68843
68844         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68845         invocation.
68846         Reported by Eric Blake.
68847
68848 2007-05-29  Bruno Haible  <bruno@clisp.org>
68849
68850         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68851         compiling case.
68852
68853 2007-05-29  Eric Blake  <ebb9@byu.net>
68854             Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68857         cross compiles.
68858
68859 2007-05-28  Eric Blake  <ebb9@byu.net>
68860
68861         * modules/closein-tests (test_closein_LDADD): Support test on
68862         cygwin with libtool.
68863
68864 2007-05-28  Bruno Haible  <bruno@clisp.org>
68865
68866         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68867         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68868         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68869         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68870         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68871         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68872         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68873         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68874         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68875
68876 2007-05-28  Eric Blake  <ebb9@byu.net>
68877
68878         Unconditionally include <config.h> in unit tests.
68879         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68880         * tests/test-allocsa.c, tests/test-arcfour.c,
68881         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68882         tests/test-array_list.c, tests/test-array_oset.c,
68883         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68884         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68885         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68886         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68887         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68888         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68889         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68890         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68891         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68892         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68893         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68894         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68895         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68896         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68897         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68898         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68899         test-md5.c, test-memmem.c, test-printf-posix.c,
68900         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68901         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68902         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68903         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68904         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68905         test-vasnprintf-posix2.c, test-vasnprintf.c,
68906         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68907         test-vfprintf-posix.c, test-vprintf-posix.c,
68908         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68909         test-xvasprintf.c: Likewise.
68910
68911 2007-05-28  Bruno Haible  <bruno@clisp.org>
68912
68913         * gnulib-tool (func_import): Remember the --with-tests command-line
68914         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68915         Reported by Eric Blake.
68916
68917 2007-05-28  Bruno Haible  <bruno@clisp.org>
68918
68919         * modules/ftell-tests: New file.
68920         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68921         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68922
68923         * lib/ftell.c: New file.
68924         * modules/ftell: New file.
68925         * m4/ftell.m4: New file.
68926         * doc/functions/ftell.texi: Update.
68927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68928         REPLACE_FTELL.
68929         * lib/stdio_.h (rpl_ftell): New declaration.
68930         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68931         REPLACE_FTELL.
68932
68933 2007-05-28  Eric Blake  <ebb9@byu.net>
68934
68935         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68936
68937 2007-05-28  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/fseek-tests: New file.
68940         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68941         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68942
68943         * lib/fseek.c: New file.
68944         * modules/fseek: New file.
68945         * m4/fseek.m4: New file.
68946         * doc/functions/fseek.texi: Update.
68947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68948         REPLACE_FSEEK.
68949         * lib/stdio_.h (rpl_fseek): New declaration.
68950         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68951         REPLACE_FSEEK.
68952
68953 2007-05-28  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/stdio_.h (fflush): More comments.
68956
68957 2007-05-28  Bruno Haible  <bruno@clisp.org>
68958
68959         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68960         runtime test.
68961
68962 2007-05-28  Eric Blake  <ebb9@byu.net>
68963
68964         Improve lseek module.
68965         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68966         * lib/unistd_.h (lseek): Scale back link warning message.
68967         * tests/test-lseek.c: Beef up test.
68968         * tests/test-lseek.sh: Exercise more facets of lseek.
68969         Reported by Bruno Haible.
68970
68971 2007-05-28  Bruno Haible  <bruno@clisp.org>
68972
68973         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68974         to define.
68975
68976 2007-05-27  Bruno Haible  <bruno@clisp.org>
68977
68978         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68979
68980 2007-05-27  Bruno Haible  <bruno@clisp.org>
68981
68982         * modules/openmp: New file.
68983         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68984         Noah Misch.
68985
68986 2007-05-26  Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/chdir-long (Depends-on): Add fchdir.
68989         * modules/chdir-safer (Depends-on): Likewise.
68990         * modules/fts (Depends-on): Likewise.
68991         * modules/fts-lgpl (Depends-on): Likewise.
68992         * modules/openat (Depends-on): Likewise.
68993         * modules/savewd (Depends-on): Likewise.
68994
68995 2007-05-24  Eric Blake  <ebb9@byu.net>
68996
68997         Fix lseek on mingw.
68998         * modules/lseek: New module.
68999         * m4/lseek.m4: New file.
69000         * lib/lseek.c: New file.
69001         * modules/lseek-tests: New file.
69002         * tests/test-lseek.c: New file.
69003         * tests/test-lseek.sh: New file.
69004         * MODULES.html.sh: Document lseek module.
69005         * modules/fflush (Depends-on): Add lseek, fseeko.
69006         * modules/fseeko (Depends-on): Likewise.
69007         * modules/ftello (Depends-on): Likewise.
69008         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69009         broken.
69010         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69011         broken.
69012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69013         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69014         * lib/ftello.c (rpl_ftello): Likewise.
69015         * tests/test-fseeko.c (main): Test this.
69016         * tests/test-fseeko.sh: Likewise.
69017         * tests/test-ftello.c (main): Likewise.
69018         * tests/test-ftello.sh: Likewise.
69019         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69020         implies replacing fseek.
69021         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69022         HAVE_FTELLO.
69023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69024         * modules/unistd (Makefile.am): Likewise.
69025         * lib/unistd_.h (lseek): Declare a replacement.
69026         * doc/functions/lseek.texi (lseek): Document this fix.
69027         * doc/functions/fseek.texi (fseek): Likewise.
69028         * doc/functions/ftell.texi (ftell): Likewise.
69029
69030 2007-05-24  Bruno Haible  <bruno@clisp.org>
69031
69032         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69033         in the printed representation of a NaN.
69034         * tests/test-vasprintf-posix.c (test_function): Likewise.
69035         * tests/test-snprintf-posix.h (test_function): Likewise.
69036         * tests/test-sprintf-posix.h (test_function): Likewise.
69037         Reported by Eric Blake.
69038
69039 2007-05-23  Eric Blake  <ebb9@byu.net>
69040
69041         Fix fseeko/ftello on cygwin 1.5.24.
69042         * doc/functions/fseeko.texi (fseeko): Document the fix.
69043         * doc/functions/ftello.texi (ftello): Document the fix.
69044         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69045         * doc/functions/stdout.text (stdout): New file.
69046         * doc/functions/stderr.text (stderr): New file.
69047         * doc/gnulib.texi (Function Substitutes): Use new files.
69048         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69049         prior to 1.7.0.
69050         * tests/test-ftello.c (main): Likewise for ftello.
69051         * tests/test-fseeko.sh: New file.
69052         * tests/test-ftello.sh: New file.
69053         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69054         with seekable stdin.
69055         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69056         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69057         (gl_REPLACE_FSEEKO): New macro.
69058         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69059         * modules/fseeko (Files): Distribute fseeko.c.
69060         * modules/ftello (Files): Distribute ftello.c.
69061         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69062         mode.
69063         * lib/ftello.c (rpl_ftello): New file.
69064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69065         fseeko, ftello.
69066         (gl_STDIN_LARGE_OFFSET): New macro.
69067         * modules/stdio (Makefile.am): Perform the replacement.
69068         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69069
69070 2007-05-23  Bruno Haible  <bruno@clisp.org>
69071
69072         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69073         GNULIB_POSIXCHECK is defined.
69074
69075 2007-05-21  Bruno Haible  <bruno@clisp.org>
69076
69077         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69078         Check also the output for NaN arguments. When cross-compiling, guess
69079         no on IRIX.
69080         * lib/vasnprintf.c: Update comments.
69081         * tests/test-vasnprintf-posix.c (strisnan): New function.
69082         (test_function): Use it.
69083         * tests/test-vasprintf-posix.c (strisnan): New function.
69084         (test_function): Use it.
69085         * tests/test-snprintf-posix.h (strisnan): New function.
69086         (test_function): Use it.
69087         * tests/test-sprintf-posix.h (strisnan): New function.
69088         (test_function): Use it.
69089         Reported by Eric Blake.
69090
69091 2007-05-20  Bruno Haible  <bruno@clisp.org>
69092
69093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69094         numbers that fails on BeOS.
69095         * doc/functions/frexpl.texi: Update.
69096
69097 2007-05-20  Jim Meyering  <jim@meyering.net>
69098
69099         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69100         forced upon us by glibc-2.6.
69101
69102 2007-05-20  Bruno Haible  <bruno@clisp.org>
69103
69104         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69105         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69106         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69107         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69108         NEED_PRINTF_INFINITE.
69109         (is_infinitel): New function.
69110         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69112         gl_PREREQ_VASNPRINTF_INFINITE.
69113         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69115         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69116         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69117         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69118         gl_PREREQ_VASNPRINTF_INFINITE.
69119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69126         * doc/functions/fprintf.texi: Update.
69127         * doc/functions/printf.texi: Update.
69128         * doc/functions/snprintf.texi: Update.
69129         * doc/functions/sprintf.texi: Update.
69130         * doc/functions/vfprintf.texi: Update.
69131         * doc/functions/vprintf.texi: Update.
69132         * doc/functions/vsnprintf.texi: Update.
69133         * doc/functions/vsprintf.texi: Update.
69134
69135 2007-05-20  Bruno Haible  <bruno@clisp.org>
69136
69137         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69138         was not found in libc.
69139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69140
69141 2007-05-20  Bruno Haible  <bruno@clisp.org>
69142
69143         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69144         printed as "-nan" instead of "nan".
69145         * tests/test-vasprintf-posix.c (test_function): Likewise.
69146         * tests/test-snprintf-posix.h (test_function): Likewise.
69147         * tests/test-sprintf-posix.h (test_function): Likewise.
69148         Needed for HP-UX 11.
69149
69150 2007-05-20  Jim Meyering  <jim@meyering.net>
69151
69152         Fix buggy test for the fchownat-deref bug.
69153         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69154         symlink required for the run-test.  Without it, this test would
69155         always declare that fchownat doesn't work, and client code would
69156         unnecessarily use the replacement function with fixed libc.
69157         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69158         Reported by Greg Schafer.
69159
69160 2007-05-19  Bruno Haible  <bruno@clisp.org>
69161
69162         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69163         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69164         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69165         Needed for IRIX 6.5 and Solaris 2.5.1.
69166
69167 2007-05-19  Bruno Haible  <bruno@clisp.org>
69168
69169         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69170         (test_function): Skip tests involving -0.0 on platforms where
69171         -0.0 = 0.0.
69172         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69173         (test_function): Skip tests involving -0.0 on platforms where
69174         -0.0 = 0.0.
69175         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69176         (test_function): Skip tests involving -0.0 on platforms where
69177         -0.0 = 0.0.
69178         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69179         (test_function): Skip tests involving -0.0 on platforms where
69180         -0.0 = 0.0.
69181         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69182         tests.
69183         * tests/test-printf-posix.h (test_function): Likewise.
69184         * tests/test-printf-posix.output: Remove all -0.0 related results.
69185         Needed for IRIX 6.5.
69186
69187 2007-05-19  Bruno Haible  <bruno@clisp.org>
69188
69189         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69190         printed as "nan0x7fffffff" instead of "nan".
69191         * tests/test-vasprintf-posix.c (test_function): Likewise.
69192         * tests/test-snprintf-posix.h (test_function): Likewise.
69193         * tests/test-sprintf-posix.h (test_function): Likewise.
69194         * tests/test-fprintf-posix.h (NaN): Remove macro.
69195         (test_function): Remove all NaN related tests.
69196         * tests/test-printf-posix.h (NaN): Remove macro.
69197         (test_function): Remove all NaN related tests.
69198         * tests/test-printf-posix.output: Remove all NaN related results.
69199         Needed for IRIX 6.5.
69200
69201 2007-05-19  Bruno Haible  <bruno@clisp.org>
69202
69203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69204         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69205
69206 2007-05-19  Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/float_.h: New file.
69209         * m4/float_h.m4: New file.
69210         * modules/float: New file.
69211         * modules/isnanl (Dependencies): Add float.
69212         * modules/isnanl-nolibm (Dependencies): Likewise.
69213         * modules/mathl (Dependencies): Likewise.
69214         * modules/printf-frexpl (Dependencies): Likewise.
69215         * modules/signbit (Dependencies): Likewise.
69216         * modules/vasnprintf (Dependencies): Likewise.
69217         * doc/headers/float.texi: Update.
69218
69219 2007-05-19  Jim Meyering  <jim@meyering.net>
69220
69221         * lib/utimens.c (gl_futimens): Rename from futimens,
69222         now that glibc-2.6 declares futimens.
69223         * lib/utimens.h: Likewise.
69224
69225 2007-05-19  Bruno Haible  <bruno@clisp.org>
69226
69227         Avoid test failures on mingw.
69228         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69229         * tests/test-printf-posix.sh: Likewise.
69230         * tests/test-vfprintf-posix.sh: Likewise.
69231         * tests/test-vprintf-posix.sh: Likewise.
69232
69233 2007-05-19  Bruno Haible  <bruno@clisp.org>
69234
69235         Fix *printf result for NaN, Inf, -0.0 on mingw.
69236         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69237         * lib/vasnprintf.c: Include math.h and isnan.h.
69238         (is_infinite_or_zero): New function.
69239         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69240         values in the %f, %F, %e, %E, %g, %G directives.
69241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69243         gl_PRINTF_INFINITE and test its result. Invoke
69244         gl_PREREQ_VASNPRINTF_INFINITE.
69245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69246         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69252         * doc/functions/fprintf.texi: Update.
69253         * doc/functions/printf.texi: Update.
69254         * doc/functions/snprintf.texi: Update.
69255         * doc/functions/sprintf.texi: Update.
69256         * doc/functions/vfprintf.texi: Update.
69257         * doc/functions/vprintf.texi: Update.
69258         * doc/functions/vsnprintf.texi: Update.
69259         * doc/functions/vsprintf.texi: Update.
69260
69261 2007-05-19  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69264         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69265         Instead of multiplying with 10^k, set extra_zeroes to k.
69266         (scale10_round_long_double): Remove function.
69267
69268 2007-05-18  Bruno Haible  <bruno@clisp.org>
69269
69270         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69271         introduced on 2007-05-06.
69272
69273 2007-05-18  Bruno Haible  <bruno@clisp.org>
69274
69275         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69276         %g directives.
69277         * tests/test-vasprintf-posix.c (test_function): Likewise.
69278         * tests/test-snprintf-posix.h (test_function): Likewise.
69279         * tests/test-sprintf-posix.h (test_function): Likewise.
69280
69281 2007-05-18  Bruno Haible  <bruno@clisp.org>
69282
69283         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69284         (strmatch): New function.
69285         (test_function): Test the %f directive on numbers of various exponents.
69286         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69287         (strmatch): New function.
69288         (test_function): Test the %f directive on numbers of various exponents.
69289         * tests/test-snprintf-posix.h (strmatch): New function.
69290         (test_function): Test the %f directive on numbers of various exponents.
69291         * tests/test-sprintf-posix.h (strmatch): New function.
69292         (test_function): Test the %f directive on numbers of various exponents.
69293         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69294         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69295         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69296         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69297
69298 2007-05-18  Bruno Haible  <bruno@clisp.org>
69299
69300         Add support for 'long double' number output.
69301         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69302         * lib/vasnprintf.c: Include math.h and float+.h.
69303         (mp_limb_t): New type.
69304         (GMP_LIMB_BITS): New macro.
69305         (mp_twolimb_t): New type.
69306         (GMP_TWOLIMB_BITS): New macro.
69307         (mpn_t): New type.
69308         (multiply, divide, convert_to_decimal, decode_long_double,
69309         scale10_round_long_double, scale10_round_decimal_long_double,
69310         floorlog10l): New functions.
69311         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69312         for the %f, %F, %e, %E, %g, %G directives.
69313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69315         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69316         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69317         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69318         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69319         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69322         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69323         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69324         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69325         * modules/snprintf-posix (Depends-on): Likewise.
69326         * modules/sprintf-posix (Depends-on): Likewise.
69327         * modules/vasnprintf-posix (Depends-on): Likewise.
69328         * modules/vasprintf-posix (Depends-on): Likewise.
69329         * modules/vfprintf-posix (Depends-on): Likewise.
69330         * modules/vsnprintf-posix (Depends-on): Likewise.
69331         * modules/vsprintf-posix (Depends-on): Likewise.
69332         * modules/vasnprintf (Files): Add lib/float+.h.
69333         * doc/functions/fprintf.texi: Update.
69334         * doc/functions/printf.texi: Update.
69335         * doc/functions/snprintf.texi: Update.
69336         * doc/functions/sprintf.texi: Update.
69337         * doc/functions/vfprintf.texi: Update.
69338         * doc/functions/vprintf.texi: Update.
69339         * doc/functions/vsnprintf.texi: Update.
69340         * doc/functions/vsprintf.texi: Update.
69341
69342 2007-05-18  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69345
69346 2007-05-18  Bruno Haible  <bruno@clisp.org>
69347
69348         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69349         for printing 64-bit integers. Needed for mingw.
69350
69351 2007-05-18  Bruno Haible  <bruno@clisp.org>
69352
69353         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69354         gl_FUNC_FREXPL_WORKS.
69355         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69356
69357 2007-05-18  Bruno Haible  <bruno@clisp.org>
69358
69359         * modules/frexpl-nolibm-tests: New file.
69360
69361         * modules/frexpl-nolibm: New file.
69362         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69363
69364 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69365
69366         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69367         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69368         GCC 4.2, which otherwise issues a lot of warnings.
69369         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69370         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69371         Likewise.
69372         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69373         * modules/iconv_open (iconv.h): Likewise.
69374         * modules/locale (locale.h): Likewise.
69375         * modules/netinet_in (netinet/in.h): Likewise.
69376         * modules/sys_select (sys_select.h): Likewise.
69377         * modules/sys_socket (sys/socket.h): Likewise.
69378         * modules/sys_stat (sys/stat.h): Likewise.
69379         * modules/sysexits (sysexits.h): Likewise.
69380         * modules/unistd (unistd.h): Likewise.
69381
69382 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69383
69384         * modules/closein-tests (Makefile.am): Distribute
69385         `test-closein.sh'.
69386
69387 2007-05-17  Bruno Haible  <bruno@clisp.org>
69388
69389         * tests/test-printf-posix.output: Renamed from
69390         tests/test-fprintf-posix.out.
69391         * modules/fprintf-posix-tests: Update.
69392         * modules/printf-posix-tests: Update.
69393         * modules/vfprintf-posix-tests: Update.
69394         * modules/vprintf-posix-tests: Update.
69395         * tests/test-fprintf-posix.sh: Update.
69396         * tests/test-printf-posix.sh: Update.
69397         * tests/test-vfprintf-posix.sh: Update.
69398         * tests/test-vprintf-posix.sh: Update.
69399         Reported by Ralf Wildenhues.
69400
69401 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69404         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69405         GCC 4.2, which otherwise issues a lot of warnings.
69406         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69407         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69408         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69409         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69410         it should no longer be needed.
69411         * lib/string_.h: Likewise.
69412         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69413         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69414         * modules/inttypes (inttypes.h): Likewise.
69415         * modules/math (math.h): Likewise.
69416         * modules/search (search.h): Likewise.
69417         * modules/signal (signal.h): Likewise.
69418         * modules/stdint (stdint.h): Likewise.
69419         * modules/stdio (stdio.h): Likewise.
69420         * modules/stdlib (stdlib.h): Likewise.
69421         * modules/string (string.h): Likewise.
69422         * modules/sys_time (sys/time.h): Likewise.
69423         * modules/time (time.h): Likewise.
69424         * modules/wchar (wchar.h): Likewise.
69425         * modules/wctype (wtype.h): Likewise.
69426
69427 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69428
69429         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69430
69431 2007-05-13  Bruno Haible  <bruno@clisp.org>
69432
69433         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69434         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69435         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69436         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69437         (gl_PREREQ_STRTOK_R): Don't require it here.
69438
69439 2007-05-13  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69442         when used in C++ mode.
69443
69444 2007-05-12  Bruno Haible  <bruno@clisp.org>
69445
69446         * lib/linebuffer.h: Tweak doc.
69447         * lib/linebuffer.c: Likewise.
69448
69449 2007-05-12  James Youngman  <jay@gnu.org>
69450
69451         * lib/linebuffer.c (readlinebuffer_delim): New function,
69452         like readlinebuffer, but use a caller-specified delimiter.
69453         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69454         as the delimiter.
69455         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69456
69457 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69458
69459         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69460         * modules/openat (Files): Remove openat-die.c.
69461         (Depends-on): Add openat-die.
69462         * modules/openat-die: New module.
69463
69464 2007-05-06  Bruno Haible  <bruno@clisp.org>
69465
69466         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69467         Update with info about Cygwin.
69468         * doc/functions/fprintf.texi: Update.
69469         * doc/functions/printf.texi: Update.
69470         * doc/functions/snprintf.texi: Update.
69471         * doc/functions/sprintf.texi: Update.
69472         * doc/functions/vfprintf.texi: Update.
69473         * doc/functions/vprintf.texi: Update.
69474         * doc/functions/vsnprintf.texi: Update.
69475         * doc/functions/vsprintf.texi: Update.
69476         Reported by Eric Blake.
69477
69478 2007-05-06  Bruno Haible  <bruno@clisp.org>
69479
69480         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69481         padding ourselves for the floating-point directives.
69482         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69485         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69486         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69494         * tests/test-snprintf-posix.h (test_function): Also check the width
69495         and some flags in the %f directive.
69496         * tests/test-sprintf-posix.h (test_function): Likewise.
69497         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69498         * tests/test-vasprintf-posix.c (test_function): Likewise.
69499         * doc/functions/fprintf.texi: Update.
69500         * doc/functions/printf.texi: Update.
69501         * doc/functions/snprintf.texi: Update.
69502         * doc/functions/sprintf.texi: Update.
69503         * doc/functions/vfprintf.texi: Update.
69504         * doc/functions/vprintf.texi: Update.
69505         * doc/functions/vsnprintf.texi: Update.
69506         * doc/functions/vsprintf.texi: Update.
69507
69508 2007-05-06  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69511         pass the ' flag character to sprintf or snprintf.
69512         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69514         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69515         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69516         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69518         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69524         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69525         flag.
69526         * tests/test-sprintf-posix.h (test_function): Likewise.
69527         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69528         * tests/test-vasprintf-posix.c (test_function): Likewise.
69529         * doc/functions/fprintf.texi: Update.
69530         * doc/functions/printf.texi: Update.
69531         * doc/functions/snprintf.texi: Update.
69532         * doc/functions/sprintf.texi: Update.
69533         * doc/functions/vfprintf.texi: Update.
69534         * doc/functions/vprintf.texi: Update.
69535         * doc/functions/vsnprintf.texi: Update.
69536         * doc/functions/vsprintf.texi: Update.
69537
69538 2007-05-01  Bruno Haible  <bruno@clisp.org>
69539
69540         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69541
69542 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69545         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69546
69547 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69548
69549         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69550         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69552
69553 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69554
69555         * lib/argp-help.c (struct hol_entry): New member `ord'.
69556         (HOL_ENTRY_PTRCMP): Use ord for comparison
69557         (hol_sort): Initialize ord.
69558
69559 2007-05-01  Bruno Haible  <bruno@clisp.org>
69560
69561         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69562         Reported by Eric Blake.
69563         * doc/gnulib.texi (Function Substitutes): Update.
69564
69565 2007-05-01  Bruno Haible  <bruno@clisp.org>
69566
69567         * doc/functions.texi: Remove file, now redundant through
69568         doc/functions/*.texi.
69569
69570 2007-05-01  Bruno Haible  <bruno@clisp.org>
69571
69572         * modules/argp (Depends-on): Add sleep.
69573
69574 2007-05-01  Bruno Haible  <bruno@clisp.org>
69575
69576         * modules/sleep-tests: New file.
69577         * tests/test-sleep.c: New file.
69578
69579         * modules/sleep: New file.
69580         * lib/sleep.c: New file.
69581         * m4/sleep.m4: New file.
69582         * lib/unistd_.h (sleep): New declaration.
69583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69584         HAVE_SLEEP.
69585         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69586         * doc/functions/sleep.texi: Document the sleep module.
69587
69588 2007-05-01  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/sigprocmask.h: Remove file.
69591         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69592         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69593         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69594         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69595         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69596         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69597         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69598         HAVE_SIGSET_T as a shell variable.
69599         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69600         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69601         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69602         (Depends-on): Add signal. Remove verify.
69603         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69604         (Include): Mention <signal.h> instead of sigprocmask.h.
69605         * NEWS: Mention the change.
69606         * lib/fatal-signal.c: Don't include sigprocmask.h.
69607
69608 2007-05-01  Bruno Haible  <bruno@clisp.org>
69609
69610         * modules/signal: New file.
69611         * lib/signal_.h: New file.
69612         * m4/signal_h.m4: New file.
69613
69614 2007-05-01  Bruno Haible  <bruno@clisp.org>
69615
69616         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69617         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69618         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69619         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69620
69621 2007-05-01  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69624         configure time.
69625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69626         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69627         * modules/sys_stat (Makefile.am): Substitute their values into
69628         sys/stat.h.
69629
69630 2007-05-01  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69633         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69634         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69635
69636 2007-05-01  Bruno Haible  <bruno@clisp.org>
69637
69638         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69639         'assert' module here.
69640
69641 2007-05-01  Bruno Haible  <bruno@clisp.org>
69642
69643         * doc/functions/*.texi: New files.
69644         * doc/functions/google-ranking.txt: New file.
69645         * doc/gnulib.texi (Function Substitutes): New chapter.
69646         (ctime, inet_ntoa): Remove sections.
69647         * doc/ctime.texi: Remove file.
69648         * doc/inet_ntoa.texi: Remove file.
69649         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69650         dependencies.
69651         (%.info): New rule, specifying a --reference-limit.
69652
69653 2007-05-01  Bruno Haible  <bruno@clisp.org>
69654
69655         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69656
69657 2007-05-01  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69660         the portability of 'mkdir' to mingw systems.
69661
69662 2007-05-01  Bruno Haible  <bruno@clisp.org>
69663
69664         * doc/headers/google-ranking.txt: New file.
69665
69666 2007-04-30  Eric Blake  <ebb9@byu.net>
69667
69668         Prefer fseeko to fseek.
69669         * modules/getpass (Depends-on): Add fseeko.
69670         * lib/getpass.c (getpass): Use fseeko, not fseek.
69671
69672 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69673
69674         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69675         assumes the sorting is stable, while most qsort implementations
69676         are not.  Use argument addresses to ensure they never compare as
69677         equal.
69678
69679         * tests/test-argp-2.sh (usage-indent test): Fix output
69680         (func_compare): Restore diff options
69681         * tests/test-argp.c: Restore #include "progname.h"
69682
69683 2007-04-29  Bruno Haible  <bruno@clisp.org>
69684
69685         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69687         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69689         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69690         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69691         (TESTS, check_PROGRAMS): Add test-snprintf.
69692         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69693         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69694         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69695         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69696         assertions that fail on HP-UX, OSF/1, or IRIX.
69697         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69698
69699 2007-04-29  Bruno Haible  <bruno@clisp.org>
69700
69701         * MODULES.html.sh (posix_functions): Remove 'contents'.
69702
69703 2007-04-29  Karl Berry  <karl@gnu.org>
69704
69705         * config/srclist.txt (gendocs_template_min): new entry.
69706
69707 2007-04-29  Bruno Haible  <bruno@clisp.org>
69708
69709         Work around fpurge bug on BSD systems.
69710         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69711         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69712         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69713         fpurge to rpl_fpurge if the system already has this function.
69714         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69715         the case where the system already has this function. Correct invariants
69716         on BSD systems.
69717         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69718         BSD systems.
69719
69720 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69721
69722         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69723         proposed by Sven Verdoolaege.
69724
69725         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69726         options.
69727         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69728         (usage and help tests): Update
69729
69730 2007-04-29  Bruno Haible  <bruno@clisp.org>
69731
69732         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69733         Print more information in case of failure. Disable a test on BeOS.
69734
69735 2007-04-29  Bruno Haible  <bruno@clisp.org>
69736
69737         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69738         This helps debugging on systems on which no gdb is available.
69739
69740 2007-04-29  Bruno Haible  <bruno@clisp.org>
69741
69742         * lib/freading.h: Improve comments.
69743         * lib/fwriting.h: Likewise.
69744         * tests/test-freading.c (main): Don't check freading immediately after
69745         repositioning. Needed for glibc.
69746
69747 2007-04-29  Bruno Haible  <bruno@clisp.org>
69748
69749         * lib/freading.c (freading): Trivial simplification.
69750
69751 2007-04-28  Bruno Haible  <bruno@clisp.org>
69752
69753         * tests/test-fwriting.c (main): Also test the interaction between
69754         fflush and fwriting.
69755         * modules/fwriting-tests (Depends-on): Add fflush.
69756
69757         * tests/test-freading.c (main): Also test the interaction between
69758         fflush and freading.
69759         * modules/freading-tests (Depends-on): Add fflush.
69760
69761 2007-04-28  Bruno Haible  <bruno@clisp.org>
69762
69763         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69764         fseeko and ftello.
69765         Suggested by Eric Blake.
69766
69767 2007-04-28  Jim Meyering  <jim@meyering.net>
69768
69769         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69770         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69771         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69772
69773 2007-04-27  Eric Blake  <ebb9@byu.net>
69774
69775         * doc/headers/assert.texi (assert.h): Document assert module use.
69776
69777 2007-04-27  Bruno Haible  <bruno@clisp.org>
69778
69779         * doc/headers/*.texi: New files.
69780         * doc/gnulib.texi (Header File Substitutes): New chapter.
69781         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69782         dependencies.
69783         (standards.info ,standards.html, standards.dvi): Update dependencies.
69784         (mostlyclean, clean): New targets.
69785
69786 2007-04-27  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69789         * modules/sysexits (Files, Makefile.am): Update.
69790
69791         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69792         * modules/sys_socket (Files, Makefile.am): Update.
69793
69794         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69795         * modules/sys_stat (Files, Makefile.am): Update.
69796
69797 2007-04-27  Eric Blake  <ebb9@byu.net>
69798
69799         * lib/freading.h: Improve comments.
69800         * lib/fwriting.h: Likewise.
69801         * lib/fflush.c: Likewise.
69802
69803         Fix closein for mingw.
69804         * modules/closein-tests: Add tests for closein.
69805         * tests/test-closein.c: New file.
69806         * tests/test-closein.sh: Likewise.
69807         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69808         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69809
69810 2007-04-27  Bruno Haible  <bruno@clisp.org>
69811
69812         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69813         version is < 6.
69814         * lib/math_.h [__DECC]: Likewise.
69815         * lib/stdio_.h [__DECC]: Likewise.
69816         * lib/stdlib_.h [__DECC]: Likewise.
69817         * lib/string_.h [__DECC]: Likewise.
69818         * lib/time_.h [__DECC]: Likewise.
69819         * lib/wchar_.h [__DECC]: Likewise.
69820         * lib/wctype_.h [__DECC]: Likewise.
69821
69822 2007-04-27  Bruno Haible  <bruno@clisp.org>
69823
69824         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69825
69826 2007-04-27  Bruno Haible  <bruno@clisp.org>
69827
69828         * lib/fflush.c: Add comments.
69829         * modules/fpurge-tests (Depends-on): Add fflush.
69830         * modules/freadable-tests (Depends-on): Likewise.
69831         * modules/fwritable-tests (Depends-on): Likewise.
69832
69833 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69834
69835         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69836         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69837         Report by Bruno Haible <bruno@clisp.org>.
69838
69839 2007-04-26  Eric Blake  <ebb9@byu.net>
69840
69841         Fix fflush on mingw.
69842         * modules/fflush (Depends-on): Add freading.
69843         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69844         but unread data.
69845
69846 2007-04-26  Eric Blake  <ebb9@byu.net>
69847         and Bruno Haible  <bruno@clisp.org>
69848
69849         Implement freading and fwriting.
69850         * lib/freading.c: New file.
69851         * lib/freading.h: Likewise.
69852         * m4/freading.m4: Likewise.
69853         * modules/freading: Likewise.
69854         * modules/freading-tests: Likewise.
69855         * tests/test-freading.c: Likewise.
69856         * lib/fwriting.c: New file.
69857         * lib/fwriting.h: Likewise.
69858         * m4/fwriting.m4: Likewise.
69859         * modules/fwriting: Likewise.
69860         * modules/fwriting-tests: Likewise.
69861         * tests/test-fwriting.c: Likewise.
69862         * MODULES.html.sh (File stream based Input/Output): Mention them.
69863
69864 2007-04-26  Bruno Haible  <bruno@clisp.org>
69865
69866         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69867         'long' when we assume it.
69868         Suggested by Eric Blake.
69869
69870 2007-04-26  Bruno Haible  <bruno@clisp.org>
69871
69872         Ensure fseeko, ftello are declared on glibc systems.
69873         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69874         * modules/fseeko (configure.ac-early): Likewise.
69875         * modules/ftello (configure.ac-early): Likewise.
69876         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69877         AC_FUNC_FSEEKO for this.
69878         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69879         (gl_CHECK_FSEEKO): Remove macro.
69880
69881 2007-04-26  Bruno Haible  <bruno@clisp.org>
69882
69883         * tests/test-fflush.c (main): Also check the ftell result after
69884         fflush and fseek/fseeko.
69885         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69886         file descriptor position cache in the stream.
69887         * lib/fseeko.c (rpl_fseeko): Likewise.
69888
69889 2007-04-26  Bruno Haible  <bruno@clisp.org>
69890
69891         * modules/fflush-tests (Depends-on): Add fseeko.
69892
69893 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69894             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69895
69896         * lib/argz_.h: ensure error_t definition is obtained in same
69897         mechanism system argz.h would have.
69898         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69899         argz facilities are known bad.  Err on the side of caution if
69900         cross-compiling.
69901
69902 2007-04-25  Eric Blake  <ebb9@byu.net>
69903
69904         * lib/fpurge.c (includes): Use stdlib.h for free.
69905         * tests/test-fflush.c (main): Also test fflush-fseeko.
69906
69907 2007-04-25  Bruno Haible  <bruno@clisp.org>
69908
69909         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69910         * lib/fseeko.c: New file.
69911         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69912         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69913         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69914         gl_FUNC_FSEEKO.
69915         (gl_FUNC_FSEEKO): Invoke it.
69916         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69917         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69918         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69919
69920 2007-04-25  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/fflush (Depends-on): Add ftello.
69923
69924 2007-04-25  Bruno Haible  <bruno@clisp.org>
69925
69926         * modules/ftello-tests: New file.
69927         * tests/test-ftello.c: New file.
69928
69929         * modules/ftello: New file.
69930         * m4/ftello.m4: New file.
69931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69932         HAVE_FTELLO.
69933         * lib/stdio_.h (ftello): New declaration.
69934         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69935         HAVE_FTELLO.
69936
69937 2007-04-25  Bruno Haible  <bruno@clisp.org>
69938
69939         * modules/fseeko-tests: New file.
69940         * tests/test-fseeko.c: New file.
69941
69942         * modules/fseeko: New file.
69943         * m4/fseeko.m4: New file.
69944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69945         HAVE_FSEEKO.
69946         * lib/stdio_.h (fseeko): New declaration.
69947         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69948         HAVE_FSEEKO.
69949
69950 2007-04-25  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69953
69954 2007-04-25  Bruno Haible  <bruno@clisp.org>
69955
69956         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69957         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69958         * tests/test-unistd.c: Likewise.
69959         * tests/test-fcntl.c: Likewise.
69960
69961 2007-04-23  Eric Blake  <ebb9@byu.net>
69962
69963         * lib/fflush.c: Fix missing include.
69964         Reported by Bruno Haible.
69965
69966 2007-04-23  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69969         Reported by Eric Blake.
69970
69971 2007-04-23  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69974
69975 2007-04-23  Bruno Haible  <bruno@clisp.org>
69976
69977         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69978
69979 2007-04-23  Bruno Haible  <bruno@clisp.org>
69980
69981         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69982         Needed on HP-UX 11.
69983
69984 2007-04-16  Eric Blake  <ebb9@byu.net>
69985
69986         Make fflush rely on fpurge.
69987         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69988         open coding all variants.
69989         * modules/fflush (Depends-on): Add fpurge and unistd.
69990         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69991         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69992
69993         Fix --with-tests compilation on cygwin.
69994         * modules/argmatch-tests (Makefile.am): List gnulib library first
69995         in LDADD.
69996         * modules/argp-tests (Makefile.am): Likewise.
69997         * modules/array-list-tests (Makefile.am): Likewise.
69998         * modules/array-oset-tests (Makefile.am): Likewise.
69999         * modules/avltree-list-tests (Makefile.am): Likewise.
70000         * modules/avltree-oset-tests (Makefile.am): Likewise.
70001         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70002         * modules/carray-list-tests (Makefile.am): Likewise.
70003         * modules/dirname-tests (Makefile.am): Likewise.
70004         * modules/frexp-tests (Makefile.am): Likewise.
70005         * modules/isnanl-tests (Makefile.am): Likewise.
70006         * modules/linked-list-tests (Makefile.am): Likewise.
70007         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70008         * modules/lock-tests (Makefile.am): Likewise.
70009         * modules/rbtree-list-tests (Makefile.am): Likewise.
70010         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70011         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70012         * modules/tls-tests (Makefile.am): Likewise.
70013         * modules/tsearch-tests (Makefile.am): Likewise.
70014         * modules/xvasprintf-tests (Makefile.am): Likewise.
70015
70016         Fix fpurge for cygwin.
70017         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70018         value.
70019         * modules/fpurge-tests (Depends-on): Clean up trash.
70020
70021 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70022
70023         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70024
70025         * m4/autobuild.m4: Re-indent.
70026
70027 2007-04-13  Bruno Haible  <bruno@clisp.org>
70028
70029         * modules/fpurge-tests: New file.
70030         * tests/test-fpurge.c: New file.
70031
70032         * modules/fpurge: New file.
70033         * lib/fpurge.h: New file.
70034         * lib/fpurge.c: New file.
70035         * m4/fpurge.m4: New file.
70036
70037 2007-04-13  Bruno Haible  <bruno@clisp.org>
70038
70039         * modules/fbufmode-tests: New file.
70040         * tests/test-fbufmode.c: New file.
70041
70042         * modules/fbufmode: New file.
70043         * lib/fbufmode.h: New file.
70044         * lib/fbufmode.c: New file.
70045         * m4/fbufmode.m4: New file.
70046
70047 2007-04-13  Bruno Haible  <bruno@clisp.org>
70048
70049         * modules/fwritable-tests: New file.
70050         * tests/test-fwritable.c: New file.
70051
70052         * modules/fwritable: New file.
70053         * lib/fwritable.h: New file.
70054         * lib/fwritable.c: New file.
70055         * m4/fwritable.m4: New file.
70056
70057 2007-04-13  Bruno Haible  <bruno@clisp.org>
70058
70059         * modules/freadable-tests: New file.
70060         * tests/test-freadable.c: New file.
70061
70062         * modules/freadable: New file.
70063         * lib/freadable.h: New file.
70064         * lib/freadable.c: New file.
70065         * m4/freadable.m4: New file.
70066
70067 2007-04-13  Bruno Haible  <bruno@clisp.org>
70068
70069         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70070         MOSTLYCLEANFILES.
70071
70072 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70075         gzip bootstrap.conf to avoid dragging in i18n machinery.
70076         (gnulib_tool_option): Use it.
70077
70078 2007-04-13  Bruno Haible  <bruno@clisp.org>
70079
70080         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70081         %F directives.
70082         * tests/test-vasprintf-posix.c (test_function): Likewise.
70083         * tests/test-snprintf-posix.h (test_function): Likewise.
70084         * tests/test-sprintf-posix.h (test_function): Likewise.
70085         * tests/test-fprintf-posix.h (test_function): Likewise.
70086         * tests/test-printf-posix.h (test_function): Likewise.
70087         * tests/test-fprintf-posix.out: Likewise.
70088
70089 2007-04-13  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70092         * modules/tls-tests (configure.ac): Likewise.
70093         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70094
70095 2007-04-13  Bruno Haible  <bruno@clisp.org>
70096
70097         * lib/tls.c (glthread_tls_get): Fix return type.
70098         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70099
70100 2007-04-12  Eric Blake  <ebb9@byu.net>
70101
70102         * modules/gettime (Depends-on): Remove gettime.
70103         Reported by Dmitry V. Levin.
70104
70105 2007-04-12  Bruno Haible  <bruno@clisp.org>
70106
70107         * modules/fflush (Include): Mention <stdio.h>.
70108         * modules/strtoimax (Include): Mention <inttypes.h>.
70109         * modules/strtoumax (Include): Likewise.
70110
70111 2007-04-12  Eric Blake  <ebb9@byu.net>
70112
70113         * .cvsignore: New file.
70114         * .gitignore: Likewise.
70115
70116 2007-04-12  Bruno Haible  <bruno@clisp.org>
70117
70118         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70119         not before, since $(LDADD) often contains libgnu.a.
70120         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70121         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70122         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70123         Needed on Cygwin.
70124
70125 2007-04-12  Eric Blake  <ebb9@byu.net>
70126
70127         Work around glibc's failure to flush stdin on fclose.
70128         * lib/closein.c (close_stdin): Flush stdin before closing.
70129
70130         Work around glibc's failure to reset seekable stdin on exit.
70131         * modules/closein: New module.
70132         * lib/closein.c: New file.
70133         * lib/closein.h: Likewise.
70134         * m4/closein.m4: Likewise.
70135         * MODULES.html.sh (File stream based Input/Output): Document it.
70136
70137 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70138
70139         * gnulib-tool: Rename generated 'autobuild' script to
70140         'do-autobuild' in --create-megatestdir output.
70141
70142         * doc/gnulib.texi (Build robot for gnulib): Fix.
70143
70144 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70145
70146         * modules/sysexits (Depends-on): Add absolute-header.
70147
70148 2007-04-12  Eric Blake  <ebb9@byu.net>
70149
70150         No need to preserve errno on success.
70151         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70152         Reported by Bruno Haible.
70153
70154 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70155
70156         * MODULES.html.sh (Support for maintaining and releasing
70157         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70158
70159 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70160
70161         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70162
70163 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70164
70165         * modules/autobuild: New module.
70166
70167         * m4/autobuild.m4: New file.
70168
70169 2007-04-11  Bruno Haible  <bruno@clisp.org>
70170
70171         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70172         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70185         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70186         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70188         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70189         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70190         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70191         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70192         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70194         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70195         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70196         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70197         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70198         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70199         Reported by Eric Blake.
70200
70201 2007-04-11  Bruno Haible  <bruno@clisp.org>
70202
70203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70204
70205 2007-04-10  Bruno Haible  <bruno@clisp.org>
70206
70207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70208         for NaN and Infinity. Needed on FreeBSD 6.1.
70209         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70210         regarding results for "%010a" of Infinity and NaN.
70211         * tests/test-vasprintf-posix.c (test_function): Likewise.
70212         * tests/test-snprintf-posix.h (test_function): Likewise.
70213         * tests/test-sprintf-posix.h (test_function): Likewise.
70214         * tests/test-fprintf-posix.h (test_function): Likewise.
70215         * tests/test-printf-posix.h (test_function): Likewise.
70216         * tests/test-fprintf-posix.out: Likewise.
70217
70218 2007-04-10  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/locale-tests: New file.
70221         * tests/test-locale.c: New file.
70222
70223         * modules/locale: New file.
70224         * lib/locale_.h: New file.
70225         * m4/locale_h.m4: New file.
70226
70227 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70228             Bruno Haible  <bruno@clisp.org>
70229
70230         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70231         be determined, test for availability of the copysignf, copysign,
70232         copysignl functions.
70233         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70234         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70235         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70236
70237 2007-04-09  Eric Blake  <ebb9@byu.net>
70238
70239         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70240         * modules/stdio (Makefile.am): Support fflush.
70241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70242         * modules/fflush: New file.
70243         * lib/fflush.c: Likewise.
70244         * m4/fflush.m4: Likewise.
70245         * modules/fflush-tests: New test.
70246         * tests/test-fflush.c: Likewise.
70247         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70248
70249 2007-04-06  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70252         (VASNPRINTF): Use signbit for faster determination whether to print a
70253         minus sign.
70254         * modules/vasnprintf (Files): Remove lib/float+.h.
70255         * modules/fprintf-posix (Depends-on): Add signbit.
70256         * modules/snprintf-posix (Depends-on): Likewise.
70257         * modules/sprintf-posix (Depends-on): Likewise.
70258         * modules/vasnprintf-posix (Depends-on): Likewise.
70259         * modules/vasprintf-posix (Depends-on): Likewise.
70260         * modules/vfprintf-posix (Depends-on): Likewise.
70261         * modules/vsnprintf-posix (Depends-on): Likewise.
70262         * modules/vsprintf-posix (Depends-on): Likewise.
70263
70264 2007-04-06  Bruno Haible  <bruno@clisp.org>
70265
70266         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70267         * tests/test-frexpl.c (main): Likewise.
70268         * tests/test-ldexpl.c (main): Likewise.
70269         * modules/frexp-tests (Depends-on): Add signbit.
70270         * modules/frexpl-tests (Depdends-on): Likewise.
70271         * modules/ldexpl-tests (Depdends-on): Likewise.
70272
70273 2007-04-06  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/signbit-tests: New file.
70276         * tests/test-signbit.c: New file.
70277
70278         * modules/signbit: New file.
70279         * lib/signbitf.c: New file.
70280         * lib/signbitd.c: New file.
70281         * lib/signbitl.c: New file.
70282         * m4/signbit.m4: New file.
70283         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70284         (signbit): New macro.
70285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70286         REPLACE_SIGNBIT.
70287         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70288         REPLACE_FREXPL into math.h.
70289
70290 2007-04-06  Bruno Haible  <bruno@clisp.org>
70291
70292         * modules/isnanf-nolibm-tests: New file.
70293         * tests/test-isnanf.c: New file.
70294
70295         * modules/isnanf-nolibm: New file.
70296         * lib/isnanf.h: New file.
70297         * lib/isnanf.c: New file.
70298         * lib/isnan.c: Consider the USE_FLOAT macro.
70299         * m4/isnanf.m4: New file.
70300
70301 2007-04-06  Bruno Haible  <bruno@clisp.org>
70302
70303         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70304         (Link): New section.
70305
70306         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70307
70308 2007-04-06  Bruno Haible  <bruno@clisp.org>
70309
70310         Assume the 'long double' type.
70311         * m4/longdouble.m4: Remove file.
70312         * config/srclist.txt: Don't mention longdouble.m4.
70313         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70314         * lib/float+.h: Likewise.
70315         * lib/frexp.c: Likewise.
70316         * lib/printf-args.h: Likewise.
70317         * lib/printf-args.c: Likewise.
70318         * lib/printf-frexp.c: Likewise.
70319         * lib/printf-parse.c: Likewise.
70320         * lib/vasnprintf.c: Likewise.
70321         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70322         * m4/intl.m4: Likewise.
70323         * m4/isnanl.m4: Likewise.
70324         * m4/printf.m4: Likewise.
70325         * m4/printf-frexpl.m4: Likewise.
70326         * m4/vasnprintf.m4: Likewise.
70327         * modules/allocsa (Files): Remove m4/longdouble.m4.
70328         * modules/gettext (Files): Likewise.
70329         * modules/relocatable-prog-wrapper (Files): Likewise.
70330         * modules/vasnprintf (Files): Likewise.
70331         * modules/isnanl (Files): Likewise.
70332         (Include): Simplify.
70333         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70334         (Include): Simplify.
70335         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70336         (Include): Simplify.
70337         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70338         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70339         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70340         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70341         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70342         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70343         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70344         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70345         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70346         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70347         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70348         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70349         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70350         * tests/test-isnanl.c: Likewise.
70351         * tests/test-snprintf-posix.h: Likewise.
70352         * tests/test-sprintf-posix.h: Likewise.
70353         * tests/test-vasnprintf-posix.c: Likewise.
70354         * tests/test-vasnprintf-posix2.c: Likewise.
70355         * tests/test-vasprintf-posix.c: Likewise.
70356
70357 2007-04-06  Bruno Haible  <bruno@clisp.org>
70358
70359         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70360         * lib/math_.h [__DECC]: Include the overridden include file through
70361         #include_next, outside the double-inclusion guard.
70362         * lib/stdio_.h [__DECC]: Likewise.
70363         * lib/stdlib_.h [__DECC]: Likewise.
70364         * lib/string_.h [__DECC]: Likewise.
70365         * lib/time_.h [__DECC]: Likewise.
70366         * lib/wchar_.h [__DECC]: Likewise.
70367         * lib/wctype_.h [__DECC]: Likewise.
70368         * lib/inttypes_.h [__DECC]: Likewise.
70369         Reported by Albert Chin <china@thewrittenword.com> in
70370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70371
70372 2007-04-04  Eric Blake  <ebb9@byu.net>
70373
70374         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70375         1.5.x.
70376
70377 2007-04-04  Bruno Haible  <bruno@clisp.org>
70378
70379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70380         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70381
70382 2007-04-04  Bruno Haible  <bruno@clisp.org>
70383
70384         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70385         results for "%010a" of Infinity and NaN.
70386         * tests/test-vasprintf-posix.c (test_function): Likewise.
70387         * tests/test-snprintf-posix.h (test_function): Likewise.
70388         * tests/test-sprintf-posix.h (test_function): Likewise.
70389         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70390         * tests/test-printf-posix.h (test_function): Likewise.
70391         * tests/test-fprintf-posix.out: Update.
70392         Needed for FreeBSD 6.1.
70393
70394 2007-04-04  Bruno Haible  <bruno@clisp.org>
70395
70396         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70397         directly used by the gnulib modules nor by gnulib-tool.
70398
70399 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * DEPENDENCIES: Give overall description of version dependency
70402         desirability.  Use more-typical names for apps.
70403         Add shell, coreutils, diffutils, grep, tar, gzip.
70404
70405 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70406
70407         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70408
70409 2007-04-04  Karl Berry  <karl@gnu.org>
70410
70411         * MODULES.html.sh (func_module): missing '.
70412
70413 2007-04-03  Bruno Haible  <bruno@clisp.org>
70414
70415         * modules/argmatch-tests (Makefile.am): New variable
70416         test_argmatch_LDADD.
70417         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70418         * modules/array-list-tests (Makefile.am): New variable
70419         test_array_list_LDADD.
70420         * modules/array-oset-tests (Makefile.am): New variable
70421         test_array_oset_LDADD.
70422         * modules/avltree-list-tests (Makefile.am): New variable
70423         test_avltree_list_LDADD.
70424         * modules/avltree-oset-tests (Makefile.am): New variable
70425         test_avltree_oset_LDADD.
70426         * modules/avltreehash-list-tests (Makefile.am): New variable
70427         test_avltreehash_list_LDADD.
70428         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70429         test_canonicalize_lgpl_LDADD.
70430         * modules/carray-list-tests (Makefile.am): New variable
70431         test_carray_list_LDADD.
70432         * modules/dirname-tests (Makefile.am): New variable
70433         test_dirname_LDADD.
70434         * modules/linked-list-tests (Makefile.am): New variable
70435         test_linked_list_LDADD.
70436         * modules/linkedhash-list-tests (Makefile.am): New variable
70437         test_linkedhash_list_LDADD.
70438         * modules/rbtree-list-tests (Makefile.am): New variable
70439         test_rbtree_list_LDADD.
70440         * modules/rbtree-oset-tests (Makefile.am): New variable
70441         test_rbtree_oset_LDADD.
70442         * modules/rbtreehash-list-tests (Makefile.am): New variable
70443         test_rbtreehash_list_LDADD.
70444         * modules/xvasprintf-tests (Makefile.am): New variable
70445         test_xvasprintf_LDADD.
70446         Reported by Eric Blake.
70447
70448 2007-04-03  Eric Blake  <ebb9@byu.net>
70449
70450         * DEPENDENCIES: Weaken m4 requirements.
70451
70452 2007-04-03  Bruno Haible  <bruno@clisp.org>
70453
70454         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70455         * modules/isnanl-tests (configure.ac): Likewise.
70456
70457 2007-04-03  Ben Pfaff  <blp@gnu.org>
70458
70459         * modules/iconv_open: Add $(srcdir)/ to source directory
70460         references in Makefile fragments that call gperf, to fix VPATH
70461         builds.
70462
70463 2007-04-03  Bruno Haible  <bruno@clisp.org>
70464
70465         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70466         * lib/ldexpl.c: Undo last change.
70467
70468 2007-04-03  Bruno Haible  <bruno@clisp.org>
70469
70470         * modules/printf-frexpl (Depends-on): Undo last change.
70471         (Files): Add m4/ldexpl.m4.
70472
70473 2007-04-03  Bruno Haible  <bruno@clisp.org>
70474
70475         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70476         * modules/isnanl (Link): New section.
70477
70478         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70479         * modules/frexp (Link): New section.
70480
70481         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70482         * modules/frexpl (Link): New section.
70483
70484         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70485         * modules/ldexpl (Link): New section.
70486
70487 2007-04-03  Bruno Haible  <bruno@clisp.org>
70488
70489         * modules/TEMPLATE-EXTENDED: New file.
70490         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70491
70492 2007-04-03  Bruno Haible  <bruno@clisp.org>
70493
70494         * DEPENDENCIES: New file.
70495         Suggested by Simon Josefsson.
70496
70497 2007-04-03  Bruno Haible  <bruno@clisp.org>
70498
70499         * doc/gnulib.texi: Escape @.
70500
70501 2007-04-03  James Youngman  <jay@gnu.org>
70502         and Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70505         birthtime on all systems that have birthtime, not just those which
70506         use st_birthtimensec rather than st_birthtim.  Putting zero in
70507         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70508         that the birth time is not available for files on an NFS mount.
70509
70510 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70511
70512         * modules/memxor: Move back from crypto/, suggested by Bruno.
70513         * modules/crypto/hmac-sha1: Fix memxor dependency.
70514
70515         * modules/crypto/gc: Moved from ../.
70516
70517 2007-04-02  Eric Blake  <ebb9@byu.net>
70518
70519         * lib/ldexpl.c (includes): Avoid libm.
70520
70521         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70522
70523 2007-04-02  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70526         on IRIX.
70527
70528 2007-04-02  Bruno Haible  <bruno@clisp.org>
70529
70530         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70531         x86 or x86_64 platforms running MacOS X.
70532         Reported by Ryan Schmidt <@ryandesign.com>.
70533
70534 2007-04-02  Bruno Haible  <bruno@clisp.org>
70535
70536         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70537         i386.
70538
70539 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70540
70541         * modules/crypto/arcfour: Moved from ../.
70542         * modules/crypto/arcfour-tests: Moved from ../.
70543         * modules/crypto/arctwo: Moved from ../.
70544         * modules/crypto/arctwo-tests: Moved from ../.
70545         * modules/crypto/des: Moved from ../.
70546         * modules/crypto/des-tests: Moved from ../.
70547         * modules/crypto/gc-arcfour: Moved from ../.
70548         * modules/crypto/gc-arcfour-tests: Moved from ../.
70549         * modules/crypto/gc-arctwo: Moved from ../.
70550         * modules/crypto/gc-arctwo-tests: Moved from ../.
70551         * modules/crypto/gc-des: Moved from ../.
70552         * modules/crypto/gc-des-tests: Moved from ../.
70553         * modules/crypto/gc-hmac-md5: Moved from ../.
70554         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70555         * modules/crypto/gc-hmac-sha1: Moved from ../.
70556         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70557         * modules/crypto/gc-md2: Moved from ../.
70558         * modules/crypto/gc-md2-tests: Moved from ../.
70559         * modules/crypto/gc-md4: Moved from ../.
70560         * modules/crypto/gc-md4-tests: Moved from ../.
70561         * modules/crypto/gc-md5: Moved from ../.
70562         * modules/crypto/gc-md5-tests: Moved from ../.
70563         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70564         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70565         * modules/crypto/gc-random: Moved from ../.
70566         * modules/crypto/gc-rijndael: Moved from ../.
70567         * modules/crypto/gc-rijndael-tests: Moved from ../.
70568         * modules/crypto/gc-sha1: Moved from ../.
70569         * modules/crypto/gc-sha1-tests: Moved from ../.
70570         * modules/crypto/gc-tests: Moved from ../.
70571         * modules/crypto/hmac-md5: Moved from ../.
70572         * modules/crypto/hmac-md5-tests: Moved from ../.
70573         * modules/crypto/hmac-sha1: Moved from ../.
70574         * modules/crypto/hmac-sha1-tests: Moved from ../.
70575         * modules/crypto/md2: Moved from ../.
70576         * modules/crypto/md2-tests: Moved from ../.
70577         * modules/crypto/md4: Moved from ../.
70578         * modules/crypto/md4-tests: Moved from ../.
70579         * modules/crypto/md5: Moved from ../.
70580         * modules/crypto/md5-tests: Moved from ../.
70581         * modules/crypto/memxor: Moved from ../.
70582         * modules/crypto/rijndael: Moved from ../.
70583         * modules/crypto/rijndael-tests: Moved from ../.
70584         * modules/crypto/sha1: Moved from ../.
70585
70586 2007-03-30  James Youngman  <jay@gnu.org>
70587
70588         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70589         rename() to change the ctime of a file (because ctime is unaffected
70590         by rename on jfs2 on AIX 5.1).
70591         (main): Start by doing cleanup, in case a previous run failed leaving
70592         test files behind.
70593
70594 2007-03-31  Bruno Haible  <bruno@clisp.org>
70595
70596         Support old proprietary implementations of iconv.
70597         * modules/iconv_open: New file.
70598         * lib/iconv_.h: New file.
70599         * m4/iconv_h.m4: New file.
70600         * lib/iconv_open.c: New file.
70601         * lib/iconv_open-aix.gperf: New file.
70602         * lib/iconv_open-hpux.gperf: New file.
70603         * lib/iconv_open-irix.gperf: New file.
70604         * lib/iconv_open-osf.gperf: New file.
70605         * m4/iconv_open.m4: New file.
70606         * modules/linebreak (Depends-on): Add iconv_open.
70607         * modules/striconv (Depends-on): Likewise.
70608         * modules/striconveh (Depends-on): Likewise.
70609         * modules/unicodeio (Depends-on): Likewise.
70610         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70611         (iconv_t)(-1).
70612         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70613         conversion if cd is (iconv_t)(-1).
70614         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70615         is not possible.
70616
70617 2007-03-31  Bruno Haible  <bruno@clisp.org>
70618
70619         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70620         work on Solaris either. Protect also second use of "autodetect_jp".
70621
70622 2007-03-31  Bruno Haible  <bruno@clisp.org>
70623
70624         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70625         the function is not present.
70626
70627 2007-03-31  Bruno Haible  <bruno@clisp.org>
70628
70629         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70630         the function is not present.
70631
70632 2007-03-31  Bruno Haible  <bruno@clisp.org>
70633
70634         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70635         a bug in HP-UX iconv_open().
70636
70637 2007-03-31  Bruno Haible  <bruno@clisp.org>
70638
70639         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70640         (Mathematics <math.h>): New section, add fpieee.
70641         (Input/output <stdio.h>): Add fseterr.
70642         (Mathematics <math.h>): New section, add printf-frexp.
70643         (Container data structures): Add sublist.
70644         (Core language properties): Add fpucw, inline.
70645         (Functions for greatest-width integer types <inttypes.h>): Add
70646         imaxabs, imaxdiv, inttypes.
70647         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70648         isnanl-nolibm, ldexp.
70649         (Mathematics <math.h>): New section, add printf-frexpl.
70650         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70651         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70652         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70653         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70654         (Unicode string functions): Add unistr/u*-mbtoucr.
70655         (Java): Add javacomp-script, javaexec-script.
70656         (C#): Add csharpcomp-script, csharpexec-script.
70657         (Support for building libraries and executables): Add havelib,
70658         relocatable-*.
70659         (Support for maintaining and releasing projects): Renamed from
70660         'Support for maintaining and release projects'. Add announce-gen.
70661
70662 2007-03-31  Bruno Haible  <bruno@clisp.org>
70663
70664         * README: Talk primarily about git.
70665         (git and CVS): Renamed from CVS.
70666         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70667         gnulib is available through git.
70668         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70669
70670 2007-03-30  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70673         * lib/poll_.h: Likewise.
70674         * lib/stat_.h: Likewise.
70675         * lib/sys_time_.h: Likewise.
70676         * lib/sysexit_.h: Likewise.
70677         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70678         * lib/stdbool_.h: Likewise.
70679         * lib/byteswap_.h: Add double-inclusion guard.
70680
70681 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70682
70683         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70684
70685 2007-03-30  Karl Berry  <karl@gnu.org>
70686
70687         * config/srclist-update: double space after USA in the license
70688         substitution, since that's how it's usually (?) written.
70689
70690 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70693         reported by Bruno Haible.
70694
70695 2007-03-29  Bruno Haible  <bruno@clisp.org>
70696
70697         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70698         a bug in AIX iconv().
70699
70700 2007-03-29  Bruno Haible  <bruno@clisp.org>
70701
70702         * modules/ldexpl-tests: New file.
70703         * tests/test-ldexpl.c: New file.
70704
70705 2007-03-29  Bruno Haible  <bruno@clisp.org>
70706
70707         * lib/ldexpl.c: Include fpucw.h.
70708         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70709         multiplication.
70710         * modules/ldexpl (Depends-on): Add fpucw.
70711
70712 2007-03-29  Bruno Haible  <bruno@clisp.org>
70713
70714         * modules/ldexpl: New file.
70715         * m4/ldexpl.m4: New file.
70716         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70717         set.
70718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70719         REPLACE_LDEXPL.
70720         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70721         REPLACE_LDEXPL.
70722         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70723         gl_FUNC_LDEXPL_WORKS.
70724         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70725         * modules/mathl (Files): Remove lib/ldexpl.c.
70726         (Depends-on): Add ldexpl.
70727
70728 2007-03-29  Bruno Haible  <bruno@clisp.org>
70729
70730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70731
70732 2007-03-29  Bruno Haible  <bruno@clisp.org>
70733
70734         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70735         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70736         and possibly also HP-UX.
70737         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70738         work on AIX, IRIX, HP-UX, OSF/1.
70739         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70740         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70741         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70742         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70743         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70744         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70745
70746 2007-03-29  Bruno Haible  <bruno@clisp.org>
70747
70748         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70749
70750 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70753         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70754
70755 2007-03-29  Eric Blake  <ebb9@byu.net>
70756
70757         * lib/acl-internal.h: Remove redundant include.
70758         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70759         Cygwin when a file is locked.
70760
70761 2007-03-29  Bruno Haible  <bruno@clisp.org>
70762
70763         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70764         file.
70765         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70766
70767 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70770         try to remove a parent directory if the child couldn't be removed
70771         (except for the first rmdir, which could fail because the child
70772         doesn't exist).  Problem reported by Jeff Blaine in
70773         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70774
70775 2007-03-28  Bruno Haible  <bruno@clisp.org>
70776
70777         * lib/striconveh.c (utf8conv_carefully): New function.
70778         (mem_cd_iconveh_internal): Invoke it.
70779
70780 2007-03-28  Bruno Haible  <bruno@clisp.org>
70781
70782         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70783         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70784         input.
70785         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70786         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70787         unistr/u8-uctomb.
70788
70789 2007-03-28  Bruno Haible  <bruno@clisp.org>
70790
70791         * modules/unistr/u8-mbtoucr: New file.
70792         * lib/unistr/u8-mbtoucr.c: New file.
70793         * modules/unistr/u16-mbtoucr: New file.
70794         * lib/unistr/u16-mbtoucr.c: New file.
70795         * modules/unistr/u16-mbtoucr: New file.
70796         * lib/unistr/u16-mbtoucr.c: New file.
70797         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70798
70799 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70800             Bruno Haible  <bruno@clisp.org>
70801
70802         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70803         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70804         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70805
70806         * m4/stdio_h.m4: Add stubs for vasprintf too.
70807
70808         * modules/stdio: Support vasprintf in sed command.
70809
70810         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70811         vasprintf.h.  Add stdio module indicator.
70812
70813         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70814         vasprintf.h.
70815
70816         * lib/vasprintf.h: File removed.
70817
70818         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70819         * lib/vasprintf.c: Ditto.
70820         * lib/xvasprintf.c: Ditto.
70821         * tests/test-vasprintf-posix.c: Ditto.
70822         * tests/test-vasprintf.c: Ditto.
70823
70824 2007-03-27  Bruno Haible  <bruno@clisp.org>
70825
70826         Make vasnprintf multithread-safe.
70827         * lib/vasnprintf.c (decimal_point_char): New function.
70828         (VASNPRINTF): Use it.
70829         Suggested by Simon Josefsson.
70830
70831 2007-03-27  Eric Blake  <ebb9@byu.net>
70832
70833         Support sub-second birthtime on cygwin.
70834         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70835         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70836         (get_stat_birthtime): Also work with st_birthtim.
70837
70838 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70841         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70842         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70843         (get_stat_birthtime_ns): Simplify compile-time tests.
70844         (get_stat_birthtime): Change the API to look like
70845         get_stat_mtime etc., except return a negative tv_nsec on error.
70846         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70847         Don't check for "spare" fields.
70848         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70849         or for struct stat.st_birthtime, as these tests aren't used.
70850         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70851
70852 2007-03-27  Bruno Haible  <bruno@clisp.org>
70853
70854         * lib/stat-time.h: Include <sys/stat.h>.
70855
70856 2007-03-27  James Youngman  <jay@gnu.org>
70857
70858         * lib/stat-time.h (get_stat_birthtime): New function for
70859           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70860         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70861           and its variants.
70862         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70863         * modules/stat-time-test: New file.
70864         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70865
70866 2007-03-26  Bruno Haible  <bruno@clisp.org>
70867
70868         Better support of signalling NaNs.
70869         * lib/atanl.c: Include isnanl.h.
70870         (atanl): Perform test for NaN at the beginning of the function and
70871         through a call to isnanl.
70872         * lib/cosl.c: Include isnanl.h.
70873         (cosl): Perform test for NaN at the beginning of the function and
70874         through a call to isnanl.
70875         * lib/ldexpl.c: Include isnanl.h.
70876         (ldexpl): Perform test for NaN through a call to isnanl.
70877         * lib/logl.c: Include isnanl.h.
70878         (logl): Perform test for NaN at the beginning of the function and
70879         through a call to isnanl.
70880         * lib/sinl.c: Include isnanl.h.
70881         (sinl): Perform test for NaN at the beginning of the function and
70882         through a call to isnanl.
70883         * lib/sqrtl.c: Include isnanl.h.
70884         (sqrtl): Perform test for NaN at the beginning of the function and
70885         through a call to isnanl.
70886         * lib/tanl.c: Include isnanl.h.
70887         (tanl): Perform test for NaN at the beginning of the function and
70888         through a call to isnanl.
70889         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70890         * modules/mathl (Depends-on): Add isnanl.
70891
70892 2007-03-26  Eric Blake  <ebb9@byu.net>
70893
70894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70895         regression in logic sense of previous patch.
70896
70897 2007-03-26  Bruno Haible  <bruno@clisp.org>
70898
70899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70900         unportable shell command "if ! ...".
70901         Reported by Ralf Wildenhues.
70902
70903 2007-03-25  Bruno Haible  <bruno@clisp.org>
70904
70905         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70906         <sysexits.h> file, and only add EX_CONFIG.
70907         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70908         absolute file name and whether it is sufficient. Substitute also
70909         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70910         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70911         ABSOLUTE_SYSEXITS_H into sysexits.h.
70912
70913 2007-03-25  Bruno Haible  <bruno@clisp.org>
70914
70915         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70916         hints is NULL.
70917
70918 2007-03-25  Bruno Haible  <bruno@clisp.org>
70919
70920         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70921         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70922
70923 2007-03-25  Bruno Haible  <bruno@clisp.org>
70924
70925         * lib/vasnprintf.c: Include langinfo.h.
70926         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70927         multithread-safe.
70928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70929         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70937         Reported by Simon Josefsson.
70938
70939 2007-03-25  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70942         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70943         * modules/vasnprintf (Depends-on): Add stdint.
70944
70945 2007-03-25  Bruno Haible  <bruno@clisp.org>
70946
70947         * modules/fpieee: New file.
70948         * m4/fpieee.m4: New file.
70949         * modules/isnan-nolibm (Depends-on): Add fpieee.
70950         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70951         * modules/isnanl (Depends-on): Add fpieee.
70952
70953 2007-03-25  Bruno Haible  <bruno@clisp.org>
70954
70955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70956
70957 2007-03-25  Bruno Haible  <bruno@clisp.org>
70958
70959         Avoid test failures on IRIX 6.5.
70960         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70961         (main): Use it.
70962         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70963         macros.
70964         (main): Use them.
70965
70966 2007-03-25  Bruno Haible  <bruno@clisp.org>
70967
70968         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70969         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70970         exists but doesn't work.
70971         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70972         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70974         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70975         math.h.
70976
70977 2007-03-25  Bruno Haible  <bruno@clisp.org>
70978
70979         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70980         returns inf. Needed on IRIX 6.5.
70981
70982 2007-03-25  Bruno Haible  <bruno@clisp.org>
70983
70984         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70985         (main): Use isnanl instead of x != x idiom.
70986         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70987
70988         * tests/test-frexp.c: Include isnan.h.
70989         (main): Use isnan instead of x != x idiom.
70990         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70991
70992 2007-03-25  Bruno Haible  <bruno@clisp.org>
70993
70994         * tests/test-frexp.c (NaN): New function/macro.
70995         (main): Use it instead of 0.0 / 0.0.
70996         * tests/test-isnan.c (NaN): New function/macro.
70997         (main): Use it instead of 0.0 / 0.0.
70998         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70999         (test_function): Use it instead of 0.0 / 0.0.
71000         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71001         (test_function): Use it instead of 0.0 / 0.0.
71002         * tests/test-snprintf-posix.h (NaN): New function/macro.
71003         (test_function): Use it instead of 0.0 / 0.0.
71004         * tests/test-sprintf-posix.h (NaN): New function/macro.
71005         (test_function): Use it instead of 0.0 / 0.0.
71006         * tests/test-fprintf-posix.h (NaN): New function/macro.
71007         (test_function): Use it instead of 0.0 / 0.0.
71008         * tests/test-printf-posix.h (NaN): New function/macro.
71009         (test_function): Use it instead of 0.0 / 0.0.
71010
71011         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71012
71013 2007-03-25  Bruno Haible  <bruno@clisp.org>
71014
71015         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71016
71017 2007-03-25  Bruno Haible  <bruno@clisp.org>
71018
71019         * lib/regexec.c (merge_state_with_log): Make static.
71020
71021 2007-03-25  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/trigl.c (kernel_rem_pio2): Make static.
71024
71025 2007-03-25  Bruno Haible  <bruno@clisp.org>
71026
71027         * lib/sincosl.c (sincosl_table): Make static.
71028
71029 2007-03-25  Bruno Haible  <bruno@clisp.org>
71030
71031         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71032         if the compiler does not support C99.
71033
71034 2007-03-25  Bruno Haible  <bruno@clisp.org>
71035
71036         * modules/time (Makefile.am): Ensure all rule action lines start with a
71037         tab.
71038
71039 2007-03-24  Bruno Haible  <bruno@clisp.org>
71040
71041         * modules/tsearch-tests: New file.
71042         * tests/test-tsearch.sh: New file.
71043         * tests/test-tsearch.c: New file, mostly copied from glibc.
71044
71045         * modules/search-tests: New file.
71046         * tests/test-search.c: New file.
71047
71048         * modules/search: New file.
71049         * lib/search_.h: New file, incorporating lib/tsearch.h.
71050         * m4/search_h.m4: New file.
71051         * lib/tsearch.h: Remove file.
71052         * lib/tsearch.c: Include search.h instead of tsearch.h.
71053         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71054         HAVE_TSEARCH.
71055         * modules/tsearch (Files): Remove lib/tsearch.h.
71056         (Depends-on): Add search.
71057         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71058         (Include): Change tsearch.h into search.h.
71059
71060 2007-03-24  Bruno Haible  <bruno@clisp.org>
71061
71062         * modules/fpucw: New file.
71063         * lib/fpucw.h: New file.
71064         * lib/frexp.c: Include fpucw.h.
71065         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71066         (FUNC): Use them.
71067         * lib/printf-frexp.c: Include fpucw.h.
71068         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71069         (FUNC): Use them.
71070         * lib/vasnprintf.c: Include fpucw.h.
71071         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71072         'long double' calculations.
71073         * tests/test-frexpl.c: Include fpucw.h.
71074         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71075         * tests/test-printf-frexpl.c: Include fpucw.h.
71076         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71077         * modules/frexpl (Depends-on): Add fpucw.
71078         * modules/printf-frexpl (Depends-on): Likewise.
71079         * modules/fprintf-posix (Depends-on): Likewise.
71080         * modules/snprintf-posix (Depends-on): Likewise.
71081         * modules/sprintf-posix (Depends-on): Likewise.
71082         * modules/vasnprintf-posix (Depends-on): Likewise.
71083         * modules/vasprintf-posix (Depends-on): Likewise.
71084         * modules/vfprintf-posix (Depends-on): Likewise.
71085         * modules/vsnprintf-posix (Depends-on): Likewise.
71086         * modules/vsprintf-posix (Depends-on): Likewise.
71087         * modules/frexpl-tests (Depends-on): Likewise.
71088         * modules/printf-frexpl-tests (Depends-on): Likewise.
71089
71090 2007-03-24  Bruno Haible  <bruno@clisp.org>
71091
71092         * lib/float+.h: New file.
71093         * lib/isnan.c: Include float+.h.
71094         (SIZE): New macro.
71095         (FUNC): Compare only SIZE bytes of the value.
71096         * lib/vasnprintf.c: Include float+.h.
71097         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71098         SIZEOF_LDBL or SIZEOF_DBL bytes.
71099         * modules/isnan-nolibm (Files): Add lib/float+.h.
71100         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71101         * modules/isnanl (Files): Add lib/float+.h.
71102         * modules/vasnprintf (Files): Add lib/float+.h.
71103
71104 2007-03-24  Bruno Haible  <bruno@clisp.org>
71105
71106         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71107         include isnanl-nolibm.h.
71108
71109 2007-03-24  Bruno Haible  <bruno@clisp.org>
71110
71111         * tests/test-read-file.c (main): Don't produce spurious output for
71112         expected situations. Make the test fail if it encountered unexpected
71113         results.
71114
71115 2007-03-24  Bruno Haible  <bruno@clisp.org>
71116
71117         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71118         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71119
71120 2007-03-24  Bruno Haible  <bruno@clisp.org>
71121
71122         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71123
71124 2007-03-24  Bruno Haible  <bruno@clisp.org>
71125
71126         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71127         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71128
71129         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71130         * modules/utf8-ucs4: Turn into a symbolic link to module
71131         unistr/u8-mbtouc.
71132
71133         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71134         utf8-ucs4-unsafe.
71135         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71136         unistr/u8-mbtouc-unsafe.
71137
71138         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71139         * modules/utf16-ucs4: Turn into a symbolic link to module
71140         unistr/u16-mbtouc.
71141
71142         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71143         utf16-ucs4-unsafe.
71144         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71145         unistr/u16-mbtouc-unsafe.
71146
71147         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71148         * modules/ucs4-utf8: Turn into a symbolic link to module
71149         unistr/u8-ubtomb.
71150
71151         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71152         * modules/ucs4-utf16: Turn into a symbolic link to module
71153         unistr/u16-ubtomb.
71154
71155 2007-03-24  Bruno Haible  <bruno@clisp.org>
71156
71157         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71158         Enable the function only if HAVE_INLINE.
71159         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71160         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71161         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71162         Enable the function only if HAVE_INLINE.
71163         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71164         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71165         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71166         Enable the function only if HAVE_INLINE.
71167         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71168         Enable the function only if HAVE_INLINE.
71169         * modules/utf8-ucs4: Update.
71170         * modules/utf8-ucs4-unsafe: Update.
71171         * modules/utf16-ucs4: Update.
71172         * modules/utf16-ucs4-unsafe: Update.
71173         * modules/ucs4-utf8: Update.
71174         * modules/ucs4-utf16: Update.
71175
71176 2007-03-24  Bruno Haible  <bruno@clisp.org>
71177
71178         * lib/utf8-ucs4.h: Remove file.
71179         * lib/utf8-ucs4-unsafe.h: Remove file.
71180         * lib/utf16-ucs4.h: Remove file.
71181         * lib/utf16-ucs4-unsafe.h: Remove file.
71182         * lib/ucs4-utf8.h: Remove file.
71183         * lib/ucs4-utf16.h: Remove file.
71184         * lib/unistr.h: Include their previous contents.
71185         * m4/utf-ucs4.m4: Remove file.
71186         * m4/ucs4-utf.m4: Remove file.
71187         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71188         (Depends-on): Add unistr/base.
71189         (configure.ac): Remove gl_UTF_UCS4.
71190         (Makefile.am): Update.
71191         (Include): Change to unistr.h.
71192         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71193         (Depends-on): Add unistr/base.
71194         (configure.ac): Remove gl_UTF_UCS4.
71195         (Makefile.am): Update.
71196         (Include): Change to unistr.h.
71197         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71198         (Depends-on): Add unistr/base.
71199         (configure.ac): Remove gl_UTF_UCS4.
71200         (Makefile.am): Update.
71201         (Include): Change to unistr.h.
71202         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71203         (Depends-on): Add unistr/base.
71204         (configure.ac): Remove gl_UTF_UCS4.
71205         (Makefile.am): Update.
71206         (Include): Change to unistr.h.
71207         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71208         (Depends-on): Add unistr/base.
71209         (configure.ac): Remove gl_UCS4_UTF.
71210         (Makefile.am): Update.
71211         (Include): Change to unistr.h.
71212         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71213         (Depends-on): Add unistr/base.
71214         (configure.ac): Remove gl_UCS4_UTF.
71215         (Makefile.am): Update.
71216         (Include): Change to unistr.h.
71217         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71218         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71219         utf8-ucs4-unsafe.h.
71220         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71221         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71222         utf16-ucs4-unsafe.h.
71223         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71224         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71225         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71226         * lib/unistr/u8-strchr.c: Likewise.
71227         * lib/unistr/u8-strrchr.c: Likewise.
71228         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71229         * lib/unistr/u16-strchr.c: Likewise.
71230         * lib/unistr/u16-strrchr.c: Likewise.
71231         * lib/striconveh.c: Update.
71232         * lib/linebreak.c: Update.
71233
71234 2007-03-24  Bruno Haible  <bruno@clisp.org>
71235
71236         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71237         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71238
71239 2007-03-22  Bruno Haible  <bruno@clisp.org>
71240
71241         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71242
71243 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * MODULES.html.sh (File system functions): New module write-any-file.
71246         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71247         * m4/write-any-file.m4: New files.
71248
71249 2007-03-23  Eric Blake  <ebb9@byu.net>
71250
71251         * gnulib-tool: Rearrange space-tab sequences, since some editors
71252         like to eat them.
71253
71254 2007-03-23  Eric Blake  <ebb9@byu.net>
71255
71256         * lib/version-etc.c (version_etc_va): Update license wording to
71257         be more concise.  Recommended by Richard Stallman.
71258
71259 2007-03-22  Bruno Haible  <bruno@clisp.org>
71260
71261         * lib/poll.c (MSG_PEEK): New fallback definition.
71262
71263 2007-03-22  Bruno Haible  <bruno@clisp.org>
71264
71265         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71266         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71267         (main): Update.
71268         Fixes a compilation error on BeOS.
71269
71270 2007-03-22  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/frexpl-tests: New file.
71273         * tests/test-frexpl.c: New file.
71274
71275         * modules/frexpl: New file.
71276         * m4/frexpl.m4: New file.
71277         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71278         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71280         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71281         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71282         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71283
71284 2007-03-22  Bruno Haible  <bruno@clisp.org>
71285
71286         * lib/frexpl.c: Share code with lib/frexp.c.
71287         * modules/mathl (Files): Add lib/frexp.c.
71288         (Depends-on): Add isnanl-nolibm.
71289
71290 2007-03-22  Bruno Haible  <bruno@clisp.org>
71291
71292         * modules/printf-frexp (Files): Add m4/frexp.m4.
71293         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71294         only if the found frexp function actually works.
71295
71296 2007-03-22  Bruno Haible  <bruno@clisp.org>
71297
71298         * lib/frexp.c: Remove older implementation that uses divisions.
71299
71300 2007-03-21  Bruno Haible  <bruno@clisp.org>
71301
71302         * modules/frexp-tests: New file.
71303         * tests/test-frexp.c: New file.
71304
71305         * modules/frexp: New file.
71306         * lib/frexp.c: New file.
71307         * m4/frexp.m4: New file.
71308         * lib/math_.h (frexp): New declaration.
71309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71310         REPLACE_FREXP.
71311         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71312
71313 2007-03-21  Bruno Haible  <bruno@clisp.org>
71314
71315         * modules/isnanl-tests: New file.
71316         * tests/test-isnanl.c: New file.
71317
71318         * modules/isnanl: New file.
71319         * lib/isnanl.h: New file.
71320         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71321         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71322         gl_FUNC_ISNANL_WORKS.
71323         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71324         New macros.
71325
71326 2007-03-21  Bruno Haible  <bruno@clisp.org>
71327
71328         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71329         lib/isnanl.h.
71330         (Include): Update.
71331         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71332         * lib/vasnprintf.c: Update.
71333         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71334         tests/test-isnanl.h, remove tests/test-isnanl.c.
71335         (Makefile.am): Update.
71336         * tests/test-isnanl-nolibm.c: New file.
71337         * tests/test-isnanl.h: New file.
71338         * tests/test-isnanl.c: Remove file.
71339
71340 2007-03-21  Jim Meyering  <jim@meyering.net>
71341
71342         When trying to open ".", treat ESTALE like EACCES.
71343         * lib/savewd.c (savewd_save): Resort to forking not just upon
71344         failure with EACCES, but also when errno is ESTALE.
71345
71346 2007-03-20  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71349         Needed on AIX 5.1. Reported by Matthew Woehlke.
71350
71351 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         Suggestions by Bruno Haible:
71354         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71355         our own.
71356         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71357         * modules/acl (Depends-on): Add gettext.
71358
71359 2007-03-19  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/iconvme: Remove file.
71362         * lib/iconvme.h: Remove file.
71363         * lib/iconvme.c: Remove file.
71364         * m4/iconvme.m4: Remove file.
71365
71366 2007-03-19  Bruno Haible  <bruno@clisp.org>
71367
71368         * doc/relocatable-maint.texi: Break long shell script line.
71369         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71370
71371 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71372
71373         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71374         handle file_has_acl.
71375         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71376         * lib/acl.c: Move header inclusions and related macro defns into
71377         lib/acl-internal.h.
71378         (S_ISLNK): Remove defn, since that's now done for us.
71379         (file_has_acl): Move to lib/file-has-acl.c.
71380         Call acl_trivial if available.  This is the crucial part of the fix.
71381         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71382         shared within the library.  Rewrite a bit, partly to make it compatible
71383         with the GNU coding style.
71384         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71385         Remove unnecessary double-quotes.
71386         Don't test for acl_to_text; the build will catch that.
71387         Replace acl_entries if it doesn't exist and it is needed.
71388         Check for -lsec and acl_trivial (as used on Solaris 10).
71389         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71390         lib/file-has-acl.c.
71391         (Depends-on): Add sys_stat, for S_ISLNK.
71392
71393 2007-03-19  Ben Pfaff  <blp@gnu.org>
71394
71395         * doc/gnulib.texi: Fix typos.
71396         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71397
71398 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71401         If size is zero here, buf must be zero.
71402
71403 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71404
71405         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71406         <bruno@clisp.org>.
71407
71408 2007-03-18  Bruno Haible  <bruno@clisp.org>
71409
71410         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71411         Suggested by Eric Blake.
71412
71413 2007-03-18  Ben Pfaff  <blp@gnu.org>
71414
71415         * doc/relocatable.texi: Recommend using as prefix a directory
71416         that does not exist and will never be created.  Based on
71417         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71418         and others.
71419
71420 2007-03-17  Bruno Haible  <bruno@clisp.org>
71421
71422         * lib/fchownat.c: Include lchown.h.
71423
71424 2007-03-17  Bruno Haible  <bruno@clisp.org>
71425
71426         Fix endless loop when the given allocated size was > INT_MAX.
71427         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71428         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71429         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71430         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71431         * lib/sprintf.c (sprintf): Likewise.
71432
71433 2007-03-17  Bruno Haible  <bruno@clisp.org>
71434
71435         * tests/test-argp-2.sh (func_compare): Output a context diff.
71436
71437 2007-03-17  Bruno Haible  <bruno@clisp.org>
71438
71439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71440         locale's decimal-point character.
71441
71442 2007-03-17  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71445         before comparing it. Needed because on some platforms (e.g. x86) a
71446         'long double' occupies less bytes than sizeof (long double).
71447
71448 2007-03-17  Bruno Haible  <bruno@clisp.org>
71449
71450         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71451         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71452         * tests/test-getaddrinfo.c (simple): Likewise.
71453         * tests/test-read-file.c (main): Likewise.
71454
71455 2007-03-17  Bruno Haible  <bruno@clisp.org>
71456
71457         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71458
71459 2007-03-17  Bruno Haible  <bruno@clisp.org>
71460
71461         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71462         unused variable.
71463
71464 2007-03-17  Bruno Haible  <bruno@clisp.org>
71465
71466         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71467         * tests/test-c-strncasecmp.c: Likewise.
71468
71469 2007-03-17  Bruno Haible  <bruno@clisp.org>
71470
71471         * modules/stdlib (Depends-on): Add unistd.
71472         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71473         Needed for MacOS X 10.3.
71474
71475 2007-03-17  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71478
71479 2007-03-17  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71482
71483 2007-03-17  Bruno Haible  <bruno@clisp.org>
71484
71485         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71486         to reflect files copied from gnulib (with or without modifications).
71487         Suggested by Jim Meyering.
71488
71489 2007-03-17  Eric Blake  <ebb9@byu.net>
71490
71491         * NEWS: Document stdlib change from 2007-02-18.
71492
71493 2007-03-17  Jim Meyering  <jim@meyering.net>
71494
71495         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71496         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71497         someone uses a name containing shell meta-characters.
71498         Reported by Alfred M. Szmidt.
71499
71500         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71501
71502 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71503
71504         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71505         and copy gettext configuration files only if configure.ac contains
71506         a use of AM_GNU_GETTEXT_VERSION.
71507
71508 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71509
71510         * build-aux/bootstrap (gnulib_name): New variable.
71511         (gnulib_tool_options): Use it.
71512
71513 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71514
71515         * tests/test-des.c: Use new namespace.
71516
71517 2007-03-15  Bruno Haible  <bruno@clisp.org>
71518
71519         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71520         Reported by James Youngman <jay@gnu.org>.
71521
71522 2007-03-15  Bruno Haible  <bruno@clisp.org>
71523
71524         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71525         declared prototype. Needed with cc on OSF/1 5.1.
71526
71527 2007-03-15  Bruno Haible  <bruno@clisp.org>
71528
71529         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71530         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71531         (struct gl_list_implementation): Add dispose_fn argument to the
71532         'create_empty', 'create' methods.
71533         (struct gl_list_impl_base): Add field 'dispose_fn'.
71534         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71535         argument.
71536         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71537         dispose_fn argument.
71538         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71539         dispose_fn on the dropped values.
71540         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71541         dispose_fn argument.
71542         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71543         dropped values.
71544         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71545         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71546         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71547         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71548         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71549         argument.
71550         (gl_tree_list_free): Call dispose_fn on the dropped values.
71551         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71552         the dropped values.
71553         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71554         Add dispose_fn argument.
71555         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71556         Call dispose_fn on the dropped values.
71557         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71558         Add dispose_fn argument.
71559         (gl_sublist_create): Initialize the 'dispose_fn' field.
71560         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71561         * tests/test-array_list.c (main): Update.
71562         * tests/test-carray_list.c (main): Update.
71563         * tests/test-avltree_list.c (main): Update.
71564         * tests/test-rbtree_list.c (main): Update.
71565         * tests/test-avltreehash_list.c (main): Update.
71566         * tests/test-rbtreehash_list.c (main): Update.
71567         * tests/test-linked_list.c (main): Update.
71568         * tests/test-linkedhash_list.c (main): Update.
71569         * tests/test-array_oset.c (main): Update.
71570
71571 2007-03-15  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71574         (gl_oset_create_empty): Add dispose_fn argument.
71575         (struct gl_oset_implementation): Add dispose_fn argument to
71576         'create_empty' method.
71577         (struct gl_oset_impl_base): Add dispose_fn field.
71578         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71579         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71580         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71581         values.
71582         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71583         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71584         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71585         dropped value.
71586         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71587         dropped value.
71588         * tests/test-array_oset.c (main): Update.
71589         * tests/test-avltree_oset.c (main): Update.
71590         * tests/test-rbtree_oset.c (main): Update.
71591         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71592
71593 2007-03-13  Bruno Haible  <bruno@clisp.org>
71594
71595         * tests/test-stdbool.c (i): Update after last patch.
71596
71597 2007-03-12  Bruno Haible  <bruno@clisp.org>
71598
71599         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71600         the iswprint macro. Needed on Solaris 2.5.1.
71601
71602 2007-03-12  Bruno Haible  <bruno@clisp.org>
71603
71604         * tests/test-printf-frexp.c (main): Declare x as volatile.
71605
71606 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71607
71608         * doc/gnulib.texi (Build robot for gnulib): New section.
71609
71610 2007-03-12  Jim Meyering  <jim@meyering.net>
71611
71612         * build-aux/bootstrap: New file.
71613         * build-aux/bootstrap.conf: New file, from coreutils.
71614
71615 2007-03-11  Bruno Haible  <bruno@clisp.org>
71616
71617         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71618
71619 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71620
71621         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71622         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71623         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71624
71625 2007-03-11  Bruno Haible  <bruno@clisp.org>
71626
71627         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71628         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71629
71630 2007-03-11  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71633         formula. Needed for SunPRO C 5.0.
71634
71635 2007-03-11  Bruno Haible  <bruno@clisp.org>
71636
71637         * modules/long-options (Depends-on): Add getopt.
71638
71639 2007-03-11  Bruno Haible  <bruno@clisp.org>
71640
71641         * modules/modechange (Depends-on): Add stdbool.
71642
71643 2007-03-11  Bruno Haible  <bruno@clisp.org>
71644
71645         * modules/i-ring (Depends-on): Add stdbool.
71646
71647 2007-03-11  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/gc-des (Depends-on): Add stdbool.
71650
71651 2007-03-11  Bruno Haible  <bruno@clisp.org>
71652
71653         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71654
71655 2007-03-11  Bruno Haible  <bruno@clisp.org>
71656
71657         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71658
71659 2007-03-11  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71662
71663 2007-03-11  Bruno Haible  <bruno@clisp.org>
71664
71665         * lib/vasnprintf.c (sprintf): Undefine.
71666
71667 2007-03-11  Bruno Haible  <bruno@clisp.org>
71668
71669         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71670         initializers in SunPRO C and Compaq C compilers.
71671
71672 2007-03-11  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71675         decrementing code ANSI C compliant.
71676
71677 2007-03-11  Bruno Haible  <bruno@clisp.org>
71678
71679         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71680         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71681
71682 2007-03-11  Bruno Haible  <bruno@clisp.org>
71683
71684         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71685         <stdbool.h> substitute doesn't pass.
71686
71687 2007-03-11  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71690
71691 2007-03-11  Bruno Haible  <bruno@clisp.org>
71692
71693         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71694         script, for submission to autobuild.josefsson.org.
71695
71696 2007-03-10  Bruno Haible  <bruno@clisp.org>
71697
71698         * modules/canonicalize-lgpl-tests: New file.
71699         * tests/test-canonicalize-lgpl.sh: New file.
71700         * tests/test-canonicalize-lgpl.c: New file.
71701
71702         * modules/c-strcase-tests: New file.
71703         * tests/test-c-strcase.sh: New file.
71704         * tests/test-c-strcasecmp.c: New file.
71705         * tests/test-c-strncasecmp.c: New file.
71706
71707         * modules/atexit-tests: New file.
71708         * tests/test-atexit.sh: New file.
71709         * tests/test-atexit.c: New file.
71710
71711 2007-03-10  Bruno Haible  <bruno@clisp.org>
71712
71713         * tests/test-binary-io.sh: Use temporary filenames that are not so
71714         likely to clash with those of other tests (in a parallel make).
71715         * tests/test-binary-io.c: Likewise.
71716
71717 2007-03-10  Bruno Haible  <bruno@clisp.org>
71718
71719         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71720         fallback; use #error instead.
71721         Suggested by Simon Josefsson.
71722
71723 2007-03-10  Bruno Haible  <bruno@clisp.org>
71724
71725         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71726         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71727         first and the last.
71728
71729 2007-03-10  Bruno Haible  <bruno@clisp.org>
71730
71731         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71732
71733 2007-03-10  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71736         "make distcheck".
71737         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71738         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71739         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71740
71741 2007-03-10  Bruno Haible  <bruno@clisp.org>
71742
71743         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71744         variable.
71745         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71746         variable.
71747
71748 2007-03-09  Eric Blake  <ebb9@byu.net>
71749         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71750
71751         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71752         types are not being provided by gnulib.
71753         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71754         types are supported.
71755
71756 2007-03-10  Bruno Haible  <bruno@clisp.org>
71757
71758         * lib/stdio_.h (__attribute__): New macro.
71759         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71760         vsprintf): Specify __attribute__ __format__ for GCC.
71761         Suggested by Eric Blake.
71762
71763 2007-03-09  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/printf-posix-tests: New file.
71766         * tests/test-printf-posix.sh: New file.
71767         * tests/test-printf-posix.c: New file.
71768
71769         * modules/printf-posix: New file.
71770         * lib/printf.c: New file.
71771         * m4/printf-posix-rpl.m4: New file.
71772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71773         REPLACE_PRINTF.
71774         * lib/stdio_.h (printf): New declaration.
71775         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71776         ____strfmon____): New macros.
71777         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71778         REPLACE_PRINTF.
71779
71780 2007-03-09  Bruno Haible  <bruno@clisp.org>
71781
71782         * tests/test-vasnprintf-posix2.sh: New file.
71783         * tests/test-vasnprintf-posix2.c: New file.
71784         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71785         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71786         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71787
71788         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71789         a locale dependent decimal point, rather than always '.'.
71790
71791 2007-03-09  Eric Blake  <ebb9@byu.net>
71792
71793         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71794         spite of platforms like Tandem/NSK that define it to -1.
71795
71796 2007-03-08  Bruno Haible  <bruno@clisp.org>
71797
71798         * modules/vprintf-posix-tests: New file.
71799         * tests/test-vprintf-posix.sh: New file.
71800         * tests/test-vprintf-posix.c: New file.
71801         * tests/test-printf-posix.h: New file.
71802
71803         * modules/vprintf-posix: New file.
71804         * lib/vprintf.c: New file.
71805         * m4/vprintf-posix.m4: New file.
71806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71807         REPLACE_VPRINTF.
71808         * lib/stdio_.h (vprintf): New declaration.
71809         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71810         REPLACE_VPRINTF.
71811
71812 2007-03-08  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/fprintf-posix-tests: New file.
71815         * tests/test-fprintf-posix.sh: New file.
71816         * tests/test-fprintf-posix.c: New file.
71817
71818         * modules/fprintf-posix: New file.
71819         * lib/fprintf.c: New file.
71820         * m4/fprintf-posix.m4: New file.
71821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71822         REPLACE_FPRINTF.
71823         * lib/stdio_.h (fprintf): New declaration.
71824         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71825         REPLACE_FPRINTF.
71826
71827 2007-03-08  Bruno Haible  <bruno@clisp.org>
71828
71829         * modules/vfprintf-posix-tests: New file.
71830         * tests/test-vfprintf-posix.sh: New file.
71831         * tests/test-vfprintf-posix.c: New file.
71832         * tests/test-fprintf-posix.h: New file.
71833         * tests/test-fprintf-posix.out: New file.
71834
71835         * modules/vfprintf-posix: New file.
71836         * lib/vfprintf.c: New file.
71837         * m4/vfprintf-posix.m4: New file.
71838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71839         REPLACE_VFPRINTF.
71840         * lib/stdio_.h (vfprintf): New declaration.
71841         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71842         REPLACE_VFPRINTF.
71843
71844 2007-03-08  Bruno Haible  <bruno@clisp.org>
71845
71846         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71847
71848 2007-03-08  Bruno Haible  <bruno@clisp.org>
71849
71850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71851         instead of 'expr' invocations.
71852         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71853         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71854         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71857         Suggested by Paul Eggert.
71858
71859 2007-03-08  Bruno Haible  <bruno@clisp.org>
71860
71861         * modules/fseterr-tests: New file.
71862         * tests/test-fseterr.c: New file.
71863
71864         * modules/fseterr: New file.
71865         * lib/fseterr.h: New file.
71866         * lib/fseterr.c: New file.
71867
71868 2007-03-08  Bruno Haible  <bruno@clisp.org>
71869
71870         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71871         * lib/getopt_.h: Likewise.
71872         * lib/mbswidth.h: Likewise.
71873         * lib/setenv.h: Likewise.
71874         * lib/vasnprintf.h: Likewise.
71875         * lib/vasprintf.h: Likewise.
71876         * lib/verror.h: Likewise.
71877         * lib/xsetenv.h: Likewise.
71878         * lib/xvasprintf.h: Likewise.
71879
71880 2007-03-08  Jim Meyering  <jim@meyering.net>
71881
71882         * users.txt: Add parted.
71883
71884         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71885
71886 2007-03-07  Bruno Haible  <bruno@clisp.org>
71887
71888         * m4/printf.m4: Make the shell script snippets copy&pastable.
71889
71890 2007-03-02  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/netinet_in_.h: New file.
71893         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71894         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71895         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71896         (Depends-on): Add absolute-header.
71897         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71898         into netinet/in.h.
71899
71900 2007-03-03  Bruno Haible  <bruno@clisp.org>
71901
71902         * lib/sys_select_.h: New file.
71903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71904         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71905         * modules/sys_select (Files): Add lib/sys_select_.h.
71906         (Depends-on): Add absolute-header.
71907         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71908         into sys/select.h.
71909
71910 2007-03-02  Bruno Haible  <bruno@clisp.org>
71911
71912         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71913         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71914         values.
71915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71916         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71917         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71918         * modules/sys_socket (Depends-on): Add absolute-header.
71919         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71920         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71921         (Include): Remove requirement of inclusion of <sys/types.h>.
71922
71923 2007-03-02  Bruno Haible  <bruno@clisp.org>
71924
71925         * lib/byteswap_.h (bswap_32): Fix formula.
71926
71927 2007-03-06  Bruno Haible  <bruno@clisp.org>
71928
71929         * modules/sprintf-posix-tests: New file.
71930         * tests/test-sprintf-posix.c: New file.
71931
71932         * modules/sprintf-posix: New file.
71933         * lib/sprintf.c: New file.
71934         * m4/sprintf-posix.m4: New file.
71935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71936         REPLACE_SPRINTF.
71937         * lib/stdio_.h (sprintf): New declaration.
71938         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71939         REPLACE_SPRINTF.
71940
71941 2007-03-06  Bruno Haible  <bruno@clisp.org>
71942
71943         * modules/vsprintf-posix-tests: New file.
71944         * tests/test-vsprintf-posix.c: New file.
71945         * tests/test-sprintf-posix.h: New file.
71946
71947         * modules/vsprintf-posix: New file.
71948         * lib/vsprintf.c: New file.
71949         * m4/vsprintf-posix.m4: New file.
71950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71951         REPLACE_VSPRINTF.
71952         * lib/stdio_.h (vsprintf): New declaration.
71953         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71954         REPLACE_VSPRINTF.
71955
71956 2007-03-06  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/vsnprintf (Depend-on): Remove minmax.
71959
71960 2007-03-06  Bruno Haible  <bruno@clisp.org>
71961
71962         * modules/snprintf-posix-tests: New file.
71963         * tests/test-snprintf-posix.c: New file.
71964
71965         * modules/snprintf-posix: New file.
71966         * m4/snprintf-posix.m4: New file.
71967         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71968         gl_FUNC_SNPRINTF.
71969         (gl_FUNC_SNPRINTF): Invoke it.
71970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71971         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71972         is set.
71973         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71974
71975 2007-03-06  Bruno Haible  <bruno@clisp.org>
71976
71977         * modules/vsnprintf-posix-tests: New file.
71978         * tests/test-vsnprintf-posix.c: New file.
71979         * tests/test-snprintf-posix.h: New file.
71980
71981         * modules/vsnprintf-posix: New file.
71982         * m4/vsnprintf-posix.m4: New file.
71983         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71984         gl_FUNC_VSNPRINTF.
71985         (gl_FUNC_VSNPRINTF): Invoke it.
71986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71987         * lib/stdio_.h (vsnprintf): Define as a replacement if
71988         REPLACE_VSNPRINTF is set.
71989         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71990
71991 2007-03-06  Bruno Haible  <bruno@clisp.org>
71992
71993         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71995
71996 2007-03-06  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71999         (asinl): Declare also if HAVE_DECL_ASINL is set.
72000         (atanl): Declare also if HAVE_DECL_ATANL is set.
72001         (ceill): Declare also if HAVE_DECL_CEILL is set.
72002         (cosl): Declare also if HAVE_DECL_COSL is set.
72003         (expl): Declare also if HAVE_DECL_EXPL is set.
72004         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72005         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72006         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72007         (logl): Declare also if HAVE_DECL_LOGL is set.
72008         (sinl): Declare also if HAVE_DECL_SINL is set.
72009         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72010         (tanl): Declare also if HAVE_DECL_TANL is set.
72011         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72014         declaration of frexpl, ldexpl.
72015         * modules/printf-frexpl (Depends-on): Add math.
72016         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72017
72018 2007-03-05  Bruno Haible  <bruno@clisp.org>
72019
72020         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72021         frexpl and ldexpl are declared.
72022         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72023
72024 2007-03-05  Bruno Haible  <bruno@clisp.org>
72025
72026         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72027         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72028
72029 2007-03-05  Bruno Haible  <bruno@clisp.org>
72030
72031         * lib/stdio_.h: Include <stddef.h>.
72032
72033 2007-03-05  Bruno Haible  <bruno@clisp.org>
72034
72035         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72036
72037 2007-03-05  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72040         NetBSD 4, from Ralf Wildenhues.
72041
72042 2007-03-04  Bruno Haible  <bruno@clisp.org>
72043
72044         * lib/vasprintf.h: Update #if logic for the case when the functions
72045         exist but are overridden.
72046
72047 2007-03-04  Bruno Haible  <bruno@clisp.org>
72048
72049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72050         implementations: glibc-2.4 and MacOS X 10.3.
72051         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72052         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72053         * tests/test-vasprintf-posix.c (test_function): Likewise.
72054
72055 2007-03-04  Bruno Haible  <bruno@clisp.org>
72056
72057         * modules/vasprintf-posix-tests: New file.
72058         * tests/test-vasprintf-posix.c: New file.
72059
72060         * modules/vasprintf-posix: New file.
72061         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72062         defined.
72063         * m4/vasprintf-posix.m4: New file.
72064         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72065         gl_FUNC_VASPRINTF.
72066         (gl_FUNC_VASPRINTF): Invoke it.
72067         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72068         here.
72069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72070
72071 2007-03-04  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72074         REPLACE_GETTIMEOFDAY.
72075         * modules/sys_time (Makefile.am): Likewise.
72076         * m4/sys_time_h.m4: Likewise.
72077         * m4/gettimeofday.m4: Likewise.
72078
72079 2007-03-04  Bruno Haible  <bruno@clisp.org>
72080
72081         * modules/vasnprintf-posix-tests: New file.
72082         * tests/test-vasnprintf-posix.c: New file.
72083
72084         * modules/vasnprintf-posix: New file.
72085         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72086         printf-frexpl.h.
72087         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72088         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72089         REPLACE_VASNPRINTF is defined.
72090         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72091         gl_FUNC_VASNPRINTF.
72092         (gl_FUNC_VASNPRINTF): Invoke it.
72093         * m4/vasnprintf-posix.m4: New file.
72094         * m4/printf.m4: New file.
72095
72096 2007-03-04  Bruno Haible  <bruno@clisp.org>
72097
72098         Compile progreloc.c only if --enable-relocatable is specified.
72099         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72100         if --enable-relocatable was specified.
72101         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72102         lib_SOURCES.
72103
72104 2007-03-04  Jim Meyering  <jim@meyering.net>
72105
72106         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72107         Use it consistently, rather than enumerating errno constants.
72108
72109 2007-03-04  Bruno Haible  <bruno@clisp.org>
72110
72111         * modules/xvasprintf-tests: New file.
72112         * tests/test-xvasprintf.c: New file.
72113
72114         * modules/vasprintf-tests: New file.
72115         * tests/test-vasprintf.c: New file.
72116
72117         * modules/vasnprintf-tests: New file.
72118         * tests/test-vasnprintf.c: New file.
72119
72120         * modules/vsnprintf-tests: New file.
72121         * tests/test-vsnprintf.c: New file.
72122
72123         * modules/snprintf-tests: New file.
72124         * tests/test-snprintf.c: New file.
72125
72126 2007-03-04  Bruno Haible  <bruno@clisp.org>
72127
72128         Compile relocatable.c only if --enable-relocatable is specified.
72129         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72130         gl_RELOCATABLE_LIBRARY.
72131         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72132         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72133         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72134         gl_RELOCATABLE_LIBRARY.
72135         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72136         (Makefile.am): Remove lib_SOURCES.
72137         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72138         gl_RELOCATABLE_LIBRARY.
72139         (Makefile.am): Remove lib_SOURCES.
72140         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72141         always.
72142         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72143         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72144
72145 2007-03-04  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/argmatch-tests: New file.
72148         * tests/test-argmatch.c: New file.
72149
72150         * tests/test-allocsa.c (main): Halve the number of loop runs.
72151
72152         * modules/alloca-opt-tests: New file.
72153         * tests/test-alloca-opt.c: New file.
72154
72155 2007-03-04  Jim Meyering  <jim@meyering.net>
72156
72157         Work around difference between Linux ACLs and Solaris 10 ZFS.
72158         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72159         for EINVAL.
72160
72161 2007-03-03  Bruno Haible  <bruno@clisp.org>
72162
72163         * modules/relocatable-prog (Depends-on): Add back progreloc's
72164         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72165
72166 2007-03-03  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72169         * modules/relocatable-lib: New file.
72170
72171 2007-03-03  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/relocatable-prog: Renamed from modules/relocatable.
72174         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72175
72176 2007-03-03  Bruno Haible  <bruno@clisp.org>
72177
72178         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72179         m4/relocatable-lib.m4.
72180         (Depends-on): Remove 'relocatable'.
72181         (configure.ac): Add gl_RELOCATABLE_NOP.
72182
72183 2007-03-03  Bruno Haible  <bruno@clisp.org>
72184
72185         * modules/relocatable-prog-wrapper: New file.
72186         * modules/relocatable (Depends-on): Add it. Remove all other
72187         dependencies except progname.
72188         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72189
72190         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72191         (gl_FUNC_STRERROR): Nop.
72192         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72193
72194         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72195         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72196
72197         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72198         (gl_FUNC_READLINK): Update.
72199
72200         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72201
72202 2007-03-03  Bruno Haible  <bruno@clisp.org>
72203
72204         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72205         * modules/xreadlink (Depends-on): Add unistd.
72206         * modules/xreadlink-with-size (Depends-on): Likewise.
72207
72208 2007-03-03  Bruno Haible  <bruno@clisp.org>
72209
72210         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72211         extracted from gt_FUNC_SETENV.
72212         (gt_FUNC_SETENV): Remove macro.
72213         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72214         remove gt_FUNC_SETENV.
72215
72216 2007-03-03  Bruno Haible  <bruno@clisp.org>
72217
72218         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72219         ENABLE_RELOCATABLE here.
72220         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72221
72222 2007-03-03  Bruno Haible  <bruno@clisp.org>
72223
72224         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72225         * tests/test-rbtreehash_list.c: Include progname.h.
72226         (main): Call set_program_name.
72227
72228         * modules/rbtree-oset-tests (Depends-on): Add progname.
72229         * tests/test-rbtree_oset.c: Include progname.h.
72230         (main): Call set_program_name.
72231
72232         * modules/rbtree-list-tests (Depends-on): Add progname.
72233         * tests/test-rbtree_list.c: Include progname.h.
72234         (main): Call set_program_name.
72235
72236         * modules/linked-list-tests (Depends-on): Add progname.
72237         * tests/test-linked_list.c: Include progname.h.
72238         (main): Call set_program_name.
72239
72240 2007-03-03  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72243         All uses of __restrict changed to _Restrict_.
72244         * lib/glob_.h (__restrict): Remove macro.
72245
72246 2007-03-02  Bruno Haible  <bruno@clisp.org>
72247
72248         * modules/gettext (configure.ac): Require gettext infrastructure
72249         from version 0.16.1.
72250
72251 2007-03-02  Bruno Haible  <bruno@clisp.org>
72252
72253         * modules/linkedhash-list-tests (Depends-on): Add progname.
72254         * tests/test-linkedhash_list.c: Include progname.h.
72255         (main): Call set_program_name.
72256
72257         * modules/carray-list-tests (Depends-on): Add progname.
72258         * tests/test-carray_list.c: Include progname.h.
72259         (main): Call set_program_name.
72260
72261         * modules/avltreehash-list-tests (Depends-on): Add progname.
72262         * tests/test-avltreehash_list.c: Include progname.h.
72263         (main): Call set_program_name.
72264
72265         * modules/avltree-oset-tests (Depends-on): Add progname.
72266         * tests/test-avltree_oset.c: Include progname.h.
72267         (main): Call set_program_name.
72268
72269         * modules/avltree-list-tests (Depends-on): Add progname.
72270         * tests/test-avltree_list.c: Include progname.h.
72271         (main): Call set_program_name.
72272
72273         * modules/array-oset-tests (Depends-on): Add progname.
72274         * tests/test-array_oset.c: Include progname.h.
72275         (main): Call set_program_name.
72276
72277         * modules/array-list-tests (Depends-on): Add progname.
72278         * tests/test-array_list.c: Include progname.h.
72279         (main): Call set_program_name.
72280
72281         * modules/argp-tests (Depends-on): Add progname.
72282         * tests/test-argp.c: Include argp.h first. Include progname.h.
72283         (main): Call set_program_name.
72284
72285 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72286
72287         * doc/gnulib-tool.texi (Initial import): Reword description of
72288         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72289         limited effect even if defined after the first system include.
72290
72291 2007-03-01  Bruno Haible  <bruno@clisp.org>
72292
72293         * build-aux/config.libpath: Update to libtool-1.5.22.
72294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72295
72296 2007-03-01  Bruno Haible  <bruno@clisp.org>
72297
72298         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72299         foo_CFLAGS.
72300         Reported by Ralf Wildenhues.
72301
72302 2007-03-01  Bruno Haible  <bruno@clisp.org>
72303
72304         * build-aux/install-reloc: Remove object files left over by some
72305         compilers.
72306         Reported by Ralf Wildenhues.
72307
72308 2007-03-01  Bruno Haible  <bruno@clisp.org>
72309
72310         * build-aux/install-reloc: Break long lines.
72311
72312 2007-03-01  Bruno Haible  <bruno@clisp.org>
72313
72314         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72315         Reported by Ralf Wildenhues.
72316
72317 2007-03-01  Bruno Haible  <bruno@clisp.org>
72318
72319         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72320         include ordering constraints.
72321
72322 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72326         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72327         as another example.
72328         * lib/time_.h: Fix misspelling.
72329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72330         Require gl_HEADER_TIME_H_DEFAULTS.
72331         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72332         * m4/time_r.m4 (gl_TIME_R): Likewise.
72333         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72334
72335 2007-03-01  Bruno Haible  <bruno@clisp.org>
72336
72337         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72338         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72339
72340 2007-03-01  Jim Meyering  <jim@meyering.net>
72341
72342         * modules/xreadlink (Maintainer): Add my name.
72343         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72344
72345 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72346             Bruno Haible  <bruno@clisp.org>
72347
72348         * build-aux/install-reloc: Compile also c-ctype.c.
72349         * build-aux/relocatable.sh.in: New file.
72350         * doc/relocatable.texi: New file.
72351         * doc/relocatable-maint.texi: New file.
72352         * doc/gnulib.texi: Include relocatable-maint.texi.
72353         * lib/progreloc.c: Include unistd.h unconditionally.
72354         * lib/relocwrapper.c: Include unistd.h unconditionally.
72355         Include c-ctype.h.
72356         (add_dotbin): Use c_tolower.
72357         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72358         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72359         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72360         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72361         to m4/relocatable-lib.m4.
72362         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72363         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72364         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72365         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72366         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72367         * modules/relocatable: New file.
72368         * modules/relocatable-lib: New file.
72369         * modules/relocatable-script: New file.
72370
72371 2007-02-28  Bruno Haible  <bruno@clisp.org>
72372
72373         Import --enable-relocatable infrastructure.
72374         * build-aux/config.libpath: New file, from GNU gettext.
72375         * build-aux/install-reloc: New file, from GNU gettext.
72376         * build-aux/reloc-ldflags: New file, from GNU gettext.
72377         * lib/relocatable.h: New file, from GNU gettext.
72378         * lib/relocatable.c: New file, from GNU gettext.
72379         * lib/relocwrapper.c: New file, from GNU gettext.
72380         * m4/relocatable.m4: New file, from GNU gettext.
72381
72382 2007-02-28  Bruno Haible  <bruno@clisp.org>
72383
72384         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72385
72386         * modules/xreadlink: New file, from GNU gettext with modifications.
72387         * lib/xreadlink.c: New file, from GNU gettext.
72388         * lib/xreadlink.h: Add comments.
72389         (xreadlink): New declaration.
72390
72391         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72392         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72393         lib/xreadlink-with-size.c.
72394         (configure.ac): Remove gl_XREADLINK invocation.
72395         (Makefile.am): Augment lib_SOURCES.
72396         * m4/xreadlink.m4: Remove file.
72397         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72398         (xreadlink_with_size): Renamed from xreadink.
72399         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72400         * modules/canonicalize (Depends-on): Replace xreadlink with
72401         xreadlink-with-size.
72402         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72403
72404 2007-02-25  Jim Meyering  <jim@meyering.net>
72405
72406         * build-aux/announce-gen: When complaining about excess arguments,
72407         list them.
72408
72409 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * README: Document signed integer overflow situation more
72412         accurately.
72413
72414 2007-02-25  Bruno Haible  <bruno@clisp.org>
72415
72416         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72417         'a' or 'A' conversion.
72418
72419 2007-02-25  Bruno Haible  <bruno@clisp.org>
72420
72421         * modules/filename: Renamed from modules/pathname.
72422         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72423         lib/concatpath.c with lib/concat-filename.c.
72424         (Makefile.am): Update.
72425         (Include): Replace pathname.h with filename.h.
72426         * lib/filename.h: Renamed from lib/pathname.h.
72427         (concatenated_filename): Renamed from concatenated_pathname.
72428         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72429         (concatenated_filename): Renamed from concatenated_pathname.
72430         * lib/findprog.c: Include filename.h instead of pathname.h.
72431         (find_in_path): Update.
72432         * lib/javacomp.c: Include filename.h instead of pathname.h.
72433         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72434         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72435         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72436         is_oldgcj_14_13_usable, is_javac_usable): Update.
72437         * lib/javaexec.c: Include filename.h instead of pathname.h.
72438         (execute_java_class): Update.
72439         * modules/findprog: Update.
72440         * modules/javacomp: Update.
72441         * modules/javaexec: Update.
72442         * MODULES.html.sh (File system functions): Add 'filename', remove
72443         'pathname'.
72444
72445 2007-02-25  Bruno Haible  <bruno@clisp.org>
72446
72447         * modules/printf-frexpl-tests: New file.
72448         * tests/test-printf-frexpl.c: New file.
72449
72450         * modules/printf-frexpl: New file.
72451         * lib/printf-frexpl.h: New file.
72452         * lib/printf-frexpl.c: New file.
72453         * m4/printf-frexpl.m4: New file.
72454
72455 2007-02-25  Bruno Haible  <bruno@clisp.org>
72456
72457         * modules/printf-frexp-tests: New file.
72458         * tests/test-printf-frexp.c: New file.
72459
72460         * modules/printf-frexp: New file.
72461         * lib/printf-frexp.h: New file.
72462         * lib/printf-frexp.c: New file.
72463         * m4/printf-frexp.m4: New file.
72464
72465 2007-02-25  Bruno Haible  <bruno@clisp.org>
72466
72467         Assume automake >= 1.10 for the tests.
72468         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72469         * modules/arctwo-tests: Likewise.
72470         * modules/argp-tests: Likewise.
72471         * modules/avltree-list-tests: Likewise.
72472         * modules/avltree-oset-tests: Likewise.
72473         * modules/avltreehash-list-tests: Likewise.
72474         * modules/carray-list-tests: Likewise.
72475         * modules/crc-tests: Likewise.
72476         * modules/des-tests: Likewise.
72477         * modules/gc-arcfour-tests: Likewise.
72478         * modules/gc-arctwo-tests: Likewise.
72479         * modules/gc-des-tests: Likewise.
72480         * modules/gc-hmac-md5-tests: Likewise.
72481         * modules/gc-hmac-sha1-tests: Likewise.
72482         * modules/gc-md2-tests: Likewise.
72483         * modules/gc-md4-tests: Likewise.
72484         * modules/gc-md5-tests: Likewise.
72485         * modules/gc-pbkdf2-sha1-tests: Likewise.
72486         * modules/gc-rijndael-tests: Likewise.
72487         * modules/gc-sha1-tests: Likewise.
72488         * modules/gc-tests: Likewise.
72489         * modules/getaddrinfo-tests: Likewise.
72490         * modules/hmac-md5-tests: Likewise.
72491         * modules/hmac-sha1-tests: Likewise.
72492         * modules/linked-list-tests: Likewise.
72493         * modules/linkedhash-list-tests: Likewise.
72494         * modules/lock-tests: Likewise.
72495         * modules/md2-tests: Likewise.
72496         * modules/md4-tests: Likewise.
72497         * modules/md5-tests: Likewise.
72498         * modules/rbtree-list-tests: Likewise.
72499         * modules/rbtree-oset-tests: Likewise.
72500         * modules/rbtreehash-list-tests: Likewise.
72501         * modules/read-file-tests: Likewise.
72502         * modules/rijndael-tests: Likewise.
72503         * modules/stdint-tests: Likewise.
72504         * modules/tls-tests: Likewise.
72505
72506 2007-02-24  Bruno Haible  <bruno@clisp.org>
72507
72508         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72509         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72510         function; instead check whether isnan with a double argument links.
72511         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72512         function; instead check whether isnan with a 'long double' argument
72513         links.
72514         Reported by Eric Blake <ebb9@byu.net>.
72515
72516 2007-02-24  Bruno Haible  <bruno@clisp.org>
72517
72518         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72519         defined.
72520         * lib/isnanl.c: Remove all code. Just include isnan.c.
72521         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72522
72523 2007-02-25  Jim Meyering  <jim@meyering.net>
72524
72525         Avoid conflicting types for 'unsetenv' on FreeBSD.
72526         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72527         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72528         in stdlib.h.
72529
72530 2007-02-24  Bruno Haible  <bruno@clisp.org>
72531
72532         * modules/isnanl-nolibm-tests: New file.
72533         * tests/test-isnanl.c: New file.
72534
72535         * modules/isnanl-nolibm: New file.
72536         * lib/isnanl.h: New file.
72537         * lib/isnanl.c: New file.
72538         * m4/isnanl.m4: New file.
72539
72540 2007-02-24  Bruno Haible  <bruno@clisp.org>
72541
72542         * modules/isnan-nolibm-tests: New file.
72543         * tests/test-isnan.c: New file.
72544
72545         * modules/isnan-nolibm: New file.
72546         * lib/isnan.h: New file.
72547         * lib/isnan.c: New file.
72548         * m4/isnan.m4: New file.
72549
72550 2007-02-24  Bruno Haible  <bruno@clisp.org>
72551
72552         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72553         assume that an exponent fits in 20 bits.
72554
72555 2007-02-24  Jim Meyering  <jim@meyering.net>
72556
72557         * m4/regex.m4: Update the description of the configure-time option,
72558         --without-included-regex, to state accurately what the defaults are,
72559         and perhaps to give people an idea why using this option is risky.
72560
72561 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72564         loops on small arguments.  This attempts to avoid the problem
72565         Bruno Haible reported for AIX 4.3.2 in
72566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72567
72568 2007-02-23  Bruno Haible  <bruno@clisp.org>
72569
72570         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72571         Needed for help2man.
72572
72573 2007-02-23  Karl Berry  <karl@gnu.org>
72574
72575         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72576         exists, foo.h should be cvs-ignored, not committed.
72577
72578 2007-02-23  Eric Blake  <ebb9@byu.net>
72579
72580         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72581         * lib/stat-time.h (includes): Likewise.
72582         * lib/utimecmp.c (includes): Likewise.
72583         * lib/utimens.h (includes): Likewise.
72584         * lib/getdate.y (includes): Also include "timespec.h" for use
72585         internal to the module.
72586         * modules/utimens (Depends-on): Revert yesterday's patch.
72587         * modules/nanosleep (Depends-on): Add missing dependency.
72588
72589 2007-02-22  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/glob.c: Don't include getlogin_r.h.
72592
72593 2007-02-22  Jim Meyering  <jim@meyering.net>
72594
72595         * modules/utimens (Depends-on): Add timespec, required for
72596         utimens.h's inclusion of timespec.h.
72597
72598 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72601         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72602         Schwab in
72603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72604         I'll try to think of a better way to fix the Solaris problem.
72605
72606         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72607         like glibc; on Solaris 10, it fails with errno == EINVAL.
72608         POSIX says the behavior is unspecified if the first argument is NULL,
72609         so play it safe and never pass NULL to the system getcwd.
72610
72611 2007-02-21  Jim Meyering  <jim@meyering.net>
72612
72613         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72614         of gettimeofday.  It would conflict with the one now always
72615         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72616         an IRIX 6.5 build failure.
72617
72618 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72619
72620         Minor fixups to port to Solaris 10 with Sun C 5.8.
72621         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72622         * modules/getcwd (Depends-on): Add dirfd.
72623         * lib/putenv.c (putenv): #undef it.
72624         (rpl_putenv): New decl.
72625         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72626
72627 2007-02-20  Bruno Haible  <bruno@clisp.org>
72628
72629         * modules/stdio-tests: New file.
72630         * tests/test-stdio.c: New file.
72631
72632         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72633         (Depends-on): Add stdio.
72634         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72635         (Include): Use <stdio.h> instead of vsnprintf.h.
72636         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72637         HAVE_DECL_VSNPRINTF.
72638         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72639
72640         * modules/snprintf (Files): Remove lib/snprintf.h.
72641         (Depends-on): Add stdio.
72642         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72643         (Include): Use <stdio.h> instead of snprintf.h.
72644         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72645         HAVE_DECL_SNPRINTF.
72646         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72647         * lib/getaddrinfo.c: Likewise.
72648
72649         * modules/stdio: New file.
72650         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72651         * lib/snprintf.h: Remove file.
72652         * lib/vsnprintf.h: Remove file.
72653         * lib/.cppi-disable: Remove snprintf.h.
72654         * m4/stdio_h.m4: New file.
72655         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72656
72657 2007-02-20  Jim Meyering  <jim@meyering.net>
72658
72659         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72660         used by e.g., mingw.  From Bruno Haible.
72661
72662 2007-02-19  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72665         warnings.
72666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72667
72668 2007-02-19  Bruno Haible  <bruno@clisp.org>
72669
72670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72671         from mingw users.
72672
72673 2007-02-19  Bruno Haible  <bruno@clisp.org>
72674
72675         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72676         warnings.
72677         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72678
72679 2007-02-19  Jim Meyering  <jim@meyering.net>
72680
72681         Don't use FD after a successful "fdopendir (fd)".
72682         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72683         Reset it by calling dirfd on the just-obtained DIR*.
72684
72685         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72686         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72687
72688 2007-02-18  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/readlink.c: Include <unistd.h>.
72691         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72692         HAVE_READLINK.
72693         * modules/readlink (Depends-on): Add unistd.
72694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72695         (Include): Add <unistd.h>.
72696
72697         * lib/getlogin_r.h: Remove file.
72698         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72699         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72700         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72701         HAVE_DECL_GETLOGIN_R.
72702         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72704         (Include): Use <unistd.h> instead of getlogin_r.h.
72705
72706         * lib/getcwd.h: Remove file.
72707         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72708         * lib/xgetcwd.c: Likewise.
72709         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72710         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72711         * modules/getcwd (Files): Remove lib/getcwd.h.
72712         (Depends-on): Add unistd.
72713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72714         (Include): Use <unistd.h> instad of getcwd.h.
72715
72716         * lib/ftruncate.c: Include <unistd.h> first.
72717         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72718         Set HAVE_FTRUNCATE.
72719         * modules/ftruncate (Depends-on): Add unistd.
72720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72721
72722         * lib/fchdir.c: Include <unistd.h> first.
72723         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72725         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72726         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72727         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72728
72729         * lib/dup2.c: Include <unistd.h> first.
72730         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72731         HAVE_DUP2.
72732         * modules/dup2 (Depends-on): Add unistd.
72733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72734
72735         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72736         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72737         REPLACE_CHOWN. Don't define chown as a macro here.
72738         * modules/chown (Depends-on): Add unistd.
72739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72740
72741         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72742         Add definition for GL_LINK_WARNING.
72743         (chown, dup2): New declarations.
72744         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72745         link warning.
72746         (ftruncate): New declaration.
72747         (getcwd): New declaration, taken from old getcwd.h.
72748         (getlogin_r): New declaration, taken from old getlogin_r.h.
72749         (readlink): New declaration.
72750         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72751         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72752         (gl_PREREQ_UNISTD): Remove macro.
72753         (gl_UNISTD_MODULE_INDICATOR): New macro.
72754         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72755         many new variables. Don't set UNISTD_H.
72756         * modules/unistd (Description): Change.
72757         (Depends-on): Add link-warning.
72758         (configure.ac): Update.
72759         (Makefile.am): Create unistd.h always. Substitute many new variables
72760         into it.
72761
72762 2007-02-18  Bruno Haible  <bruno@clisp.org>
72763
72764         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72765         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72766         HAVE_GETSUBOPT.
72767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72768         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72769         * lib/getsubopt.h: Remove file.
72770         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72771         (Depends-on): Add stdlib.
72772         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72773         (Includes): Use <stdlib.h> instead of getsubopt.h.
72774         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72775         Set HAVE_GETSUBOPT.
72776         * lib/getsubopt.c: Don't include getsubopt.h.
72777
72778 2007-02-18  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/fchdir (Depends-on): Add dup2.
72781
72782 2007-02-18  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/stdlib_.h: Handle glibc's special invocation convention
72785         specially.
72786
72787 2007-02-18  Bruno Haible  <bruno@clisp.org>
72788
72789         * modules/stdlib-tests: New file.
72790         * tests/test-stdlib.c: New file.
72791
72792         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72793         (Depends-on): Add stdlib.
72794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72795         (Includes): Use <stdlib.h> instead of mkstemp.h.
72796         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72797         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72798         * lib/mkstemp.c: Don't include mkstemp.h.
72799         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72800         * lib/stdlib--.h: Don't include mkstemp.h.
72801
72802         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72803         (Depends-on): Add stdlib.
72804         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72805         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72806         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72807         HAVE_MKDTEMP.
72808         * lib/mkdtemp.c: Don't include mkdtemp.h.
72809         * lib/clean-temp.c: Don't include mkdtemp.h.
72810
72811         * modules/exit (Files): Remove lib/exit.h.
72812         (Depends-on): Add stdlib.
72813         (Makefile.am): Remove lib_SOURCES.
72814         (Include): Use <stdlib.h> instead of exit.h.
72815         * lib/argmatch.c: Don't include exit.h.
72816         * lib/execute.c: Likewise.
72817         * lib/pagealign_alloc.c: Likewise.
72818         * lib/pipe.c: Likewise.
72819         * lib/wait-process.c: Likewise.
72820         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72821         * lib/exitfail.c: Likewise.
72822         * lib/savewd.c: Likewise.
72823         * lib/xsetenv.c: Likewise.
72824
72825         * modules/stdlib: New file.
72826         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72827         and extra comments about mkstemp().
72828         * lib/exit.h: Remove file.
72829         * lib/mkdtemp.h: Remove file.
72830         * lib/mkstemp.h: Remove file.
72831         * m4/stdlib_h.m4: New file.
72832         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72833
72834 2007-02-18  Bruno Haible  <bruno@clisp.org>
72835
72836         * modules/math-tests: New file.
72837         * tests/test-math.c: New file.
72838
72839         * modules/math: New file.
72840         * modules/mathl (Files): Remove lib/mathl.h.
72841         (Depends-on): Add math.
72842         (Makefile.am): Don't mention mathl.h.
72843         (Include): Use <math.h> instead of mathl.h.
72844         * lib/math_.h: New file.
72845         * lib/mathl.h: Remove file.
72846         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72847         mathl.h.
72848         * lib/asinl.c: Likewise.
72849         * lib/atanl.c: Likewise.
72850         * lib/ceill.c: Likewise.
72851         * lib/cosl.c: Likewise.
72852         * lib/expl.c: Likewise.
72853         * lib/floorl.c: Likewise.
72854         * lib/frexpl.c: Likewise.
72855         * lib/ldexpl.c: Likewise.
72856         * lib/logl.c: Likewise.
72857         * lib/sincosl.c: Likewise.
72858         * lib/sinl.c: Likewise.
72859         * lib/sqrtl.c: Likewise.
72860         * lib/tanl.c: Likewise.
72861         * lib/trigl.c: Likewise.
72862         * m4/math_h.m4: New file.
72863         * MODULES.html.sh (Mathematics): Add math.
72864
72865 2007-02-17  Bruno Haible  <bruno@clisp.org>
72866
72867         * modules/wctype-tests: New file.
72868         * tests/test-wctype.c: New file.
72869
72870         * modules/wchar-tests: New file.
72871         * tests/test-wchar.c: New file.
72872
72873         * modules/unistd-tests: New file.
72874         * tests/test-unistd.c: New file.
72875
72876         * modules/time-tests: New file.
72877         * tests/test-time.c: New file.
72878
72879         * modules/sysexits-tests: New file.
72880         * tests/test-sysexits.c: New file.
72881
72882         * modules/sys_time-tests: New file.
72883         * tests/test-sys_time.c: New file.
72884
72885         * modules/sys_stat-tests: New file.
72886         * tests/test-sys_stat.c: New file.
72887
72888         * modules/sys_socket-tests: New file.
72889         * tests/test-sys_socket.c: New file.
72890
72891         * modules/sys_select-tests: New file.
72892         * tests/test-sys_select.c: New file.
72893
72894         * modules/string-tests: New file.
72895         * tests/test-string.c: New file.
72896
72897         * modules/stdbool-tests: New file.
72898         * tests/test-stdbool.c: New file.
72899
72900         * modules/netinet_in-tests: New file.
72901         * tests/test-netinet_in.c: New file.
72902
72903         * modules/inttypes-tests: New file.
72904         * tests/test-inttypes.c: New file.
72905
72906         * modules/fcntl-tests: New file.
72907         * tests/test-fcntl.c: New file.
72908
72909         * modules/byteswap-tests: New file.
72910         * tests/test-byteswap.c: New file.
72911
72912         * modules/arpa_inet-tests: New file.
72913         * tests/test-arpa_inet.c: New file.
72914
72915 2007-02-17  Bruno Haible  <bruno@clisp.org>
72916
72917         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72918         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72919         if the corresponding module is not enabled. Emit link warnings if
72920         the function is used nevertheless.
72921         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72922         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72923         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72924         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72925         * modules/inttypes (Depends-on): Add link-warning.
72926         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72927         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72928         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72929         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72930         * modules/imaxdiv (configure.ac): Likewise.
72931         * modules/strtoimax (configure.ac): Likewise.
72932         * modules/strtoumax (configure.ac): Likewise.
72933
72934 2007-02-17  Bruno Haible  <bruno@clisp.org>
72935
72936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72937         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72938         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72939         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72940
72941 2007-02-17  Bruno Haible  <bruno@clisp.org>
72942
72943         * modules/link-warning: New file.
72944         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72945         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72946         * modules/string (Depends-on): Add link-warning.
72947         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72948         string.h.
72949         * MODULES.html.sh (Support for building libraries and executables): Add
72950         link-warning.
72951
72952 2007-02-17  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72955         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72956         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72957         long lines.
72958
72959 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72960             Bruno Haible  <bruno@clisp.org>
72961
72962         * modules/tmpfile: New file.
72963         * lib/tmpfile.c: New file.
72964         * m4/tmpfile.m4: New file.
72965         * MODULES.html.sh (func_all_modules): New section "Input/output".
72966
72967 2007-02-15  Bruno Haible  <bruno@clisp.org>
72968
72969         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72970         (supports_delete_on_close): New function.
72971         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72972
72973 2007-02-14  Bruno Haible  <bruno@clisp.org>
72974
72975         * modules/mbspcasecmp-tests: New file.
72976         * tests/test-mbspcasecmp.sh: New file.
72977         * tests/test-mbspcasecmp.c: New file.
72978
72979         New module mbspcasecmp.
72980         * modules/mbspcasecmp: New file.
72981         * lib/mbspcasecmp.c: New file.
72982         * lib/string_.h (strncasecmp): Change warning message.
72983         (mbspcasecmp): New declaration.
72984         * m4/mbspcasecmp.m4: New file.
72985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72986         GNULIB_MBSPCASECMP.
72987         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72988         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72989
72990 2007-02-14  Bruno Haible  <bruno@clisp.org>
72991
72992         * modules/mbsncasecmp-tests: New file.
72993         * tests/test-mbsncasecmp.sh: New file.
72994         * tests/test-mbsncasecmp.c: New file.
72995
72996         New module mbsncasecmp.
72997         * modules/mbsncasecmp: New file.
72998         * lib/mbsncasecmp.c: New file.
72999         * lib/string_.h (mbsncasecmp): New declaration.
73000         * m4/mbsncasecmp.m4: New file.
73001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73002         GNULIB_MBSNCASECMP.
73003         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73004         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73005
73006 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73009         Verify that it doesn't overlap with our flags.
73010         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73011         do not have the desired effect in multibyte locales; instead, use
73012         mbscasecmp.
73013         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73014         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73015         we don't require GNU fnmatch ourselves (if our users require it, they
73016         should do so explicitly).
73017
73018         Fix regex code so it doesn't rely on strcasecmp.
73019         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73020         Otherwise, include gnulib's langinfo.h.
73021         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73022         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73023         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73024         * modules/regex (FILES): Remove m4/codeset.m4.
73025         (Depends-on): Add localcharset.  Remove strcase.
73026
73027 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73028
73029         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73030         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73031
73032 2007-02-13  Bruno Haible  <bruno@clisp.org>
73033
73034         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73036
73037 2007-02-12  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73040         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73041         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73042         time warning rather than a link error.
73043
73044 2007-02-12  Bruno Haible  <bruno@clisp.org>
73045
73046         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73047         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73049
73050 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73053         args, not 2.
73054
73055 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         New module 'time', so that apps can include <time.h> as per
73058         POSIX and GNU instead of separate include files like time_r.h
73059         and timegm.h.  This implementation tries out a simpler approach
73060         for replacing decls in standard include files (as compared to
73061         the string module), somewhat as an experiment.
73062
73063         * config/srclist.txt: Comment out mktime.c for now.
73064         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73065         since it doesn't apply any more.  Use generic wording instead.
73066         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73067         'time'.
73068         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73069         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73070         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73071         Don't include <sys/types.h>; no longer needed since we assume C89.
73072         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73073         * lib/strftime.c: Likewise.
73074         * lib/time_r.c: Likewise.
73075         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73076         * lib/nanosleep.c: Include <time.h> first, to check interface.
73077         * lib/strptime.c: Likewise.
73078         * lib/time_r.c: Likewise.
73079         * lib/timegm.c: Likewise.
73080         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73081         needed.
73082         * lib/timegm.c: Don't include timegm.h; no longer needed.
73083         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73084         time.h now handles any problems in that area.
73085         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73086         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73087         that time.h defines struct timespec.
73088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73089         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73090         handles that.
73091         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73092         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73093         needed.  Set REPLACE_LOCALTIME.
73094         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73095         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73096         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73097         nanosleep; time_h.m4 now does that.  Don't require
73098         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73099         module handles this now.
73100         * modules/getdate (Depends-on): Remove timespec.  Add time.
73101         * modules/nanosleep (Depends-on): Likewise.
73102         * modules/stat-time (Depends-on): Likewise.
73103         * modules/nanosleep (Include): Include time.h, not timespec.h.
73104         * modules/strptime (Files): Remove lib/strptime.h.
73105         (Depends-on): Add extensions, time.
73106         (Include): Include time.h, not strptime.h.
73107         * modules/time_r (Files): Remove lib/time_r.h.
73108         (Depends-on): Add time.
73109         (Include): Include time.h, not time_r.h.
73110         * modules/timegm: Likewise.
73111         * modules/timespec (Description): Now does timespec-related decls
73112         of our own, instead of struct timespec itself.
73113         (Depends-on): Add time; remove extensions.
73114         (Maintainer): Add self.
73115         * modules/utimecmp (Depends-on): Add time; remove timespec.
73116         * modules/utimens (Depends-on): Likewise.
73117         * modules/xnanosleep (Depends-on): Likewise.
73118
73119 2007-02-11  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/c-strstr.c: Include allocsa.h.
73122         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73123         * lib/c-strcasestr.c: Include allocsa.h.
73124         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73125         * lib/strcasestr.c: Include allocsa.h.
73126         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73127         * lib/mbsstr.c: Include allocsa.h.
73128         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73129         allocsa/freesa instead of malloc/free.
73130         * lib/mbscasestr.c: Include allocsa.h.
73131         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73132         allocsa/freesa instead of malloc/free.
73133         * modules/c-strstr (Depends-on): Add allocsa.
73134         * modules/c-strcasestr (Depends-on): Likewise.
73135         * modules/strcasestr (Depends-on): Likewise.
73136         * modules/mbsstr (Depends-on): Likewise.
73137         * modules/mbscasestr (Depends-on): Likewise.
73138
73139 2007-02-11  Bruno Haible  <bruno@clisp.org>
73140
73141         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73142
73143         * modules/mbsspn-tests: New file.
73144         * tests/test-mbsspn.sh: New file.
73145         * tests/test-mbsspn.c: New file.
73146
73147 2007-02-11  Bruno Haible  <bruno@clisp.org>
73148
73149         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73150
73151         * modules/mbspbrk-tests: New file.
73152         * tests/test-mbspbrk.sh: New file.
73153         * tests/test-mbspbrk.c: New file.
73154
73155 2007-02-11  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73158         unneeded cast.
73159
73160         * modules/mbscspn-tests: New file.
73161         * tests/test-mbscspn.sh: New file.
73162         * tests/test-mbscspn.c: New file.
73163
73164 2007-02-11  Bruno Haible  <bruno@clisp.org>
73165
73166         * modules/mbscasecmp-tests: New file.
73167         * tests/test-mbscasecmp.sh: New file.
73168         * tests/test-mbscasecmp.c: New file.
73169
73170 2007-02-11  Bruno Haible  <bruno@clisp.org>
73171
73172         Ensure O(n) worst-case complexity of mbscasestr.
73173         * lib/mbscasestr.c: Include stdbool.h.
73174         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73175         functions.
73176         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73177         the bookkeeping indicates that it's worth it.
73178         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73179
73180         * modules/mbscasestr-tests: New file.
73181         * tests/test-mbscasestr1.c: New file.
73182         * tests/test-mbscasestr2.sh: New file.
73183         * tests/test-mbscasestr2.c: New file.
73184         * tests/test-mbscasestr3.sh: New file.
73185         * tests/test-mbscasestr3.c: New file.
73186         * tests/test-mbscasestr4.sh: New file.
73187         * tests/test-mbscasestr4.c: New file.
73188         * m4/locale-tr.m4: New file.
73189
73190 2007-02-11  Bruno Haible  <bruno@clisp.org>
73191
73192         Ensure O(n) worst-case complexity of mbsstr.
73193         * lib/mbsstr.c: Include stdbool.h.
73194         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73195         functions.
73196         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73197         bookkeeping indicates that it's worth it.
73198         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73199
73200         * modules/mbsstr-tests: New file.
73201         * tests/test-mbsstr1.c: New file.
73202         * tests/test-mbsstr2.sh: New file.
73203         * tests/test-mbsstr2.c: New file.
73204         * tests/test-mbsstr3.sh: New file.
73205         * tests/test-mbsstr3.c: New file.
73206         * m4/locale-fr.m4: New file.
73207
73208 2007-02-11  Bruno Haible  <bruno@clisp.org>
73209
73210         * lib/mbsrchr.c (mbsrchr): Fix bug.
73211
73212         * modules/mbsrchr-tests: New file.
73213         * tests/test-mbsrchr.sh: New file.
73214         * tests/test-mbsrchr.c: New file.
73215
73216 2007-02-11  Bruno Haible  <bruno@clisp.org>
73217
73218         * lib/mbschr.c (mbschr): Fix bug.
73219
73220         * modules/mbschr-tests: New file.
73221         * tests/test-mbschr.sh: New file.
73222         * tests/test-mbschr.c: New file.
73223         * m4/locale-zh.m4: New file.
73224
73225 2007-02-11  Bruno Haible  <bruno@clisp.org>
73226
73227         Support for copying multibyte string iterators.
73228         * lib/mbiter.h: Include <string.h>.
73229         (mbiter_multi_copy): New function.
73230         (mbi_copy): New macro.
73231         * lib/mbuiter.h: Include <string.h>.
73232         (mbuiter_multi_copy): New function.
73233         (mbui_copy): New macro.
73234
73235 2007-02-11  Bruno Haible  <bruno@clisp.org>
73236
73237         New module mbslen.
73238         * modules/mbslen: New file.
73239         * lib/mbslen.c: New file.
73240         * lib/string_.h (mbslen): New declaration.
73241         * m4/mbslen.m4: New file.
73242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73243         GNULIB_MBSLEN.
73244         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73245         * MODULES.html.sh (Internationalization functions): Add mbslen.
73246
73247 2007-02-11  Bruno Haible  <bruno@clisp.org>
73248
73249         Ensure O(n) worst-case complexity of strcasestr substitute.
73250         * lib/strcasestr.c: Include stdbool.h.
73251         (knuth_morris_pratt): New function.
73252         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73253         bookkeeping indicates that it's worth it.
73254         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73255
73256         * modules/strcasestr-tests: New file.
73257         * tests/test-strcasestr.c: New file.
73258
73259 2007-02-11  Bruno Haible  <bruno@clisp.org>
73260
73261         Ensure O(n) worst-case complexity of c_strcasestr.
73262         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73263         (knuth_morris_pratt): New function.
73264         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73265         the bookkeeping indicates that it's worth it.
73266         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73267
73268         * modules/c-strcasestr-tests: New file.
73269         * tests/test-c-strcasestr.c: New file.
73270
73271 2007-02-11  Bruno Haible  <bruno@clisp.org>
73272
73273         Ensure O(n) worst-case complexity of c_strstr.
73274         * lib/c-strstr.c: Include stdbool.h, string.h.
73275         (knuth_morris_pratt): New function.
73276         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73277         bookkeeping indicates that it's worth it.
73278         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73279
73280         * lib/c-strstr.c: Complete rewrite for maintainability.
73281
73282         * modules/c-strstr-tests: New file.
73283         * tests/test-c-strstr.c: New file.
73284
73285 2007-02-11  Bruno Haible  <bruno@clisp.org>
73286
73287         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73288         5.2.1 and earlier, whereby \055 was treated just like the range
73289         delimiter '-'.
73290         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73291
73292 2007-02-08  Bruno Haible  <bruno@clisp.org>
73293
73294         * modules/regex (Depends-on): Add stdbool.
73295         Reported by Dalibor Topic <robilad@kaffe.org>.
73296
73297 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73300         Prefer returning from main to exiting from it.
73301         Remove unnecessary parens after sizeof.
73302
73303 2007-02-05  Bruno Haible  <bruno@clisp.org>
73304
73305         New module mbssep.
73306         * modules/mbssep: New file.
73307         * lib/mbssep.c: New file.
73308         * lib/string_.h (strsep): Add a conditional link warning.
73309         (mbssep): New declaration.
73310         * m4/mbssep.m4: New file.
73311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73312         GNULIB_MBSSEP.
73313         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73314         * MODULES.html.sh (Internationalization functions): Add mbssep.
73315
73316 2007-02-05  Bruno Haible  <bruno@clisp.org>
73317
73318         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73319         Optimize search in case of 1 delimiter.
73320
73321 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73322
73323         * lib/acl.h: Include sys/types.h before sys/acl.h.
73324
73325 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73326
73327         Merge upstream fix for glibc bugzilla #3957:
73328
73329         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73330
73331         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73332         bit for RE_HAT_LISTS_NOT_NEWLINE.
73333         (build_charclass_op): Remove bogus comment.
73334
73335 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73336
73337         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73338
73339 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73342         * lib/memmem.c [!defined _LIBC]: Include config.h.
73343
73344 2007-02-04  Bruno Haible  <bruno@clisp.org>
73345
73346         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73347         warning message.
73348
73349 2007-02-04  Bruno Haible  <bruno@clisp.org>
73350
73351         New module mbstok_r.
73352         * modules/mbstok_r: New file.
73353         * lib/mbstok_r.c: New file.
73354         * lib/string_.h (strtok_r): Change argument names to match the
73355         comments. Add a conditional link warning.
73356         (mbstok_r): New declaration.
73357         * m4/mbstok_r.m4: New file.
73358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73359         GNULIB_MBSTOK_R.
73360         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73361         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73362
73363 2007-02-04  Bruno Haible  <bruno@clisp.org>
73364
73365         New module mbsspn.
73366         * modules/mbsspn: New file.
73367         * lib/mbsspn.c: New file.
73368         * lib/string_.h (strspn): Add a conditional link warning.
73369         (mbsspn): New declaration.
73370         * m4/mbsspn.m4: New file.
73371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73372         GNULIB_MBSSPN.
73373         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73374         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73375
73376 2007-02-04  Bruno Haible  <bruno@clisp.org>
73377
73378         New module mbspbrk.
73379         * modules/mbspbrk: New file.
73380         * lib/mbspbrk.c: New file.
73381         * lib/string_.h (strpbrk): Add a conditional link warning.
73382         (mbspbrk): New declaration.
73383         * m4/mbspbrk.m4: New file.
73384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73385         GNULIB_MBSPBRK.
73386         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73387         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73388
73389 2007-02-04  Bruno Haible  <bruno@clisp.org>
73390
73391         New module mbscspn.
73392         * modules/mbscspn: New file.
73393         * lib/mbscspn.c: New file.
73394         * lib/string_.h (strcspn): Add a conditional link warning.
73395         (mbscspn): New declaration.
73396         * m4/mbscspn.m4: New file.
73397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73398         GNULIB_MBSCSPN.
73399         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73400         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73401
73402 2007-02-04  Bruno Haible  <bruno@clisp.org>
73403
73404         New module mbscasestr, reduced goal of strcasestr.
73405         * modules/mbscasestr: New file.
73406         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73407         (mbscasestr): Renamed from strcasestr.
73408         * lib/strcasestr.c: Don't include mbuiter.h.
73409         (strcasestr): Remove support for multibyte locales.
73410         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73411         Change the conditional link warning.
73412         (mbscasestr): New declaration.
73413         * m4/mbscasestr.m4: New file.
73414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73415         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73416         REPLACE_STRCASESTR.
73417         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73419         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73420         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73421         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73422         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73423         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73424         (Depends-on): Remove mbuiter.
73425         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73426
73427 2007-02-04  Bruno Haible  <bruno@clisp.org>
73428
73429         Simplify handling of strncasecmp.
73430         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73431         the conditional link warning.
73432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73433         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73434         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73435         * modules/strcase (configure.ac): Don't invoke
73436         gl_STRING_MODULE_INDICATOR.
73437         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73438
73439 2007-02-04  Bruno Haible  <bruno@clisp.org>
73440
73441         New module mbscasecmp, reduced goal of strcasecmp.
73442         * modules/mbscasecmp: New file.
73443         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73444         (mbscasecmp): Renamed from strcasecmp.
73445         * lib/strcasecmp.c: Don't include mbuiter.h.
73446         (strcasecmp): Remove support for multibyte locales.
73447         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73448         Change the conditional link warning.
73449         (mbscasecmp): New declaration.
73450         * m4/mbscasecmp.m4: New file.
73451         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73452         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73453         REPLACE_STRCASECMP.
73454         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73456         GNULIB_MBSCASECMP.
73457         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73458         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73459         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73460         (Depends-on): Remove mbuiter.
73461         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73462
73463 2007-02-04  Bruno Haible  <bruno@clisp.org>
73464
73465         New module mbsstr. Remove module strstr.
73466         * modules/mbsstr: New file.
73467         * modules/strstr: Remove file.
73468         * lib/mbsstr.c: Renamed from lib/strstr.c.
73469         (mbsstr): Renamed from strstr.
73470         * lib/string_.h (strstr): Remove declaration. Change the conditional
73471         link warning.
73472         (mbsstr): New declaration.
73473         * m4/mbsstr.m4: New file.
73474         * m4/strstr.m4: Remove file.
73475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73476         REPLACE_STRSTR.
73477         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73478         Don't initialize GNULIB_STRSTR.
73479         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73480         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73481         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73482         (Support for systems lacking ANSI C 89): Remove strstr.
73483
73484 2007-02-04  Bruno Haible  <bruno@clisp.org>
73485
73486         New module mbsrchr.
73487         * modules/mbsrchr: New file.
73488         * lib/mbsrchr.c: New file.
73489         * lib/string_.h (strrchr): Add a conditional link warning.
73490         (mbsrchr): New declaration.
73491         * m4/mbsrchr.m4: New file.
73492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73493         GNULIB_MBSRCHR.
73494         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73495         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73496
73497 2007-02-04  Bruno Haible  <bruno@clisp.org>
73498
73499         New module mbschr.
73500         * modules/mbschr: New file.
73501         * lib/mbschr.c: New file.
73502         * lib/string_.h (strchr): Add a conditional link warning.
73503         (mbschr): New declaration.
73504         * m4/mbschr.m4: New file.
73505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73506         GNULIB_MBSCHR.
73507         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73508         * MODULES.html.sh (Internationalization functions): Add mbschr.
73509
73510 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73511
73512         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73513
73514         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73515
73516 2007-02-04  Bruno Haible  <bruno@clisp.org>
73517
73518         New module description section 'configure.ac-early'.
73519         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73520         (func_get_autoconf_early_snippet): New function.
73521         (func_import, func_create_testdir): Use it. Remove special cases for
73522         modules 'extensions' and 'lock'.
73523         * modules/extensions (configure.ac-early): Require
73524         gl_USE_SYSTEM_EXTENSIONS.
73525         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73526
73527 2007-02-04  Bruno Haible  <bruno@clisp.org>
73528
73529         Make use of gcj-4.3's -fsource and -ftarget option.
73530         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73531         and if so try the options -fsource and -ftarget.
73532         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73533         source_version, ftarget_option, target_version arguments.
73534         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73535         (is_envjavac_oldgcj_14_14_usable): Renamed from
73536         is_envjavac_gcj_14_14_usable.
73537         (is_envjavac_oldgcj_14_13_usable): Renamed from
73538         is_envjavac_gcj_14_13_usable.
73539         (is_gcj_present): Update.
73540         (is_gcj_43, is_gcj43_usable): New functions.
73541         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73542         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73543         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73544         try the options -fsource and -ftarget.
73545
73546 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73549         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73550         larger value.
73551
73552 2007-02-03  Jim Meyering  <jim@meyering.net>
73553
73554         Give tools a better chance to allocate space for very large buffers.
73555         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73556
73557         Make pwd and readlink work also when run with an unreadable parent dir
73558         on systems with openat support.
73559         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73560         provided getcwd function, even when we have openat support.
73561         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73562
73563 2007-02-02  Bruno Haible  <bruno@clisp.org>
73564
73565         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73566         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73567         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73568         portability problems if one of these functions is only used on specific
73569         platforms.
73570         Reported by Paul Eggert.
73571
73572 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73575         is causing more trouble than it's curing.
73576         * lib/regex_internal.h (__mempcpy): Remove.
73577         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73578         (and make the code a tad smaller to boot).
73579         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73580
73581 2007-02-02  Jim Meyering  <jim@meyering.net>
73582
73583         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73584         section, not in the Makefile.am: one.
73585
73586 2007-02-02  Eric Blake  <ebb9@byu.net>
73587
73588         * lib/strchrnul.c: Always include config.h first.
73589
73590         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73591         gnulib strstr is not necessary here.
73592
73593 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73594
73595         * m4/socklen.m4: Fix typo.
73596
73597 2007-02-02  Eric Blake  <ebb9@byu.net>
73598
73599         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73600         * modules/netinet_in (Makefile.am): Likewise.
73601
73602 2007-02-01  Bruno Haible  <bruno@clisp.org>
73603
73604         * lib/string_.h (GL_LINK_WARNING): New macro.
73605         (strcasecmp, strstr, strcasestr): If provided by the system,
73606         conditionally define as a macro that leads to a warning instead of to
73607         an error.
73608         (strncasecmp): Conditionally define as a macro that leads to a warning.
73609
73610 2007-02-01  Karl Berry  <karl@gnu.org>
73611
73612         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73613
73614 2007-02-01  Bruno Haible  <bruno@clisp.org>
73615
73616         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73617         renamings.
73618
73619 2007-02-01  Eric Blake  <ebb9@byu.net>
73620
73621         * modules/regex (Depends-on): Revert dependence on mempcpy.
73622         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73623         module's definition of mempcpy.
73624         Reported by Paul Eggert.
73625
73626 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73629         the symbol XYZ before redefining it.  This fixes a problem with
73630         programs that don't use XYZ, when compiled on systems that define
73631         XYZ to something else.
73632
73633 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73634
73635         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73636         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73637         writeable to group or other and (2) is intended to have a special
73638         mode bit that is set or cleared.  In such a case, the directory
73639         should be neither group- nor other-writeable until the special
73640         mode bits are right.
73641
73642 2007-01-31  Eric Blake  <ebb9@byu.net>
73643
73644         * modules/mountlist (Depends-on): Add strstr.
73645
73646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73647         bug.
73648         * modules/string (Makefile.am): Remove redundant replacement.
73649         * modules/regex (Depends-on): Add mempcpy.
73650
73651 2007-01-31  Bruno Haible  <bruno@clisp.org>
73652
73653         New module description field 'Link'.
73654         * gnulib-tool (func_usage): Document --extract-link-directive.
73655         (sed_extract_prog): Recognize 'Link' directive.
73656         (func_get_link_directive): New function.
73657         (func_import): Show summary of link directives.
73658         Handle --extract-link-directive option.
73659         * modules/acl (Link): New section.
73660         * modules/clock-time (Link): New section.
73661         * modules/euidaccess (Link): New section.
73662         * modules/gettext (Link): New section.
73663         * modules/iconv (Link): New section.
73664         * modules/lock (Link): New section.
73665         * modules/nanosleep (Link): New section.
73666         * modules/readline (Link): New section.
73667
73668 2007-01-27  Bruno Haible  <bruno@clisp.org>
73669
73670         Enforce the use of gnulib modules for unportable <string.h> functions.
73671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73672         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73673         (gl_HEADER_STRING_H_BODY): Require it.
73674         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73675         the symbol XYZ to one that gives a link error.
73676         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73677         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73678         * modules/mempcpy (configure.ac): Likewise.
73679         * modules/memrchr (configure.ac): Likewise.
73680         * modules/stpcpy (configure.ac): Likewise.
73681         * modules/stpncpy (configure.ac): Likewise.
73682         * modules/strcase (configure.ac): Likewise.
73683         * modules/strcasestr (configure.ac): Likewise.
73684         * modules/strchrnul (configure.ac): Likewise.
73685         * modules/strdup (configure.ac): Likewise.
73686         * modules/strndup (configure.ac): Likewise.
73687         * modules/strnlen (configure.ac): Likewise.
73688         * modules/strpbrk (configure.ac): Likewise.
73689         * modules/strsep (configure.ac): Likewise.
73690         * modules/strstr (configure.ac): Likewise.
73691         * modules/strtok_r (configure.ac): Likewise.
73692
73693 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73694
73695         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73696
73697 2007-01-30  Jim Meyering  <jim@meyering.net>
73698
73699         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73700
73701 2007-01-29  Bruno Haible  <bruno@clisp.org>
73702
73703         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73704         * lib/execute.c: Likewise.
73705         * lib/pipe.c: Likewise.
73706         * lib/printf-args.h: Likewise.
73707         * lib/printf-args.c: Likewise.
73708         * lib/printf-parse.c: Likewise.
73709         * lib/vasnprintf.c: Likewise.
73710
73711 2007-01-29  Eric Blake  <ebb9@byu.net>
73712
73713         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73714         declaration.
73715
73716 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         * lib/strptime.h (strptime): Use 'restrict' for args where
73719         POSIX requires this.
73720         * lib/strptime.c (strptime): Likewise.
73721         Change license notice from LGPL to GPL, since gnulib-tool will
73722         change this as needed.
73723         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73724         defined.
73725         Include "strptime.h" first, to check interface.
73726         Do not #undef _LIBC and _NL_CURRENT.
73727         Do not include <stdlib.h>; no longer needed.
73728         Include "time_r.h" and declare ptime_locale_status
73729         only if _LIBC is not defined.
73730         (__P): Remove unused macro.
73731         (match_string): Bring back glibc version, but use it only if _LIBC
73732         is defined.
73733         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73734         Remove unnecessary assertion and abort() call.
73735         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73736         * m4/strptime.m4: Fix serial number comment.
73737         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73738         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73739         (Depends-on): Add time_r.
73740
73741 2007-01-29  Bruno Haible  <bruno@clisp.org>
73742
73743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73744         strptime.
73745         * modules/strptime (Depends-on): Add stdbool.
73746         * lib/strptime.h: Include <time.h> always. Add comments.
73747
73748 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73749
73750         * modules/strptime: New file.
73751         * lib/strptime.h: New file.
73752         * lib/strptime.c: New file.
73753         * m4/strptime.m4: New file.
73754
73755 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * MODULES.html.sh: New module mpsort.
73758         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73759
73760         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73761         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73763         All uses changed.
73764         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73765         All uses changed.
73766         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73767         to _Restrict_.
73768         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73769         the parameter matches the prototype.
73770
73771 2007-01-28  Jim Meyering  <jim@meyering.net>
73772
73773         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73774         sys/time.h here, reverting that part of the previous patch:
73775         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73776
73777 2007-01-28  Bruno Haible  <bruno@clisp.org>
73778
73779         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73780         value of $(SYS_TIME_H).
73781         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73782         remove it conditionally, too. [added by Jim Meyering]
73783         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73785         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73786         GETTIMEOFDAY_REPLACEMENT to 1.
73787
73788 2007-01-28  Bruno Haible  <bruno@clisp.org>
73789
73790         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73791         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73793         Set UNISTD_H instead of UNISTD_H2.
73794         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73795
73796 2007-01-28  Bruno Haible  <bruno@clisp.org>
73797
73798         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73799         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73800
73801 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73802
73803         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73804         (func_create_testdir): Ensure C locale for `grep' and `tr'
73805         character ranges.
73806         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73807         ACLOCAL_AMFLAGS parsing state machine.
73808
73809 2007-01-27  Bruno Haible  <bruno@clisp.org>
73810
73811         * modules/unistr/base: Update.
73812
73813 2007-01-27  Bruno Haible  <bruno@clisp.org>
73814
73815         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73816         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73817         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73818         modules/unistr/u32-mbtouc.
73819         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73820         * lib/unistr.h: Update.
73821         * lib/linebreak.c: Update.
73822         * modules/unistr/u32-mbtouc: Renamed from
73823         modules/unistr/u32-mbtouc-safe.
73824         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73825         * lib/unistr.h: Update.
73826         * lib/unistr/u32-to-u8.c: Update.
73827         * lib/unistr/u32-to-u16.c: Update.
73828
73829 2007-01-27  Bruno Haible  <bruno@clisp.org>
73830
73831         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73832         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73833         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73834         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73835         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73836         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73837         modules/unistr/u16-mbtouc.
73838         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73839         * lib/unistr.h: Update.
73840         * lib/linebreak.c: Update.
73841         * modules/linebreak: Update.
73842         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73843         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73844         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73845         * modules/unistr/u16-mbtouc: Renamed from
73846         modules/unistr/u16-mbtouc-safe.
73847         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73848         * lib/unistr.h: Update.
73849         * lib/unistr/u16-to-u8.c: Update.
73850         * modules/unistr/u16-to-u8: Update.
73851         * lib/unistr/u16-to-u32.c: Update.
73852         * modules/unistr/u16-to-u32: Update.
73853
73854 2007-01-27  Bruno Haible  <bruno@clisp.org>
73855
73856         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73857         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73858         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73859         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73860         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73861         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73862         modules/unistr/u8-mbtouc.
73863         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73864         * lib/unistr.h: Update.
73865         * lib/striconveh.c: Update.
73866         * modules/striconveh: Update.
73867         * lib/linebreak.c: Update.
73868         * modules/linebreak: Update.
73869         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73870         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73871         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73872         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73873         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73874         * lib/unistr.h: Update.
73875         * lib/striconveh.c: Update.
73876         * modules/striconveh: Update.
73877         * lib/unistr/u8-to-u16.c: Update.
73878         * modules/unistr/u8-to-u16: Update.
73879         * lib/unistr/u8-to-u32.c: Update.
73880         * modules/unistr/u8-to-u32: Update.
73881
73882 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73883
73884         Sync from Libtool.
73885         * lib/argz.c: Do not include strings.h nor memory.h, include
73886         string.h unconditionally.  Patch by Simon Josefsson.
73887
73888 2007-01-27  Bruno Haible  <bruno@clisp.org>
73889
73890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73891         from gl_HEADER_STRING_H_BODY.
73892         (gl_HEADER_STRING_H_BODY): Require it.
73893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73894         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73898         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73900         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73901         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73902         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73903         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73904         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73905         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73907         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73908
73909 2007-01-27  Bruno Haible  <bruno@clisp.org>
73910
73911         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73912         check_PROGRAMS into noinst_PROGRAMS.
73913         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73914         check_PROGRAMS in this case.
73915         (func_import): Set for_test to false.
73916         (func_create_testdir): Set for_test to true.
73917
73918 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73919             Bruno Haible  <bruno@clisp.org>
73920
73921         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73922         (Depends-on): Add string.
73923         (Includes): Use <string.h> instead of strcasestr.h.
73924         * modules/string (Makefile.am): Also substitute the value of
73925         REPLACE_STRCASESTR.
73926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73927         assume strcasestr is declared in <string.h> not <strings.h>. Also
73928         set REPLACE_STRCASESTR.
73929         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73930         REPLACE_STRCASESTR.
73931         * lib/strcasestr.h: Remove file.
73932         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73933         * lib/string_.h (strcasestr): New declaration.
73934
73935 2007-01-27  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/string_.h: Use 'extern'.
73938
73939 2007-01-27  Jim Meyering  <jim@meyering.net>
73940
73941         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73942         of set-but-not-used local, "q".
73943
73944         * lib/mempcpy.c: Include <config.h> before <string.h>.
73945         This fixes a compilation error on HP-UX, due to the system's
73946         "restrict"-using mempcpy prototype.
73947
73948 2007-01-26  Bruno Haible  <bruno@clisp.org>
73949
73950         Small optimization.
73951         * lib/javacomp.c: Include c-strstr.h.
73952          (is_envjavac_gcj): Use c_strstr instead of strstr.
73953         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73954
73955 2007-01-26  Bruno Haible  <bruno@clisp.org>
73956
73957         * MODULES.html.sh (Unicode string functions): Add the new modules.
73958
73959         * modules/uniconv/u32-strconv-to-locale: New file.
73960         * lib/uniconv/u32-strconv-to-locale.c: New file.
73961
73962         * modules/uniconv/u16-strconv-to-locale: New file.
73963         * lib/uniconv/u16-strconv-to-locale.c: New file.
73964
73965         * modules/uniconv/u8-strconv-to-locale: New file.
73966         * lib/uniconv/u8-strconv-to-locale.c: New file.
73967
73968         * modules/uniconv/u32-strconv-from-locale: New file.
73969         * lib/uniconv/u32-strconv-from-locale.c: New file.
73970
73971         * modules/uniconv/u16-strconv-from-locale: New file.
73972         * lib/uniconv/u16-strconv-from-locale.c: New file.
73973
73974         * modules/uniconv/u8-strconv-from-locale: New file.
73975         * lib/uniconv/u8-strconv-from-locale.c: New file.
73976
73977         * modules/uniconv/u32-strconv-to-enc: New file.
73978         * lib/uniconv/u32-strconv-to-enc.c: New file.
73979         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73980         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73981
73982         * modules/uniconv/u16-strconv-to-enc: New file.
73983         * lib/uniconv/u16-strconv-to-enc.c: New file.
73984         * lib/uniconv/u-strconv-to-enc.h: New file.
73985         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73986         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73987
73988         * modules/uniconv/u8-strconv-to-enc: New file.
73989         * lib/uniconv/u8-strconv-to-enc.c: New file.
73990         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73991         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73992
73993         * modules/uniconv/u32-strconv-from-enc: New file.
73994         * lib/uniconv/u32-strconv-from-enc.c: New file.
73995         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73996         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73997
73998         * modules/uniconv/u16-strconv-from-enc: New file.
73999         * lib/uniconv/u16-strconv-from-enc.c: New file.
74000         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74001         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74002
74003         * modules/uniconv/u8-strconv-from-enc: New file.
74004         * lib/uniconv/u8-strconv-from-enc.c: New file.
74005         * lib/uniconv/u-strconv-from-enc.h: New file.
74006         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74007         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74008
74009         * modules/uniconv/u32-conv-from-enc: New file.
74010         * lib/uniconv/u32-conv-from-enc.c: New file.
74011         * modules/uniconv/u32-conv-from-enc-tests: New file.
74012         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74013
74014         * modules/uniconv/u16-conv-from-enc: New file.
74015         * lib/uniconv/u16-conv-from-enc.c: New file.
74016         * lib/uniconv/u-conv-from-enc.h: New file.
74017         * modules/uniconv/u16-conv-from-enc-tests: New file.
74018         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74019
74020         * modules/uniconv/u8-conv-from-enc: New file.
74021         * lib/uniconv/u8-conv-from-enc.c: New file.
74022         * modules/uniconv/u8-conv-from-enc-tests: New file.
74023         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74024
74025         * modules/uniconv/base: New file.
74026         * lib/uniconv.h: New file.
74027
74028 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         * doc/gnulib-tool.texi (Initial import): Update to match current
74031         behavior with strdup module.
74032         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74033         * lib/memmem.h: Remove; all uses removed.  This is now done
74034         by <string.h>.
74035         * lib/mempcpy.h: Likewise.
74036         * lib/memrchr.h: Likewise.
74037         * lib/stpcpy.h: Likewise.
74038         * lib/stpncpy.h: Likewise.
74039         * lib/strcase.h: Likewise.
74040         * lib/strchrnul.h: Likewise.
74041         * lib/strdup.h: Likewise.
74042         * lib/strndup.h: Likewise.
74043         * lib/strnlen.h: Likewise.
74044         * lib/strpbrk.h: Likewise.
74045         * lib/strsep.h: Likewise.
74046         * lib/strstr.h: Likewise.
74047         * lib/strtok_r.h: Likewise.
74048         * lib/string_.h: New file.
74049         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74050         Rely on <string.h> instead.
74051         * lib/canon-host.c: Likewise.
74052         * lib/chdir-long.c: Likewise.
74053         * lib/concatpath.c: Likewise.
74054         * lib/exclude.c: Likewise.
74055         * lib/fchdir.c: Likewise.
74056         * lib/getaddrinfo.c: Likewise.
74057         * lib/getcwd.c: Likewise.
74058         * lib/getsubopt.c: Likewise.
74059         * lib/glob.c: Likewise.
74060         * lib/hard-locale.c: Likewise.
74061         * lib/iconvme.c: Likewise.
74062         * lib/javacomp.c: Likewise.
74063         * lib/mempcpy.c: Likewise.
74064         * lib/memrchr.c: Likewise.
74065         * lib/regex_internal.h: Likewise.
74066         * lib/stpncpy.c: Likewise.
74067         * lib/strcasecmp.c: Likewise.
74068         * lib/strchrnul.c: Likewise.
74069         * lib/strdup.c: Likewise.
74070         * lib/striconv.c: Likewise.
74071         * lib/striconveh.c: Likewise.
74072         * lib/striconveha.c: Likewise.
74073         * lib/strncasecmp.c: Likewise.
74074         * lib/strndup.c: Likewise.
74075         * lib/strnlen.c: Likewise.
74076         * lib/strsep.c: Likewise.
74077         * lib/strstr.c: Likewise.
74078         * lib/strtok_r.c: Likewise.
74079         * lib/userspec.c: Likewise.
74080         * lib/w32spawn.h: Likewise.
74081         * lib/xstrndup.c: Likewise.
74082         * lib/mountlist.c (strstr): Remove decl.
74083         * m4/string_h.m4: New file.
74084         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74085         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74087         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74088         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74089         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74090         Set REPLACE_STRCASECMP if necessary.
74091         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74092         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74093         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74094         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74095         HAVE_DECL_STRDUP if necessary.
74096         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74097         since gl_FUNC_STRNDUP does that now.
74098         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74099         Check for decl here...
74100         (gl_PREREQ_STRNLEN): ... not here.
74101         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74102         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74103         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74104         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74105         necessary.
74106         * modules/string: New file.
74107         * modules/memmem (Files): Remove special-purpose include file.
74108         (Depends-on): Add string.
74109         (Include): Include <string.h>, not the removed file.
74110         * modules/mempcpy: Likewise.
74111         * modules/memrchr: Likewise.
74112         * modules/stpcpy: Likewise.
74113         * modules/stpncpy: Likewise.
74114         * modules/strcase: Likewise.
74115         * modules/strchrnul: Likewise.
74116         * modules/strdup: Likewise.
74117         * modules/strndup: Likewise.
74118         * modules/strnlen: Likewise.
74119         * modules/strpbrk: Likewise.
74120         * modules/strsep: Likewise.
74121         * modules/strstr: Likewise.
74122         * modules/strtok_r: Likewise.
74123         * tests/test-dirname.c: Don't include "strdup.h", since
74124         <string.h> now suffices.
74125         * tests/test-memmem.c: Don't include "memmem.h", since
74126         <string.h> now suffices.
74127
74128 2007-01-25  Bruno Haible  <bruno@clisp.org>
74129
74130         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74131         *resultp is 0.
74132
74133         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74134         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74135         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74136         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74137
74138         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74139         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74140         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74141         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74142         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74143         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74144
74145 2007-01-24  Bruno Haible  <bruno@clisp.org>
74146
74147         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74149         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74150         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74151         gl_FUNC_FTS_CORE.
74152         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74153         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74154         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74155         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74156         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74157         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74158         gl_FUNC_FCHOWNAT.
74159         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74160         gl_FUNC_STRFTIME.
74161         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74162         Reported by Ralf Wildenhues.
74163
74164 2007-01-24  Bruno Haible  <bruno@clisp.org>
74165
74166         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74167         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74168         gl_GETADDRINFO.
74169         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74170         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74171         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74172
74173 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74176         Don't use 'exit'; just return from 'main'.
74177         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74178
74179         * lib/fnmatch_.h: Readjust white space and comments to match
74180         glibc, to avoid spurious diffs.
74181
74182 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74185         2004-12-01 change by Jakub Jelinek, since this code won't compile
74186         if !LIBC.  Problem reported by Bob Proulx.
74187
74188 2007-01-23  Bruno Haible  <bruno@clisp.org>
74189
74190         * lib/striconveh.c: Include c-strcaseeq.h.
74191         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74192         * modules/striconveh (Depends-on): Add c-strcaseeq.
74193
74194 2007-01-23  Bruno Haible  <bruno@clisp.org>
74195
74196         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74197
74198         * modules/c-strcaseeq: New file.
74199         * lib/c-strcaseeq.h: New file.
74200
74201         * modules/streq: New file.
74202         * lib/streq.h: New file.
74203
74204 2007-01-23  Bruno Haible  <bruno@clisp.org>
74205
74206         * modules/striconveha-tests: New file.
74207         * tests/test-striconveha.c: New file.
74208
74209         * lib/striconveha.h: Include <stdbool.h>.
74210         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74211         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74212         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74213         (mem_iconveha): New function.
74214         (str_iconveha_notranslit): Renamed from str_iconveha.
74215         (str_iconveha): New function.
74216         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74217         c-strcase.
74218
74219 2007-01-23  Bruno Haible  <bruno@clisp.org>
74220
74221         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74222         encodings without forgiving before trying any encoding with handler.
74223         (str_iconveha): Try all encodings without forgiving before trying any
74224         encoding with handler.
74225
74226 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         Import the following changes from libc.
74229
74230         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74231
74232         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74233
74234         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74235
74236         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74237         normal_bracket label.
74238
74239         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74240
74241         [BZ #361]
74242         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74243         to normal_bracket after fetching the next character.
74244
74245 2007-01-22  Bruno Haible  <bruno@clisp.org>
74246
74247         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74248         argument.
74249         * lib/striconveh.c (iconv_carefully_1): New function.
74250         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74251         argument.
74252         (str_cd_iconveh): Update.
74253         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74254         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74255         * tests/test-striconveh.c (MAGIC): New macro.
74256         (new_offsets): New function.
74257         (main): Test call with and without offsets.
74258
74259 2007-01-22  Bruno Haible  <bruno@clisp.org>
74260
74261         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74262         * modules/sys_select (Makefile.am): Likewise.
74263         * modules/sys_socket (Makefile.am): Likewise.
74264         * modules/sys_time (Makefile.am): Likewise.
74265
74266 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * modules/gettimeofday (License): Change from GPL to LGPL, since
74269         gettimeofday is a library function.
74270
74271 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74272
74273         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74274
74275 2007-01-21  Bruno Haible  <bruno@clisp.org>
74276
74277         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74278
74279 2007-01-21  Bruno Haible  <bruno@clisp.org>
74280
74281         * modules/striconveha: New file.
74282         * lib/striconveha.h: New file.
74283         * lib/striconveha.c: New file.
74284         * MODULES.html.sh (Internationalization functions): Add striconveha.
74285         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74286         string.
74287         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74288
74289 2007-01-21  Bruno Haible  <bruno@clisp.org>
74290
74291         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74292         * lib/striconveh.c (str_iconveh): Likewise.
74293
74294 2007-01-21  Bruno Haible  <bruno@clisp.org>
74295
74296         * lib/striconveh.h (mem_iconveh): New declaration.
74297         * lib/striconveh.c (mem_iconveh): New function.
74298         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74299
74300 2007-01-21  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74303
74304         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74305         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74306         original result buffer.
74307         (str_cd_iconveh): Update.
74308         * tests/test-striconveh.c (main): Update.
74309
74310         * lib/striconv.h (mem_cd_iconv): Change specification.
74311         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74312         result buffer.
74313         (str_cd_iconv): Update.
74314         * tests/test-striconv.c (main): Update.
74315
74316 2007-01-21  Bruno Haible  <bruno@clisp.org>
74317
74318         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74319
74320 2007-01-20  Jim Meyering  <jim@meyering.net>
74321
74322         * lib/userspec.c (parse_with_separator): If a user or group string
74323         starts with "+", skip the corresponding name-to-ID look-up, since
74324         such a look-up must fail: user and group names may not include "+".
74325
74326 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74327
74328         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74329         since we now assume the sys_time module.
74330         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74331         check for sys/time.h; no longer needed.
74332         * modules/poll (Depends-on): Depend on sys_time.
74333
74334 2007-01-18  Bruno Haible  <bruno@clisp.org>
74335
74336         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74337         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74338
74339         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74340         gettimeofday.
74341
74342         * tests/test-gettimeofday.c: Include <time.h>.
74343         (dummy): Remove variable.
74344
74345         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74346         gl_HEADER_SYS_TIME_H.
74347         (gl_HEADER_SYS_TIME_H): New macro.
74348
74349         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74350         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74351         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74352         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74353         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74354         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74355         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74356         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74357         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74358         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74359         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74360
74361         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74362         last change; it caused a compilation error when cross-compiling to
74363         Cygwin.
74364
74365 2007-01-18  Jim Meyering  <jim@meyering.net>
74366
74367         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74368         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74369         than the race-prone "test -d sys || mkdir sys".
74370         (configure.ac): Use AC_PROG_MKDIR_P.
74371         * modules/sys_select: Likewise.
74372         * modules/sys_socket: Likewise.
74373         * modules/sys_time: Likewise.
74374
74375 2007-01-18  Eric Blake  <ebb9@byu.net>
74376
74377         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74378         replace gettimeofday.
74379         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74380         name, to avoid infinite recursion.
74381
74382 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74385         module sys_time.
74386         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74387         assume timespec.h defines struct timeval.
74388         * lib/settime.c: Likewise.
74389         * lib/utimens.c: Likewise.
74390         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74391         since we now assume the gettimeofday module.
74392         * lib/tempname.c (__gen_tempname): Likewise.
74393         * lib/gettimeofday.h: Remove.
74394         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74395         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74396         Include <time.h>, for 'time()'.
74397         (localtime_buffer_addr): Also use this workaround if
74398         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74399         to simplify the uses.  All uses changed.
74400         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74401         that #undef is inside {}, and 'const' follows type name consistently.
74402         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74403         (gettimeofday): Do not use the maximum possible value for
74404         tv->tv_usec, since that might break usages other than ls.c.
74405         Instead, we'll leave ls.c alone.  This undoes today's patch
74406         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74407         we've never observed the problem but might as well keep the
74408         canary.
74409         * lib/nanosleep.c: Include timespec.h first, for interface check.
74410         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74411         now assume the sys_time module.
74412         * lib/tempname.c: Likewise.
74413         * lib/timespec.h: Likewise.
74414         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74415         needed.
74416         * lib/strftime.c: Likewise.
74417         * lib/timespec.h: Likewise.
74418         * lib/posixtm.c: Include posixtm.h first, for interface check.
74419         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74420         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74421         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74422         * lib/sys_time_.h: New file.
74423         * lib/timespec.h (struct timespec): Use long int, not long.
74424         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74425         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74426         Remove obsolescent call to AC_HEADER_TIME.
74427         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74430         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74431         Likewise.
74432         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74433         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74435         into the sys_time module.  Check for gettimeofday just once.
74436         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74437         for gettimeofday signature to just check the signature.  Merely
74438         compile it, since linking doesn't test signature.  Improve test for
74439         whether gettimeofday.o is actually needed.
74440         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74441         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74442         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74443         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74444         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74445         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74446         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74447         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74448         than worrying about sys/time.h.
74449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74450         Don't bother worrying about TIME_WITH_SYS_TIME.
74451         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74452         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74453         * m4/sys_time_h.m4: New file.
74454         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74455         Don't include sys/time.h.  Return from main rather than exiting.
74456         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74457         all uses changed.
74458         * modules/gethrxtime (Depends-on): Add sys_time.
74459         * modules/gettime (Depends-on): Likewise.
74460         * modules/gettimeofday (Depends-on): Likewise.
74461         * modules/nanosleep (Depends-on): Likewise.
74462         * modules/settime (Depends-on): Likewise.
74463         * modules/tempname (Depends-on): Likewise.
74464         * modules/utimens (Depends-on): Likewise.
74465         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74466         (Include): Change back to <sys/time.h>.
74467         (Maintainer): Add self.
74468         * modules/sys_time: New file.
74469         * modules/tempname (Depends-on): Add gettimeofday.
74470         * tests/test-gettimeofday.c: Include <sys/time.h>
74471         rather than gettimeofday.h.
74472
74473 2007-01-17  Bruno Haible  <bruno@clisp.org>
74474
74475         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74476         the license default to GPL.
74477         (func_create_testdir): Don't complain if a module is LGPL and its
74478         tests module depends on GPLed modules.
74479
74480 2007-01-17  Bruno Haible  <bruno@clisp.org>
74481
74482         * lib/gettimeofday.c (gettimeofday): Add code for the case
74483         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74484         maximum possible value for tv->tv_usec, rather than the minimum one.
74485
74486 2005-10-08  Martin Lambers  <marlam@marlam.de>
74487 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74488 2007-01-16  Bruno Haible  <bruno@clisp.org>
74489
74490         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74491         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74492         gl_FUNC_GETTIMEOFDAY.
74493         (Include): Add gettimeofday.h.
74494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74495         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74496         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74497         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74498         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74499         * lib/gettimeofday.h: New file.
74500         * lib/gettimeofday.c: Include <sys/timeb.h>.
74501         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74502         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74503         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74504         fall back on time().
74505
74506         * tests/test-gettimeofday.c: New file.
74507         * modules/gettimeofday-tests: New file.
74508
74509 2007-01-16  Eric Blake  <ebb9@byu.net>
74510
74511         * modules/fnmatch (Depends-on): Depend on wchar.
74512         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74513         * m4/fnmatch.m4: Likewise.
74514         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74515         * m4/mbchar.m4: Likewise.
74516         * modules/mbswidth (Depends-on): Depend on wchar.
74517         * lib/mbswidth.c: Assume <wchar.h>.
74518         * m4/mbswidth.m4: Likewise.
74519         * modules/quotearg (Depends-on): Depend on wchar.
74520         * lib/quotearg.c: Assume <wchar.h>.
74521         * m4/quotearg.m4: Likewise.
74522         * modules/regex (Depends-on): Depend on wchar.
74523         * lib/regex_internal.h: Assume <wchar.h>.
74524         * m4/regex.m4: Likewise.
74525         * modules/stdint (Depends-on): Depend on wchar.
74526         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74527         * m4/stdint.m4: Likewise.
74528         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74529         * modules/strftime (Depends-on): Depend on wchar.
74530         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74531         * modules/strtol (Depends-on): Depend on wchar.
74532         * lib/strtol.c: Assume <wchar.h>.
74533         * modules/wcwidth (Depends-on): Depend on wchar.
74534         * lib/wcwidth.h: Assume <wchar.h>.
74535         * m4/wcwidth.m4: Likewise.
74536
74537 2007-01-16  Bruno Haible  <bruno@clisp.org>
74538
74539         * modules/csharpexec-script: New, created from...
74540         * modules/csharpexec: ... this.
74541
74542 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74543
74544         * modules/javaexec-script: New, created from...
74545         * modules/javaexec: ... this.
74546
74547 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74548
74549         * modules/poll (Dependencies): Add sys_select.
74550
74551 2007-01-15  Jim Meyering  <jim@meyering.net>
74552
74553         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74554         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74555         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74556         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74557
74558 2007-01-15  Bruno Haible  <bruno@clisp.org>
74559
74560         * modules/striconveh: New file.
74561         * lib/striconveh.h: New file.
74562         * lib/striconveh.c: New file.
74563         * MODULES.html.sh (Internationalization functions): Add striconveh.
74564
74565         * modules/striconveh-tests: New file.
74566         * tests/test-striconveh.c: New file.
74567
74568 2007-01-15  Bruno Haible  <bruno@clisp.org>
74569
74570         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74571         not from GNU libiconv or GNU libc.
74572
74573 2007-01-15  Bruno Haible  <bruno@clisp.org>
74574
74575         * doc/gnulib-intro.texi (Copyright): Explain the different license
74576         terms for module descriptions, autoconf macros, tests, documentation.
74577
74578 2007-01-14  Bruno Haible  <bruno@clisp.org>
74579
74580         * modules/striconv-tests: New file.
74581         * tests/test-striconv.c: New file.
74582
74583 2007-01-14  Bruno Haible  <bruno@clisp.org>
74584
74585         * modules/iconv-tests: New file.
74586         * tests/test-iconv.c: New file.
74587
74588 2007-01-14  Bruno Haible  <bruno@clisp.org>
74589
74590         * gnulib-tool (func_get_license): For test modules, use the license of
74591         the main module.
74592
74593 2007-01-14  Bruno Haible  <bruno@clisp.org>
74594
74595         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74596         if iconv is found to exist.
74597
74598 2007-01-14  Bruno Haible  <bruno@clisp.org>
74599
74600         * modules/c-ctype-tests: New file.
74601         * tests/test-c-ctype.c: New file.
74602
74603 2007-01-14  Bruno Haible  <bruno@clisp.org>
74604
74605         * modules/binary-io-tests: New file.
74606         * tests/test-binary-io.sh: New file.
74607         * tests/test-binary-io.c: New file.
74608
74609 2007-01-14  Bruno Haible  <bruno@clisp.org>
74610
74611         * modules/array-oset-tests: New file.
74612         * tests/test-array_oset.c: New file.
74613
74614 2007-01-14  Bruno Haible  <bruno@clisp.org>
74615
74616         * modules/array-list-tests: New file.
74617         * tests/test-array_list.c: New file.
74618
74619 2007-01-14  Bruno Haible  <bruno@clisp.org>
74620
74621         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74622         and make.
74623         Reported by Simon Josefsson in
74624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74625
74626 2007-01-14  Bruno Haible  <bruno@clisp.org>
74627
74628         * modules/allocsa-tests: New file.
74629         * tests/test-allocsa.c: New file.
74630
74631 2007-01-14  Bruno Haible  <bruno@clisp.org>
74632
74633         * modules/fchdir (Depends-on): Add absolute-header.
74634         * modules/unistd (Depends-on): Likewise.
74635
74636 2006-12-30  Bruno Haible  <bruno@clisp.org>
74637
74638         * modules/fchdir: New file.
74639         * modules/unistd (Files): Add lib/unistd_.h.
74640         (Makefile.am): Generate unistd.h from unistd_.h.
74641         * lib/fchdir.c: New file.
74642         * lib/dirent_.h: New file.
74643         * lib/unistd_.h: New file.
74644         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74645         * m4/fchdir.m4: New file.
74646         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74647         (gl_HEADER_UNISTD): Invoke it.
74648         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74649         function.
74650         * lib/backupfile.c (opendir, closedir): Undefine.
74651         * lib/chown.c (open, close): Undefine.
74652         * lib/clean-temp.c (open, close): Undefine.
74653         * lib/copy-file.c (open, close): Undefine.
74654         * lib/execute.c (open, close): Undefine.
74655         * lib/fsusage.c (open, close): Undefine.
74656         * lib/gc-gnulib.c (open, close): Undefine.
74657         * lib/getcwd.c (opendir, closedir): Undefine.
74658         * lib/glob.c (opendir, closedir): Undefine.
74659         * lib/javacomp.c (open, close): Undefine.
74660         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74661         * lib/openat-proc.c (open, close): Undefine.
74662         * lib/pagealign_alloc.c (open, close): Undefine.
74663         * lib/pipe.c (open, close): Undefine.
74664         * lib/progreloc.c (open, close): Undefine.
74665         * lib/savedir.c (opendir, closedir): Undefine.
74666         * lib/utime.c (open, close): Undefine.
74667         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74668
74669 2007-01-10  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74672
74673 2007-01-12  Eric Blake  <ebb9@byu.net>
74674
74675         Provide a robust <wchar.h>.  Further simplifications are now
74676         possible in other modules, but not included here.
74677         * modules/wchar: New module.
74678         * m4/wchar.m4: New file.
74679         * lib/wchar_.h: Likewise.
74680         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74681         of the new module.
74682         * MODULES.html.sh (Extended multibyte and wide character utilities):
74683         New section.
74684
74685 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74688         to a reasonable default for memory allocation.
74689         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74690         file system that reports garbage st_size values for symlinks.
74691         Problem reported by Liyang Hu.
74692
74693 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74694
74695         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74696         Emacs .#* auto-save files).
74697
74698 2007-01-11  Bruno Haible  <bruno@clisp.org>
74699
74700         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74701         directory.
74702
74703 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         Use @...@ consistently in lib/wctype_.h.
74706         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74707         on it being set to 1 or 0.
74708         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74709         go back to AC_SUBSTing it.
74710         * modules/wctype (Makefile.am): Undo previous change.
74711
74712 2007-01-10  Eric Blake  <ebb9@byu.net>
74713
74714         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74715         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74716         * modules/wctype (Makefile.am): Likewise.
74717         Reported by Chris McGuire.
74718
74719 2007-01-10  Jim Meyering  <jim@meyering.net>
74720
74721         fts.c: a small readability/maintainability improvement
74722         * lib/fts.c (fts_read): Make this code slightly more readable and
74723         maintainable by hoisting the "sp->fts_cur = p" assignments to
74724         immediately follow the statements that set P.  Derived from
74725         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74726
74727 2007-01-10  Eric Blake  <ebb9@byu.net>
74728
74729         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74730         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74732         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74733         Reported by Chris McGuire.
74734
74735 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74736
74737         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74738         in sed script.
74739
74740 2007-01-09  Bruno Haible  <bruno@clisp.org>
74741
74742         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74743         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74744         variables.
74745         (func_module): Use them.
74746
74747 2007-01-09  Bruno Haible  <bruno@clisp.org>
74748
74749         * modules/unistr/base: New file.
74750         * lib/unistr.h: New file.
74751
74752         * modules/unistr/u8-to-u16: New file.
74753         * lib/unistr/u8-to-u16.c: New file.
74754
74755         * modules/unistr/u8-to-u32: New file.
74756         * lib/unistr/u8-to-u32.c: New file.
74757
74758         * modules/unistr/u16-to-u8: New file.
74759         * lib/unistr/u16-to-u8.c: New file.
74760
74761         * modules/unistr/u16-to-u32: New file.
74762         * lib/unistr/u16-to-u32.c: New file.
74763
74764         * modules/unistr/u32-to-u8: New file.
74765         * lib/unistr/u32-to-u8.c: New file.
74766
74767         * modules/unistr/u32-to-u16: New file.
74768         * lib/unistr/u32-to-u16.c: New file.
74769
74770         * modules/unistr/u8-check: New file.
74771         * modules/unistr/u16-check: New file.
74772         * modules/unistr/u32-check: New file.
74773         * lib/unistr/u8-check.c: New file.
74774         * lib/unistr/u16-check.c: New file.
74775         * lib/unistr/u32-check.c: New file.
74776
74777         * modules/unistr/u8-chr: New file.
74778         * modules/unistr/u16-chr: New file.
74779         * modules/unistr/u32-chr: New file.
74780         * lib/unistr/u8-chr.c: New file.
74781         * lib/unistr/u16-chr.c: New file.
74782         * lib/unistr/u32-chr.c: New file.
74783
74784         * modules/unistr/u8-cmp: New file.
74785         * modules/unistr/u16-cmp: New file.
74786         * modules/unistr/u32-cmp: New file.
74787         * lib/unistr/u8-cmp.c: New file.
74788         * lib/unistr/u16-cmp.c: New file.
74789         * lib/unistr/u32-cmp.c: New file.
74790
74791         * modules/unistr/u8-cpy: New file.
74792         * modules/unistr/u16-cpy: New file.
74793         * modules/unistr/u32-cpy: New file.
74794         * lib/unistr/u8-cpy.c: New file.
74795         * lib/unistr/u16-cpy.c: New file.
74796         * lib/unistr/u32-cpy.c: New file.
74797         * lib/unistr/u-cpy.h: New file.
74798
74799         * modules/unistr/u8-cpy-alloc: New file.
74800         * modules/unistr/u16-cpy-alloc: New file.
74801         * modules/unistr/u32-cpy-alloc: New file.
74802         * lib/unistr/u8-cpy-alloc.c: New file.
74803         * lib/unistr/u16-cpy-alloc.c: New file.
74804         * lib/unistr/u32-cpy-alloc.c: New file.
74805         * lib/unistr/u-cpy-alloc.h: New file.
74806
74807         * modules/unistr/u8-endswith: New file.
74808         * modules/unistr/u16-endswith: New file.
74809         * modules/unistr/u32-endswith: New file.
74810         * lib/unistr/u8-endswith.c: New file.
74811         * lib/unistr/u16-endswith.c: New file.
74812         * lib/unistr/u32-endswith.c: New file.
74813         * lib/unistr/u-endswith.h: New file.
74814
74815         * modules/unistr/u8-mblen: New file.
74816         * modules/unistr/u16-mblen: New file.
74817         * modules/unistr/u32-mblen: New file.
74818         * lib/unistr/u8-mblen.c: New file.
74819         * lib/unistr/u16-mblen.c: New file.
74820         * lib/unistr/u32-mblen.c: New file.
74821
74822         * modules/unistr/u8-mbtouc: New file.
74823         * modules/unistr/u16-mbtouc: New file.
74824         * modules/unistr/u32-mbtouc: New file.
74825         * lib/unistr/u8-mbtouc.c: New file.
74826         * lib/unistr/u16-mbtouc.c: New file.
74827         * lib/unistr/u32-mbtouc.c: New file.
74828
74829         * modules/unistr/u8-mbtouc-safe: New file.
74830         * modules/unistr/u16-mbtouc-safe: New file.
74831         * modules/unistr/u32-mbtouc-safe: New file.
74832         * lib/unistr/u8-mbtouc-safe.c: New file.
74833         * lib/unistr/u16-mbtouc-safe.c: New file.
74834         * lib/unistr/u32-mbtouc-safe.c: New file.
74835
74836         * modules/unistr/u8-move: New file.
74837         * modules/unistr/u16-move: New file.
74838         * modules/unistr/u32-move: New file.
74839         * lib/unistr/u8-move.c: New file.
74840         * lib/unistr/u16-move.c: New file.
74841         * lib/unistr/u32-move.c: New file.
74842         * lib/unistr/u-move.h: New file.
74843
74844         * modules/unistr/u8-next: New file.
74845         * modules/unistr/u16-next: New file.
74846         * modules/unistr/u32-next: New file.
74847         * lib/unistr/u8-next.c: New file.
74848         * lib/unistr/u16-next.c: New file.
74849         * lib/unistr/u32-next.c: New file.
74850
74851         * modules/unistr/u8-prev: New file.
74852         * modules/unistr/u16-prev: New file.
74853         * modules/unistr/u32-prev: New file.
74854         * lib/unistr/u8-prev.c: New file.
74855         * lib/unistr/u16-prev.c: New file.
74856         * lib/unistr/u32-prev.c: New file.
74857
74858         * modules/unistr/u8-set: New file.
74859         * modules/unistr/u16-set: New file.
74860         * modules/unistr/u32-set: New file.
74861         * lib/unistr/u8-set.c: New file.
74862         * lib/unistr/u16-set.c: New file.
74863         * lib/unistr/u32-set.c: New file.
74864         * lib/unistr/u-set.h: New file.
74865
74866         * modules/unistr/u8-startswith: New file.
74867         * modules/unistr/u16-startswith: New file.
74868         * modules/unistr/u32-startswith: New file.
74869         * lib/unistr/u8-startswith.c: New file.
74870         * lib/unistr/u16-startswith.c: New file.
74871         * lib/unistr/u32-startswith.c: New file.
74872         * lib/unistr/u-startswith.h: New file.
74873
74874         * modules/unistr/u8-stpcpy: New file.
74875         * modules/unistr/u16-stpcpy: New file.
74876         * modules/unistr/u32-stpcpy: New file.
74877         * lib/unistr/u8-stpcpy.c: New file.
74878         * lib/unistr/u16-stpcpy.c: New file.
74879         * lib/unistr/u32-stpcpy.c: New file.
74880         * lib/unistr/u-stpcpy.h: New file.
74881
74882         * modules/unistr/u8-stpncpy: New file.
74883         * modules/unistr/u16-stpncpy: New file.
74884         * modules/unistr/u32-stpncpy: New file.
74885         * lib/unistr/u8-stpncpy.c: New file.
74886         * lib/unistr/u16-stpncpy.c: New file.
74887         * lib/unistr/u32-stpncpy.c: New file.
74888         * lib/unistr/u-stpncpy.h: New file.
74889
74890         * modules/unistr/u8-strcat: New file.
74891         * modules/unistr/u16-strcat: New file.
74892         * modules/unistr/u32-strcat: New file.
74893         * lib/unistr/u8-strcat.c: New file.
74894         * lib/unistr/u16-strcat.c: New file.
74895         * lib/unistr/u32-strcat.c: New file.
74896         * lib/unistr/u-strcat.h: New file.
74897
74898         * modules/unistr/u8-strchr: New file.
74899         * modules/unistr/u16-strchr: New file.
74900         * modules/unistr/u32-strchr: New file.
74901         * lib/unistr/u8-strchr.c: New file.
74902         * lib/unistr/u16-strchr.c: New file.
74903         * lib/unistr/u32-strchr.c: New file.
74904
74905         * modules/unistr/u8-strcmp: New file.
74906         * modules/unistr/u16-strcmp: New file.
74907         * modules/unistr/u32-strcmp: New file.
74908         * lib/unistr/u8-strcmp.c: New file.
74909         * lib/unistr/u16-strcmp.c: New file.
74910         * lib/unistr/u32-strcmp.c: New file.
74911
74912         * modules/unistr/u8-strcpy: New file.
74913         * modules/unistr/u16-strcpy: New file.
74914         * modules/unistr/u32-strcpy: New file.
74915         * lib/unistr/u8-strcpy.c: New file.
74916         * lib/unistr/u16-strcpy.c: New file.
74917         * lib/unistr/u32-strcpy.c: New file.
74918         * lib/unistr/u-strcpy.h: New file.
74919
74920         * modules/unistr/u8-strcspn: New file.
74921         * modules/unistr/u16-strcspn: New file.
74922         * modules/unistr/u32-strcspn: New file.
74923         * lib/unistr/u8-strcspn.c: New file.
74924         * lib/unistr/u16-strcspn.c: New file.
74925         * lib/unistr/u32-strcspn.c: New file.
74926         * lib/unistr/u-strcspn.h: New file.
74927
74928         * modules/unistr/u8-strdup: New file.
74929         * modules/unistr/u16-strdup: New file.
74930         * modules/unistr/u32-strdup: New file.
74931         * lib/unistr/u8-strdup.c: New file.
74932         * lib/unistr/u16-strdup.c: New file.
74933         * lib/unistr/u32-strdup.c: New file.
74934         * lib/unistr/u-strdup.h: New file.
74935
74936         * modules/unistr/u8-strlen: New file.
74937         * modules/unistr/u16-strlen: New file.
74938         * modules/unistr/u32-strlen: New file.
74939         * lib/unistr/u8-strlen.c: New file.
74940         * lib/unistr/u16-strlen.c: New file.
74941         * lib/unistr/u32-strlen.c: New file.
74942         * lib/unistr/u-strlen.h: New file.
74943
74944         * modules/unistr/u8-strmblen: New file.
74945         * modules/unistr/u16-strmblen: New file.
74946         * modules/unistr/u32-strmblen: New file.
74947         * lib/unistr/u8-strmblen.c: New file.
74948         * lib/unistr/u16-strmblen.c: New file.
74949         * lib/unistr/u32-strmblen.c: New file.
74950
74951         * modules/unistr/u8-strmbtouc: New file.
74952         * modules/unistr/u16-strmbtouc: New file.
74953         * modules/unistr/u32-strmbtouc: New file.
74954         * lib/unistr/u8-strmbtouc.c: New file.
74955         * lib/unistr/u16-strmbtouc.c: New file.
74956         * lib/unistr/u32-strmbtouc.c: New file.
74957
74958         * modules/unistr/u8-strncat: New file.
74959         * modules/unistr/u16-strncat: New file.
74960         * modules/unistr/u32-strncat: New file.
74961         * lib/unistr/u8-strncat.c: New file.
74962         * lib/unistr/u16-strncat.c: New file.
74963         * lib/unistr/u32-strncat.c: New file.
74964         * lib/unistr/u-strncat.h: New file.
74965
74966         * modules/unistr/u8-strncmp: New file.
74967         * modules/unistr/u16-strncmp: New file.
74968         * modules/unistr/u32-strncmp: New file.
74969         * lib/unistr/u8-strncmp.c: New file.
74970         * lib/unistr/u16-strncmp.c: New file.
74971         * lib/unistr/u32-strncmp.c: New file.
74972
74973         * modules/unistr/u8-strncpy: New file.
74974         * modules/unistr/u16-strncpy: New file.
74975         * modules/unistr/u32-strncpy: New file.
74976         * lib/unistr/u8-strncpy.c: New file.
74977         * lib/unistr/u16-strncpy.c: New file.
74978         * lib/unistr/u32-strncpy.c: New file.
74979         * lib/unistr/u-strncpy.h: New file.
74980
74981         * modules/unistr/u8-strnlen: New file.
74982         * modules/unistr/u16-strnlen: New file.
74983         * modules/unistr/u32-strnlen: New file.
74984         * lib/unistr/u8-strnlen.c: New file.
74985         * lib/unistr/u16-strnlen.c: New file.
74986         * lib/unistr/u32-strnlen.c: New file.
74987         * lib/unistr/u-strnlen.h: New file.
74988
74989         * modules/unistr/u8-strpbrk: New file.
74990         * modules/unistr/u16-strpbrk: New file.
74991         * modules/unistr/u32-strpbrk: New file.
74992         * lib/unistr/u8-strpbrk.c: New file.
74993         * lib/unistr/u16-strpbrk.c: New file.
74994         * lib/unistr/u32-strpbrk.c: New file.
74995         * lib/unistr/u-strpbrk.h: New file.
74996
74997         * modules/unistr/u8-strrchr: New file.
74998         * modules/unistr/u16-strrchr: New file.
74999         * modules/unistr/u32-strrchr: New file.
75000         * lib/unistr/u8-strrchr.c: New file.
75001         * lib/unistr/u16-strrchr.c: New file.
75002         * lib/unistr/u32-strrchr.c: New file.
75003
75004         * modules/unistr/u8-strspn: New file.
75005         * modules/unistr/u16-strspn: New file.
75006         * modules/unistr/u32-strspn: New file.
75007         * lib/unistr/u8-strspn.c: New file.
75008         * lib/unistr/u16-strspn.c: New file.
75009         * lib/unistr/u32-strspn.c: New file.
75010         * lib/unistr/u-strspn.h: New file.
75011
75012         * modules/unistr/u8-strstr: New file.
75013         * modules/unistr/u16-strstr: New file.
75014         * modules/unistr/u32-strstr: New file.
75015         * lib/unistr/u8-strstr.c: New file.
75016         * lib/unistr/u16-strstr.c: New file.
75017         * lib/unistr/u32-strstr.c: New file.
75018         * lib/unistr/u-strstr.h: New file.
75019
75020         * modules/unistr/u8-strtok: New file.
75021         * modules/unistr/u16-strtok: New file.
75022         * modules/unistr/u32-strtok: New file.
75023         * lib/unistr/u8-strtok.c: New file.
75024         * lib/unistr/u16-strtok.c: New file.
75025         * lib/unistr/u32-strtok.c: New file.
75026         * lib/unistr/u-strtok.h: New file.
75027
75028         * modules/unistr/u8-uctomb: New file.
75029         * modules/unistr/u16-uctomb: New file.
75030         * modules/unistr/u32-uctomb: New file.
75031         * lib/unistr/u8-uctomb.c: New file.
75032         * lib/unistr/u16-uctomb.c: New file.
75033         * lib/unistr/u32-uctomb.c: New file.
75034
75035         * MODULES.html.sh (Unicode string functions): Add the new modules.
75036
75037 2007-01-08  Bruno Haible  <bruno@clisp.org>
75038
75039         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75040         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75041         subdirectories.
75042
75043 2007-01-08  Karl Berry  <karl@gnu.org>
75044
75045         * doc/error.texi: mention that main() fns must set program_name
75046         when progname is used.
75047
75048 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75051         WCTYPE_H is empty, for the benefit of builds from non-distclean
75052         directories.  Problem reported by Eric Blake in
75053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75054
75055 2007-01-08  Bruno Haible  <bruno@clisp.org>
75056
75057         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75058         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75059         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75060         PROVIDE_CANONICALIZE_FILENAME_MODE.
75061         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75062
75063 2007-01-08  Bruno Haible  <bruno@clisp.org>
75064
75065         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75066         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75067         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75068         * lib/fts.c: Likewise.
75069         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75070
75071 2006-12-25  Bruno Haible  <bruno@clisp.org>
75072
75073         * modules/utf8-ucs4-safe: New file.
75074         * lib/utf8-ucs4-safe.h: New file.
75075         * lib/unistr/utf8-ucs4-safe.c: New file.
75076
75077         * modules/utf16-ucs4-safe: New file.
75078         * lib/utf16-ucs4-safe.h: New file.
75079         * lib/unistr/utf16-ucs4-safe.c: New file.
75080
75081         * MODULES.html.sh (Unicode string functions): Add the new modules.
75082
75083 2007-01-08  Bruno Haible  <bruno@clisp.org>
75084
75085         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75086         (Depends-on): Add unitypes.
75087         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75088         (u8_mbtouc_aux): Move out to separate file.
75089         (u8_mbtouc): Use ucs4_t, uint8_t types.
75090         * lib/unistr/utf8-ucs4.c: New file.
75091
75092         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75093         (Depends-on): Add unitypes.
75094         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75095         (u16_mbtouc_aux): Move out to separate file.
75096         (u16_mbtouc): Use ucs4_t, uint16_t types.
75097         * lib/unistr/utf16-ucs4.c: New file.
75098
75099         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75100         (Depends-on): Add unitypes.
75101         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75102         (u8_uctomb_aux): Move out to separate file.
75103         (u8_uctomb): Use ucs4_t, uint8_t types.
75104         * lib/unistr/ucs4-utf8.c: New file.
75105
75106         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75107         (Depends-on): Add unitypes.
75108         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75109         (u16_uctomb_aux): Move out to separate file.
75110         (u16_uctomb): Use ucs4_t, uint16_t types.
75111         * lib/unistr/ucs4-utf16.c: New file.
75112
75113 2006-12-25  Bruno Haible  <bruno@clisp.org>
75114
75115         * modules/unitypes: New file.
75116         * lib/unitypes.h: New file.
75117         * MODULES.html.sh (func_all_modules): New section "Unicode string
75118         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75119         this section. Add unitypes.
75120
75121 2007-01-08  Bruno Haible  <bruno@clisp.org>
75122
75123         Avoid variable names that conflict with those from libtool.
75124         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75125         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75126         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75127         library_names_spec to acl_library_names_spec, hardcode_* to
75128         acl_hardcode_*.
75129         Reported by Ralf Wildenhues.
75130
75131 2007-01-08  Bruno Haible  <bruno@clisp.org>
75132
75133         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75134         definition.
75135         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75136         definition.
75137         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75138         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75139         definition.
75140         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75141         definition.
75142         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75143         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75144         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75145         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75146         definition.
75147         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75148         definition.
75149         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75150         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75151         GC_USE_<algorithm>.
75152         * lib/gc-libgcrypt.c: Likewise.
75153         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75154         * modules/gc-arctwo (configure.ac): Likewise.
75155         * modules/gc-des (configure.ac): Likewise.
75156         * modules/gc-hmac-md5 (configure.ac): Likewise.
75157         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75158         * modules/gc-md2 (configure.ac): Likewise.
75159         * modules/gc-md4 (configure.ac): Likewise.
75160         * modules/gc-md5 (configure.ac): Likewise.
75161         * modules/gc-random (configure.ac): Likewise.
75162         * modules/gc-rijndael (configure.ac): Likewise.
75163         * modules/gc-sha1 (configure.ac): Likewise.
75164
75165 2007-01-08  Bruno Haible  <bruno@clisp.org>
75166
75167         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75168         macro definition.
75169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75170         definition.
75171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75172         definition.
75173         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75174         * modules/fcntl-safer (configure.ac): Likewise.
75175         * modules/fopen-safer (configure.ac): Likewise.
75176         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75177         GNULIB_FWRITEERROR macro definition.
75178
75179 2007-01-08  Bruno Haible  <bruno@clisp.org>
75180
75181         * m4/gnulib-common.m4: New file.
75182         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75183         (func_get_filelist): Add m4/gnulib-common.m4.
75184
75185 2007-01-08  Bruno Haible  <bruno@clisp.org>
75186
75187         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75188         command.
75189
75190 2007-01-08  Jim Meyering  <jim@meyering.net>
75191
75192         Use a more robust test for a "can't happen" condition.
75193         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75194         narrowed the st_size value.  Presuming the "can't happen" condition
75195         is true, that narrowing could conceivably convert an invalid st_size
75196         value into a valid one.  Instead, use a change based on Matthew
75197         Woehlke's original patch.
75198
75199         Slight readability improvement: use an assert-like macro
75200         in place of literal "abort ()" uses.
75201         * lib/fts.c (fts_assert): Define.
75202         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75203         Use this macro instead of a bare 'abort'.
75204
75205 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75208         simply work around them.
75209         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75210         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75211         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75212         declaring.
75213         Don't bother to define as macros, since the standard doesn't require it.
75214         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75215         longer worry about IRIX 5.3.
75216         (HAVE_WCTYPE_CTMP_BUG): Remove.
75217
75218 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75219
75220         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75221         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75222         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75223         Problems reported by Georg Schwarz for IRIX 5.3.
75224
75225         * gnulib-tool (autoconf_minversion): Take the maximum version number
75226         found, not the minimum.  Problem reported by James Youngman.
75227
75228 2007-01-03  Karl Berry  <karl@gnu.org>
75229
75230         * doc/error.texi: new file, explaining interaction with progname.
75231         * doc/gnulib.texi: include it.  Update copyright.
75232
75233 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75234
75235         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75236         AC_CANONICAL_HOST, to improve autobuild outputs.
75237
75238 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75239             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75240
75241         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75242         sockets, server sockets, and other file descriptors.  Count errors
75243         to compute the return value.  Reorder the code a bit to be easier
75244         to follow.  Don't set event bits that were not requested (except
75245         POLLERR and POLLHUP).
75246
75247 2007-01-01  Bruno Haible  <bruno@clisp.org>
75248
75249         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75250
75251 2007-01-03  Jim Meyering  <jim@meyering.net>
75252
75253         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75254
75255 2007-01-02  Bruno Haible  <bruno@clisp.org>
75256
75257         * modules/settime (Include): Require timespec.h.
75258         * modules/nanosleep (Include): Likewise.
75259
75260 2007-01-01  Bruno Haible  <bruno@clisp.org>
75261
75262         * gnulib-tool (func_emit_copyright_notice): Bump year.
75263         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75264
75265 2007-01-01  Bruno Haible  <bruno@clisp.org>
75266
75267         Improve support for OpenBSD.
75268         * build-aux/config.rpath (libname_spec): Export.
75269         (library_names_spec): New variable. Export.
75270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75271         library_names_spec from the config.rpath output. Locate shared library
75272         through the name pattern in library_names_spec.
75273
75274 2007-01-01  Eric Blake  <ebb9@byu.net>
75275
75276         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75277
75278 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75279
75280         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75281         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75282         assume the C locale, and avoid an "eval" that could cause trouble.
75283         Problem with SORT reported by Bob Proulx.
75284
75285         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75286         Define.  Trivial patch from Henning Nielsen Lund, originally
75287         sent to bug-grep@gnu.org today.
75288
75289 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75292         struct stat.  Problem reported by Henning Nielsen Lund.
75293         * lib/acl.c: Include acl.h first, to check interface.  Don't
75294         bother to include sys/types.h and sys/stat.h again.
75295
75296 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         Import the following change from libc; problem reported by
75299         Sven Verdoolaege.
75300
75301         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75302
75303         [BZ #1373]
75304         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75305
75306 2006-12-28  Jim Meyering  <jim@meyering.net>
75307
75308         * build-aux/announce-gen: Do not assume that the package
75309         builds any of tar.gz, tar.bz2, and .xdelta files.
75310         Suggestion from Simon Josefsson.
75311
75312 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75313
75314         * modules/announce-gen: New file.
75315
75316 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75319         handles its gotchas now.
75320         * lib/mbswidth.c: Likewise.
75321         * lib/wcwidth.h: Likewise.
75322         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75323         and iswcntrl; the wctype module does this stuff now.
75324         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75326         * modules/mbchar (Depends-on): Add wctype.
75327         * modules/mbswidth (Depends-on): Likewise.
75328         * modules/wcwidth (Depends-on): Likewise.
75329
75330 2006-12-27  Eric Blake  <ebb9@byu.net>
75331
75332         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75333         module uses more than what <wctype.h> is required to provide.
75334
75335 2006-12-26  Eric Blake  <ebb9@byu.net>
75336
75337         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75338
75339 2006-12-26  Eric Blake  <ebb9@byu.net>
75340
75341         * modules/absolute-header: New module.
75342         * modules/fcntl (Depends-on): Depend on it.
75343         * modules/inttypes (Depends-on): Likewise.
75344         * modules/stdint (Depends-on): Likewise.
75345         * modules/sys_stat (Depends-on): Likewise.
75346         * modules/wctype (Depends-on): Likewise.
75347         * MODULES.html.sh (Support for building libraries and
75348         executables): Document it.
75349
75350 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * gnulib-tool (SED): Remove, undoing previous change.
75353         The problem was that it broke coreutils on Solaris, because
75354         "sed --posix" leaked into a makefile.
75355         (sed): New alias, if 'alias' and GNU sed.
75356
75357 2006-12-24  Jim Meyering  <jim@meyering.net>
75358
75359         Work around an fchownat bug in glibc-2.4:
75360         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75361         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75362         in spite of the -P option.
75363         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75364         New macros.
75365         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75366         * modules/openat (Files): Add lib/fchownat.c.
75367         * lib/openat.c (fchownat): Don't define here.  Move to...
75368         * lib/fchownat.c: ...this new file.
75369
75370 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         Fix bug reported by Bruno Haible in
75373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75374         where quotearg.c didn't compile on Mac OS X 10.2 because it
75375         lacks <wchar.h> and wint_t.
75376         * lib/wctype_.h (__wctype_wint_t): New type.
75377         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75378         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75379         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75380         Arg is now of type __wctype_wint_t, not wint_t.
75381         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75382         substitute HAVE_WINT_T.
75383         * modules/wctype (Files): Add m4/wint_t.m4.
75384         (wctype.h): Substitute HAVE_WINT_T.
75385
75386 2006-12-23  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75389
75390 2006-12-23  Bruno Haible  <bruno@clisp.org>
75391
75392         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75393         S_ISLNK.
75394         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75395         mingw.
75396
75397 2006-12-22  Bruno Haible  <bruno@clisp.org>
75398
75399         * lib/copy-file.c: Include acl.h.
75400         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75401         Close the file descriptors only after being done with copy_acl.
75402         * modules/copy-file (Depends-on): Add acl.
75403
75404 2006-12-22  Bruno Haible  <bruno@clisp.org>
75405
75406         * gnulib-tool (SED): New variable.
75407         Use $SED instead of sed everywhere.
75408
75409 2006-12-22  Bruno Haible  <bruno@clisp.org>
75410
75411         * modules/no-c++: New file.
75412         * m4/no-c++.m4: New file.
75413         * MODULES.html.sh (Support for building libraries and executables):
75414         Add no-c++.
75415
75416 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75419         Include <limits.h>, and use its INT_MAX to rewrite the
75420         j loop so that it does not overflow 'int'.  Problem reported by
75421         Ralf Wildenhues in
75422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75423         Play it safe by shifting left by 1 rather than multiplying by 2,
75424         as GCC is less likely to optimize this away when the value
75425         is signed (when it assumes overflow leads to undefined behavior).
75426         Also, don't assume time_t uses two's complement.
75427
75428 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75429
75430         * MODULES.html.sh: New module wctype.
75431         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75432         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75433         <wctype.h>, since the new wctype module should fix this.
75434         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75435         the wctype module should arrange for it.
75436         * lib/regex_internal.h: Likewise.
75437         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75438         since the wctype module should handle this now.
75439         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75440         * modules/fnmatch (Depends-on): Add wctype.
75441         * modules/quotearg (Depends-on): Likewise.
75442         * modules/regex (Depends-on): Likewise.
75443
75444 2006-12-19  Bruno Haible  <bruno@clisp.org>
75445
75446         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75447         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75448
75449 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75450
75451         * modules/savewd (Depends-on): Fix dependency on fcntl.
75452
75453 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75456         conforms to C99, rather than relying on the user's environment
75457         setting of STDINT_H.
75458
75459 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75460         and Eric Blake  <ebb9@byu.net>
75461
75462         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75463         This is more consistent with the other defines here.
75464         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75465         Port to z/OS.  Problem reported by Paul Gilmartin.
75466         Change local vars to use gl_ prefix rather than ac_.
75467         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75468         with other defines.
75469         * modules/double-slash-root: New module.
75470         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75471         (Depends-on): Add double-slash-root.
75472         * MODULES.html.sh (File system functions): Mention new module.
75473
75474 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75477         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75478         This is for the benefit of gzip, which doesn't do i18n.
75479
75480 2006-12-12  Jim Meyering  <jim@meyering.net>
75481
75482         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75483         Reported by Andreas Schwab <schwab@suse.de>.
75484
75485 2006-12-12  Bruno Haible  <bruno@clisp.org>
75486
75487         Merge these changes.
75488         2006-09-05  Bruno Haible  <bruno@clisp.org>
75489         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75490         iconv_alloc succeeded.
75491         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75492         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75493         test for " && dest " at the end - dest is always != NULL there. Call
75494         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75495         with 2xNULL arguments, also to flush the state storage. Handle the
75496         IRIX iconv behaviour. Realloc the final result, to throw away unused
75497         memory.
75498
75499 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75502         and fchmodat unconditionally, since glibc 2.4 has them.
75503         Problem reported by Arkadiusz Miskiewicz.
75504
75505 2006-12-10  Bruno Haible  <bruno@clisp.org>
75506
75507         * gnulib-tool (func_import): Show the include files only for those
75508         modules that are copied and specified.
75509         Reported by Karl Berry.
75510
75511 2006-12-08  Jim Meyering  <jim@meyering.net>
75512
75513         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75514         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75515
75516         * build-aux/announce-gen: Add two new options, both optional:
75517         --bootstrap-tools=TOOL_LIST
75518               a comma-separated list of tools, e.g.,
75519               autoconf,automake,bison,gnulib
75520         --gnulib-snapshot-date=DATE
75521               if gnulib is in the bootstrap tool list,
75522               then report this as the snapshot date.
75523               If not specified, use the current date/time.
75524               If you specify a date here, be sure it's UTC.
75525
75526 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75527
75528         * tests/test-argp-2.sh: Fix test to match actual output.
75529         (func_compare): Fix sed script to be portable.
75530
75531 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75534         workaround for this case.  It is not autoconfigured now; offhand
75535         it's hard to see how to autoconfigure it.
75536
75537 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75540         a directory that is about to be chowned.  Such a directory's
75541         initial file permissions should permit the owner only and this
75542         should not be changed until after the chown, since the group and
75543         other bits would be incorrect if they granted permission before
75544         the chown.
75545
75546         Fix porting problem for iswctype reported by Georg Schwarz in:
75547         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75548         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75549         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75550         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75551         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75552
75553 2006-12-03  Jim Meyering  <jim@meyering.net>
75554
75555         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75556         p->fts_statp may not yet be defined.
75557         (fts_read): Instead, set it in the caller, once p->fts_statp is
75558         sure to be defined, and corresponds to a top-level directory.
75559         This bug made du -x fail.  Here's the coreutils test case:
75560         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75561         Reported by Mike Frysinger.
75562
75563 2006-12-01  Jim Meyering  <jim@meyering.net>
75564
75565         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75566         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75567         Reported by Simon Josefsson.
75568
75569 2006-11-30  Jim Meyering  <jim@meyering.net>
75570
75571         * m4/warning.m4: Use the all-permissive copyright notice
75572         recommended by RMS (rather than LGPL).
75573         * m4/vararrays.m4: Likewise.
75574         * m4/flexmember.m4: Likewise.
75575
75576 2006-11-29  Bruno Haible  <bruno@clisp.org>
75577
75578         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75579         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75580         using +=.
75581         Reported by Simon Josefsson <simon@josefsson.org>.
75582
75583 2006-11-28  James Youngman <jay@gnu.org>
75584
75585         * README: Advise users that they might find the bug-gnulib@gnu.org
75586         and autotools-announce@gnu.org mailing lists useful.
75587
75588 2006-11-28  Bruno Haible  <bruno@clisp.org>
75589
75590         * m4/ptrdiff_max.m4: Remove file.
75591
75592 2006-11-21  Bruno Haible  <bruno@clisp.org>
75593
75594         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75595         _AC_COMPUTE_INT.
75596         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75597         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75598         _AC_COMPUTE_INT.
75599         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75600         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75601         _AC_COMPUTE_INT.
75602         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75603
75604 2006-11-28  Jim Meyering  <jim@meyering.net>
75605
75606         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75607         warning from "gcc -Wshadow" about shadowing the builtin.
75608
75609 2006-11-27  Bruno Haible  <bruno@clisp.org>
75610
75611         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75612         _AC_COMPUTE_INT.
75613         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75614
75615 2006-11-27  Bruno Haible  <bruno@clisp.org>
75616             Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75619
75620 2006-11-26  Bruno Haible  <bruno@clisp.org>
75621
75622         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75623         noinst_LTLIBRARIES.
75624
75625 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75626             Bruno Haible  <bruno@clisp.org>
75627
75628         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75629         if compiling with "gcc -ansi".
75630
75631 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75632
75633         Fix some incompatibilities with gcc -ansi -pedantic.
75634         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75635         if compiling pedantically with GCC, unless it's C99 or later.
75636         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75637         it mishandles gcc -ansi -pedantic as well.
75638         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75639         if gcc -pedantic.
75640         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75641         initializers for struct if -pedantic, unless it's C99 or later.
75642
75643 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75644
75645         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75646         Don't close an fd more than once. Identical atimes indicate
75647         success, not failure.
75648
75649 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75650
75651         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75652
75653 2006-11-23  Jim Meyering  <jim@meyering.net>
75654
75655         * build-aux/announce-gen: New file.  From coreutils.
75656
75657 2006-11-22  Jim Meyering  <jim@meyering.net>
75658
75659         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75660         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75661         (fts_read): Use a temporary to narrow the overused st_size member
75662         before using it in a switch statement.  Reported by Matthew Woehlke.
75663
75664         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75665         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75666
75667 2006-11-20  Bruno Haible  <bruno@clisp.org>
75668
75669         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75670         changequote instead of pairs of brackets.
75671         Reported by Andreas Schwab <schwab@suse.de>.
75672
75673 2006-11-21  Jim Meyering  <jim@meyering.net>
75674
75675         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75676         so as to remain compatible with older compilers.
75677         Patch from Michael Deutschmann.
75678
75679 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * MODULES.html.sh (File system functions): Add openat.
75682
75683         * lib/openat.h (rpl_fstatat): New macro, if
75684         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75685         (fstatat): Define to rpl_fstatat under the same conditions,
75686         unless COMPILING_FSTATAT.
75687         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75688         seems to have the bug.
75689         * lib/fstatat.c: New file.
75690         * modules/openat (Files): Add it.
75691
75692 2006-11-20  Bruno Haible  <bruno@clisp.org>
75693
75694         * Makefile: New file.
75695
75696 2006-11-20  Jim Meyering  <jim@meyering.net>
75697
75698         The beginnings of syntax-related checks for gnulib.
75699         * lib/Makefile: New file.
75700         * lib/t-idcache: New script.  Ensure that the two halves of
75701         idcache.c stay in sync.
75702
75703         * lib/idcache.c: Adjust comments in user- and group- portions to
75704         be more accurate, and to be consistent with one another.
75705
75706 2006-11-20  Jim Meyering  <jim@meyering.net>
75707
75708         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75709         continue using the flexible array member (thus, this module performs
75710         half as many malloc calls), with the addition that...
75711         (getgroup, getuser): Consistently record a non-match via an empty
75712         "name" string, and map an empty string match to a NULL return value.
75713         * modules/idcache (Depends-on): Re-add flexmember.
75714
75715         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75716         (getuidbyname, getgroup, getgidbyname): Likewise.
75717
75718         Use cleaner syntax: NULL rather than 0.
75719         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75720
75721 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75724         It mishandled the case where the group was missing.
75725         Problem reported by Greg Schafer.
75726         * modules/idcache: Likewise.
75727
75728 2006-11-18  Jim Meyering  <jim@meyering.net>
75729
75730         * check-module (%exempt_header): Add exception for some
75731         conditionally-included headers.
75732
75733         * modules/i-ring (Depends-on): Add verify.
75734         (License): Change to LGPL.
75735
75736 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75739         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75740         and inttostr.h.  Use snprintf rather than uinttostr, so that
75741         LGPLed code doesn't depend on GPLed.
75742
75743 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * modules/inline (License): Change from GPL to LGPL.
75746
75747 2006-11-17  Jim Meyering  <jim@meyering.net>
75748
75749         * modules/d-type (License): Switch to LGPL.
75750
75751 2006-11-15  Bruno Haible  <bruno@clisp.org>
75752
75753         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75754
75755 2006-11-15  Eric Blake  <ebb9@byu.net>
75756
75757         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75758         the module dependency.
75759
75760 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75761             Bruno Haible  <bruno@clisp.org>
75762
75763         * gnulib-tool (func_create_testdir): Add license consistency check.
75764
75765 2006-11-15  Eric Blake  <ebb9@byu.net>
75766
75767         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75768         random "(cached)" in configure output.
75769
75770 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75771
75772         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75773         test for conforming inttypes.h is both announced and cached.
75774
75775         * MODULES.html.sh (seen_modules, seen_files): New variables.
75776         (func_module): Rewrite to use a few less gnulib-tool and sed
75777         invocations.  Avoid a couple of quadratic algorithms for ...
75778         (missed_modules, missed_files): ... these, with ...
75779         (func_append, func_tmpdir): ... these new functions, from
75780         gnulib-tool.  Analogously, install traps for cleanup.
75781
75782         * tests/test-gc.c (main): Remove unused variables.
75783         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75784
75785 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * modules/inttostr (License): Change to LGPL.
75788
75789 2006-11-14  Eric Blake  <ebb9@byu.net>
75790
75791         * modules/tempname (License): Change to LGPL.
75792
75793 2006-11-14  Eric Blake  <ebb9@byu.net>
75794
75795         * doc/functions.texi (Function Portability): *printf functions on
75796         Cygwin now understand all POSIX size specifiers.
75797
75798 2006-11-14  Bruno Haible  <bruno@clisp.org>
75799
75800         * modules/c-ctype (License): Change to LGPL.
75801
75802 2006-11-12  Bruno Haible  <bruno@clisp.org>
75803
75804         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75805         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75806         for GNOME libraries, for which the include files are installed in
75807         subdirectories of $prefix/include.
75808
75809 2006-11-12  Bruno Haible  <bruno@clisp.org>
75810
75811         * m4/lib-link.m4: Require at least autoconf-2.54.
75812         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75813         name to underscores for the --with option.
75814
75815 2006-11-13  Bruno Haible  <bruno@clisp.org>
75816
75817         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75818         the tests directory.
75819         Reported by Ralf Wildenhues.
75820
75821 2006-11-13  Bruno Haible  <bruno@clisp.org>
75822
75823         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75824         (func_emit_initmacro_end): Undo the override here.
75825         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75826         Works around the famous automake error in coreutils.
75827
75828 2006-11-13  Eric Blake  <ebb9@byu.net>
75829
75830         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75831         element, not its node.
75832
75833 2006-11-12  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75836         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75837
75838 2006-11-12  Bruno Haible  <bruno@clisp.org>
75839
75840         * gnulib-tool: New option --local-symlink.
75841         (func_usage): Document it.
75842         (lsymbolic): New variable.
75843         (func_import, func_create_testdir): If --symlink was not specified,
75844         test whether --local-symlink was specified and the file comes from
75845         the local_gnulib_dir.
75846
75847 2006-11-12  Bruno Haible  <bruno@clisp.org>
75848
75849         * gnulib-tool (func_ln): New function.
75850         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75851
75852 2006-11-12  Bruno Haible  <bruno@clisp.org>
75853
75854         Finish support for source files in subdirectories.
75855         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75856         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75857         AUTOMAKE_OPTIONS.
75858         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75859
75860 2006-11-12  Bruno Haible  <bruno@clisp.org>
75861
75862         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75863         EXTRA_lib_SOURCES augmentation.
75864         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75865
75866 2006-11-12  Jim Meyering  <jim@meyering.net>
75867
75868         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75869         file descriptors.  This also averts a failure on systems with
75870         native openat support when a traversed directory lacks "x" access.
75871         * lib/fts_.h: Include "i-ring.h"
75872         (struct FTS) [fts_fd_ring]: New member.
75873         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75874         (FCHDIR): Add parentheses.
75875         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75876         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75877         When descending, rather than simply closing the previous
75878         fts_cwd_fd value, push that file descriptor onto the ring.
75879         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75880         (fts_open): Initialize the new fd_ring member.
75881         (fts_close): Clear the ring.
75882         (fts_safe_changedir): When possible, use our new fd_ring to skip
75883         the diropen and fstat and dev/ino comparison that would normally
75884         accompany a virtual `chdir ("..")'.
75885
75886         * modules/fts (Depends-on): Add i-ring.
75887         * modules/i-ring: New module.
75888         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75889         * m4/i-ring.m4: New file.
75890
75891 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75892
75893         * gnulib-tool (func_create_testdir): Fix replacement of
75894         `build-aux' in configure.ac.  Run autotools in gltests
75895         subdirectory.
75896         (func_create_testdir, func_create_megatestdir, test): There is
75897         no need for '--force' in most autotool invocations in a new
75898         tree.  Actually fail the whole test if any of the tools, or the
75899         configure or make stages fail.
75900
75901         Sync from Automake.
75902         * build-aux/gnupload: Revert last change.  Add pointer to upload
75903         instructions of the GNU Maintenance Instructions.
75904         Suggestion by Karl Berry.
75905
75906 2006-11-10  Jim Meyering  <jim@meyering.net>
75907
75908         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75909
75910 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75913         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75914         (bind_textdomain_codeset) [! ENABLE_NLS]:
75915         Evaluate all the arguments.  That way, callers get compatible behavior
75916         if the arguments have side effects.  Also, it avoids some GCC
75917         diagnostics in some cases; Joel E. Denny reported problems when Bison
75918         was configured with --enable-gcc-warnigs.
75919
75920 2006-11-10  Jim Meyering  <jim@meyering.net>
75921
75922         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75923         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75924         account.
75925
75926 2006-11-10  Jim Meyering  <jim@meyering.net>
75927
75928         * modules/inline: New file/module.
75929         * modules/xalloc (Files): Remove m4/inline.m4.
75930         (Depends-on): Add inline, instead.
75931         * modules/oset: Likewise.
75932         * modules/list: Likewise.
75933
75934 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75937         Problem reported by Matthew Woehlke.
75938
75939 2006-11-09  Bruno Haible  <bruno@clisp.org>
75940
75941         * lib/tempname.c (gen_tempname): Remove variant that invokes
75942         __gen_tempname.
75943         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75944         __gen_tempname.
75945
75946 2006-11-08  Bruno Haible  <bruno@clisp.org>
75947
75948         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75949         to 'yes' instead of 'cross-compiling'.
75950
75951 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * lib/quotearg.h (quotearg_free): New decl.
75954         * lib/quotearg.c (quotearg_free): New function.
75955         (slot0, nslots, slotvec0, slotvec):
75956         Now file-scope so that quotearg_free can get at them.
75957
75958 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75959
75960         Sync from Automake.
75961         * build-aux/gnupload: Add missing 'gnu' to example URL.
75962         Report by Karl Berry.
75963
75964 2006-11-08  Bruno Haible  <bruno@clisp.org>
75965
75966         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75967         Suggested by Paul Eggert.
75968
75969 2006-11-08  Jim Meyering  <jim@meyering.net>
75970
75971         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75972         It's already included if !_LIBC.
75973         (fts_safe_changedir): Add a comment.
75974
75975 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75976
75977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75978         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75979         Matthew Woehlke.
75980
75981         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75982         definitions up, to avoid colliding with change below.
75983         (static_inline) [HAVE_INLINE]: New macro.
75984         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75985         Provide extern decls when !HAVE_INLINE.  Do not define unless
75986         static_inline is defined, either by us or by xmalloc.c.  Use
75987         static_inline rather than static inline.
75988         (XCALLOC): Optimize sizeof(T) = 1 case.
75989         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75990
75991 2006-11-07  Bruno Haible  <bruno@clisp.org>
75992
75993         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75994         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75995         AC_C_INLINE.
75996         * modules/xalloc (Files): Add m4/inline.m4.
75997
75998 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75999
76000         * README: Fix typo.
76001         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76002         (Miscellanous Notes): ...from this.
76003
76004 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76007         Mention that offsetof should be used instead of sizeof.
76008         From Bruno Haible.
76009
76010 2006-11-07  Bruno Haible  <bruno@clisp.org>
76011
76012         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76013
76014 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76017         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76018         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76019         (gl_tree_add_before, gl_tree_add_after):
76020         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76021         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76022         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76023         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76024         (gl_linked_add_after, gl_linked_add_at): Likewise.
76025         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76026         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76027         (gl_tree_add_before, gl_tree_add_after): Likewise.
76028         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76029         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76030         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76031
76032 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76033
76034         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76035
76036 2006-11-06  Bruno Haible  <bruno@clisp.org>
76037
76038         * m4/inline.m4: New file.
76039         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76040         * modules/list (Files): Add m4/inline.m4.
76041         * modules/oset (Files): Likewise.
76042
76043 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76044
76045         * lib/idcache.c: Include <stddef.h>, for offsetof.
76046         (struct userid.name): Change from char * to a flexible array member.
76047         All uses changed.
76048         * modules/idcache (Depends-on): Add flexmember.
76049
76050         * MODULES.html.sh (Core language properties): New module flexmember.
76051         * modules/flexmember, m4/flexmember.m4: New files.
76052
76053         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76054         inline functions that are identical with the old xnmalloc_inline,
76055         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76056         that we can avoid some unnecessary integer multiplications and
76057         divisions in the common case where the element size is known at
76058         compile time.
76059         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76060         needed.
76061         (xnboundedmalloc): Remove.
76062         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76063         arguments, for consistency with rest of this header.
76064         (xcharalloc): Rewrite using XNMALLOC.
76065         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76066         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76067         versions have been moved to lib/xalloc.h and renamed to be the
76068         non-*_inline versions.
76069         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76070         and xnrealloc functions, since those functions are now inline and
76071         now call us.
76072         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76073         renaming described above.
76074         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76075         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76076         captures the dependency in AC_C_INLINE.
76077
76078         New module canonicalize-lgpl, proposed by Charles Wilson in
76079         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76080         with a few small changes afterwards.
76081         * MODULES.html.sh (File system functions): New module
76082         canonicalize-lgpl.
76083         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76084         and canonicalize_file_name.
76085         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76086         * modules/canonicalize-lgpl: New files.
76087
76088 2006-11-05  Bruno Haible  <bruno@clisp.org>
76089
76090         * gnulib-tool (func_import, func_create_testdir): Create directories
76091         also for files in subdirectories of lib/.
76092
76093 2006-11-05  Bruno Haible  <bruno@clisp.org>
76094
76095         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76096         ANSI C compliant.
76097
76098 2006-11-03  Bruno Haible  <bruno@clisp.org>
76099
76100         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76101         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76102         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76103         (xnboundedmalloc): New inline function.
76104         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76105         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76106         xmalloc.
76107         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76108         xmalloc.
76109         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76110         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76111         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76112         xmalloc.
76113         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76114         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76115         xmalloc.
76116         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76117         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76118         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76119         xmalloc.
76120         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76121         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76122         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76123         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76124         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76125         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76126         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76127
76128 2006-11-03  Bruno Haible  <bruno@clisp.org>
76129
76130         * lib/c-ctype.h [C++]: Define functions without name mangling.
76131         * lib/fwriteerror.h [C++]: Likewise.
76132         * lib/gcd.h [C++]: Likewise.
76133         * lib/linebreak.h [C++]: Likewise.
76134
76135 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76138         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76139         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76141         Check for functions and headers just once.
76142         Check for declaration of canonicalize_file_name.
76143         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76144
76145 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76146
76147         * gnulib-tool (func_import): Fix typo in actioncmd.
76148
76149 2006-11-02  Bruno Haible  <bruno@clisp.org>
76150
76151         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76152         newline sequence in the Makefile.am snippet as a space, like "make"
76153         does.
76154         Reported by Roger Persson <perrog@gmail.com>.
76155
76156 2006-11-01  Bruno Haible  <bruno@clisp.org>
76157
76158         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76159         already declared in <string.h>.
76160         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76161
76162 2006-11-01  Bruno Haible  <bruno@clisp.org>
76163
76164         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76165         * lib/strcase.h: Include <string.h>.
76166         (strcasecmp): Define to rpl_strcasecmp here.
76167
76168 2006-11-01  Bruno Haible  <bruno@clisp.org>
76169
76170         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76171
76172 2006-11-01  Eric Blake  <ebb9@byu.net>
76173
76174         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76175
76176         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76177
76178 2006-10-29  Bruno Haible  <bruno@clisp.org>
76179
76180         Make it compile in C++ mode.
76181         * lib/full-write.c (full_rw): Add a cast.
76182
76183 2006-11-01  Bruno Haible  <bruno@clisp.org>
76184
76185         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76186         be POSIX compliant.
76187         Reported by Roger Persson <perrog@gmail.com>.
76188
76189 2006-11-01  Eric Blake  <ebb9@byu.net>
76190
76191         * lib/getopt_.h: Fix comments.
76192
76193 2006-10-31  Eric Blake  <ebb9@byu.net>
76194
76195         * modules/tmpdir (Depends-on): Add sys_stat.
76196         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76197         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76198         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76199         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76200         tempname.
76201
76202 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         Avoid some C++ diagnostics reported by Bruno Haible.
76205         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76206         xmalloc.
76207         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76208         (struct slotvec): Move to top level.
76209         (quotearg_n_options): Rewrite to avoid xmalloc.
76210         * lib/xalloc.h (xcharalloc): New function.
76211         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76212         [defined __cplusplus]: Add function template that provides result
76213         type propagation.  This part of the change is from Bruno Haible.
76214
76215 2006-10-29  Bruno Haible  <bruno@clisp.org>
76216
76217         Make it compile in C++ mode.
76218         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76219         * lib/strnlen1.c (strnlen1): Cast memchr result.
76220         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76221         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76222         (create_temp_dir): Rename local variable 'template'.
76223         (compile_csharp_using_sscli): Add cast.
76224         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76225         * lib/findprog.c (find_in_path): Likewise.
76226         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76227         * lib/wait-process.c (register_slave_subprocess): Likewise.
76228
76229 2006-10-22  Bruno Haible  <bruno@clisp.org>
76230
76231         * modules/tsearch: New file.
76232         * lib/tsearch.h: New file.
76233         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76234         * m4/tsearch.m4: New file.
76235         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76236
76237 2006-10-29  Eric Blake  <ebb9@byu.net>
76238
76239         * lib/arcfour.c: Assume config.h.
76240         * lib/arctwo.c: Likewise.
76241         * lib/base64.c: Likewise.
76242         * lib/check-version.c: Likewise.
76243         * lib/crc.c: Likewise.
76244         * lib/des.c: Likewise.
76245         * lib/gc-gnulib.c: Likewise.
76246         * lib/gc-libgcrypt.c: Likewise.
76247         * lib/gc-pbkdf2-sha1.c: Likewise.
76248         * lib/getaddrinfo.c: Likewise.
76249         * lib/getdelim.c: Likewise.
76250         * lib/getline.c: Likewise.
76251         * lib/hmac-md5.c: Likewise.
76252         * lib/hmac-sha1.c: Likewise.
76253         * lib/iconvme.c: Likewise.
76254         * lib/md2.c: Likewise.
76255         * lib/md4.c: Likewise.
76256         * lib/memxor.c: Likewise.
76257         * lib/read-file.c: Likewise.
76258         * lib/readline.c: Likewise.
76259         * lib/rijndael-alg-fst.c: Likewise.
76260         * lib/rijndael-api-fst.c: Likewise.
76261         * lib/xgetdomainname.c: Likewise.
76262
76263 2006-10-28  Eric Blake  <ebb9@byu.net>
76264
76265         * lib/xstrndup.c: Assume config.h.
76266
76267 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76268
76269         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76270         stat-macros.h is now for our own macros, whereas stat_h is for
76271         macros in the <sys/stat.h> name space.
76272         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76273         (STAT_MACROS_H): Remove.
76274         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76275         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76276         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76277         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76278         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76279         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76280         Move these macros to ...
76281         * lib/stat_.h: here.  Don't include stat-macros.h.
76282         * lib/canonicalize.c: Don't include stat-macros.h.
76283         * lib/chown.c: Likewise.
76284         * lib/euidaccess.c: Likewise.
76285         * lib/file-type.c: Likewise.
76286         * lib/filemode.c: Likewise.
76287         * lib/glob.c: Likewise.
76288         * lib/isapipe.c: Likewise.
76289         * lib/lchown.c: Likewise.
76290         * lib/lstat.c: Likewise.
76291         * lib/mkdir-p.c: Likewise.
76292         * lib/rmdir.c: Likewise.
76293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76295         unless mkdir isn't declared, to speed up 'configure'.
76296         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76297         would define all the S_* symbols.
76298         * modules/canonicalize (Depends-on):
76299         Depend on sys_stat, not stat-macros.
76300         * modules/chown: Likewise.
76301         * modules/euidaccess: Likewise.
76302         * modules/filemode: Likewise.
76303         * modules/file-type: Likewise.
76304         * modules/glob: Likewise.
76305         * modules/isapipe: Likewise.
76306         * modules/lchown: Likewise.
76307         * modules/lstat: Likewise.
76308         * modules/mkancesdirs: Likewise.
76309         * modules/rmdir: Likewise.
76310         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76311         * modules/modechange: Likewise.
76312         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76313         (configure.ac): Remove gl_STAT_MACROS.
76314         * modules/sys_stat (Depends-on): Remove stat-macros.
76315
76316 2006-10-27  Bruno Haible  <bruno@clisp.org>
76317
76318         * m4/signed.m4: Remove file.
76319         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76320         invocation.
76321         * modules/vasnprintf (Files): Remove m4/signed.m4.
76322
76323 2006-10-27  Bruno Haible  <bruno@clisp.org>
76324
76325         Update to GNU gettext 0.16.
76326         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76327         m4/inttypes-h.m4, m4/signed.m4.
76328         * m4/gettext.m4: Update to GNU gettext 0.16.
76329         * m4/intl.m4: New file, from GNU gettext.
76330         * m4/intldir.m4: New file, from GNU gettext.
76331         * config/srclist.txt: Update
76332
76333 2006-10-27  Eric Blake  <ebb9@byu.net>
76334
76335         * MODULES.html.sh: Document tempname.
76336         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76337         dependencies.
76338         (Files): Move lib/tempname.c...
76339         * modules/tempname: ...to this new module.
76340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76341         (gl_PREREQ_TEMPNAME): Move...
76342         * m4/tempname.m4: ...to this new file.
76343         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76344         * modules/sys_stat (Depends-on): Add stat-macros.
76345         * lib/stat_.h (includes): Pick up stat macros.
76346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76347         if stat macros are broken.
76348         * lib/tempname.c (includes): No need to include "stat-macros.h".
76349         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76350         (direxists, __path_search) [!_LIBC]: Don't compile these in
76351         gnulib; the tmpdir module covers that.
76352         * lib/tempname.h: New file.
76353
76354 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * COPYING: Explain how gnulib-tool converts licence headers.
76357         Almost all wording by Eric Blake.
76358
76359 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         * lib/mbchar.h (is_basic_table): Make read-only.
76362         * lib/mbchar.c (is_basic_table): Likewise.
76363         Reported by John Darrington.
76364
76365 2006-10-25  Bruno Haible  <bruno@clisp.org>
76366
76367         * lib/progname.h (set_program_name): Undefine before defining.
76368
76369 2006-10-25  Bruno Haible  <bruno@clisp.org>
76370
76371         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76372         false for non-gcc C++ compilers.
76373         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76374
76375 2006-10-24  Bruno Haible  <bruno@clisp.org>
76376
76377         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76378         iconv implementations like Irix iconv.
76379
76380 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * modules/vararrays: New file.
76383         * m4/vararrays.m4: New file, taken from diffutils.
76384         * MODULES.html.sh: New module vararrays.
76385
76386 2006-10-24  Karl Berry  <karl@gnu.org>
76387
76388         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76389         Don't call GNU Unix.
76390
76391 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76392
76393         * users.txt: Add Libtool.
76394
76395         Sync from Libtool:
76396
76397         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76398
76399         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76400         to gnulib's policy of including config.h unconditionally.
76401
76402 2006-10-24  Bruno Haible  <bruno@clisp.org>
76403
76404         * modules/wcwidth (Files): Add m4/wint_t.m4.
76405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76406         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76407
76408 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76411         to pacify GCC with some -W flags enabled.  Problem reported by
76412         Bruno Haible.
76413
76414 2006-10-24  Jim Meyering  <jim@meyering.net>
76415
76416         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76417         Reported by Karl Berry.
76418
76419 2006-10-23  Bruno Haible  <bruno@clisp.org>
76420
76421         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76422
76423 2006-10-24  Bruno Haible  <bruno@clisp.org>
76424
76425         * lib/gl_list.h: Use C comment style, not C++ comment style.
76426
76427 2006-10-23  Eric Blake  <ebb9@byu.net>
76428
76429         * lib/getaddrinfo.c (includes): Add missing include.
76430
76431 2006-10-23  Bruno Haible  <bruno@clisp.org>
76432             Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         Ability to rename obstack_free.
76435         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76436         obstack_free.
76437         (obstack_free): Invoke the __obstack_free macro.
76438         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76439
76440 2006-10-23  Bruno Haible  <bruno@clisp.org>
76441             Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76444         __argc, __argv from the declaration. (They are defined as macros on
76445         mingw.)
76446
76447 2006-10-22  Bruno Haible  <bruno@clisp.org>
76448
76449         * doc/gnulib-intro.texi: New file.
76450         * doc/gnulib.texi: Include it.
76451
76452 2006-10-21  Bruno Haible  <bruno@clisp.org>
76453
76454         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76455         "Introduction", "Miscellanous Notes", "Particular Modules".
76456
76457 2006-10-21  Bruno Haible  <bruno@clisp.org>
76458
76459         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76460         Change mostlyclean-local rule to avoid sh syntax error from bash
76461         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76462
76463 2006-10-23  Jim Meyering  <jim@meyering.net>
76464
76465         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76466         in place of snprintf.
76467
76468         * modules/inttostr (Files): Add lib/uinttostr.c.
76469         * lib/uinttostr.c (inttostr): New file/function.
76470         * lib/inttostr.h (uinttostr): Declare.
76471         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76472         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76473         Add uinttostr.
76474         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76475
76476 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * lib/canonicalize.c (ELOOP): Define if not already defined.
76479         Problem reported by Bruno Haible in
76480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76481
76482 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76485         Problem reported by Perry Smith and Ville Laurikari.
76486
76487         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76488         uses.
76489
76490 2006-10-19  Bruno Haible  <bruno@clisp.org>
76491
76492         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76493         for mingw.
76494
76495 2006-10-19  Bruno Haible  <bruno@clisp.org>
76496
76497         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76498         Needed for mingw.
76499
76500 2006-10-19  Bruno Haible  <bruno@clisp.org>
76501
76502         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76503
76504 2006-10-19  Bruno Haible  <bruno@clisp.org>
76505
76506         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76507         it.
76508
76509 2006-10-19  Bruno Haible  <bruno@clisp.org>
76510
76511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76512         invocation.
76513
76514 2006-10-19  Bruno Haible  <bruno@clisp.org>
76515
76516         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76517         mountlist by default.
76518
76519 2006-10-16  Bruno Haible  <bruno@clisp.org>
76520
76521         * lib/c-strstr.c: Include c-strstr.h.
76522
76523 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76524
76525         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76526         in a slash.
76527
76528 2006-10-18  Bruno Haible  <bruno@clisp.org>
76529
76530         * lib/lock.h [C++]: Wrap definitions in extern "C".
76531
76532 2006-10-18  Bruno Haible  <bruno@clisp.org>
76533
76534         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76535         gl_LIBOBJS list.
76536
76537 2006-10-18  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76540
76541 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * lib/xstrtol.h: Include gettext.h.
76544         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76545         Problem reported by Eric Blake.
76546         * modules/xstrtol (Depends-on): Add gettext-h.
76547
76548 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76549
76550         * lib/strftime.c (advance): New macro.
76551         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76552         incomplete type, so you can't add 0 to it.  Problem and patch
76553         reported by Eelco Dolstra for dietlibc.
76554
76555 2006-10-18  Jim Meyering  <jim@meyering.net>
76556
76557         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76558         type for a local, and rename it: s/up/user_proc/.
76559
76560 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76561
76562         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76563         READ_UTMP_USER_PROCESS.
76564         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76565
76566 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76567
76568         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76569         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76570
76571 2006-10-17  Eric Blake  <ebb9@byu.net>
76572
76573         * lib/sigprocmask.c (sigprocmask): Fix typo.
76574
76575         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76576
76577         * modules/clean-temp (Makefile.am): Don't add to make output...
76578         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76579         config.h.
76580
76581 2006-10-17  Bruno Haible  <bruno@clisp.org>
76582
76583         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76584         differently if DEFAULT_TEXT_DOMAIN is set.
76585
76586 2006-10-16  Bruno Haible  <bruno@clisp.org>
76587
76588         * lib/clean-temp.c: Include fwriteerror.h.
76589
76590 2006-10-16  Bruno Haible  <bruno@clisp.org>
76591
76592         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76593
76594 2006-10-16  Bruno Haible  <bruno@clisp.org>
76595
76596         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76597         * lib/sigprocmask.h: Include <sys/types.h>.
76598         (sigset_t): Use the system's definition if present.
76599
76600 2006-10-17  Eric Blake  <ebb9@byu.net>
76601
76602         * lib/xvasprintf.c (includes): Assume config.h.
76603         * lib/xasprintf.c (includes): Likewise.
76604
76605 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76608         at least as wide as intmax_t.
76609
76610 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76611
76612         (Imported from Automake.)
76613         * build-aux/gnupload: Update to version 1.1 of directive file.
76614
76615 2006-10-16  Eric Blake  <ebb9@byu.net>
76616
76617         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76618         match Automake 1.10a.
76619
76620 2006-10-14  Bruno Haible  <bruno@clisp.org>
76621
76622         * modules/sigprocmask: New file.
76623         * lib/sigprocmask.h: New file.
76624         * lib/sigprocmask.c: New file.
76625         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76626         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76627         request sigprocmask.o.
76628         (gl_PREREQ_SIGPROCMASK): New macro.
76629         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76630         (Depends-on): Add sigprocmask.
76631         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76632         gt_SIGNALBLOCKING. Test for 'raise' only once.
76633         * lib/fatal-signal.c: Include sigprocmask.h.
76634         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76635         unblock_fatal_signals): Define always.
76636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76637         sigprocmask.
76638
76639 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         Sync from Automake.
76642         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76643         which incorrectly sets the mode of an existing destination
76644         directory.  In some cases the unpatched install-sh could do the
76645         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76646         system.  We hope this is rare in practice, but it's clearly worth
76647         fixing.  Problem reported by Alex Unleashed in
76648         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76649         Also, don't bother to check for -m bugs unless we're using -m;
76650         suggested by Stepan Kasal.
76651
76652 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76653
76654         Sync from Automake.
76655         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76656         `-c' flag, so they appear at the same position as in %FASTDEP%
76657         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76658         which ignores unknown options only after the first non-option.
76659         Bug report against M4 by Nelson H. F. Beebe.
76660
76661 2006-10-13  Jim Meyering  <jim@meyering.net>
76662
76663         Fix a bug in yesterday's change.
76664         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76665         p->fts_statp->st_dev would be used uninitialized.
76666         Ensures that we always call fts_stat on the very first entry.
76667         Miklos Szeredi reported that find -xdev stopped working.
76668
76669 2006-10-12  Bruno Haible  <bruno@clisp.org>
76670
76671         * gnulib-tool (func_get_automake_snippet): Append an automatically
76672         computed EXTRA_DIST augmentation.
76673         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76674         * modules/alloca-opt (Makefile.am): Likewise.
76675         * modules/allocsa (Makefile.am): Likewise.
76676         * modules/arcfour (Makefile.am): Likewise.
76677         * modules/arctwo (Makefile.am): Likewise.
76678         * modules/argmatch (Makefile.am): Likewise.
76679         * modules/argz (Makefile.am): Likewise.
76680         * modules/atexit (Makefile.am): Likewise.
76681         * modules/backupfile (Makefile.am): Likewise.
76682         * modules/byteswap (Makefile.am): Likewise.
76683         * modules/c-strtod (Makefile.am): Likewise.
76684         * modules/c-strtold (Makefile.am): Likewise.
76685         * modules/calloc (Makefile.am): Likewise.
76686         * modules/canon-host (Makefile.am): Likewise.
76687         * modules/canonicalize (Makefile.am): Likewise.
76688         * modules/chdir-long (Makefile.am): Likewise.
76689         * modules/chdir-safer (Makefile.am): Likewise.
76690         * modules/check-version (Makefile.am): Likewise.
76691         * modules/chown (Makefile.am): Likewise.
76692         * modules/cloexec (Makefile.am): Likewise.
76693         * modules/close-stream (Makefile.am): Likewise.
76694         * modules/closeout (Makefile.am): Likewise.
76695         * modules/crc (Makefile.am): Likewise.
76696         * modules/csharpexec (Makefile.am): Likewise.
76697         * modules/cycle-check (Makefile.am): Likewise.
76698         * modules/des (Makefile.am): Likewise.
76699         * modules/dev-ino (Makefile.am): Likewise.
76700         * modules/dirfd (Makefile.am): Likewise.
76701         * modules/dirname (Makefile.am): Likewise.
76702         * modules/dup2 (Makefile.am): Likewise.
76703         * modules/eealloc (Makefile.am): Likewise.
76704         * modules/error (Makefile.am): Likewise.
76705         * modules/euidaccess (Makefile.am): Likewise.
76706         * modules/exclude (Makefile.am): Likewise.
76707         * modules/exitfail (Makefile.am): Likewise.
76708         * modules/fcntl-safer (Makefile.am): Likewise.
76709         * modules/fcntl (Makefile.am): Likewise.
76710         * modules/file-type (Makefile.am): Likewise.
76711         * modules/fileblocks (Makefile.am): Likewise.
76712         * modules/filemode (Makefile.am): Likewise.
76713         * modules/filenamecat (Makefile.am): Likewise.
76714         * modules/fnmatch (Makefile.am): Likewise.
76715         * modules/fopen-safer (Makefile.am): Likewise.
76716         * modules/fpending (Makefile.am): Likewise.
76717         * modules/fprintftime (Makefile.am): Likewise.
76718         * modules/free (Makefile.am): Likewise.
76719         * modules/fsusage (Makefile.am): Likewise.
76720         * modules/ftruncate (Makefile.am): Likewise.
76721         * modules/fts (Makefile.am): Likewise.
76722         * modules/gc-arcfour (Makefile.am): Likewise.
76723         * modules/gc-des (Makefile.am): Likewise.
76724         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76725         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76726         * modules/gc-md4 (Makefile.am): Likewise.
76727         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76728         * modules/gc-sha1 (Makefile.am): Likewise.
76729         * modules/gc (Makefile.am): Likewise.
76730         * modules/getaddrinfo (Makefile.am): Likewise.
76731         * modules/getcwd (Makefile.am): Likewise.
76732         * modules/getdelim (Makefile.am): Likewise.
76733         * modules/getdomainname (Makefile.am): Likewise.
76734         * modules/getgroups (Makefile.am): Likewise.
76735         * modules/gethostname (Makefile.am): Likewise.
76736         * modules/gethrxtime (Makefile.am): Likewise.
76737         * modules/getline (Makefile.am): Likewise.
76738         * modules/getloadavg (Makefile.am): Likewise.
76739         * modules/getlogin_r (Makefile.am): Likewise.
76740         * modules/getndelim2 (Makefile.am): Likewise.
76741         * modules/getopt (Makefile.am): Likewise.
76742         * modules/getpagesize (Makefile.am): Likewise.
76743         * modules/getpass-gnu (Makefile.am): Likewise.
76744         * modules/getpass (Makefile.am): Likewise.
76745         * modules/getsubopt (Makefile.am): Likewise.
76746         * modules/gettime (Makefile.am): Likewise.
76747         * modules/gettimeofday (Makefile.am): Likewise.
76748         * modules/getugroups (Makefile.am): Likewise.
76749         * modules/getusershell (Makefile.am): Likewise.
76750         * modules/glob (Makefile.am): Likewise.
76751         * modules/group-member (Makefile.am): Likewise.
76752         * modules/hard-locale (Makefile.am): Likewise.
76753         * modules/hash (Makefile.am): Likewise.
76754         * modules/hmac-md5 (Makefile.am): Likewise.
76755         * modules/hmac-sha1 (Makefile.am): Likewise.
76756         * modules/human (Makefile.am): Likewise.
76757         * modules/idcache (Makefile.am): Likewise.
76758         * modules/imaxabs (Makefile.am): Likewise.
76759         * modules/imaxdiv (Makefile.am): Likewise.
76760         * modules/inet_ntop (Makefile.am): Likewise.
76761         * modules/inet_pton (Makefile.am): Likewise.
76762         * modules/intprops (Makefile.am): Likewise.
76763         * modules/inttostr (Makefile.am): Likewise.
76764         * modules/inttypes (Makefile.am): Likewise.
76765         * modules/isapipe (Makefile.am): Likewise.
76766         * modules/javaversion (Makefile.am): Likewise.
76767         * modules/lchmod (Makefile.am): Likewise.
76768         * modules/lchown (Makefile.am): Likewise.
76769         * modules/localcharset (Makefile.am): Likewise.
76770         * modules/long-options (Makefile.am): Likewise.
76771         * modules/lstat (Makefile.am): Likewise.
76772         * modules/malloc (Makefile.am): Likewise.
76773         * modules/mathl (Makefile.am): Likewise.
76774         * modules/mbchar (Makefile.am): Likewise.
76775         * modules/md2 (Makefile.am): Likewise.
76776         * modules/md4 (Makefile.am): Likewise.
76777         * modules/md5 (Makefile.am): Likewise.
76778         * modules/memcasecmp (Makefile.am): Likewise.
76779         * modules/memchr (Makefile.am): Likewise.
76780         * modules/memcmp (Makefile.am): Likewise.
76781         * modules/memcoll (Makefile.am): Likewise.
76782         * modules/memcpy (Makefile.am): Likewise.
76783         * modules/memmem (Makefile.am): Likewise.
76784         * modules/memmove (Makefile.am): Likewise.
76785         * modules/mempcpy (Makefile.am): Likewise.
76786         * modules/memrchr (Makefile.am): Likewise.
76787         * modules/memset (Makefile.am): Likewise.
76788         * modules/memxor (Makefile.am): Likewise.
76789         * modules/mkancesdirs (Makefile.am): Likewise.
76790         * modules/mkdir-p (Makefile.am): Likewise.
76791         * modules/mkdir (Makefile.am): Likewise.
76792         * modules/mkdtemp (Makefile.am): Likewise.
76793         * modules/mkstemp (Makefile.am): Likewise.
76794         * modules/mktime (Makefile.am): Likewise.
76795         * modules/modechange (Makefile.am): Likewise.
76796         * modules/mountlist (Makefile.am): Likewise.
76797         * modules/nanosleep (Makefile.am): Likewise.
76798         * modules/obstack (Makefile.am): Likewise.
76799         * modules/openat (Makefile.am): Likewise.
76800         * modules/pagealign_alloc (Makefile.am): Likewise.
76801         * modules/pathmax (Makefile.am): Likewise.
76802         * modules/physmem (Makefile.am): Likewise.
76803         * modules/poll (Makefile.am): Likewise.
76804         * modules/posixtm (Makefile.am): Likewise.
76805         * modules/posixver (Makefile.am): Likewise.
76806         * modules/putenv (Makefile.am): Likewise.
76807         * modules/quote (Makefile.am): Likewise.
76808         * modules/quotearg (Makefile.am): Likewise.
76809         * modules/raise (Makefile.am): Likewise.
76810         * modules/read-file (Makefile.am): Likewise.
76811         * modules/readline (Makefile.am): Likewise.
76812         * modules/readlink (Makefile.am): Likewise.
76813         * modules/readtokens (Makefile.am): Likewise.
76814         * modules/readutmp (Makefile.am): Likewise.
76815         * modules/realloc (Makefile.am): Likewise.
76816         * modules/regex (Makefile.am): Likewise.
76817         * modules/rename-dest-slash (Makefile.am): Likewise.
76818         * modules/rename (Makefile.am): Likewise.
76819         * modules/rijndael (Makefile.am): Likewise.
76820         * modules/rmdir (Makefile.am): Likewise.
76821         * modules/rpmatch (Makefile.am): Likewise.
76822         * modules/safe-read (Makefile.am): Likewise.
76823         * modules/safe-write (Makefile.am): Likewise.
76824         * modules/same-inode (Makefile.am): Likewise.
76825         * modules/same (Makefile.am): Likewise.
76826         * modules/save-cwd (Makefile.am): Likewise.
76827         * modules/savedir (Makefile.am): Likewise.
76828         * modules/setenv (Makefile.am): Likewise.
76829         * modules/settime (Makefile.am): Likewise.
76830         * modules/sha1 (Makefile.am): Likewise.
76831         * modules/sig2str (Makefile.am): Likewise.
76832         * modules/snprintf (Makefile.am): Likewise.
76833         * modules/stat-macros (Makefile.am): Likewise.
76834         * modules/stat-time (Makefile.am): Likewise.
76835         * modules/stdbool (Makefile.am): Likewise.
76836         * modules/stdint (Makefile.am): Likewise.
76837         * modules/stdlib-safer (Makefile.am): Likewise.
76838         * modules/stpcpy (Makefile.am): Likewise.
76839         * modules/stpncpy (Makefile.am): Likewise.
76840         * modules/strcase (Makefile.am): Likewise.
76841         * modules/strcasestr (Makefile.am): Likewise.
76842         * modules/strchrnul (Makefile.am): Likewise.
76843         * modules/strcspn (Makefile.am): Likewise.
76844         * modules/strdup (Makefile.am): Likewise.
76845         * modules/strerror (Makefile.am): Likewise.
76846         * modules/strftime (Makefile.am): Likewise.
76847         * modules/strndup (Makefile.am): Likewise.
76848         * modules/strnlen (Makefile.am): Likewise.
76849         * modules/strpbrk (Makefile.am): Likewise.
76850         * modules/strsep (Makefile.am): Likewise.
76851         * modules/strstr (Makefile.am): Likewise.
76852         * modules/strtod (Makefile.am): Likewise.
76853         * modules/strtoimax (Makefile.am): Likewise.
76854         * modules/strtok_r (Makefile.am): Likewise.
76855         * modules/strtol (Makefile.am): Likewise.
76856         * modules/strtoll (Makefile.am): Likewise.
76857         * modules/strtoul (Makefile.am): Likewise.
76858         * modules/strtoull (Makefile.am): Likewise.
76859         * modules/strtoumax (Makefile.am): Likewise.
76860         * modules/strverscmp (Makefile.am): Likewise.
76861         * modules/sys_socket (Makefile.am): Likewise.
76862         * modules/sys_stat (Makefile.am): Likewise.
76863         * modules/sysexits (Makefile.am): Likewise.
76864         * modules/time_r (Makefile.am): Likewise.
76865         * modules/timegm (Makefile.am): Likewise.
76866         * modules/timespec (Makefile.am): Likewise.
76867         * modules/tmpfile-safer (Makefile.am): Likewise.
76868         * modules/trim (Makefile.am): Likewise.
76869         * modules/unistd-safer (Makefile.am): Likewise.
76870         * modules/unlinkdir (Makefile.am): Likewise.
76871         * modules/unlocked-io (Makefile.am): Likewise.
76872         * modules/userspec (Makefile.am): Likewise.
76873         * modules/utime (Makefile.am): Likewise.
76874         * modules/utimecmp (Makefile.am): Likewise.
76875         * modules/utimens (Makefile.am): Likewise.
76876         * modules/vasnprintf (Makefile.am): Likewise.
76877         * modules/vasprintf (Makefile.am): Likewise.
76878         * modules/vsnprintf (Makefile.am): Likewise.
76879         * modules/xalloc (Makefile.am): Likewise.
76880         * modules/xgetcwd (Makefile.am): Likewise.
76881         * modules/xnanosleep (Makefile.am): Likewise.
76882         * modules/xreadlink (Makefile.am): Likewise.
76883         * modules/xstrtod (Makefile.am): Likewise.
76884         * modules/xstrtol (Makefile.am): Likewise.
76885         * modules/xstrtold (Makefile.am): Likewise.
76886         * modules/yesno (Makefile.am): Likewise.
76887         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76888
76889 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * modules/error (Makefile.am): Distribute files through
76892         EXTRA_DIST, not lib_SOURCES.
76893
76894 2006-10-12  Eric Blake  <ebb9@byu.net>
76895
76896         * modules/error (Makefile.am): Distribute files in /lib.
76897         * modules/obstack (Makefile.am): Likewise.
76898
76899 2006-10-12  Bruno Haible  <bruno@clisp.org>
76900
76901         * modules/acl (Makefile.am): Distribute all files in lib/ through
76902         EXTRA_DIST.
76903         * modules/arcfour (Makefile.am): Likewise.
76904         * modules/arctwo (Makefile.am): Likewise.
76905         * modules/argmatch (Makefile.am): Likewise.
76906         * modules/argz (Makefile.am): Likewise.
76907         * modules/atexit (Makefile.am): Likewise.
76908         * modules/backupfile (Makefile.am): Likewise.
76909         * modules/c-strtod (Makefile.am): Likewise.
76910         * modules/c-strtold (Makefile.am): Likewise.
76911         * modules/calloc (Makefile.am): Likewise.
76912         * modules/canon-host (Makefile.am): Likewise.
76913         * modules/canonicalize (Makefile.am): Likewise.
76914         * modules/chdir-long (Makefile.am): Likewise.
76915         * modules/chdir-safer (Makefile.am): Likewise.
76916         * modules/check-version (Makefile.am): Likewise.
76917         * modules/chown (Makefile.am): Likewise.
76918         * modules/cloexec (Makefile.am): Likewise.
76919         * modules/close-stream (Makefile.am): Likewise.
76920         * modules/closeout (Makefile.am): Likewise.
76921         * modules/crc (Makefile.am): Likewise.
76922         * modules/cycle-check (Makefile.am): Likewise.
76923         * modules/des (Makefile.am): Likewise.
76924         * modules/dirfd (Makefile.am): Likewise.
76925         * modules/dirname (Makefile.am): Likewise.
76926         * modules/dup2 (Makefile.am): Likewise.
76927         * modules/euidaccess (Makefile.am): Likewise.
76928         * modules/exclude (Makefile.am): Likewise.
76929         * modules/exitfail (Makefile.am): Likewise.
76930         * modules/fcntl-safer (Makefile.am): Likewise.
76931         * modules/file-type (Makefile.am): Likewise.
76932         * modules/fileblocks (Makefile.am): Likewise.
76933         * modules/filemode (Makefile.am): Likewise.
76934         * modules/filenamecat (Makefile.am): Likewise.
76935         * modules/fnmatch (Makefile.am): Likewise.
76936         * modules/fopen-safer (Makefile.am): Likewise.
76937         * modules/fpending (Makefile.am): Likewise.
76938         * modules/fprintftime (Makefile.am): Likewise.
76939         * modules/free (Makefile.am): Likewise.
76940         * modules/fsusage (Makefile.am): Likewise.
76941         * modules/ftruncate (Makefile.am): Likewise.
76942         * modules/fts (Makefile.am): Likewise.
76943         * modules/gc (Makefile.am): Likewise.
76944         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76945         * modules/getaddrinfo (Makefile.am): Likewise.
76946         * modules/getcwd (Makefile.am): Likewise.
76947         * modules/getdelim (Makefile.am): Likewise.
76948         * modules/getdomainname (Makefile.am): Likewise.
76949         * modules/getgroups (Makefile.am): Likewise.
76950         * modules/gethostname (Makefile.am): Likewise.
76951         * modules/gethrxtime (Makefile.am): Likewise.
76952         * modules/getline (Makefile.am): Likewise.
76953         * modules/getloadavg (Makefile.am): Likewise.
76954         * modules/getlogin_r (Makefile.am): Likewise.
76955         * modules/getopt (Makefile.am): Likewise.
76956         * modules/getpass (Makefile.am): Likewise.
76957         * modules/getpass-gnu (Makefile.am): Likewise.
76958         * modules/getsubopt (Makefile.am): Likewise.
76959         * modules/gettime (Makefile.am): Likewise.
76960         * modules/gettimeofday (Makefile.am): Likewise.
76961         * modules/getugroups (Makefile.am): Likewise.
76962         * modules/getusershell (Makefile.am): Likewise.
76963         * modules/glob (Makefile.am): Likewise.
76964         * modules/group-member (Makefile.am): Likewise.
76965         * modules/hard-locale (Makefile.am): Likewise.
76966         * modules/hash (Makefile.am): Likewise.
76967         * modules/hmac-md5 (Makefile.am): Likewise.
76968         * modules/hmac-sha1 (Makefile.am): Likewise.
76969         * modules/human (Makefile.am): Likewise.
76970         * modules/idcache (Makefile.am): Likewise.
76971         * modules/imaxabs (Makefile.am): Likewise.
76972         * modules/imaxdiv (Makefile.am): Likewise.
76973         * modules/inet_ntop (Makefile.am): Likewise.
76974         * modules/inet_pton (Makefile.am): Likewise.
76975         * modules/inttostr (Makefile.am): Likewise.
76976         * modules/isapipe (Makefile.am): Likewise.
76977         * modules/lchown (Makefile.am): Likewise.
76978         * modules/long-options (Makefile.am): Likewise.
76979         * modules/lstat (Makefile.am): Likewise.
76980         * modules/malloc (Makefile.am): Likewise.
76981         * modules/mathl (Makefile.am): Likewise.
76982         * modules/mbchar (Makefile.am): Likewise.
76983         * modules/md2 (Makefile.am): Likewise.
76984         * modules/md4 (Makefile.am): Likewise.
76985         * modules/md5 (Makefile.am): Likewise.
76986         * modules/memcasecmp (Makefile.am): Likewise.
76987         * modules/memchr (Makefile.am): Likewise.
76988         * modules/memcmp (Makefile.am): Likewise.
76989         * modules/memcoll (Makefile.am): Likewise.
76990         * modules/memcpy (Makefile.am): Likewise.
76991         * modules/memmem (Makefile.am): Likewise.
76992         * modules/memmove (Makefile.am): Likewise.
76993         * modules/mempcpy (Makefile.am): Likewise.
76994         * modules/memrchr (Makefile.am): Likewise.
76995         * modules/memset (Makefile.am): Likewise.
76996         * modules/memxor (Makefile.am): Likewise.
76997         * modules/mkancesdirs (Makefile.am): Likewise.
76998         * modules/mkdir (Makefile.am): Likewise.
76999         * modules/mkdir-p (Makefile.am): Likewise.
77000         * modules/mkdtemp (Makefile.am): Likewise.
77001         * modules/mkstemp (Makefile.am): Likewise.
77002         * modules/mktime (Makefile.am): Likewise.
77003         * modules/modechange (Makefile.am): Likewise.
77004         * modules/mountlist (Makefile.am): Likewise.
77005         * modules/nanosleep (Makefile.am): Likewise.
77006         * modules/openat (Makefile.am): Likewise.
77007         * modules/pagealign_alloc (Makefile.am): Likewise.
77008         * modules/physmem (Makefile.am): Likewise.
77009         * modules/poll (Makefile.am): Likewise.
77010         * modules/posixtm (Makefile.am): Likewise.
77011         * modules/posixver (Makefile.am): Likewise.
77012         * modules/putenv (Makefile.am): Likewise.
77013         * modules/quote (Makefile.am): Likewise.
77014         * modules/quotearg (Makefile.am): Likewise.
77015         * modules/raise (Makefile.am): Likewise.
77016         * modules/read-file (Makefile.am): Likewise.
77017         * modules/readline (Makefile.am): Likewise.
77018         * modules/readlink (Makefile.am): Likewise.
77019         * modules/readtokens (Makefile.am): Likewise.
77020         * modules/readutmp (Makefile.am): Likewise.
77021         * modules/realloc (Makefile.am): Likewise.
77022         * modules/regex (Makefile.am): Likewise.
77023         * modules/rename (Makefile.am): Likewise.
77024         * modules/rename-dest-slash (Makefile.am): Likewise.
77025         * modules/rijndael (Makefile.am): Likewise.
77026         * modules/rmdir (Makefile.am): Likewise.
77027         * modules/rpmatch (Makefile.am): Likewise.
77028         * modules/safe-read (Makefile.am): Likewise.
77029         * modules/safe-write (Makefile.am): Likewise.
77030         * modules/same (Makefile.am): Likewise.
77031         * modules/save-cwd (Makefile.am): Likewise.
77032         * modules/savedir (Makefile.am): Likewise.
77033         * modules/setenv (Makefile.am): Likewise.
77034         * modules/settime (Makefile.am): Likewise.
77035         * modules/sha1 (Makefile.am): Likewise.
77036         * modules/sig2str (Makefile.am): Likewise.
77037         * modules/snprintf (Makefile.am): Likewise.
77038         * modules/stdlib-safer (Makefile.am): Likewise.
77039         * modules/stpcpy (Makefile.am): Likewise.
77040         * modules/stpncpy (Makefile.am): Likewise.
77041         * modules/strcase (Makefile.am): Likewise.
77042         * modules/strcasestr (Makefile.am): Likewise.
77043         * modules/strchrnul (Makefile.am): Likewise.
77044         * modules/strcspn (Makefile.am): Likewise.
77045         * modules/strdup (Makefile.am): Likewise.
77046         * modules/strerror (Makefile.am): Likewise.
77047         * modules/strftime (Makefile.am): Likewise.
77048         * modules/strndup (Makefile.am): Likewise.
77049         * modules/strnlen (Makefile.am): Likewise.
77050         * modules/strpbrk (Makefile.am): Likewise.
77051         * modules/strsep (Makefile.am): Likewise.
77052         * modules/strstr (Makefile.am): Likewise.
77053         * modules/strtod (Makefile.am): Likewise.
77054         * modules/strtoimax (Makefile.am): Likewise.
77055         * modules/strtok_r (Makefile.am): Likewise.
77056         * modules/strtol (Makefile.am): Likewise.
77057         * modules/strtoll (Makefile.am): Likewise.
77058         * modules/strtoul (Makefile.am): Likewise.
77059         * modules/strtoull (Makefile.am): Likewise.
77060         * modules/strtoumax (Makefile.am): Likewise.
77061         * modules/strverscmp (Makefile.am): Likewise.
77062         * modules/time_r (Makefile.am): Likewise.
77063         * modules/timegm (Makefile.am): Likewise.
77064         * modules/tmpfile-safer (Makefile.am): Likewise.
77065         * modules/unistd-safer (Makefile.am): Likewise.
77066         * modules/unlinkdir (Makefile.am): Likewise.
77067         * modules/userspec (Makefile.am): Likewise.
77068         * modules/utime (Makefile.am): Likewise.
77069         * modules/utimecmp (Makefile.am): Likewise.
77070         * modules/utimens (Makefile.am): Likewise.
77071         * modules/vasnprintf (Makefile.am): Likewise.
77072         * modules/vasprintf (Makefile.am): Likewise.
77073         * modules/vsnprintf (Makefile.am): Likewise.
77074         * modules/xalloc (Makefile.am): Likewise.
77075         * modules/xgetcwd (Makefile.am): Likewise.
77076         * modules/xnanosleep (Makefile.am): Likewise.
77077         * modules/xreadlink (Makefile.am): Likewise.
77078         * modules/xstrtod (Makefile.am): Likewise.
77079         * modules/xstrtol (Makefile.am): Likewise.
77080         * modules/xstrtold (Makefile.am): Likewise.
77081         * modules/yesno (Makefile.am): Likewise.
77082
77083 2006-10-12  Jim Meyering  <jim@meyering.net>
77084
77085         * m4/getloadavg.m4: Revert the change below.
77086
77087         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77088         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77089         fail with a symlink, which is what coreutils' ./bootstrap now
77090         creates by default.
77091
77092 2006-10-12  Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77095         mingw.
77096         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77097         MSVC and mingw explicitly.
77098
77099 2006-10-11  Simon Josefsson  <jas@extundo.com>
77100             Bruno Haible  <bruno@clisp.org>
77101
77102         Add support for multiple gnulib-tool invocations in the scope of a
77103         single configure.ac file.
77104         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77105         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77106         with the same contents as the _LIBADD variable.
77107         (func_emit_initmacro_start, func_emit_initmacro_end,
77108         func_emit_initmacro_done): New functions.
77109         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77110         gl_LIBOBJS and gl_LTLIBOBJS.
77111
77112 2006-10-11  Bruno Haible  <bruno@clisp.org>
77113
77114         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77115         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77116         autoreconf. Instead, invoke autopoint explicitly but move back the
77117         *.m4 files from gnulib.
77118
77119 2006-10-11  Bruno Haible  <bruno@clisp.org>
77120
77121         * gnulib-tool (func_usage): Make module names after --create-testdir
77122         optional.
77123         (func_create_testdir): If no module was specified, use nearly all
77124         modules.
77125
77126 2006-10-12  Jim Meyering  <jim@meyering.net>
77127
77128         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77129         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77130         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77131         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77132         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77133         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77134         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77135         (fts_set_stat_required): New function.
77136         (fts_open): Defer the calls to fts_stat, if possible or requested.
77137         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77138         into fts_stat itself.
77139         (fts_read): Perform any required (deferred) fts_stat call.
77140         (fts_build): Likewise, for the directory we're about to open and read.
77141         In the readdir loop, carefully decide whether each entry will require
77142         an eventual call to fts_stat, using dirent.d_type info if available.
77143         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77144         a command line argument into this function.  Update all callers.
77145         Map a return value of FTS_DOT to FTS_D for a command line argument.
77146         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77147         Thanks to Miklos Szeredi for his tenacity and for the initial
77148         bug report about "find" failing on a FUSE-based file system.
77149
77150         * lib/fts.c (fts_open): Use consistent indentation.
77151
77152 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77155         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77156         reported by Jim Meyering.  All uses of cache variables renamed
77157         to match Autoconf's.
77158         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77159         the other one.
77160
77161         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77162         Fix misspelling in diagnostic.
77163
77164 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77165
77166         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77167         defined.  Problem reported by Matthew Woehlke.
77168
77169         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77170         Add support for Tandem NonStop R series.
77171         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77172         Use new macro.
77173
77174         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77175         (has_trailing_slash): Omit size arg; all callers changed.
77176         Omit 'inline', since it doesn't help performance and we'd
77177         need to configure it.
77178         Don't count //, ///, etc. as having a trailing slash.
77179         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77180         (rpl_rename_dest_slash): On failure, use rename's errno rather
77181         than (in some cases) an incorrect or junk errno.
77182         Simplify code by removing need to compute length; this does
77183         cause it to make two passes instead of one over the file name,
77184         but it's worth it.
77185
77186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77187         change, since Autoconf's version may no longer be appropriate now
77188         that we are using CVS Autoconf's version.  Add support for Tandem.
77189
77190 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77191             Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77194         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77195         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77196         gl_AC_TYPE_LONG_LONG.
77197
77198         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77199         instead of HAVE_LONG_LONG.
77200         * lib/printf-args.c (printf_fetchargs): Likewise.
77201         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77202         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77203         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77204         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77205         gl_AC_TYPE_LONG_LONG.
77206
77207 2006-10-11  Bruno Haible  <bruno@clisp.org>
77208
77209         * m4/longlong.m4: Add comments.
77210         * m4/ulonglong.m4: Likewise.
77211
77212 2006-10-10  Bruno Haible  <bruno@clisp.org>
77213
77214         Make it possible to #define stpcpy, strdup to aliases.
77215         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77216         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77217
77218 2006-10-10  Bruno Haible  <bruno@clisp.org>
77219
77220         Make it possible to #define gcd to an alias.
77221         * lib/gcd.c: Include config.h.
77222
77223 2006-10-10  Bruno Haible  <bruno@clisp.org>
77224
77225         Make it possible to #define c_isascii to an alias.
77226         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77227         defined. Undefine the macros before defining them, to avoid gcc
77228         warnings.
77229         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77230         define NO_C_CTYPE_MACROS early.
77231
77232 2006-10-10  Bruno Haible  <bruno@clisp.org>
77233
77234         Make it possible to #define set_program_name to an alias.
77235         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77236         ENABLE_RELOCATABLE early.
77237
77238 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77241         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77242         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77243         More generally, don't assume that 64-bit signed int is available
77244         if unsigned int is, and vice versa.
77245         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77246         unsigned symbols, not on their signed counterparts.
77247         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77248         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77249         (UINT64_C, UINTMAX_C):
77250         Likewise.
77251         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77252         unsigned counterparts.
77253         (Have_long_long, Unsigned): New macros.
77254         (Int): Renamed from INT.
77255         (strtoimax): Use the new macros.
77256         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77257         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77258         * modules/inttypes (inttypes.h): Substitute
77259         HAVE_UNSIGNED_LONG_LONG_INT.
77260         * modules/stdint (stdint.h): Likewise.
77261         (Files): Add m4/ulonglong.m4.
77262
77263 2006-10-10  Bruno Haible  <bruno@clisp.org>
77264
77265         Fix a gcc -Wshadow warning.
77266         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77267         to 'bucket'.
77268         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77269         gl_linked_indexof_from_to): Likewise.
77270         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77271         Likewise.
77272         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77273         Likewise.
77274         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77275         Reported by Eric Blake.
77276
77277 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77278
77279         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77280         for NetBSD.  Problem reported by Bruno Haible.
77281
77282 2006-10-09  Jim Meyering  <jim@meyering.net>
77283
77284         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77285         Patch from Bruno Haible.
77286
77287 2006-10-09  Jim Meyering  <jim@meyering.net>
77288
77289         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77290         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77291         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77292
77293 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         Don't include <config.h> twice; this doesn't work in some cases,
77296         e.g., when config.h has "#define intmax_t long long int" and
77297         we include <config.h>, <inttypes.h>, <config.h> in that order.
77298         Problem reported by Matthew Woehlke in:
77299         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77300         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77301         * lib/fts-cycle.c: Don't include config.h.
77302         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77303         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77304         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77305         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77306         inttypes.h.
77307         * lib/xstrtoumax.c: Likewise.
77308         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77309         __strtol and the like, so that this module is more like its siblings.
77310         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77311         Remove; no longer needed now that we assume gnulib inttypes.h.
77312
77313 2006-10-08  Bruno Haible  <bruno@clisp.org>
77314
77315         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77316         option.
77317
77318 2006-10-07  Jim Meyering  <jim@meyering.net>
77319
77320         * modules/inttypes (inttypes.h): Revert what seems to have been
77321         an inadvertent part of today's change: use "|", not "/" in the
77322         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77323
77324 2006-10-07  Bruno Haible  <bruno@clisp.org>
77325
77326         * modules/sublist: New file.
77327
77328 2006-10-07  Bruno Haible  <bruno@clisp.org>
77329
77330         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77331         * modules/argz (argz.h): Likewise.
77332         * modules/arpa_inet (arpa/inet.h): Likewise.
77333         * modules/byteswap (byteswap.h): Likewise.
77334         * modules/configmake (configmake.h): Likewise.
77335         * modules/fcntl (fcntl.h): Likewise.
77336         * modules/fnmatch (fnmatch.h): Likewise.
77337         * modules/getopt (getopt.h): Likewise.
77338         * modules/glob (glob.h): Likewise.
77339         * modules/inttypes (inttypes.h): Likewise.
77340         * modules/netinet_in (netinet/in.h): Likewise.
77341         * modules/poll (poll.h): Likewise.
77342         * modules/stdbool (stdbool.h): Likewise.
77343         * modules/stdint (stdint.h): Likewise.
77344         * modules/sys_select (sys/select.h): Likewise.
77345         * modules/sys_socket (sys/socket.h): Likewise.
77346         * modules/sys_stat (sys/stat.h): Likewise.
77347         * modules/sysexits (sysexits.h): Likewise.
77348         * modules/unistd (unistd.h): Likewise.
77349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77350         Add a "DO NOT EDIT" comment to the generated file.
77351         (func_import): Likewise for gnulib-comp.m4.
77352
77353 2006-10-07  Bruno Haible  <bruno@clisp.org>
77354
77355         * lib/gl_sublist.h: New file.
77356         * lib/gl_sublist.c: New file.
77357
77358 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77361         name (relative to the original working directory) and the file
77362         name component (relative to the temporary working directory).  All
77363         callers changed.
77364         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77365         * lib/mkdir-p.c (make_dir_parents): Likewise.
77366         * lib/mkdir-p.h (make_dir_parents): Likewise.
77367
77368 2006-10-06  Eric Blake  <ebb9@byu.net>
77369
77370         Define several macros for use by the clean-temp module.
77371         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77372         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77373         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77374
77375         * lib/clean-temp.h (close_stream_temp): New declaration.
77376         * lib/clean-temp.c (includes): Pull in headers according to what
77377         other modules are in use.
77378         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77379
77380 2006-10-06  Bruno Haible  <bruno@clisp.org>
77381
77382         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77383         instead of fopen, fwriteerror.
77384
77385 2006-10-06  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77388         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77389         int.
77390         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77391         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77392         Return an error indicator.
77393         Suggested by Eric Blake.
77394
77395 2006-10-06  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77398         Reported by Eric Blake.
77399
77400 2006-10-06  Bruno Haible  <bruno@clisp.org>
77401
77402         * modules/closeout (Description): Mention stderr too.
77403
77404 2006-10-06  Bruno Haible  <bruno@clisp.org>
77405         and Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * lib/closeout.c (close_stdout): Also close stderr.
77408         * lib/closeout.h: Update comment.
77409
77410 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77411
77412         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77413         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77414         * lib/dirchownmod.c: Include lchown.h.
77415         * lib/lchown.c: Don't include files that lchown.h now includes.
77416         Don't declare chown, since lchown.h now does that.
77417         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77418         (lchown): Define to rpl_chown if lchown is declared but
77419         does not exist.  Declare using a prototype if lchown is not
77420         declared.  Add a copyright notice.
77421         * lib/mkstemp.h: Include <unistd.h>.
77422         * lib/openat.c: Include lchown.h.
77423
77424         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77425         we now test for that separately.
77426         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77427         rather than O_NOFOLLOW, when testing whether it's possible to
77428         avoid a race condition reliably.
77429         * lib/savewd.c (savewd_chdir): Likewise.
77430
77431         Remove macros that are no longer needed now that stdint.h is
77432         reliable.
77433         * lib/fsusage.c (UINTMAX_MAX): Remove.
77434         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77435         * lib/utimecmp.c (SIZE_MAX): Remove.
77436
77437         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77438
77439         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77440         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77441         O_NOATIME works.
77442
77443 2006-10-05  Bruno Haible  <bruno@clisp.org>
77444
77445         * lib/gl_list.h (gl_sortedlist_search_from_to,
77446         gl_sortedlist_indexof_from_to): New declarations.
77447         (gl_list_implementation): New fields sortedlist_search_from_to,
77448         sortedlist_indexof_from_to.
77449         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77450         inline functions.
77451         * lib/gl_list.c (gl_sortedlist_search_from_to,
77452         gl_sortedlist_indexof_from_to): New functions.
77453         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77454         function.
77455         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77456         (gl_array_sortedlist_search_from_to): New function.
77457         (gl_array_list_implementation): Update.
77458         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77459         function.
77460         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77461         (gl_carray_sortedlist_search_from_to): New function.
77462         (gl_carray_list_implementation): Update.
77463         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77464         gl_linked_sortedlist_indexof_from_to): New functions.
77465         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77466         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77467         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77468         gl_tree_sortedlist_indexof_from_to): New functions.
77469         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77470         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77471         Update.
77472         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77473         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77474         Update.
77475
77476 2006-10-05  Bruno Haible  <bruno@clisp.org>
77477
77478         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77479         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77480         (struct gl_list_implementation): Add fields search_from_to,
77481         indexof_from_to. Remove fields search, indexof.
77482         (gl_list_search): Use the search_from_to method.
77483         (gl_list_search_from, gl_list_search_from_to): New functions.
77484         (gl_list_indexof): Use the indexof_from_to method.
77485         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77486         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77487         (gl_list_search_from, gl_list_search_from_to): New functions.
77488         (gl_list_indexof): Use the indexof_from_to method.
77489         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77490         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77491         gl_array_indexof. Add start_index, end_index arguments.
77492         (gl_array_search_from_to): Renamed from gl_array_search. Add
77493         start_index, end_index arguments.
77494         (gl_array_remove, gl_array_list_implementation): Update.
77495         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77496         gl_carray_indexof. Add start_index, end_index arguments.
77497         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77498         start_index, end_index arguments.
77499         (gl_carray_remove, gl_carray_list_implementation): Update.
77500         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77501         gl_linked_search. Add start_index, end_index arguments.
77502         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77503         start_index, end_index arguments.
77504         (gl_linked_remove): Update.
77505         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77506         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77507         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77508         field to 'size_t'.
77509         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77510         gl_tree_search. Add start_index, end_index arguments.
77511         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77512         start_index, end_index arguments.
77513         (gl_tree_remove): Update.
77514         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77515         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77516         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77517         function.
77518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77519         gl_tree_search. Add start_index, end_index arguments.
77520         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77521         start_index, end_index arguments.
77522         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77523         Update.
77524         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77525
77526 2006-10-05  Bruno Haible  <bruno@clisp.org>
77527
77528         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77529
77530         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77531         fwriteerror_temp): New declarations.
77532         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77533         (descriptors): New variable.
77534         (cleanup): First, close the descriptors.
77535         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77536         fclose_temp, fwriteerror_temp): New functions.
77537
77538 2006-10-04  Jim Meyering  <jim@meyering.net>
77539
77540         * lib/fts.c (fts_open): Tiny comment change.
77541
77542 2006-10-04  Bruno Haible  <bruno@clisp.org>
77543
77544         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77545         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77546         gl_LOCK_BODY.
77547         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77548         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77549         gl_LOCK_EARLY_BODY.
77550         (gl_LOCK): Require gl_LOCK_BODY.
77551
77552 2006-10-04  Bruno Haible  <bruno@clisp.org>
77553
77554         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77555         (gl_oset_search_atleast): New declaration.
77556         (struct gl_oset_implementation): Add field 'search_atleast'.
77557         (gl_oset_search_atleast): New inline function.
77558         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77559         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77560         (gl_array_oset_implementation): Update.
77561         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77562         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77563         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77564
77565 2006-10-04  Bruno Haible  <bruno@clisp.org>
77566
77567         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77568
77569 2006-10-03  Bruno Haible  <bruno@clisp.org>
77570
77571         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77572         from gl_avltreehash_list_implementation.
77573
77574 2006-10-03  Bruno Haible  <bruno@clisp.org>
77575
77576         * lib/gl_oset.c (gl_oset_add): Fix return type.
77577
77578 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77579
77580         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77581
77582 2006-10-02  Eric Blake  <ebb9@byu.net>
77583
77584         * modules/strnlen (Depends-on): Add extensions.
77585
77586 2006-10-02  Eric Blake  <ebb9@byu.net>
77587
77588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77589         definition in 2.60+.
77590
77591 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77592
77593         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77594         checks.
77595
77596 2006-10-02  Bruno Haible  <bruno@clisp.org>
77597
77598         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77599         to the AUTOMAKE_OPTIONS.
77600         Reported by Jim Meyering.
77601
77602 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77603
77604         Work around bug in Solaris 10 /proc file system:
77605         /proc/self/fd/NNN/.. isn't the parent directory of
77606         the directory whose file descriptor is NNN.  This needs to
77607         be worked around at run time, not compile time, since a
77608         program might be built on Solaris 8, where things work, and
77609         run on Solaris 10.
77610         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77611         to use the following interface instead:
77612         (OPENAT_BUFFER_SIZE): New macro.
77613         (openat_proc_name): New function.
77614         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77615         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77616         Likewise.
77617         * lib/openat-proc.c: New file.
77618         * modules/openat (Files): Add lib/openat-proc.c.
77619         (Depends-on): Add same-inode, stdbool.
77620         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77621
77622 2006-09-29  Bruno Haible  <bruno@clisp.org>
77623
77624         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77625         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77626         argument. Set stdout_closed before testing for ferror, not after.
77627         (fwriteerror, fwriteerror_no_ebadf): New functions.
77628
77629 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77630
77631         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77632
77633 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77634
77635         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77636         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77637
77638 2006-09-28  Jim Meyering  <jim@meyering.net>
77639
77640         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77641         Include <unistd.h>.
77642
77643 2006-09-28  Bruno Haible  <bruno@clisp.org>
77644
77645         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77646         * modules/linkedhash-list (Depends-on): Likewise.
77647         * modules/rbtreehash-list (Depends-on): Likewise.
77648
77649 2006-09-28  Bruno Haible  <bruno@clisp.org>
77650
77651         * lib/strndup.h: Simplify the redefinition of strndup.
77652         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77653         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77654
77655 2006-09-28  Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77658         * lib/gl_linkedhash_list.c: Likewise.
77659         * lib/gl_rbtreehash_list.c: Likewise.
77660
77661 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77664         getaddrinfo.
77665
77666         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77667         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77668         it causes <stdio_ext.h> to cause a compile-time error.
77669         Problem reported by Nelson H. F. Beebe.
77670         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77671         of HAVE_DECL___PENDING.
77672
77673         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77674         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77675         declaration.
77676
77677 2006-09-27  Jim Meyering  <jim@meyering.net>
77678
77679         This file could end up with a definition for a function
77680         named __strndup, rather than rpl_strndup on a system with
77681         incomplete weak_alias support.
77682         * lib/strndup.c (strndup): Rename from __strndup.
77683         Remove #defines that used to map __strndup to strndup.
77684         Don't use K&R prototypes.
77685         Remove LIBC-related code, since this file is not sync'd with glibc.
77686         * lib/strndup.h: Revamp, accordingly.
77687         * m4/strndup.m4: Modernize.
77688
77689 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * modules/savewd (Depends-on): Add 'raise'.
77692         * lib/savewd.c: Include <signal.h>, for 'raise'.
77693
77694 2006-09-26  Jim Meyering  <jim@meyering.net>
77695
77696         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77697         when we detect Darwin 8.7.0's acl_get_file bug.
77698         Rearrange to perform the new (below) run-test while $LIBS
77699         contains any acl-related library.  Set USE_ACL at the end.
77700         (gl_ACL_GET_FILE): New function.
77701
77702 2006-09-26  Eric Blake  <ebb9@byu.net>
77703
77704         * lib/verror.c: Include <config.h> unconditionally.
77705
77706 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * modules/clock-time (Maintainer): Add self.
77709         * modules/getlogin_r (Depends-on): Add extensions.
77710
77711 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77712
77713         * modules/clock-time: New module.
77714         * modules/nanosleep (Depends-on): Add clock-time.
77715         * modules/gethrxtime (Depends-on): Likewise.
77716         * modules/gettime (Depends-on): Likewise.
77717         * modules/settime (Depends-on): Likewise.
77718
77719         * modules/fts-lgpl: Depend on openat.
77720         * modules/mkancesdirs: Depend on savewd.
77721         * modules/mkdir-p: Likewise.
77722
77723 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77724
77725         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77726
77727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77728         `gl_have_arbitrary_file_name_length_limit' to
77729         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77730         actually works between configure runs.
77731
77732 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77733             Bruno Haible  <bruno@clisp.org>
77734
77735         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77736
77737 2006-09-25  Jim Meyering  <jim@meyering.net>
77738
77739         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77740         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77741
77742 2006-09-25  Eric Blake  <ebb9@byu.net>
77743
77744         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77745         exec's in 2006-09-18 patch when shuffling fds.
77746
77747 2006-09-25  Bruno Haible  <bruno@clisp.org>
77748
77749         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77750         Reported by Jim Meyering.
77751
77752 2006-09-24  Jim Meyering  <jim@meyering.net>
77753
77754         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77755         compare a pointer against a literal "0".  That caused failures with
77756         at least HP-UX's hpcc.
77757
77758 2006-09-22  Simon Josefsson  <jas@extundo.com>
77759
77760         * modules/gc-sha1:
77761         * modules/gc-md4:
77762         * modules/gc-hmac-sha1:
77763         * modules/gc-hmac-md5:
77764         * modules/gc-des:
77765         * modules/gc-arcfour: Distribute more files.
77766
77767 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77768
77769         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77770         (gl_linked_iterator_from_to): Initialize struct completely.
77771         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77772         (gl_tree_iterator_from_to): Likewise
77773         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77774         * lib/gl_array_list.c [lint] (gl_array_iterator)
77775         (gl_array_iterator_from_to): Likewise.
77776         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77777         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77778         (gl_carray_iterator_from_to): Likewise.
77779
77780         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77781         * lib/md4.c (md4_process_block): Remove unused variable.
77782         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77783         parentheses for clarity.
77784
77785 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77786
77787         * modules/bison-i18n (Depends-on): Add gettext.
77788
77789 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77790
77791         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77792         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77793         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77794         also add missing comma that caused broken test.
77795         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77796         stdlib.h, for `abort'.
77797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77798         variables.
77799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77800         include unistd.h if present, for `rmdir'.
77801         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77802         variables.
77803         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77804         in the process include standard headers for prototypes.
77805         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77806         gets declared on GNU/Linux.
77807         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77808         unistd.h, for `rmdir'.
77809         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77810
77811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77812         always true.
77813         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77814
77815         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77816
77817 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77818
77819         * gnulib-tool (func_version): Create output all at once.  This
77820         may help avoid triggering unnecessary SIGPIPEs, and at any
77821         rate it doesn't hurt.
77822
77823 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77824             Bruno Haible  <bruno@clisp.org>
77825
77826         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77827         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77828         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77829
77830         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77831         (gl_FUNC_VASPRINTF): Invoke it.
77832
77833 2006-09-22  Bruno Haible  <bruno@clisp.org>
77834
77835         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77836         getloadavg.c as first argument.
77837
77838 2006-09-22  Bruno Haible  <bruno@clisp.org>
77839
77840         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77841         at the beginning of the gl_INIT macro.
77842         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77843         gl_GETLOADAVG.
77844
77845 2006-09-22  Bruno Haible  <bruno@clisp.org>
77846
77847         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77848         module.
77849         Suggested by Ralf Wildenhues.
77850
77851 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         Import this patch from libc:
77854
77855         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77856
77857         * lib/regex_internal.c (re_string_reconstruct): Handle
77858         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77859         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77860         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77861         re_string_context_at.
77862
77863         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77864         now requires it.
77865         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77866         gl_REGEX now does it for us.
77867         (gl_REGEX): Add test taken from
77868         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77869
77870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77871         Check that large offsets work.  Modernize Autoconf usages.
77872         Prefer "yes" to mean a good thing rather than a bad.
77873         Don't put "#define mkstemp" in config.h, as this might interfere
77874         with standard system headers that "#define mkstemp mkstemp64".
77875
77876         * modules/mkstemp (Depends-on): Add extensions, so that
77877         mkstemp is visible on some platforms.
77878         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77879         (Include): Change to "mkstemp.h" from <stdlib.h>.
77880         (Files): Add mkstemp.h.
77881
77882         * lib/mkstemp.h: New file, since some standard headers
77883         #define mkstemp.
77884         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77885         Include "mkstemp.h".
77886         Make the _LIBC code resemble glibc original more,
77887         e.g., use K&R style.
77888         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77889         (mkstemp): Remove, since mkstemp.h does this for us.
77890         * lib/stdlib--.h: Include mkstemp.h.
77891
77892         Import this patch from libc:
77893
77894         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77895
77896         * lib/tempname.c (__gen_tempname): Change attempts_min
77897         into a macro.  Use preprocessor to decide how to initialize
77898         attempts [Coverity CID 67].
77899
77900 2006-09-20  Bruno Haible  <bruno@clisp.org>
77901
77902         * lib/mkdtemp.c: Import from libc.
77903         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77904                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77905                 attempts_min into a macro.  Use preprocessor to decide how to
77906                 initialize attempts [Coverity CID 67].
77907         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77908                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77909                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77910
77911 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77912
77913         * gnulib-tool (func_exit): New function, to allow to pass the
77914         exit status portably through the trap.  Use everywhere.
77915         (--help, --version): Signal a write error.
77916         (trap): catch SIGPIPE, for write errors.
77917         Exit at the end of the trap, with the correct exit status.
77918
77919 2006-09-19  Karl Berry  <karl@gnu.org>
77920
77921         * doc/gnulib.texi: note about the license texinfo files.
77922
77923 2006-09-19  Eric Blake  <ebb9@byu.net>
77924
77925         * gnulib-tool: Avoid space-tab.
77926
77927 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77930         that prevented coreutils 6.1 from building.  Problem reported
77931         by Petter Reinholdtsen.
77932
77933 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * gnulib-tool (avoidlist): Fix typo that broke options like
77936         --avoid=lock that are used by coreutils bootstrap.
77937
77938 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77939
77940         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77941         more systematically.
77942
77943 2006-09-18  Jim Meyering  <jim@meyering.net>
77944
77945         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77946
77947 2006-09-18  Bruno Haible  <bruno@clisp.org>
77948
77949         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77950
77951 2006-09-18  Bruno Haible  <bruno@clisp.org>
77952
77953         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77954         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77955         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77956         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77957         * m4/gettext.m4: Require autoconf >= 2.52.
77958         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77959         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77960         of gl_cv_header_inttypes_h.
77961
77962 2006-09-18  Bruno Haible  <bruno@clisp.org>
77963
77964         * lib/javaversion.c: Include configmake.h.
77965
77966 2006-09-18  Bruno Haible  <bruno@clisp.org>
77967
77968         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77969         avoid that the while loops be executed in a subshell.
77970
77971 2006-09-18  Bruno Haible  <bruno@clisp.org>
77972
77973         * MODULES.html.sh (func_module): Break long lines.
77974         Suggested by Bruce Korb <bkorb@gnu.org>.
77975
77976 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77977
77978         Speed up by a factor of 1.12.
77979         * gnulib-tool (nl): New variable.
77980         (func_import): Rewrite include directive extraction to only read each
77981         directive once.
77982
77983 2006-09-17  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/javaversion (Makefile.am): Remove DEFS setting.
77986         (Depends-on): Add configmake, for PKGDATADIR definition.
77987
77988 2006-09-17  Bruno Haible  <bruno@clisp.org>
77989
77990         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77991
77992 2006-09-17  Bruno Haible  <bruno@clisp.org>
77993
77994         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77995         (func_modules_transitive_closure, func_modules_add_dummy,
77996         func_modules_to_filelist, func_import, func_create_testdir,
77997         func_create_megatestdir, ...): Use it wherever possible.
77998         Suggested by Ralf Wildenhues.
77999
78000 2006-09-16  Karl Berry  <karl@gnu.org>
78001
78002         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78003         to avoid sectioning errors.
78004         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78005         [ifinfo]: blank line after @center-ed titles.
78006         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78007         Spell FSF address consistently with others.
78008         (These changes approved by rms.)
78009
78010 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78011
78012         Speed up by a factor of 1.61.
78013         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78014         already checked module names again.
78015
78016 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78017
78018         Speed up by a factor of 1.13.
78019         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78020         for new_files, and the input to func_add_or_update.
78021
78022 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78023
78024         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78025         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78026
78027 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * modules/mkancesdirs (Depends-on): Add fcntl.
78030         * modules/savewd: New file.
78031         * MODULES.html.sh (File system functions): Add savewd.
78032
78033         * modules/configmake (Makefile.am): Add support for the
78034         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78035
78036 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * m4/savewd.m4: New file.
78039
78040 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78043         (dirchownmod): New arg FD.  All callers changed.
78044         Use FD rather than opening the directory ourself, as opening is
78045         now the caller's responsibility.
78046         * lib/dirchownmod.h: Likewise.
78047         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78048         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78049         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78050         (test_dir): Remove.
78051         (mkancesdirs): Return length of prefix of FILE that has already
78052         been made, or -2 if there is a child doing the work.  Redo
78053         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78054         ".", and treat ".." specially since it might stray back into
78055         already-created areas.  Use a subprocess if necessary.  New arg
78056         WD; all users changed.  MAKE_DIR function should now return 1
78057         if it creates a directory that is not readable.  Return -2 if
78058         a child process is spun off.
78059         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78060         Adjust signature to match code.
78061         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78062         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78063         all users changed.
78064         * lib/savewd.c, lib/savewd.h: New files.
78065
78066 2006-09-15  Jim Meyering  <jim@meyering.net>
78067
78068         * modules/rename-dest-slash: New module.
78069         * MODULES.html.sh (posix_compat): Add it here.
78070
78071         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78072
78073 2006-09-15  Jim Meyering  <jim@meyering.net>
78074
78075         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78076         file.
78077
78078         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78079
78080 2006-09-15  Jim Meyering  <jim@meyering.net>
78081
78082         * lib/rename-dest-slash.c (has_trailing_slash): Use
78083         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78084         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78085         test before testing whether SRC is a directory.
78086         Suggestions from Bruno Haible.
78087
78088         Avoid a warning about an unused variable.
78089         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78090         into the #ifdef block where it's used.
78091
78092         * lib/rename-dest-slash.c: New file.
78093
78094 2006-09-14  Bruno Haible  <bruno@clisp.org>
78095
78096         * lib/allocsa.c: Include <config.h> unconditionally.
78097         * lib/asnprintf.c: Likewise.
78098         * lib/asprintf.c: Likewise.
78099         * lib/c-strcasecmp.c: Likewise.
78100         * lib/c-strcasestr.c: Likewise.
78101         * lib/c-strncasecmp.c: Likewise.
78102         * lib/c-strstr.c: Likewise.
78103         * lib/classpath.c: Likewise.
78104         * lib/clean-temp.c: Likewise.
78105         * lib/concatpath.c: Likewise.
78106         * lib/copy-file.c: Likewise.
78107         * lib/csharpcomp.c: Likewise.
78108         * lib/csharpexec.c: Likewise.
78109         * lib/execute.c: Likewise.
78110         * lib/fatal-signal.c: Likewise.
78111         * lib/findprog.c: Likewise.
78112         * lib/fwriteerror.c: Likewise.
78113         * lib/gl_array_list.c: Likewise.
78114         * lib/gl_array_oset.c: Likewise.
78115         * lib/gl_avltree_list.c: Likewise.
78116         * lib/gl_avltree_oset.c: Likewise.
78117         * lib/gl_avltreehash_list.c: Likewise.
78118         * lib/gl_carray_list.c: Likewise.
78119         * lib/gl_linked_list.c: Likewise.
78120         * lib/gl_linkedhash_list.c: Likewise.
78121         * lib/gl_list.c: Likewise.
78122         * lib/gl_oset.c: Likewise.
78123         * lib/gl_rbtree_list.c: Likewise.
78124         * lib/gl_rbtree_oset.c: Likewise.
78125         * lib/gl_rbtreehash_list.c: Likewise.
78126         * lib/imaxabs.c: Likewise.
78127         * lib/imaxdiv.c: Likewise.
78128         * lib/javacomp.c: Likewise.
78129         * lib/javaexec.c: Likewise.
78130         * lib/javaversion.c: Likewise.
78131         * lib/linebreak.c: Likewise.
78132         * lib/localcharset.c: Likewise.
78133         * lib/lock.c: Likewise.
78134         * lib/mbchar.c: Likewise.
78135         * lib/mbswidth.c: Likewise.
78136         * lib/mkdtemp.c: Likewise.
78137         * lib/pipe.c: Likewise.
78138         * lib/printf-args.c: Likewise.
78139         * lib/printf-parse.c: Likewise.
78140         * lib/progname.c: Likewise.
78141         * lib/progreloc.c: Likewise.
78142         * lib/readlink.c: Likewise.
78143         * lib/sh-quote.c: Likewise.
78144         * lib/stpcpy.c: Likewise.
78145         * lib/stpncpy.c: Likewise.
78146         * lib/strcasecmp.c: Likewise.
78147         * lib/strcasestr.c: Likewise.
78148         * lib/strcspn.c: Likewise.
78149         * lib/striconv.c: Likewise.
78150         * lib/strncasecmp.c: Likewise.
78151         * lib/strnlen1.c: Likewise.
78152         * lib/strstr.c: Likewise.
78153         * lib/strtok_r.c: Likewise.
78154         * lib/tls.c: Likewise.
78155         * lib/tmpdir.c: Likewise.
78156         * lib/unicodeio.c: Likewise.
78157         * lib/unsetenv.c: Likewise.
78158         * lib/vasnprintf.c: Likewise.
78159         * lib/vasprintf.c: Likewise.
78160         * lib/wait-process.c: Likewise.
78161         * lib/xallocsa.c: Likewise.
78162         * lib/xsetenv.c: Likewise.
78163         * lib/xstriconv.c: Likewise.
78164
78165 2006-09-13  Simon Josefsson  <jas@extundo.com>
78166
78167         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78168         that internally, suggested by Ralf Wildenhues
78169         <Ralf.Wildenhues@gmx.de>.
78170
78171 2006-09-13  Simon Josefsson  <jas@extundo.com>
78172
78173         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78174         @LIBOBJS@.
78175         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78176
78177 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78180         longer worry about uses that don't define HAVE_CONFIG_H.
78181         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78182         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78183         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78184         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78185         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78186         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78187         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78188         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78189         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78190         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78191         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78192         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78193         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78194         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78195         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78196         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78197         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78198         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78199         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78200         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78201         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78202         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78203         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78204         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78205         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78206         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78207         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78208         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78209         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78210         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78211         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78212         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78213         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78214         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78215         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78216         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78217         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78218         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78219         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78220         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78221         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78222         Likewise.
78223
78224 2006-09-13  Eric Blake  <ebb9@byu.net>
78225
78226         * lib/getopt.c: Fix typo in last commit.
78227
78228 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78229
78230         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78231         dgettext.
78232
78233 2006-09-12  Jim Meyering  <jim@meyering.net>
78234
78235         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78236         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78237         Reported by Nelson H. F. Beebe.
78238
78239 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78240
78241         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78242         program_invocation_name and program_invocation_short_name are
78243         initialized.
78244         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78245         and program_invocation_short_name to argp.h, so they are visible
78246         to user programs.
78247         * lib/argp.h: Likewise
78248
78249 2006-09-10  Bruno Haible  <bruno@clisp.org>
78250
78251         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78252         m4/inttypes_h.m4, m4/uintmax_t.m4.
78253
78254 2006-09-10  Bruno Haible  <bruno@clisp.org>
78255
78256         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78257         gl_AC_TYPE_UINTMAX_T.
78258
78259 2006-09-10  Bruno Haible  <bruno@clisp.org>
78260
78261         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78262
78263 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78264
78265         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78266         convention.  Text proposed by Bruno Haible.
78267         (struct argp_option): Document the use of N_() wrappers.
78268
78269         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78270         '\v', and translate the two parts separately, instead of feeding
78271         the whole string to gettext.  This allows to exclude
78272         '\v' from the strings visible to the translator by writing doc
78273         strings as N_("..") "\v" N_("..").
78274
78275 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78276
78277         * config/srclist.txt: Undo latest change; the bug was fixed.
78278
78279 2006-09-09  Bruno Haible  <bruno@clisp.org>
78280
78281         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78282         assignments if building a library without libtool.
78283         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78284         in func_emit_lib_Makefile_am.
78285         (func_import): When building a static library libfoo.a, arrange to
78286         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78287         (func_create_testdir): Likewise.
78288         * modules/gc (configure.ac, Makefile.am): If building statically,
78289         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78290         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78291         * modules/striconv (configure.ac, Makefile.am): Likewise.
78292         Based on a suggestion by Ralf Wildenhues.
78293
78294 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78297         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78298         Also:
78299
78300         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78301         Add year_2050_test to catch glibc bug 2821
78302         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78303
78304         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78305         Prefer #ifdef to #if.
78306
78307         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78308         Return from 'main' instead of calling 'exit'.
78309
78310 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78311
78312         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78313         returned the maximum time_t value rather than (time_t) -1.
78314         Problem originally reported by William Bardwell
78315         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78316
78317         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78318         Moved to here ...
78319         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78320         ... from here.
78321
78322 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78325         2821 is fixed.
78326
78327 2006-09-08  Jim Meyering  <jim@meyering.net>
78328
78329         Don't make generated files read-only.  That would bother too many
78330         people.  However, do retain the ability to work when targets are
78331         read-only: remove the destination and temporary files before writing
78332         them (when generated via sed or echo), or by using the -f option for
78333         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78334         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78335         * modules/byteswap, modules/configmake, modules/fcntl:
78336         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78337         * modules/localcharset, modules/netinet_in, modules/poll:
78338         * modules/stdbool, modules/stdint, modules/sys_select:
78339         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78340
78341 2006-09-08  Jim Meyering  <jim@meyering.net>
78342
78343         Avoid new build failure on FreeBSD 6.0.
78344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78345         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78346         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78347
78348 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78349
78350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78351
78352 2006-09-07  Jim Meyering  <jim@meyering.net>
78353
78354         Fix global typo in last change: use chmod u-w, not chmod u-x.
78355         Spotted by Paul Eggert and Bruce Korb.
78356         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78357         * modules/byteswap, modules/configmake, modules/fcntl:
78358         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78359         * modules/localcharset, modules/netinet_in, modules/poll:
78360         * modules/stdbool, modules/stdint, modules/sys_select:
78361         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78362
78363 2006-09-06  Jim Meyering  <jim@meyering.net>
78364
78365         Make generated files be read-only.
78366         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78367         Ensure that each generated file is now read-only.
78368         * modules/argz: Likewise.
78369         * modules/arpa_inet: Likewise.
78370         * modules/byteswap: Likewise.
78371         * modules/configmake: Likewise.
78372         * modules/fcntl: Likewise.
78373         * modules/fnmatch: Likewise.
78374         * modules/getopt: Likewise.
78375         * modules/glob: Likewise.
78376         * modules/inttypes: Likewise.
78377         * modules/netinet_in: Likewise.
78378         * modules/poll: Likewise.
78379         * modules/stdbool: Likewise.
78380         * modules/stdint: Likewise.
78381         * modules/sys_select: Likewise.
78382         * modules/sys_socket: Likewise.
78383         * modules/sys_stat: Likewise.
78384         * modules/sysexits: Likewise.
78385         * modules/localcharset: Same as above, but continue using temporary
78386         file named "t-$@" (why different?) rather than the "$@-t" used
78387         everywhere else.
78388
78389         * modules/sysexits (Makefile.am): Replace literal occurrences
78390         of "sysexit.h" more readable, and more consistent, "$@".
78391
78392 2006-09-06  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/striconv: New file.
78395         * modules/xstriconv: New file.
78396         * MODULES.html.sh (Internationalization functions): Add striconv,
78397         xstriconv.
78398
78399 2006-09-06  Bruno Haible  <bruno@clisp.org>
78400
78401         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78402         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78403         not using libtool correctly.
78404
78405 2006-09-06  Bruno Haible  <bruno@clisp.org>
78406
78407         * lib/striconv.h: New file.
78408         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78409         iconvstring.c.
78410         * lib/xstriconv.h: New file.
78411         * lib/xstriconv.c: New file.
78412
78413 2006-09-06  Bruno Haible  <bruno@clisp.org>
78414
78415         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78416         lib_..._LDFLAGS.
78417
78418 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78419
78420         * lib/argz_.h: Sync from Libtool.
78421
78422         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78423                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78424
78425         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78426
78427 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78428
78429         * modules/trim: New file.
78430
78431 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78432
78433         * lib/trim.h: New file.
78434         * lib/trim.c: New file.
78435
78436 2006-09-05  Bruno Haible  <bruno@clisp.org>
78437
78438         * MODULES.html.sh (String handling): Add trim.
78439
78440 2006-09-04  Karl Berry  <karl@gnu.org>
78441
78442         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78443         until next release.
78444
78445 2006-09-03  Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78448         correctly.
78449
78450 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78453         not gl_GETLOADAVG.  Omit unneeded semicolons.
78454         Problems reported by Ralf Wildenhues in
78455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78456         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78457         at the end, which is the usual gnulib style.
78458
78459         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78460         of doing all the work ourselves.
78461         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78462         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78463
78464 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78465
78466         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78467         Problem reported by Ralf Wildenhues in
78468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78469
78470         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78471         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78472
78473 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78476         yesterday's patch by changing test -n to test -z.
78477
78478 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78481         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78482         the former is now obsolescent.
78483
78484         * modules/chdir-long (Depends-on): Add fcntl.
78485
78486 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78489         obsolescent, and programs should use gnulib instead.
78490         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78491         but with prefixes changed.
78492
78493 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78496         or stdbool.h, because they might not exist while configuring.
78497
78498         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78499         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78500         does that for us.
78501         (O_DIRECTORY): Remove.
78502
78503 2006-08-31  Eric Blake  <ebb9@byu.net>
78504
78505         * gnulib-tool: Don't let emacs change spaces to TAB.
78506
78507 2006-08-31  Bruno Haible  <bruno@clisp.org>
78508
78509         * gnulib-tool: When calling func_import more than once, do it in a
78510         subshell.
78511         Reported by Eric Blake <ebb9@byu.net>.
78512
78513 2006-08-31  Bruno Haible  <bruno@clisp.org>
78514
78515         * gnulib-tool (nl): Remove variable.
78516         (sed_transform_lib_file): Use more robust test for config-h module.
78517         (func_import): Fix typo in 2006-08-25 patch.
78518
78519 2006-08-31  Bruno Haible  <bruno@clisp.org>
78520
78521         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78522         specified, augment Makefile.am variables instead of assigning them.
78523
78524 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         Work around a bug in both the Linux and SunOS 64-bit kernels:
78527         nanosleep mishandles sleeps for longer than 2**31 seconds.
78528         Problem reported by Frank v Waveren in
78529         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78531         Check for nanosleep bug.
78532         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78533
78534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         Work around a bug in both the Linux and SunOS 64-bit kernels:
78537         nanosleep mishandles sleeps for longer than 2**31 seconds.
78538         Problem reported by Frank v Waveren in
78539         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78540         * lib/nanosleep.c (BILLION): New constant.
78541         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78542         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78543         implementation.
78544
78545 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * modules/nanosleep (Depends-on): Add gettime.
78548
78549 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78550         and Simon Josefsson  <jas@extundo.com>
78551         and Oskar Liljeblad  <oskar@osk.mine.nu>
78552
78553         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78554         * gnulib-tool (func_import): New license type 'unmodifiable license
78555         text'.
78556         * modules/fdl: Use it.  Longer description.
78557         * module/gpl, module/lgpl: New files.
78558
78559 2006-08-30  Jim Meyering  <jim@meyering.net>
78560
78561         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78562         shadowing the parameter.
78563
78564 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78565
78566         Sync from Libtool:
78567
78568         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78569
78570         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78571         sharing with gnulib.  Report by Eric Blake.
78572
78573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * modules/isapipe: New file.
78576         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78577
78578 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * modules/configmake (Makefile.am): Add a comment, and omit
78581         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78582         by Bruno Haible.
78583
78584 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * m4/isapipe.m4: New file.
78587
78588 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         * lib/isapipe.c, lib/isapipe.h: New files.
78591
78592 2006-08-29  Jim Meyering  <jim@meyering.net>
78593
78594         * modules/configmake (Makefile.am): Make configmake.h depend on
78595         Makefile.  Otherwise, a stale configmake.h could hang around.
78596
78597 2006-08-29  Eric Blake  <ebb9@byu.net>
78598
78599         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78600         resolution of upstream bug 3044.
78601
78602 2006-08-29  Bruno Haible  <bruno@clisp.org>
78603
78604         * modules/localcharset (Depends-on): Add configmake.
78605         (Makefile.am): Remove setting of LIBDIR through DEFS.
78606
78607 2006-08-29  Bruno Haible  <bruno@clisp.org>
78608
78609         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78610         defined.
78611
78612 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * modules/fcntl: New file.
78615         * modules/chdir-safer (Depends-on): Add fcntl.
78616         * modules/fts: Likewise.
78617         * modules/mkdir-p: Likewise.
78618
78619         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78620         This undoes the most recent change, since we're now addressing the
78621         problem in a different way.
78622
78623         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78624         into output, since the output might be called Makefile.am even
78625         if $makefile_name is something different.
78626         (func_import): Use $makefile_am rather than
78627         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78628         empty.
78629
78630         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78631
78632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78635         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78636         recent change to stdint.m4, since we're now addressing the problem in a
78637         different way.
78638
78639 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         * m4/fcntl_h.m4: New file.
78642
78643 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/fcntl_.h: New file.
78646         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78647         the fcntl module.
78648         * lib/dirchownmod.c: Likewise.
78649         * lib/fts.c: Likewise.
78650
78651         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78652         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78653         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78654         just before including <inttypes.h>, to avoid circular inclusion.
78655
78656 2006-08-28  Jim Meyering  <jim@meyering.net>
78657
78658         * doc/visibility.texi: Actually read and correct the grammar of the
78659         sentence affected by yesterday's change.
78660
78661 2006-08-28  Eric Blake  <ebb9@byu.net>
78662
78663         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78664         needs wrapper.
78665
78666 2006-08-28  Eric Blake  <ebb9@byu.net>
78667
78668         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78669
78670 2006-08-28  Eric Blake  <ebb9@byu.net>
78671
78672         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78673
78674 2006-08-28  Bruno Haible  <bruno@clisp.org>
78675
78676         * modules/c-strstr: New file, from GNU gettext.
78677         * MODULES.html.sh (String handling): Add c-strstr.
78678
78679 2006-08-28  Bruno Haible  <bruno@clisp.org>
78680
78681         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78682         macros.
78683         Reported by Eric Blake.
78684
78685 2006-08-28  Bruno Haible  <bruno@clisp.org>
78686
78687         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78688         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78689         * lib/vasprintf.c: Include errno.h, limits.h.
78690         (EOVERFLOW): New fallback definition.
78691         (vasprintf): Test here whether the string length is > INT_MAX.
78692         * lib/vsnprintf.c: Include errno.h, limits.h.
78693         (EOVERFLOW): New fallback definition.
78694         (vsnprintf): Fix bug when generated string was too long for the buffer.
78695         Test here whether the string length is > INT_MAX.
78696
78697 2006-08-28  Bruno Haible  <bruno@clisp.org>
78698
78699         * lib/inttypes_.h (SCNX*): Remove definitions.
78700         Reported by Eric Blake.
78701
78702 2006-08-28  Bruno Haible  <bruno@clisp.org>
78703
78704         * lib/c-strstr.h: New file, from GNU gettext.
78705         * lib/c-strstr.c: New file, from GNU gettext.
78706
78707 2006-08-28  Bruno Haible  <bruno@clisp.org>
78708
78709         * gnulib-tool: Reorder some statements.
78710
78711 2006-08-28  Bruno Haible  <bruno@clisp.org>
78712
78713         * gnulib-tool: New option --makefile-name.
78714         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78715         $makefile_name.
78716         (func_import): Write $makefile_name to the cache file, and read it from
78717         there unless explicitly specified. Use $makefile_name as file name
78718         instead of Makefile.am. Adjust the recommendations accordingly.
78719
78720 2006-08-28  Bruno Haible  <bruno@clisp.org>
78721
78722         * gnulib-tool (func_verify_module): Check against misapplying patch.
78723
78724 2006-08-28  Bruno Haible  <bruno@clisp.org>
78725
78726         * gnulib-tool (func_relativize, func_relconcat): New functions.
78727         Give an error if --local-dir is given with --update.
78728         Remove trailing slashes from $local_gnulib_dir.
78729         (func_import): Store the relativized $local_gnulib_dir in
78730         gnulib-cache.m4, and read it from there if not specified explicitly.
78731
78732 2006-08-28  Bruno Haible  <bruno@clisp.org>
78733
78734         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78735         is the current directory. Respect also $local_gnulib_dir.
78736
78737 2006-08-28  Bruno Haible  <bruno@clisp.org>
78738             Simon Josefsson  <jas@extundo.com>
78739
78740         BeOS portability.
78741         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78742
78743 2006-08-27  Jim Meyering  <jim@meyering.net>
78744
78745         * doc/visibility.texi: Remove duplicate word: "pointer".
78746
78747 2006-08-26  Bruno Haible  <bruno@clisp.org>
78748
78749         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78750         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78751         (Makefile.am): Create inttypes.h from inttypes_.h.
78752         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78753
78754         * modules/imaxabs: New file.
78755
78756         * modules/imaxdiv: New file.
78757
78758 2006-08-26  Bruno Haible  <bruno@clisp.org>
78759
78760         * m4/inttypes.m4: New file.
78761         * m4/_inttypes_h.m4: Remove file.
78762         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78763         PRI_MACROS_BROKEN.
78764         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78765
78766         * m4/imaxabs.m4: New file.
78767
78768         * m4/imaxdiv.m4: New file.
78769
78770 2006-08-26  Bruno Haible  <bruno@clisp.org>
78771
78772         * lib/inttypes_.h: New file.
78773         * lib/inttypes.h: Remove file.
78774         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78775
78776         * lib/imaxabs.c: New file.
78777
78778         * lib/imaxdiv.c: New file.
78779
78780 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         New config-h module, so that "make" output needn't be cluttered
78783         by -DHAVE_CONFIG_H.
78784         * MODULES.html.sh (Support for building libraries and executables):
78785         Add config-h.
78786         * modules/config-h: New file.
78787         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78788         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78789         the config-h module is used.
78790
78791         New configmake module, so that "make" output needn't be cluttered
78792         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78793         * MODULES.html.sh (Support for building libraries and executables):
78794         Add configmake.
78795         * modules/configmake: New file.
78796
78797 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * m4/config-h.m4: New file.
78800
78801 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         * config/srclist.txt: Add elisp-comp.
78804
78805 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * MODULES.html.sh (Support for building libraries and executables):
78808         Add elisp-comp.
78809         * build-aux/elisp-comp: New file.
78810         * modules/elisp-comp: New file.
78811
78812 2006-08-24  Bruno Haible  <bruno@clisp.org>
78813
78814         * gnulib-tool (func_create_testdir): Use non-default values of
78815         sourcebase and m4base.
78816
78817 2006-08-24  Bruno Haible  <bruno@clisp.org>
78818
78819         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78820         HTML structure.
78821
78822 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78823
78824         * modules/openat (Depends-on): Add lchown.
78825
78826 2006-08-23  Bruno Haible  <bruno@clisp.org>
78827
78828         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78829         of gl_LOCK_EARLY instead of gl_LOCK.
78830
78831 2006-08-23  Bruno Haible  <bruno@clisp.org>
78832
78833         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78834         on OSF/1 to no.
78835         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78836
78837 2006-08-23  Bruno Haible  <bruno@clisp.org>
78838
78839         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78840         as unusable.
78841
78842         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78843         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78844         (gl_LOCK): New macro.
78845
78846 2006-08-22  Simon Josefsson  <jas@extundo.com>
78847
78848         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78849         to md5 module.
78850
78851 2006-08-22  Simon Josefsson  <jas@extundo.com>
78852
78853         * MODULES.html.sh: Add "Support for maintaining and release
78854         projects".
78855
78856         * build-aux/gnupload: New file, from coreutils.
78857
78858 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         Avoid the need for AC_LIBSOURCES in m4 macros.
78861         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78862         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78863         * modules/check-version (EXTRA_DIST): Add check-version.h.
78864         * modules/crc (EXTRA_DIST): Add crc.h.
78865         * modules/des (EXTRA_DIST): Add des.h.
78866         * modules/gc (EXTRA_DIST): Add gc.h.
78867         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78868         * modules/getline (EXTRA_DIST): Add getline.h.
78869         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78870         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78871         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78872         * modules/md2 (EXTRA_DIST): Add md2.h.
78873         * modules/md4 (EXTRA_DIST): Add md4.h.
78874         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78875         * modules/read-file (EXTRA_DIST): Add read-file.h.
78876         * modules/readline (EXTRA_DIST): Add readline.h.
78877         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78878         rijndael-api-fst.h.
78879
78880 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         * m4/rijndael.m4 (gl_ARCFOUR):
78883         * m4/arctwo.m4 (gl_ARCTWO):
78884         * m4/check-version.m4 (gl_CHECK_VERSION):
78885         * m4/crc.m4 (gl_CRC):
78886         * m4/des.m4 (gl_DES):
78887         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78888         * m4/gc.m4 (gl_GC):
78889         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78890         * m4/getline.m4 (gl_FUNC_GETLINE):
78891         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78892         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78893         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78894         * m4/md2.m4 (gl_MD2):
78895         * m4/md4.m4 (gl_MD4):
78896         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78897         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78898         * m4/readline.m4 (gl_FUNC_READLINE):
78899         * m4/rijndael.m4 (gl_RIJNDAEL):
78900         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78901         to get the necessary .h files and whatnot.
78902
78903 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78906         gnulib rather than the other way around.
78907         * config/srclistvars.sh (COREUTILS): Remove.
78908
78909 2006-08-22  Jim Meyering  <jim@meyering.net>
78910
78911         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78912
78913         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78914
78915 2006-08-22  Eric Blake  <ebb9@byu.net>
78916
78917         * modules/regexprops-generic: New file.
78918         * MODULES.html.sh (Support for building documentation): List it.
78919
78920 2006-08-22  Eric Blake  <ebb9@byu.net>
78921
78922         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78923         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78925         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78926
78927 2006-08-22  Bruno Haible  <bruno@clisp.org>
78928
78929         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78930         and lib_LTLIBRARIES like the other lib_* variables.
78931
78932 2006-08-22  Bruno Haible  <bruno@clisp.org>
78933
78934         * build-aux/x-to-1.in: New file, from GNU gettext.
78935
78936 2006-08-22  Bruno Haible  <bruno@clisp.org>
78937
78938         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78939         <utmpx.h> exists.
78940
78941 2006-08-22  Bruno Haible  <bruno@clisp.org>
78942
78943         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78944         <utmpx.h> exists.
78945
78946 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         BeOS portability.
78949         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78950         exist.
78951         Problem reported by Bruno Haible.
78952
78953 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78954
78955         Avoid the need for AC_LIBSOURCES in m4 macros.
78956         * modules/acl (EXTRA_DIST): Add acl.h.
78957         * modules/argmatch (Files): Add m4/argmatch.m4.
78958         (configure.ac): Add gl_ARGMATCH.
78959         (EXTRA_DIST): Renamed from lib_SOURCES, for
78960         consistency with the other modules.  Remove argmatch.c.
78961         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78962         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78963         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78964         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78965         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78966         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78967         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78968         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78969         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78970         * modules/closeout (EXTRA_DIST): Add closeout.h.
78971         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78972         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78973         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78974         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78975         dirname.h; remove basename.c and stripslash.c.
78976         * modules/exclude (EXTRA_DIST): Add exclude.h.
78977         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78978         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78979         * modules/file-type (EXTRA_DIST): Add file-type.h.
78980         * modules/filemode (EXTRA_DIST): Add filemode.h.
78981         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78982         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78983         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78984         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78985         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78986         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78987         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78988         * modules/getdate (EXTRA_DIST): Add getdate.c.
78989         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78990         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78991         * modules/getpass (EXTRA_DIST): Add getpass.h.
78992         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78993         * modules/group-member (EXTRA_DIST): Add group-member.h.
78994         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78995         * modules/hash (EXTRA_DIST): Add hash.h.
78996         * modules/human (EXTRA_DIST): Add human.h.
78997         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78998         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78999         * modules/lchown (EXTRA_DIST): Add lchown.h.
79000         * modules/long-options (EXTRA_DIST): Add long-options.h.
79001         * modules/lstat (EXTRA_DIST): Add lstat.h.
79002         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79003         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79004         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79005         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79006         * modules/memxor (EXTRA_DIST): Add memxor.h.
79007         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79008         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79009         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79010         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79011         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79012         * modules/physmem (EXTRA_DIST): Add physmem.h.
79013         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79014         * modules/posixver (EXTRA_DIST): Add posixver.h.
79015         * modules/quote (EXTRA_DIST): Add quote.h.
79016         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79017         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79018         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79019         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79020         regex_internal.h regexec.c.
79021         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79022         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79023         * modules/same (EXTRA_DIST): Add same.h.
79024         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79025         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79026         * modules/savedir (EXTRA_DIST): Add savedir.h.
79027         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79028         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79029         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79030         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79031         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79032         * modules/strdup (EXTRA_DIST): Add strdup.h.
79033         * modules/strftime (EXTRA_DIST): Add strftime.h.
79034         * modules/strndup (EXTRA_DIST): Add strndup.h.
79035         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79036         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79037         * modules/time_r (EXTRA_DIST): Add time_r.h.
79038         * modules/timespec (EXTRA_DIST): Add timespec.h.
79039         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79040         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79041         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79042         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79043         * modules/userspec (EXTRA_DIST): Add userspec.h.
79044         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79045         * modules/utimens (EXTRA_DIST): Add utimens.h.
79046         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79047         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79048         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79049         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79050         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79051         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79052         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79053         * modules/yesno (EXTRA_DIST): Add yesno.h.
79054
79055 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79056
79057         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79058
79059         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79060         * m4/dev-ino.m4, same-inode.m4: Remove.
79061
79062         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79063         * m4/acl.m4 (AC_FUNC_ACL):
79064         * m4/backupfile.m4 (gl_BACKUPFILE):
79065         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79066         * m4/canon-host.m4 (gl_CANON_HOST):
79067         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79068         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79069         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79070         * m4/cloexec.m4 (gl_CLOEXEC):
79071         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79072         * m4/closeout.m4 (gl_CLOSEOUT):
79073         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79074         * m4/dirname.m4 (gl_DIRNAME):
79075         * m4/exclude.m4 (gl_EXCLUDE):
79076         * m4/exitfail.m4 (gl_EXITFAIL):
79077         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79078         * m4/file-type.m4 (gl_FILE_TYPE):
79079         * m4/filemode.m4 (gl_FILEMODE):
79080         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79081         * m4/fpending.m4 (gl_FUNC_FPENDING):
79082         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79083         * m4/fts.m4 (gl_FUNC_FTS):
79084         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79085         * m4/getdate.m4 (gl_GETDATE):
79086         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79087         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79088         * m4/getpass.m4 (gl_FUNC_GETPASS):
79089         * m4/gettime.m4 (gl_GETTIME):
79090         * m4/getugroups.m4 (gl_GETUGROUPS):
79091         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79092         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79093         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79094         * m4/hash.m4 (gl_HASH):
79095         * m4/idcache.m4 (gl_IDCACHE):
79096         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79097         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79098         * m4/long-options.m4 (gl_LONG_OPTIONS):
79099         * m4/lstat.m4 (gl_FUNC_LSTAT):
79100         * m4/md5.m4 (gl_MD5):
79101         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79102         * m4/memcoll.m4 (gl_MEMCOLL):
79103         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79104         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79105         * m4/memxor.m4 (gl_MEMXOR):
79106         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79107         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79108         * m4/modechange.m4 (gl_MODECHANGE):
79109         * m4/mountlist.m4 (gl_MOUNTLIST):
79110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79111         * m4/openat.m4 (gl_FUNC_OPENAT):
79112         * m4/pathmax.m4 (gl_PATHMAX):
79113         * m4/physmem.m4 (gl_PHYSMEM):
79114         * m4/posixtm.m4 (gl_POSIXTM):
79115         * m4/posixver.m4 (gl_POSIXVER):
79116         * m4/quote.m4 (gl_QUOTE):
79117         * m4/quotearg.m4 (gl_QUOTEARG):
79118         * m4/readtokens.m4 (gl_READTOKENS):
79119         * m4/readutmp.m4 (gl_READUTMP):
79120         * m4/regex.m4 (gl_REGEX):
79121         * m4/safe-read.m4 (gl_SAFE_READ):
79122         * m4/safe-write.m4 (gl_SAFE_WRITE):
79123         * m4/same.m4 (gl_SAME):
79124         * m4/save-cwd.m4 (gl_SAVE_CWD):
79125         * m4/savedir.m4 (gl_SAVEDIR):
79126         * m4/settime.m4 (gl_SETTIME):
79127         * m4/sha1.m4 (gl_SHA1):
79128         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79129         * m4/stat-macros.m4 (gl_STAT_MACROS):
79130         * m4/stat-time.m4 (gl_STAT_TIME):
79131         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79132         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79133         * m4/strdup.m4 (gl_FUNC_STRDUP):
79134         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79135         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79136         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79137         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79138         * m4/time_r.m4 (gl_TIME_R):
79139         * m4/timespec.m4 (gl_TIMESPEC):
79140         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79141         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79142         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79143         * m4/userspec.m4 (gl_USERSPEC):
79144         * m4/utimecmp.m4 (gl_UTIMECMP):
79145         * m4/utimens.m4 (gl_UTIMENS):
79146         * m4/xalloc.m4 (gl_XALLOC):
79147         * m4/xgetcwd.m4 (gl_XGETCWD):
79148         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79149         * m4/xreadlink.m4 (gl_XREADLINK):
79150         * m4/xstrtod.m4 (gl_XSTRTOD):
79151         * m4/yesno.m4 (gl_YESNO):
79152         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79153         to get the necessary .h files and whatnot.
79154
79155 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79156             Bruno Haible  <bruno@clisp.org>
79157
79158         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79159         /bin/sh understanding of '!' conditional negation.
79160
79161 2006-08-21  Jim Meyering  <jim@meyering.net>
79162
79163         * modules/openat (Depends-on): Really alphabetize.
79164
79165         * modules/acl (Depends-on): Add error and quote.
79166
79167         * check-module (find_included_lib_files): Add at-func.c to the
79168         ok-to-include-more-than-once white list.
79169
79170         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79171
79172 2006-08-21  Bruno Haible  <bruno@clisp.org>
79173
79174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79175         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79176         Reported by Martin Lambers <marlam@marlam.de>.
79177
79178 2006-08-21  Bruno Haible  <bruno@clisp.org>
79179
79180         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79181         specify an installation location, don't emit a noinst_LIBRARIES or
79182         noinst_LTLIBRARIES assignment.
79183
79184 2006-08-21  Bruno Haible  <bruno@clisp.org>
79185
79186         BeOS portability.
79187         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79188         BeOS has mbrtowc() but no <wctype.h>.
79189
79190 2006-08-21  Bruno Haible  <bruno@clisp.org>
79191
79192         BeOS portability.
79193         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79194         exist.
79195
79196 2006-08-21  Bruno Haible  <bruno@clisp.org>
79197
79198         BeOS portability.
79199         * lib/mbchar.h: Include <wctype.h> only if it exists.
79200
79201 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         Remove files that are no longer needed by their respective modules.
79204         * m4/obstack.m4: Remove.
79205         * m4/strerror_r.m4: Remove.
79206         * m4/uint32_t.m4: Remove.
79207         * m4/uintptr_t.m4: Remove.
79208         * m4/ullong_max.m4: Remove.
79209         * m4/xstrtoimax.m4: Remove.
79210         * m4/xstrtoumax.m4: Remove.
79211
79212         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79213         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79214         dependencies now capture this.
79215
79216         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79217         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79218         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79219         * m4/human.m4 (gl_HUMAN): Likewise.
79220         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79221         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79222
79223         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79224
79225         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79226         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79227         stdint.
79228         * m4/human.m4 (gl_HUMAN): Likewise.
79229         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79230         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79231         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79232         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79233         * m4/xstrtol (gl_XSTRTOL): Likewise.
79234
79235         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79236         AC_TYPE_LONG_LONG_INT.
79237         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79238         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79239         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79240         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79241
79242         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79243         on stdbool.
79244
79245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79246         (gl_PREREQ_XSTRTOUL): Remove.
79247
79248         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79249
79250         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79251         mode.
79252
79253 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         Add and change modules to make it easier for coreutils to use
79256         gnulib-tool.
79257         * modules/backupfile (Files): Remove m4/d-ino.m4.
79258         (Depends-on): Add d-ino.
79259         * modules/cycle-check (Depends-on): Add stdint.
79260         (lib_SOURCES): Add cycle-check.h.
79261         * modules/d-ino: New module.
79262         * modules/d-type: New module.
79263         * modules/error (Files): Remove m4/strerror_r.m4.
79264         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79265         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79266         m4/inttypes_h.m4, m4/uintmax_t.m4.
79267         (Depends-on): Add stdint.
79268         (lib_SOURCES): Add fsusage.h.
79269         * modules/getcwd (Files): Remove d-ino.m4.
79270         (Depends-on): Add d-ino.
79271         * modules/getndelim2 (Depends-on): Add stdint.
79272         * modules/glob (Files): Remove m4/d-type.m4.
79273         (Depends-on): Add d-type.
79274         * modules/host-os: New module.
79275         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79276         m4/inttypes_h.m4, m4/uintmax_t.m4.
79277         * Depends-on: Add stdint.
79278         (lib_SOURCES): Add human.h.
79279         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79280         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79281         m4/uintmax_t.m4, m4/ulonglong.m4.
79282         (Depends-on): Add stdint.
79283         (EXTRA_DIST): Add inttostr.h.
79284         * modules/lchmod: New module.
79285         * modules/link-follow: New module.
79286         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79287         (Depends-on): Add lchmod.
79288         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79289         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79290         (Depends-on): Add stdint.
79291         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79292         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79293         (Depends-on): Add stdint.
79294         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79295         * modules/perl: New module.
79296         * modules/regex (Depends-on): Add stdint.
79297         * modules/rmdir-errno: New module.
79298         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79299         m4/intmax_t.m4.
79300         (Depends-on): Add stdint.
79301         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79302         m4/uintmax_t.m4.
79303         (Depends-on): Add stdint.
79304         * modules/unlink-busy: New module.
79305         * modules/utimecmp (Depends-on): Add stdint.
79306         * modules/uptime: New module.
79307         * modules/winsz-ioctl: New module.
79308         * modules/winsz-termios: New module.
79309         * modules/xnanosleep (Depends-on): Add nanosleep.
79310         * modules/ullong_max: Remove.
79311         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79312         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79313         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79314         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79315         (Depends-on): Add inttypes.
79316         (lib_SOURCES): Add xstrtol.h.
79317         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79318         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79319         * MODULES.html.sh: Move 'assert' into the assert section.
79320         Move 'dummy' into the linking section.
79321         Remove ullong_max.
79322         Add section for compatibility checks for POSIX:2001 functions,
79323         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79324         winsz-ioctl, and winsz-termios into it.
79325         Add lchmod.
79326         Add top-level Misc section and put host-os, perl, and uptime
79327         into it.
79328
79329 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79332         now assume the stdint module.  Do not include inttypes.h.
79333         * lib/fsusage.h: Likewise.
79334         * lib/getndelim2.c: Likewise.
79335         * lib/human.h: Likewise.
79336         * lib/inttostr.h: Likewise.
79337         * lib/obstack.c: Likewise.
79338         * lib/regex_internal.h: Likewise.
79339         * lib/tempname.c: Likewise.
79340         * lib/utimecmp.c: Likewise.
79341         * lib/xstrtol.h: Likewise.
79342
79343         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79344
79345         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79346         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79347         * lib/xtime.h: Likewise.
79348
79349 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79350
79351         * modules/openat (Files): Add lib/fchmodat.c.
79352         Fixes problem reported by Jay Youngman.
79353
79354 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79357         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79358
79359 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79360             Bruno Haible  <bruno@clisp.org>
79361
79362         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79363         and is a script that invokes bison. Tighten the code. Add comments.
79364
79365 2006-08-18  Jim Meyering  <jim@meyering.net>
79366
79367         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79368         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79369         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79370         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79371
79372 2006-08-18  Bruno Haible  <bruno@clisp.org>
79373
79374         * modules/bison-i18n: New file.
79375         * MODULES.html.sh (Internationalization functions): Add it.
79376
79377 2006-08-18  Bruno Haible  <bruno@clisp.org>
79378
79379         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79380         sys/statvfs.h. When getmntinfo was found, check its declaration and
79381         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79382
79383 2006-08-18  Bruno Haible  <bruno@clisp.org>
79384
79385         * m4/bison-i18n.m4: New file, from bison.
79386
79387 2006-08-18  Bruno Haible  <bruno@clisp.org>
79388
79389         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79390         (ME_DUMMY): Treat "kernfs" as a dummy.
79391         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79392
79393 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         Update from coreutils.
79396
79397         2006-08-15  Jim Meyering  <jim@meyering.net>
79398
79399         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79400
79401         2006-01-17  Jim Meyering  <jim@meyering.net>
79402
79403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79404
79405         2006-01-11  Jim Meyering  <jim@meyering.net>
79406
79407         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79408         Check for the lchmod function.
79409
79410 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         Update from coreutils.
79413
79414         * lib/__fpending.h: Add copyright notice.
79415         * lib/fprintftime.h: Likewise.
79416         * lib/savedir.c: Use (C) in copyright notice.
79417         * lib/savedir.h: Likewise.
79418
79419         2006-08-15  Jim Meyering  <jim@meyering.net>
79420
79421         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79422         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79423         in support of the EXPECTED_ERRNO macro.
79424         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79425         definitions.  Instead, define the appropriate symbols and include
79426         "at-func.c".
79427         * lib/mkdirat.c (mkdirat): Likewise.
79428         * lib/fchmodat.c (fchmodat): Likewise.
79429         (ENOSYS): Remove definition.
79430         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79431         it.  Don't include "unistd--.h" -- it wasn't ever used.
79432
79433         2006-01-17  Jim Meyering  <jim@meyering.net>
79434
79435         Rewrite fts.c not to change the current working directory,
79436         by using openat, fstatat, fdopendir, etc..
79437
79438         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79439         (HAVE_OPENAT_SUPPORT): Define.
79440         [_LIBC] (fchdir): Don't undef or define; no longer used.
79441         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79442         Now, this `function' always succeeds, and consumes its file descriptor
79443         parameter -- so callers must not close such FDs.  Update callers.
79444         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79445         (diropen): Add parameter, SP.  Adjust all callers.
79446         Implement using diropen_fd, rather than open.
79447         (fts_open): Initialize new member, fts_cwd_fd.
79448         Remove fts_rft-setting code.
79449         (fts_close): Close fts_cwd_fd, if necessary.
79450         (__opendir2): Define in terms of opendir or opendirat,
79451         depending on whether the FST_NOCHDIR flag is set.
79452         (fts_build): Since fts_safe_changedir consumes its FD, and since
79453         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79454         and close the dup'd file descriptor upon failure.
79455         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79456         (fts_safe_changedir): Tweak semantics to reflect that this function
79457         now calls cwd_advance_fd and hence consumes its FD argument.
79458         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79459         [struct FTS] (fts_rft): Remove now-unused member.
79460         [struct FTS] (fts_cycle.state): Improve comment.
79461
79462         * lib/openat.c (openat_needs_fchdir): New function.
79463         * lib/openat.h (openat_needs_fchdir): Declare it.
79464
79465 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79468         Problem and fix reported by Pádraig Brady in
79469         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79470
79471 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79474
79475 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * lib/memcoll.c (memcoll): Optimize for the common case where the
79478         arguments are bytewise equal.
79479
79480 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * doc/regexprops-generic.texi: Add a copyright notice.
79483
79484 2006-08-15  Bruno Haible  <bruno@clisp.org>
79485
79486         * modules/tmpdir (License): Change to LGPL.
79487
79488 2006-08-15  Bruno Haible  <bruno@clisp.org>
79489
79490         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79491         module.
79492
79493 2006-08-14  Simon Josefsson  <jas@extundo.com>
79494
79495         * config/srclist.txt: Add gnupload.
79496
79497 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         Change copyright notice from LGPL 2 to GPL 2, since that's the
79500         standard form used in the gnulib repository.
79501         * tests/test-lock.c: Likewise.
79502         * tests/test-stdint.c: Likewise.
79503         * tests/test-tls.c: Likewise.
79504
79505         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79506         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79507         Add copyright notice.
79508
79509         * check-module: Add copyright notice.  Output a copyright
79510         notice if "--version" is specified.
79511         * modules/COPYING: New file.
79512         * tests/test-getaddrinfo.c: Add copyright notice.
79513         * tests/test-verify.c: Likewise.
79514
79515 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79516
79517         Change copyright notice from LGPL 2 to GPL 2, since that's the
79518         standard form used in the gnulib repository.
79519         * lib/lock.c: LGPL -> GPL.
79520         * lib/lock.h: Likewise.
79521         * lib/strnlen1.c: Likewise.
79522         * lib/strnlen1.h: Likewise.
79523         * lib/tls.c: Likewise.
79524         * lib/tls.h: Likewise.
79525         * lib/tmpdir.c: Likewise.
79526
79527         * lib/TODO: Remove; this belongs only in coreutils.
79528
79529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         Add copyright notices to long-enough files that lack them, since
79532         otherwise the files aren't clearly free.  Use the same notice that
79533         getdate.texi already uses.
79534         * doc/alloca-opt.texi: Add copyright notice.
79535         * doc/alloca.texi: Likewise.
79536         * doc/ctime.texi: Likewise.
79537         * doc/functions.texi: Likewise.
79538         * doc/gcd.texi: Likewise.
79539         * doc/gnulib-tool.texi: Likewise.
79540         * doc/inet_ntoa.texi: Likewise.
79541         * doc/visibility.texi: Likewise.
79542
79543         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79544         * doc/quote.texi: Add copyright notice.
79545
79546         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79547         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79548         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79549         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79550         is now obsolete, and give a pointer to the Sun list.
79551         Add copyright notice.
79552
79553 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * config/srclistvars.sh: Add copyright notice.
79556
79557 2006-08-14  Eric Blake  <ebb9@byu.net>
79558
79559         Import the following change from libc:
79560
79561         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79562
79563         Upstream bug 2997.
79564         * lib/misc/error.c: Add space between program name and message if file
79565         name is missing.
79566
79567 2006-08-12  Karl Berry  <karl@gnu.org>
79568
79569         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79570         remove, these originate in gnulib now.
79571
79572 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79573
79574         * doc/Makefile (standards.info standards.html standards.dvi):
79575         Also depend on make-stds.texi.
79576
79577 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79580         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79581
79582         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79583         in wchar_t.  Problem reported by Eric Blake.
79584
79585         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79586         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79587         Also, help the compiler to keep LEN in a register.
79588
79589 2006-08-11  Eric Blake  <ebb9@byu.net>
79590
79591         * users.txt: Sort.  Add tar.
79592
79593 2006-08-11  Bruno Haible  <bruno@clisp.org>
79594
79595         * users.txt: New file.
79596
79597 2006-08-11  Bruno Haible  <bruno@clisp.org>
79598
79599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79600         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79601
79602 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * modules/snprintf (Depends-on): Remove minmax.
79605         (Maintainer): Add self and Bruno.
79606
79607 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79610         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79611         (EOVERFLOW): Define if the system does not.
79612         Do not include "minmax.h"; it wasn't used.
79613         (snprintf): Don't assume size_t promotes to an unsigned type.
79614         Fix bug when generated string was too long for the buffer: the
79615         buffer's contents are supposed to be the initial prefix of the
79616         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79617         exceeds INT_MAX; do the check ourselves.
79618
79619         Import the following changes from libc:
79620
79621         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79622
79623         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79624         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79625         set wc to the byte which couldn't be converted.
79626         (re_string_reconstruct): Don't clear valid_raw_len before calling
79627         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79628         tip_context using re_string_context_at.
79629
79630         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79631
79632         * lib/posix/regex.h: g++ still cannot handled [restrict].
79633
79634         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79635
79636         * lib/posix/regex.h: Remove special handling for VMS.
79637
79638 2006-08-10  Jim Meyering  <jim@meyering.net>
79639
79640         * modules/same-inode: New module.
79641         * modules/dev-ino: New module.
79642         * modules/cycle-check: Depend on these modules, rather than simply
79643         including their .h files.
79644         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79645         required via m4/cycle-check.m4.
79646         * modules/same: Depend on new same-inode module, rather than
79647         including same-inode.h.
79648         * modules/chdir-safer: New file.
79649
79650         * modules/chown (Depends-on): Add stat-macros.
79651
79652 2006-08-10  Jim Meyering  <jim@meyering.net>
79653
79654         * m4/cycle-check.m4: New file.
79655         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79656         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79657
79658 2006-08-10  Eric Blake  <ebb9@byu.net>
79659
79660         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79661         in from original proposal.
79662
79663 2006-08-10  Eric Blake  <ebb9@byu.net>
79664         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79665
79666         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79667         namespace.
79668
79669 2006-08-10  Bruno Haible  <bruno@clisp.org>
79670
79671         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79672         as well.
79673
79674 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         Sync from coreutils.
79677
79678         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79679
79680         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79681         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79682
79683 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79684
79685         * modules/restrict: Remove; no longer needed now that we assume
79686         Autoconf 2.59 or later.
79687         * MODULES.html.sh: Remove 'restrict'.
79688         * modules/argp (Depends-on): Remove 'restrict'.
79689         * modules/base64 (Depends-on): Likewise.
79690         * modules/gc (Depends-on): Likewise.
79691         * modules/getaddrinfo (Depends-on): Likewise.
79692         * modules/glob (Depends-on): Likewise.
79693         * modules/inet_ntop (Depends-on): Likewise.
79694         * modules/inet_pton (Depends-on): Likewise.
79695         * modules/memxor (Depends-on): Likewise.
79696         * modules/regex (Depends-on): Likewise.
79697         * modules/strtok_r (Depends-on): Likewise.
79698         * modules/time_r (Depends-on): Likewise.
79699
79700 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79703         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79704         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79705         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79706         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79707         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79708         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79709         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79710
79711         Merge from coreutils.
79712         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79713         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79715         * m4/time_r.m4 (gl_TIME_R): Likewise.
79716
79717 2006-08-09  Karl Berry  <karl@gnu.org>
79718
79719         * config/srclist.txt: no more gettext-tools, per Bruno.
79720
79721 2006-08-08  Eric Blake  <ebb9@byu.net>
79722
79723         * modules/verror: New module.
79724         * MODULES.html.sh: Document it.
79725
79726 2006-08-08  Eric Blake  <ebb9@byu.net>
79727
79728         * lib/verror.h, lib/verror.c: New files.
79729
79730 2006-08-08  Eric Blake  <ebb9@byu.net>
79731
79732         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79733         verror_at_line output complies with GNU Coding Standards even when
79734         file is NULL.
79735
79736 2006-08-07  Bruno Haible  <bruno@clisp.org>
79737
79738         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79739         versions of AIX.
79740         Reported by Ralf Wildenhues.
79741
79742 2006-08-07  Bruno Haible  <bruno@clisp.org>
79743
79744         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79745         in an AC_DEFUN. Needed so that the autoconf snippets can use
79746         AC_REQUIRE.
79747
79748 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79749
79750         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79751         Initialize pkgdata_DATA.
79752         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79753         overriding it.
79754
79755 2006-08-06  Eric Blake  <ebb9@byu.net>
79756
79757         * lib/error.h: Fold in some upstream changes from glibc.
79758         * lib/error.c: Likewise.
79759
79760 2006-08-04  Bruno Haible  <bruno@clisp.org>
79761
79762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79763         Make the mostlyclean-local rule depend on mostlyclean-generic.
79764         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79765
79766 2006-07-31  Bruno Haible  <bruno@clisp.org>
79767
79768         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79769         <stdlib.h>, <string.h>.
79770
79771 2006-07-30  Bruno Haible  <bruno@clisp.org>
79772
79773         * modules/readlink (License): Change to LGPL.
79774
79775 2006-07-30  Bruno Haible  <bruno@clisp.org>
79776
79777         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79778         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79779         set PKGDATADIR to point to it.
79780
79781 2006-07-30  Bruno Haible  <bruno@clisp.org>
79782
79783         * modules/csharpexec (configure.ac): Comment out macro invocation.
79784         * modules/javaexec (configure.ac): Likewise.
79785         * modules/javacomp-script (configure.ac): Likewise.
79786
79787         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79788
79789 2006-07-30  Bruno Haible  <bruno@clisp.org>
79790
79791         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79792         linked-list.
79793
79794 2006-07-30  Bruno Haible  <bruno@clisp.org>
79795
79796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79797
79798 2006-07-30  Bruno Haible  <bruno@clisp.org>
79799
79800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79801         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79802         get removed.
79803
79804 2006-07-29  Bruno Haible  <bruno@clisp.org>
79805
79806         Make it possible for gnulib-tool to work with locally modified or
79807         augmented gnulib repositories.
79808         * gnulib-tool (func_usage): Document --local-dir option.
79809         (local_gnulib_dir): New variable.
79810         Handle --local-dir option.
79811         (func_lookup_file): New function.
79812         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79813         (func_get_description, func_get_filelist, func_get_description,
79814         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79815         func_get_automake_snippet, func_get_include_directive,
79816         func_get_license, func_get_maintainer): Use func_lookup_file.
79817         (func_import, func_create_testdir): Use func_lookup_file.
79818
79819 2006-07-29  Bruno Haible  <bruno@clisp.org>
79820
79821         * modules/setenv (Depends-on): Add unistd.
79822
79823 2006-07-29  Bruno Haible  <bruno@clisp.org>
79824
79825         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79826
79827 2006-07-29  Bruno Haible  <bruno@clisp.org>
79828
79829         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79830
79831 2006-07-29  Bruno Haible  <bruno@clisp.org>
79832
79833         * gnulib-tool (import, update): If there is no Makefile.am, look at
79834         aclocal.m4, instead of bailing out.
79835
79836 2006-07-29  Bruno Haible  <bruno@clisp.org>
79837
79838         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79839         Categorize the options by when they are useful.
79840
79841 2006-07-29  Bruno Haible  <bruno@clisp.org>
79842
79843         * gnulib-tool (func_usage): Document option --no-libtool.
79844         Handle option --no-libtool.
79845         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79846         for changed semantics of $libtool variable.
79847         (func_import): Likewise. If libtool is not used, show this through
79848         an option --no-libtool.
79849         (func_create_testdir): Update.
79850
79851 2006-07-29  Bruno Haible  <bruno@clisp.org>
79852
79853         * gnulib-tool (func_import): Extend error message about missing
79854         --doc-base.
79855
79856 2006-07-29  Bruno Haible  <bruno@clisp.org>
79857
79858         * gnulib-tool (func_import): Don't create the $docbase directory if
79859         there is no file to store there.
79860
79861 2006-07-29  Bruno Haible  <bruno@clisp.org>
79862
79863         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79864         relevant, look for configure.ac there, not in the current directory.
79865         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79866
79867 2006-07-29  Bruno Haible  <bruno@clisp.org>
79868
79869         * gnulib-tool (SORT): New variable.
79870         (func_usage): Undocument --assume-autoconf option.
79871         Remove --assume-autoconf option handling.
79872         (autoconf_minversion): Determine from the contents of configure.ac.
79873         (func_import): Remove autoconf_minversion handling.
79874         Suggested by Eric Blake.
79875
79876 2006-07-29  Bruno Haible  <bruno@clisp.org>
79877
79878         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79879
79880 2006-07-29  Bruno Haible  <bruno@clisp.org>
79881
79882         * config/srclist.txt (*setenv.[ch]): Remove rules.
79883
79884 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79885
79886         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79887
79888 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79889
79890         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79891         arpa/inet.h.
79892
79893 2006-07-28  Simon Josefsson  <jas@extundo.com>
79894
79895         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79896         * modules/inet_pton (Depends-on): Likewise.
79897
79898 2006-07-28  Simon Josefsson  <jas@extundo.com>
79899
79900         * m4/netinet_in_h.m4: New file.
79901
79902 2006-07-28  Simon Josefsson  <jas@extundo.com>
79903
79904         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79905         #include's.
79906
79907 2006-07-28  Simon Josefsson  <jas@extundo.com>
79908
79909         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79910         #include's.
79911
79912 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79915         setgid on directories only if they set these bits.
79916         * lib/modechange.h: Remove obsolete comment about masks.
79917
79918 2006-07-28  Eric Blake  <ebb9@byu.net>
79919
79920         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79921         macro expansion.
79922
79923 2006-07-28  Bruno Haible  <bruno@clisp.org>
79924
79925         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79926
79927 2006-07-28  Bruno Haible  <bruno@clisp.org>
79928
79929         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79930
79931 2006-07-28  Bruno Haible  <bruno@clisp.org>
79932
79933         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79934         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79935         Define fallbacks.
79936         Avoids link error on FreeBSD 4.x.
79937         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79938
79939         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79940         encoding.
79941         * lib/mbswidth.c (iswcntrl): Likewise.
79942
79943 2006-07-27  Bruno Haible  <bruno@clisp.org>
79944
79945         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79946         test.
79947
79948 2006-07-27  Bruno Haible  <bruno@clisp.org>
79949
79950         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79951         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79952         defined.
79953
79954 2006-07-26  Eric Blake  <ebb9@byu.net>
79955
79956         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79957
79958 2006-07-26  Eric Blake  <ebb9@byu.net>
79959
79960         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79961         like mingw that lack mkstemp.
79962         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79963         avoid compilation warning on mingw.
79964
79965 2006-07-26  Bruno Haible  <bruno@clisp.org>
79966
79967         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79968         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79969         INT_FAST*_MIN, INTPTR_MIN.
79970
79971 2006-07-25  Bruno Haible  <bruno@clisp.org>
79972
79973         * modules/version-etc (Depends-on): Add stdarg.
79974
79975 2006-07-25  Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79978         complex commands.
79979
79980 2006-07-25  Bruno Haible  <bruno@clisp.org>
79981
79982         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79983         defined in <stdarg.h> or config.h.
79984
79985 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79988         (gl_STDIO_SAFER): Remove.
79989
79990 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * MODULES.html.sh (File stream based Input/Output):
79993         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79994         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79995         * modules/fopen-safer, modules/tmpfile-safer: New files.
79996         * modules/stdio-safer: Remove.
79997
79998 2006-07-24  Bruno Haible  <bruno@clisp.org>
79999
80000         * modules/tmpdir: New file.
80001         * MODULES.html.sh (File system functions): Add it.
80002
80003 2006-07-24  Bruno Haible  <bruno@clisp.org>
80004
80005         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80006         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80007
80008 2006-07-24  Bruno Haible  <bruno@clisp.org>
80009
80010         * modules/clean-temp: New file.
80011
80012 2006-07-24  Bruno Haible  <bruno@clisp.org>
80013
80014         * m4/tmpdir.m4: New file, from GNU gettext.
80015
80016 2006-07-24  Bruno Haible  <bruno@clisp.org>
80017
80018         * lib/tmpdir.h: New file, from GNU gettext.
80019         * lib/tmpdir.c: New file, from GNU gettext.
80020
80021 2006-07-24  Bruno Haible  <bruno@clisp.org>
80022
80023         * lib/clean-temp.h: New file, from GNU gettext.
80024         * lib/clean-temp.c: New file, from GNU gettext.
80025
80026 2006-07-23  Eric Blake  <ebb9@byu.net>
80027
80028         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80029         (Depends-on): Add binary-io.
80030
80031 2006-07-23  Eric Blake  <ebb9@byu.net>
80032
80033         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80034
80035 2006-07-23  Eric Blake  <ebb9@byu.net>
80036
80037         * lib/tmpfile-safer.c: New file.
80038         * lib/stdio-safer.h (fopen_safer): Add prototype.
80039         * lib/stdio--.h (tmpfile): Make safer.
80040
80041 2006-07-23  Bruno Haible  <bruno@clisp.org>
80042
80043         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80044         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80045         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80046         gl_linked_remove_at): Use it.
80047
80048 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80049         and Simon Josefsson <jas@extundo.com>
80050
80051         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80052
80053         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80054
80055 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * modules/close-stream: New file.
80058         * modules/closeout (Description): Make it clear that it exits
80059         with a diagnostic on error.
80060         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80061         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80062
80063 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80064
80065         * m4/close-stream.m4: New file.
80066
80067 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         * lib/close-stream.c, lib/close-stream.h: New files.
80070
80071 2006-07-22  Bruno Haible  <bruno@clisp.org>
80072
80073         Merge from GNU gettext 0.15.
80074
80075         2006-05-01  Bruno Haible  <bruno@clisp.org>
80076
80077                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80078
80079         2006-07-22  Bruno Haible  <bruno@clisp.org>
80080
80081                 * modules/javaversion: New file.
80082                 * MODULES.html.sh (Java): Add javaversion.
80083
80084         2006-03-12  Bruno Haible  <bruno@clisp.org>
80085
80086                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80087
80088         2005-12-04  Bruno Haible  <bruno@clisp.org>
80089
80090                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80091                 (untested).
80092
80093         2006-06-21  Bruno Haible  <bruno@clisp.org>
80094
80095                 Avoid warnings from recent versions of mcs.
80096                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80097                 -o, -L, -r any more. Use options documented since mcs-1.0
80098                 instead. Similarly for -g.
80099
80100         2005-12-04  Bruno Haible  <bruno@clisp.org>
80101
80102                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80103                 .resources, not .resource.
80104
80105         2005-07-09  Bruno Haible  <bruno@clisp.org>
80106
80107                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80108                 add a .dll suffix.
80109                 Reported by Mark Junker <mjscod@gmx.de>.
80110
80111         2006-07-22  Bruno Haible  <bruno@clisp.org>
80112
80113                 * modules/gettext: Upgrade to gettext-0.15.
80114                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80115                 m4/visibility.m4.
80116                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80117
80118 2006-07-22  Bruno Haible  <bruno@clisp.org>
80119
80120         Merge from GNU gettext 0.15.
80121
80122         2006-03-25  Bruno Haible  <bruno@clisp.org>
80123
80124                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80125
80126         2006-07-21  Bruno Haible  <bruno@clisp.org>
80127
80128                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80129                 "1.1".
80130
80131         2006-05-09  Bruno Haible  <bruno@clisp.org>
80132
80133                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80134                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80135                 for the conftestver execution.
80136
80137         2006-05-01  Bruno Haible  <bruno@clisp.org>
80138
80139                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80140                 optional target-version argument. Verify that the compiler
80141                 groks source of the specified source-version, or add -source
80142                 option as necessary. Verify that the compiler produces
80143                 bytecode in the specified target-version, or add -target and
80144                 -source options as necessary. Make the result of the test
80145                 available as variable CONF_JAVAC. Also log error output in
80146                 config.log.
80147
80148         2006-03-11  Bruno Haible  <bruno@clisp.org>
80149
80150                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80151
80152         2006-05-09  Bruno Haible  <bruno@clisp.org>
80153
80154                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80155                 CLASSPATH_SEPARATOR to a semicolon.
80156
80157         2006-03-12  Bruno Haible  <bruno@clisp.org>
80158
80159                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80160                 available as variable CONF_JAVA, for subsequent autoconf
80161                 tests. Also log error output in config.log.
80162
80163         2006-07-19  Bruno Haible  <bruno@clisp.org>
80164
80165                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80166                 that getline works on glibc2 systems. Needed to avoid trouble
80167                 in relocatable.c.
80168                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80169
80170         2005-12-04  Bruno Haible  <bruno@clisp.org>
80171
80172                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80173                 launcher (untested).
80174
80175         2005-12-04  Bruno Haible  <bruno@clisp.org>
80176
80177                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80178
80179         2006-07-22  Bruno Haible  <bruno@clisp.org>
80180
80181                 * gettext.m4: Update from GNU gettext-0.15.
80182                 * nls.m4: Likewise.
80183                 * po.m4: Likewise.
80184                 * inttypes-pri.m4: Likewise.
80185                 * inttypes-h.m4: Renamed from inttypes.m4.
80186                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80187
80188 2006-07-22  Bruno Haible  <bruno@clisp.org>
80189
80190         Merge from GNU gettext 0.15.
80191
80192         2005-07-05  Bruno Haible  <bruno@clisp.org>
80193
80194                 * printf-args.c (printf_fetchargs): Work around broken
80195                 definition of wint_t on mingw.
80196
80197         2005-02-12  Bruno Haible  <bruno@clisp.org>
80198
80199                 * xallocsa.h: Add extern "C" for C++.
80200
80201         2006-05-17  Bruno Haible  <bruno@clisp.org>
80202
80203                 Cygwin portability.
80204                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80205
80206         2006-04-30  Bruno Haible  <bruno@clisp.org>
80207
80208                 * progreloc.c: Include <mach-o/dyld.h> if available.
80209                 (find_executable): Use _NSGetExecutablePath when possible.
80210
80211         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80212
80213                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80214                 function.
80215
80216         2005-12-29  Bruno Haible  <bruno@clisp.org>
80217
80218                 * progreloc.c (set_program_name_and_installdir): Fix
80219                 compilation error.
80220
80221         2005-12-04  Bruno Haible  <bruno@clisp.org>
80222
80223                 Cygwin portability.
80224                 * progreloc.c: Include <windows.h> also on Cygwin.
80225                 (find_executable): Add support for Cygwin.
80226                 (set_program_name_and_installdir): Handle also platforms with
80227                 nonempty EXEEXT.
80228
80229         2006-07-11  Bruno Haible  <bruno@clisp.org>
80230
80231                 * javacomp.c: Fix a comment.
80232                 Reported by Jim Meyering.
80233
80234         2006-04-30  Bruno Haible  <bruno@clisp.org>
80235
80236                 * javacomp.h (compile_java_class): Add source_version,
80237                 target_version arguments.
80238                 * javacomp.c: Rewritten to choose only a compiler that
80239                 respects the specified source_version and target_version.
80240
80241         2006-06-27  Bruno Haible  <bruno@clisp.org>
80242
80243                 Assume correct S_ISDIR macro.
80244                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80245
80246         2006-07-22  Bruno Haible  <bruno@clisp.org>
80247
80248                 * javaversion.h: New file, from GNU gettext.
80249                 * javaversion.c: New file, from GNU gettext.
80250                 * javaversion.java: New file, from GNU gettext.
80251                 * javaversion.class: New file, from GNU gettext.
80252
80253         2006-05-17  Bruno Haible  <bruno@clisp.org>
80254
80255                 Cygwin portability.
80256                 * javaexec.c (execute_java_class): Test for jview program
80257                 also on Cygwin.
80258
80259         2006-04-09  Bruno Haible  <bruno@clisp.org>
80260
80261                 * fatal-signal.c: Don't include string.h.
80262                 (at_fatal_signal): Use a copying loop instead of memcpy.
80263
80264         2005-12-04  Bruno Haible  <bruno@clisp.org>
80265
80266                 * csharpexec.c: Add support for 'clix' launcher (untested).
80267                 (execute_csharp_using_sscli): New function.
80268                 (execute_csharp_program): Call it.
80269
80270         2006-06-21  Bruno Haible  <bruno@clisp.org>
80271
80272                 Avoid warnings from recent versions of mcs.
80273                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80274                 -o, -L, -r any more. Use options documented since mcs-1.0
80275                 instead. Similarly for -g.
80276
80277         2005-07-09  Bruno Haible  <bruno@clisp.org>
80278
80279                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80280                 add a .dll suffix.
80281                 Reported by Mark Junker <mjscod@gmx.de>.
80282
80283         2006-06-17  Bruno Haible  <bruno@clisp.org>
80284
80285                 * config.charset: Update for NetBSD 3.0.
80286
80287         2006-05-17  Bruno Haible  <bruno@clisp.org>
80288
80289                 Cygwin portability.
80290                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80291
80292         2006-05-16  Bruno Haible  <bruno@clisp.org>
80293
80294                 * localcharset.c [CYGWIN]: Include <windows.h>.
80295                 (get_charset_aliases): For Cygwin, return the same CPxxx
80296                 aliases list as under WIN32.
80297                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80298                 the environment variables. Fall back to GetACP().
80299
80300         2006-04-05  Bruno Haible  <bruno@clisp.org>
80301
80302                 * config.charset: Update Juan Manuel Guerrero's address.
80303
80304         2005-02-12  Bruno Haible  <bruno@clisp.org>
80305
80306                 * allocsa.h: Add extern "C" for C++.
80307
80308         2005-02-10  Bruno Haible  <bruno@clisp.org>
80309
80310                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80311                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80312
80313         2006-07-22  Bruno Haible  <bruno@clisp.org>
80314
80315                 * gettext.h: Update to GNU gettext-0.15.
80316
80317 2006-07-22  Bruno Haible  <bruno@clisp.org>
80318
80319         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80320         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80321         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80322
80323 2006-07-21  Eric Blake  <ebb9@byu.net>
80324
80325         * modules/stdlib-safer: New file.
80326         * MODULES.html.sh (File stream based Input/Output): Add
80327         stdlib-safer.
80328
80329 2006-07-21  Eric Blake  <ebb9@byu.net>
80330
80331         * lib/stdlib-safer.h: New file from coreutils, required by
80332         stdlib--.h.
80333
80334 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80335
80336         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80337
80338 2006-07-20  Bruno Haible  <bruno@clisp.org>
80339
80340         * gnulib-tool: Recognize new option --assume-autoconf.
80341         (autoconf_minversion): New variable.
80342         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80343
80344 2006-07-20  Bruno Haible  <bruno@clisp.org>
80345
80346         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80347
80348 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80349
80350         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80351         Reindent and repaginate.
80352
80353 2006-07-19  Derek Price  <derek@ximbiot.com>
80354
80355         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80356         Correct grammar.
80357
80358 2006-07-17  Bruno Haible  <bruno@clisp.org>
80359
80360         * modules/list: New file.
80361         * modules/array-list: New file.
80362         * modules/carray-list, modules/carray-list-tests: New files.
80363         * modules/linked-list, modules/linked-list-tests: New files.
80364         * modules/avltree-list, modules/avltree-list-tests: New files.
80365         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80366         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80367         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80368         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80369         * modules/oset: New file.
80370         * modules/array-oset: New file.
80371         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80372         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80373         * tests/test-carray_list.c: New file.
80374         * tests/test-linked_list.c: New file.
80375         * tests/test-avltree_list.c: New file.
80376         * tests/test-rbtree_list.c: New file.
80377         * tests/test-linkedhash_list.c: New file.
80378         * tests/test-avltreehash_list.c: New file.
80379         * tests/test-rbtreehash_list.c: New file.
80380         * tests/test-avltree_oset.c: New file.
80381         * tests/test-rbtree_oset.c: New file.
80382         * MODULES.html.sh (Container data structures): New section.
80383
80384 2006-07-17  Bruno Haible  <bruno@clisp.org>
80385
80386         * m4/gl_list.m4: New file.
80387
80388 2006-07-17  Bruno Haible  <bruno@clisp.org>
80389
80390         * lib/gl_list.h: New file.
80391         * lib/gl_list.c: New file.
80392         * lib/gl_array_list.h: New file.
80393         * lib/gl_array_list.c: New file.
80394         * lib/gl_carray_list.h: New file.
80395         * lib/gl_carray_list.c: New file.
80396         * lib/gl_linked_list.h: New file.
80397         * lib/gl_linked_list.c: New file.
80398         * lib/gl_anylinked_list1.h: New file.
80399         * lib/gl_anylinked_list2.h: New file.
80400         * lib/gl_avltree_list.h: New file.
80401         * lib/gl_avltree_list.c: New file.
80402         * lib/gl_anyavltree_list1.h: New file.
80403         * lib/gl_anyavltree_list2.h: New file.
80404         * lib/gl_rbtree_list.h: New file.
80405         * lib/gl_rbtree_list.c: New file.
80406         * lib/gl_anyrbtree_list1.h: New file.
80407         * lib/gl_anyrbtree_list2.h: New file.
80408         * lib/gl_anytree_list1.h: New file.
80409         * lib/gl_anytree_list2.h: New file.
80410         * lib/gl_linkedhash_list.h: New file.
80411         * lib/gl_linkedhash_list.c: New file.
80412         * lib/gl_anyhash_list1.h: New file.
80413         * lib/gl_anyhash_list2.h: New file.
80414         * lib/gl_avltreehash_list.h: New file.
80415         * lib/gl_avltreehash_list.c: New file.
80416         * lib/gl_rbtreehash_list.h: New file.
80417         * lib/gl_rbtreehash_list.c: New file.
80418         * lib/gl_anytreehash_list1.h: New file.
80419         * lib/gl_anytreehash_list2.h: New file.
80420
80421         * lib/gl_oset.h: New file.
80422         * lib/gl_oset.c: New file.
80423         * lib/gl_array_oset.h: New file.
80424         * lib/gl_array_oset.c: New file.
80425         * lib/gl_avltree_oset.h: New file.
80426         * lib/gl_avltree_oset.c: New file.
80427         * lib/gl_rbtree_oset.h: New file.
80428         * lib/gl_rbtree_oset.c: New file.
80429         * lib/gl_anytree_oset.h: New file.
80430
80431 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * m4/mkancesdirs.m4: New file.
80434         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80435         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80436         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80437         it.
80438
80439 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80440
80441         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80442         * lib/mkancesdirs.h: New files.
80443         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80444         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80445         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80446         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80447         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80448         callers changed.  Revamp internals significantly, by not
80449         attempting to create directories that are temporarily more
80450         permissive than the final results.  Do not attempt to use
80451         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80452         This removes some race conditions, fixes some bugs, and simplifies
80453         things.  Use new dirchownmod function to do owner and mode changes.
80454         * lib/mkdir-p.h: Likewise.
80455         * lib/modechange.c (octal_to_mode): New function.
80456         (struct mode_change): New member mentioned.
80457         (make_node_op_equals): New arg mentioned.  All callers changed.
80458         (mode_compile): Keep track of which mode bits the user has explicitly
80459         mentioned.
80460         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80461         New arg PMODE_BITS, to keep track of which mode bits the user
80462         mentioned; it treats S_ISUID and S_ISGID speciall.
80463         All callers changed.
80464         * lib/modechange.h: Likewise.
80465
80466 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * MODULES.html.sh: Add mkancestors.
80469         * modules/mkancesdirs: New module.
80470         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80471         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80472         The chdir-safer and afs files are now orphans; I'll remove them
80473         unless someone speaks up.
80474         Add lib/dirchownmod.c, lib/dirchownmod.h.
80475         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80476         Add lchown, mkancesdirs.
80477         (Maintainer): Add self.
80478
80479 2006-07-15  Karl Berry  <karl@gnu.org>
80480
80481         * gnulib-tool: help message wording/arrangement.
80482
80483 2006-07-14  Simon Josefsson  <jas@extundo.com>
80484
80485         * doc/gnulib.texi (Libtool and Windows): New section.
80486
80487 2006-07-12  Simon Josefsson  <jas@extundo.com>
80488
80489         * modules/gendocs (License): Fix license, approved by Karl.
80490
80491 2006-07-12  Eric Blake  <ebb9@byu.net>
80492
80493         * MODULES.html.sh: Add gendocs.
80494
80495 2006-07-11  Eric Blake  <ebb9@byu.net>
80496
80497         * modules/fdl: New module, to install doc/fdl.texi.
80498         * MODULES.html.sh: Add new section for documentation modules.
80499         * gnulib-tool: Avoid space-tab.
80500         (--doc-base): New option, to manage files from doc.
80501
80502 2006-07-11  Eric Blake  <ebb9@byu.net>
80503
80504         * m4/absolute-header.m4: Fix comments to match recent change.
80505
80506 2006-07-11  Eric Blake  <ebb9@byu.net>
80507
80508         * gnulib-tool: List --doc-base before --tests-base.
80509
80510 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80511
80512         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80513
80514 2006-07-11  Bruno Haible  <bruno@clisp.org>
80515
80516         * README: Mention where to put documentation.
80517
80518 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80519
80520         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80521
80522 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80525         to stdint.m4.
80526
80527 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80528
80529         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80530         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80531         "no/such/file/stdint.h" when there is no such file, so that
80532         the resulting C code can be parsed by dodgy compilers.
80533         Problems reported by Bob Proulx.
80534
80535 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80536
80537         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80538         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80539         macros into the GNU _D_EXACT_NAMLEN.
80540         * lib/savedir.c:  Likewise.
80541         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80542
80543 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80544         and Paul Eggert  <eggert@cs.ucla.edu>
80545
80546         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80547         * m4/savedir.m4:
80548         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80549         macros into the GNU _D_EXACT_NAMLEN.
80550
80551 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80554         around the absolute name, to work around a problem with the HP-UX
80555         11.23 native C compiler, reported by Bob Proulx.
80556
80557 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * doc/maintain.texi, make-stds.texi: Sync from
80560         <http://savannah.gnu.org/projects/gnustandards>.
80561
80562 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80563
80564         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80565
80566 2006-07-09  Jim Meyering  <jim@meyering.net>
80567
80568         * m4/glob.m4: Remove a doubled word in a comment.
80569
80570 2006-07-09  Jim Meyering  <jim@meyering.net>
80571
80572         * lib/argp-pv.c: Remove a doubled word in a comment.
80573         * lib/check-version.c (check_version): Likewise.
80574         * lib/javacomp.c (compile_java_class): Likewise.
80575
80576 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80577
80578         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80579         for the benefit of people using Autoconf 2.60.  If you want to
80580         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80581         (or m4/onceonly.m4, if pre-2.57) manually.
80582
80583 2006-07-08  Jim Meyering  <jim@meyering.net>
80584
80585         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80586         comment.
80587         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80588         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80589         comment.
80590
80591 2006-07-08  Jim Meyering  <jim@meyering.net>
80592
80593         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80594
80595 2006-07-07  Simon Josefsson  <jas@extundo.com>
80596
80597         * tests/test-crc.c: Change expected crc value, the test vector
80598         were probably computed using the old broken crc.c?
80599
80600 2006-07-06  Simon Josefsson  <jas@extundo.com>
80601
80602         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80603         now the canonical place for the M4 file).
80604
80605         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80606         from the sys_socket dependency now.
80607
80608         * modules/inet_pton (Files): Ditto.
80609
80610         * modules/inet_ntop (Files): Ditto.
80611
80612 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80613
80614         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80615         not gl_PREREQ_GETUSERSHELL.
80616
80617 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80618
80619         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80620         with only one argument, for Autoconf 2.60.
80621         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80622         expand to nothing, so add a shell command to avoid syntax error.
80623         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80624
80625 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80626
80627         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80628
80629 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80632         no longer needed.  Check for isblank decl.
80633         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80634         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80635         of existence.
80636
80637 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * lib/getloadavg.c: Use __VMS, not VMS.
80640         * lib/getopt.c: Likewise.
80641         * lib/getpagesize.h: Likewise.
80642         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80643         and probably does not work.
80644
80645 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * lib/.cppi-disable: Add wcwidth.
80648         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80649         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80650         (ISGRAPH): Remove.  All uses changed to isgraph.
80651         (FOLD) [!defined _LIBC]: Remove special case.
80652         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80653         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80654         HAVE_ISBLANK.
80655         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80656         case.
80657
80658 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80659
80660         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80661         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80662         brackets.  Other minor changes to suppress some compiler
80663         warnings.
80664
80665 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80666         and Paul Eggert  <eggert@cs.ucla.edu>
80667
80668         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80669         of invoking obsolescent AC_HEADER_DIRENT macro.
80670         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80671         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80672         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80674         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80675         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80676         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80677         * m4/readdir.m4: Remove; no longer needed.
80678
80679 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80680         and Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80683         Don't worry about this obsolete case any more.
80684         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80685         directories.
80686         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80687         worry about this obsolete case any more.
80688         * lib/fts.c: Likewise.
80689         * lib/getcwd.c: Likewise.
80690         * lib/glob.h: Likewise.
80691         * lib/savedir.c: Likewise.
80692
80693 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80696         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80697         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80698         needed.
80699         All uses removed.
80700         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80701         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80702         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80703         needed.
80704         * m4/getdate.m4 (gl_GETDATE): Likewise.
80705         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80706         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80707         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80708         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80709         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80710         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80711         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80712         needed.
80713
80714 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * lib/memcasecmp.c: Include <limits.h>.
80717         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80718         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80719         Don't assume isdigit succeeds only on '0' through '9'.
80720
80721 2006-07-05  Eric Blake  <ebb9@byu.net>
80722
80723         * modules/getaddrinfo (Depends-on): Add snprintf.
80724
80725 2006-07-05  Eric Blake  <ebb9@byu.net>
80726
80727         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80728         to avoid 'header present but could not be compiled' on cygwin.
80729
80730 2006-07-05  Eric Blake  <ebb9@byu.net>
80731
80732         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80733         missing from netdb.h.
80734         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80735
80736 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80737
80738         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80739         no longer needed.
80740         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80741         * m4/getdate.m4 (gl_GETDATE): Likewise.
80742         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80743         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80744         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80745         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80747
80748 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80749
80750         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80751         All uses of is_space replaced by isspace.
80752         * lib/exit.h: Don't talk about STDC_HEADERS.
80753         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80754         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80755         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80756         replaced by isprint etc.
80757         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80758         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80759         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80760         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80761         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80762         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80763
80764 2006-07-05  Bruno Haible  <bruno@clisp.org>
80765
80766         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80767         the function exists, before testing against AIX.
80768         Reported by Martin Lambers <marlam@marlam.de>.
80769
80770 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80771
80772         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80773         From Mark D. Baushke.
80774
80775 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80776
80777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80778         to the absolute name, not just one, to bypass Sun C 5.8's
80779         "warning: #include of /usr/include/... may be non-portable".
80780
80781 2006-07-04  Eric Blake  <ebb9@byu.net>
80782
80783         * modules/dirname-tests: New test module.
80784         * tests/test-dirname.c: New file, replacing dirname.c
80785         TEST_DIRNAME section that was recently deleted.
80786
80787 2006-07-04  Bruno Haible  <bruno@clisp.org>
80788
80789         Assume ANSI C header files and <ctype.h> functions.
80790         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80791         (mbsnwidth): Use isprint, iscntrl instead.
80792
80793 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         Merge from coreutils.
80796         * MODULES.html.sh: Add xstrtold.
80797         * modules/xstrtold: New file.
80798         * modules/cycle-check (Files): Add lib/same-inode.h.
80799         * modules/dirname (Files): Add m4/double-slash-root.m4.
80800         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80801         * modules/mkdir-p (Files): Add lib/same-inode.h.
80802         * modules/same (Files): Add lib/same-inode.h.
80803
80804 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80805
80806         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80807         This is to keep the terminology clean; POSIX talks about
80808         "absolute pathnames", not "full pathnames", but the GNU
80809         Coding Standards say to use "path" for something else;
80810         so use "absolute" to keep both sides happy.
80811         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80812         Set gl_absolute_header, not gl_full_header_path.
80813         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80814         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80815         All uses changed.
80816
80817         Merge from coreutils.
80818
80819         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80822         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80823         want to require the building of c-strtod.o.
80824         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80825         needs -lm directly.
80826         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80827
80828         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80829
80830         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80831         --as-needed option if available.  Problem reported by Albert Chin in
80832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80833         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80834         cc merely issues a bunch of annoying warnings for --as-needed
80835         (this problem was reported by Bob Proulx).  Also, try linking with
80836         -lm to detect a bug in binutils 2.16 (this problem was reported
80837         by Ralf Wildenhues).
80838
80839         2006-06-18  Jim Meyering  <jim@meyering.net>
80840
80841         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80842         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80843         macro.
80844         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80845         also check for glibc-2.4's abort-inducing bug.
80846
80847         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80848         Low-probability clean-up should be to use rmdir to get rid of
80849         the just-created directory, not unlink.
80850
80851         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80852         configure fail, and request a bug report to inform us about it.
80853         Add a comment that, barring reports to the contrary, in 2007 we'll
80854         assume ftruncate is universally available.
80855
80856         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80857
80858         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80859
80860         2006-03-12  Jim Meyering  <jim@meyering.net>
80861
80862         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80863         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80864         * m4/same.m4 (gl_SAME): Likewise.
80865         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80866
80867         2006-03-11  Eric Blake  <ebb9@byu.net>
80868
80869         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80870         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80871         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80872         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80873
80874 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80875
80876         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80877         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80878         reported by Mark D. Baushke, one in
80879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80880
80881         Merge from coreutils.
80882
80883         * lib/.cppi-disable: Add stdint_.h.
80884         * lib/.cvsignore: Add stdint.h.
80885
80886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80889         both double and long double versions.
80890         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80891         * lib/xstrtold.c: New file.
80892         * lib/xstrtod.h (xstrtold): New decl.
80893
80894         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * lib/filemode.c (setst): Remove.
80897         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80898         (arguably) clearer, and the generated code is a bit smaller on my
80899         Debian GNU/Linux stable x86 host.
80900
80901         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80904         Assume that filemode.h includes sys/types.h and sys/stat.h.
80905         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80906         (ftypelet): Reorder to put common cases first, for efficiency.
80907         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80908         to do 'M'.
80909         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80910         of 10, for compatibility with FreeBSD.  All callers changed.
80911         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80912         types that can't be deduced solely from st_mode.  First arg is now a
80913         const pointer.
80914         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80915         (strmode): Renamed from mode_string.
80916         (filemodestring): New decl.
80917         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80918         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80919         needed.
80920         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80921
80922         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80923
80924         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80925         fsusage.h now does that.  Include fsusage.h first, to test interface.
80926         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80927         at most one method (the old code could have generated decls that
80928         didn't conform to C89, not that this was ever exercised).
80929         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80930
80931         2006-03-19  Jim Meyering  <jim@meyering.net>
80932
80933         Work even in a chroot where d_ino values for entries in "/"
80934         don't match the stat.st_ino values for the same names.
80935         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80936         number, iterate through all entries again, using lstat instead.
80937         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80938         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80939
80940         * lib/getcwd.c (__getcwd): Clarify a comment.
80941         Use memcpy in place of a call to strcpy.
80942
80943         2006-03-12  Jim Meyering  <jim@meyering.net>
80944
80945         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80946         matches that of the current directory (which we're about to chdir ".."
80947         out of), then save the dev-ino of the parent, instead.
80948
80949         * lib/same-inode.h (SAME_INODE): New file/macro.
80950         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80951         Include "same-inode.h", instead.
80952         * lib/same.c: Likewise.
80953         * lib/cycle-check.h: Include "same-inode.h".
80954         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80955         * lib/cycle-check.c (SAME_INODE): Remove definition.
80956         * lib/root-dev-ino.h: Include "same-inode.h".
80957
80958         2006-03-11  Eric Blake  <ebb9@byu.net>
80959
80960         * lib/same.c (same_name): s/base_name/last_component/
80961         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80962         * lib/filenamecat.c (file_name_concat): Likewise.
80963
80964         2006-03-11  Eric Blake  <ebb9@byu.net>,
80965                     Paul Eggert  <eggert@cs.ucla.edu>
80966
80967         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80968         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80969         drive prefix.
80970         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80971         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80972         (last_component): New method.
80973         * lib/dirname.c (dir_len): Determine when drive letters need a
80974         subsequent slash.  Preserve // when it is special.
80975         (dir_name): Don't append dot when drive letter is absolute.
80976         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80977         * lib/basename.c (base_name): New semantics - malloc the result.
80978         Preserve // when it is special.  Preserve relative files that look
80979         like drive letters.
80980         (base_len): Preserve // when it is special.
80981         (last_component): New method, similar to old base_name semantics.
80982         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80983         base_name.  Strip redundant slashes from ///.
80984
80985 2006-07-03  Jim Meyering  <jim@meyering.net>
80986
80987         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80988         macro is used before the first cycle_check call.
80989
80990 2006-07-03  Eric Blake  <ebb9@byu.net>
80991
80992         * modules/dirname (Depends-on): Add xstrndup.
80993
80994 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80995
80996         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80997         test cases, so that config.log is a bit easier to follow.
80998
80999 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81002         both are 64 bits, since this seems to be the tradition, and this
81003         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81004         we ever run into a host that prefers long long to long in this
81005         case, we'll need another configure-time test.  Problem reported by
81006         Jim Meyering.
81007
81008 2006-07-02  Eric Blake  <ebb9@byu.net>
81009
81010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81011
81012 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * modules/inttypes (Depends-on): No longer depends on stdint.
81015         * modules/stdint (Description): Say more about assumptions.
81016         Say that the fast types might differ.  Say macros are used.
81017         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81018         (Makefile.am): Revise list of substituted symbols to match
81019         new stdint.m4.
81020         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81021         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81022         * tests/test-stdint.c (verify_same_types)
81023         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81024         the code conforms to C99/C89.
81025         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81026         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81027
81028 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81031         but fix a bug, by requiring at least 64 bits.
81032         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81033         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81034         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81035         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81036
81037         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81038         changes.  Make 2.59 a prerequisite.  Check and substitute for
81039         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81040         inttypes.h.  Do not use special include files; just use the
81041         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81042         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81043         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81044         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81045         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81046         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81047         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81048         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81049         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81050         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81051         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81052         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81053         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81054         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81055         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81056         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81057         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81058         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81059         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81060         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81061         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81062         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81063         not check for things that C99 does not require, e.g., int8_t.  If
81064         a test isn't needed unless <stdint.h> isn't working, and is
81065         unlikely to be needed for any other reason, then don't do it
81066         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81067         size_t, since we assume C89 freestanding at least.  Do not check
81068         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81069         the right thing even if the types are not defined.  Instead use:
81070         (gl_STDINT_TYPE_PROPERTIES): New macro.
81071         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81072         testing whether <sys/types.h> clashes, as Autoconf does this for
81073         us now.  All uses removed.
81074         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81075         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81076         (gl_CHECK_TYPE_SAME):
81077         Remove; no longer needed.
81078         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81079         exists, since we'll return 0 anyway in that case.
81080         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81081
81082 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81085         possible collision with system files.
81086         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81087         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81088         WCHAR_MIN and WCHAR_MAX in this case.
81089         (<stddef.h>): Do not include; no longer needed.
81090         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81091         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81092         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81093         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81094         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81095         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81096         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81097         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81098         !defined(__c99))]: Include in this case too, since it's harmless
81099         now.
81100         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81101         dangerous to do so.
81102         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81103         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81104         (_STDINT_MIN, _STDINT_MAX): New macros.
81105         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81106         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81107         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81108         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81109         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81110         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81111         macros, not typedefs; this simplifies things quite a bit.
81112         Use long int for all types narrower than int64_t.
81113         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81114         Define in terms of long long int or int64_t or long int,
81115         not int64_t or int32_t.  This saves some compile-time testing.
81116         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81117         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81118         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81119         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81120         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81121         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81122         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81123         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81124         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81125         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81126         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81127         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81128         undef any previous version and define our own version, for
81129         simplicity and consistency with the new macros for types.
81130         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81131         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81132         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81133         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81134         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81135         @WINT_T_SUFFIX@ to keep things simple here.
81136         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81137         Simplify by assuming typical 8/16/32/64 host, since we're
81138         already doing that elsewhere anyway.
81139         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81140         and assume long long int is 64 bits if available.  This
81141         speeds up 'configure'.
81142
81143 2006-07-01  Eric Blake  <ebb9@byu.net>
81144
81145         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81146         Reported by Andreas Buening.
81147
81148 2006-07-01  Eric Blake  <ebb9@byu.net>
81149
81150         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81151
81152 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81153
81154         * lib/getaddrinfo.c: fixed typo
81155
81156 2006-06-29  Jim Meyering  <jim@meyering.net>
81157
81158         * modules/strftime (Maintainer): Add my name, since with the
81159         FPRINTFTIME changes strftime.c has forked from glibc.
81160
81161 2006-06-29  Eric Blake  <ebb9@byu.net>
81162
81163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81164
81165 2006-06-29  Eric Blake  <ebb9@byu.net>
81166
81167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81168
81169 2006-06-29  Eric Blake  <ebb9@byu.net>
81170
81171         * lib/stat_.h: New file.
81172
81173 2006-06-29  Eric Blake  <ebb9@byu.net>
81174
81175         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81176         unused static function.
81177
81178 2006-06-29  Eric Blake  <ebb9@byu.net>
81179
81180         * doc/functions.texi (Function Portability): Document missing lstat
81181         on mingw.
81182
81183 2006-06-29  Eric Blake  <ebb9@byu.net>
81184
81185         * MODULES.html.sh: Add sys_stat.
81186         * modules/sys_stat: New module.
81187         * modules/mkstemp (Depends-on): Add sys_stat.
81188
81189 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81190
81191         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81192
81193 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81194
81195         * m4/c-bs-a.m4: Removed.
81196
81197 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81198
81199         * lib/strftime.c: Assume strftime() exists.
81200
81201 2006-06-29  Derek Price  <derek@ximbiot.com>
81202
81203         * modules/c-bs-a: Removed - \a is C89.
81204         * MODULES.html.sh: Remove c-bs-a.
81205
81206 2006-06-29  Bruno Haible  <bruno@clisp.org>
81207
81208         * modules/wcwidth (License): Change to LGPL.
81209
81210 2006-06-28  Simon Josefsson  <jas@extundo.com>
81211
81212         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81213         on _WIN32.
81214
81215         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81216         getnameinfo.
81217
81218 2006-06-28  Simon Josefsson  <jas@extundo.com>
81219
81220         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81221
81222 2006-06-28  Simon Josefsson  <jas@extundo.com>
81223
81224         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81225         functions there.  It will succeed on Windows XP, but on Windows
81226         2000 and (presumably) earlier, it will fail, and use the internal
81227         re-implementation.
81228         (use_win32_p): New function.
81229         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81230         Support AI_NUMERICSERV to disable getservbyname.
81231         (getnameinfo): New function, only supports
81232         NI_NUMERICHOST|NI_NUMERICSERV for now.
81233
81234         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81235         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81236         getnameinfo.
81237
81238 2006-06-28  Eric Blake  <ebb9@byu.net>
81239
81240         * modules/wcwidth: New file.
81241         * modules/mbchar (Depends-on): Add wcwidth.
81242         * modules/mbswidth (Depends-on): Add wcwidth.
81243         * MODULES.html.sh: Add wcwidth.
81244
81245 2006-06-28  Eric Blake  <ebb9@byu.net>
81246
81247         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81249
81250 2006-06-28  Eric Blake  <ebb9@byu.net>
81251
81252         * lib/xvasprintf.h: Fix comments.
81253
81254 2006-06-28  Eric Blake  <ebb9@byu.net>
81255
81256         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81257         * lib/mbswidth.c (wcwidth): Move from here...
81258         * lib/wcwidth.h: ...to this new file.
81259
81260 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81261
81262         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81263
81264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81265         it's obsolete.
81266         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81267
81268 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81269
81270         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81271         Autoconf 2.60 says this stuff was obsolete.
81272
81273 2006-06-28  Bruno Haible  <bruno@clisp.org>
81274
81275         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81276
81277 2006-06-28  Bruno Haible  <bruno@clisp.org>
81278
81279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81280         gt_TYPE_WCHAR_T.
81281
81282 2006-06-28  Bruno Haible  <bruno@clisp.org>
81283
81284         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81285         declaration for wcwidth.
81286         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81287
81288 2006-06-28  Bruno Haible  <bruno@clisp.org>
81289
81290         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81291         (mkdir): Define using _mkdir.
81292
81293 2006-06-28  Bruno Haible  <bruno@clisp.org>
81294
81295         * lib/getaddrinfo.h: Fix POSIX URL.
81296         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81297         _WIN32.
81298         (use_win32_p): Make static.
81299         (getaddrinfo): Reject service name if it is empty or does not consist
81300         solely of decimal digits, or if its value is > 65535.
81301         (getnameinfo): Remove useless casts.
81302
81303 2006-06-27  Simon Josefsson  <jas@extundo.com>
81304
81305         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81306         Eggert and Martin Lambers.
81307
81308 2006-06-27  Simon Josefsson  <jas@extundo.com>
81309
81310         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81311         Eggert and Martin Lambers.
81312
81313 2006-06-27  Bruno Haible  <bruno@clisp.org>
81314
81315         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81316         result to 0, not to empty.
81317         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81318
81319 2006-06-27  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81322
81323 2006-06-26  Simon Josefsson  <jas@extundo.com>
81324
81325         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81326         present.
81327
81328 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81329
81330         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81331         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81333
81334 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81335
81336         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81337
81338 2006-06-26  Bruno Haible  <bruno@clisp.org>
81339
81340         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81341
81342 2006-06-26  Bruno Haible  <bruno@clisp.org>
81343
81344         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81345
81346 2006-06-26  Bruno Haible  <bruno@clisp.org>
81347
81348         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81349         SGI C compiler in pre-C99 mode.
81350         Suggested by Mark D. Baushke and Larry Jones.
81351
81352 2006-06-26  Bruno Haible  <bruno@clisp.org>
81353
81354         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81355         WCHAR_MAX.
81356         Reported by Mark D. Baushke and Larry Jones.
81357
81358 2006-06-26  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81361         in pre-C99 mode.
81362         Suggested by Mark D. Baushke and Larry Jones.
81363
81364 2006-06-23  Simon Josefsson  <jas@extundo.com>
81365             Bruno Haible  <bruno@clisp.org>
81366
81367         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81368         Emit mostlyclean-local rule.
81369         (func_emit_tests_Makefile_am): Likewise.
81370         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81371
81372 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81373
81374         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81375
81376 2006-06-23  Bruno Haible  <bruno@clisp.org>
81377
81378         * tests/test-stdint.c: Update to match ISO C 99 Technical
81379         Corrigendum 1.
81380
81381 2006-06-23  Bruno Haible  <bruno@clisp.org>
81382
81383         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81384
81385 2006-06-23  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/stdint_.h: Treat IRIX like OpenBSD.
81388
81389 2006-06-23  Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81392         ISO C 99 Technical Corrigendum 1.
81393
81394 2006-06-22  Simon Josefsson  <jas@extundo.com>
81395
81396         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81397         MinGW.
81398
81399 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81400
81401         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81402         needed.  Some compiler complained about some of them.  Problem reported
81403         by Larry Jones in
81404         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81405
81406 2006-06-21  Simon Josefsson  <jas@extundo.com>
81407
81408         * tests/test-getaddrinfo.c: New file.
81409
81410         * modules/getaddrinfo-tests: New file.
81411
81412         * MODULES.html.sh: Add inet_pton.
81413
81414         * modules/inet_pton: New file.
81415
81416 2006-06-21  Simon Josefsson  <jas@extundo.com>
81417
81418         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81419         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81420         of using the (limited) gnulib implementation on Windows XP.
81421
81422         * m4/inet_pton.m4: New file.
81423
81424 2006-06-21  Simon Josefsson  <jas@extundo.com>
81425
81426         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81427         variable.
81428
81429         * lib/socket_.h: Don't define WINVER.
81430
81431         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81432         slightly modified to work in gnulib.
81433
81434 2006-06-21  Simon Josefsson  <jas@extundo.com>
81435
81436         * doc/gnulib.texi (Windows sockets): Add.
81437
81438 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         * lib/read-file.c (fread_file): Start with buffer allocation of
81441         0 bytes rather than 1 byte; this simplifies the code.
81442         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81443         code to free buffer and save/restore errno.
81444         (internal_read_file): Remove unused local.
81445
81446 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81447
81448         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81449         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81450         Problem reported by Denis Excoffier in
81451         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81452
81453 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81454
81455         * modules/sys_socket, modules/socklen: Include sys/types since
81456         FreeBSD 4.x's sys/socket.h needs it.
81457
81458 2006-06-19  Simon Josefsson  <jas@extundo.com>
81459
81460         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81461
81462 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81463
81464         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81465
81466 2006-06-19  Bruno Haible  <bruno@clisp.org>
81467
81468         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81469         and FULL_PATH_INTTYPES_H in angle brackets.
81470         Reported by Mark D. Baushke <mdb@gnu.org>.
81471
81472 2006-06-17  Eric Blake  <ebb9@byu.net>
81473
81474         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81475         errno.
81476
81477 2006-06-17  Bruno Haible  <bruno@clisp.org>
81478
81479         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81480         <sys/inttypes.h>.
81481
81482 2006-06-17  Bruno Haible  <bruno@clisp.org>
81483
81484         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81485         whether errno is declared. Assume <errno.h> declares errno.
81486
81487 2006-06-17  Bruno Haible  <bruno@clisp.org>
81488
81489         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81490
81491 2006-06-17  Bruno Haible  <bruno@clisp.org>
81492
81493         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81494         problem on Solaris 2.5.1.
81495
81496 2006-06-16  Eric Blake  <ebb9@byu.net>
81497
81498         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81499         * lib/unicodeio.c [!defined errno]: Likewise.
81500         * lib/strtol.c [!defined errno]: Likewise.
81501         * lib/strtod.c [!defined errno]: Likewise.
81502
81503 2006-06-15  Eric Blake  <ebb9@byu.net>
81504
81505         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81506
81507 2006-06-15  Eric Blake  <ebb9@byu.net>
81508
81509         * config/srclist.txt (ssize_t.m4): Lose sync.
81510
81511 2006-06-15  Bruno Haible  <bruno@clisp.org>
81512
81513         * modules/stdint (Files): Include m4/full-header-path.m4,
81514         m4/size_max.m4, m4/wchar_t.m4.
81515         (Makefile.am): Many more substitutions.
81516         * modules/stdint-tests: New file.
81517         * tests/test-stdint.c: New file.
81518
81519 2006-06-15  Bruno Haible  <bruno@clisp.org>
81520
81521         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81522         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81523         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81524         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81525         gl_CHECK_TYPE_SAME): New macros.
81526
81527 2006-06-15  Bruno Haible  <bruno@clisp.org>
81528
81529         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81530
81531 2006-06-15  Bruno Haible  <bruno@clisp.org>
81532
81533         * lib/stdint_.h: Rewritten to be fully auto-configured.
81534         Fixes bug on HP-UX/IA64.
81535
81536 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81537
81538         * lib/getdate.y (__attribute__): Don't define if already defined.
81539         Problem reported by Larry Jones.
81540         * lib/utimens.c (__attribute__): Likewise.
81541
81542 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81545         reported by Andreas Schwab.
81546
81547 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81548             Bruno Haible  <bruno@clisp.org>
81549
81550         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81551         check for the declaration of strnlen and a run test that exposes the
81552         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81553         rpl_strndup.
81554
81555 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81556             Bruno Haible  <bruno@clisp.org>
81557
81558         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81559
81560 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81561
81562         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81563         compile test, for Tru64 4.0D.
81564
81565 2006-05-28  Karl Berry  <karl@gnu.org>
81566
81567         * config/srclist.txt (printf-args.c): lose sync.
81568
81569 2006-05-26  Martin Lambers  <marlam@marlam.de>
81570
81571         * lib/getpass.c: Updates the test for the native W32 API, and adds
81572         missing includes, thus fixing compilation warnings.
81573
81574 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81575
81576         * lib/exclude.c (exclude_fnmatch): New function.
81577         (excluded_file_name): Call exclude_fnmatch.
81578         * lib/exclude.h (excluded_file_name): New prototype
81579
81580 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         * lib/tempname.c (small_open, large_open): New macros.
81583         (__open, __open64) [!_LIBC]: Remove.
81584         (__gen_tempname): Use small_open and large_open instead of __open
81585         and __open64.  This fixes a portability bug on HP-UX 11.11i
81586         reported by Simon Wing-Tang in
81587         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81588
81589 2006-05-24  Bruno Haible  <bruno@clisp.org>
81590
81591         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81592         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81593         Reported by Thorsten Maerz <torte@netztorte.de> via
81594         Aaron Stone <aaron@serendipity.cx>.
81595
81596 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81597
81598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81599         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81600         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81601         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81602         not really conditional on the cache.
81603         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81604
81605 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81608         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81609         (my_usleep): Don't mishandle maximum value.
81610
81611 2006-05-19  Jim Meyering  <jim@meyering.net>
81612
81613         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81614
81615 2006-05-17  Bruno Haible  <bruno@clisp.org>
81616
81617         Cygwin portability.
81618         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81619
81620 2006-05-17  Bruno Haible  <bruno@clisp.org>
81621
81622         * lib/stdint_.h: Fix recognition of Cygwin.
81623
81624 2006-05-15  Bruno Haible  <bruno@clisp.org>
81625
81626         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81627         on libtool patch by Ralf Wildenhues.
81628
81629 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81630
81631         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81632         test for C99 conformance; (bool) 0.5 is an integer constant
81633         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81634         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81635
81636 2006-05-11  Simon Josefsson  <jas@extundo.com>
81637
81638         * m4/xvasprintf.m4: Fix obvious typo.
81639
81640 2006-05-11  Jim Meyering  <jim@meyering.net>
81641
81642         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81643         James Lemley.
81644
81645 2006-05-10  Simon Josefsson  <jas@extundo.com>
81646
81647         * lib/md4.c: Typo fix, update copyright years.
81648         (K1, K2): Don't use L because it turn computations into 64-bit on
81649         64-bit platforms.
81650
81651 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81654         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81655         unwanted sign propagation, e.g., on hosts with 64-bit int.
81656         There still are some problems with reeelly weird theoretical hosts
81657         (e.g., 33-bit int) but it's not worth worrying about now.
81658         * lib/sha1.c (rol): Likewise.
81659         (K1, K2, K3, K4): Remove unnecessary L suffix.
81660
81661 2006-05-10  Bruno Haible  <bruno@clisp.org>
81662
81663         * lib/des.c: Cast to avoid warnings.
81664
81665 2006-05-09  Bruno Haible  <bruno@clisp.org>
81666
81667         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81668         (Depends-on): Depend also on xsize, stdarg.
81669         (configure.ac): Add gl_XVASPRINTF.
81670
81671 2006-05-09  Bruno Haible  <bruno@clisp.org>
81672
81673         * m4/xvasprintf.m4: New file.
81674
81675 2006-05-09  Bruno Haible  <bruno@clisp.org>
81676
81677         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81678         (EOVERFLOW): Define fallback value.
81679         (xstrcat): New function.
81680         (xvasprintf): Recognize the special case of a string concatenation.
81681
81682 2006-05-08  Eric Blake  <ebb9@byu.net>
81683
81684         * gnulib-tool (func_version): Base copyright year on CVS date.
81685         (func_emit_copyright_notice): New function.
81686         (func_emit_lib_Makefile_am): Use it.
81687         (func_emit_tests_Makefile_am): Likewise.
81688         (func_import): Likewise.
81689
81690 2006-05-08  Bruno Haible  <bruno@clisp.org>
81691
81692         * modules/stdarg: New file.
81693         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81694
81695 2006-05-08  Bruno Haible  <bruno@clisp.org>
81696
81697         * m4/stdarg.m4: New file, from GNU gettext.
81698
81699 2006-05-08  Bruno Haible  <bruno@clisp.org>
81700
81701         * config/srclist.txt (build-aux/config.rpath): different from latest
81702         release.
81703
81704 2006-05-08  Bruno Haible  <bruno@clisp.org>
81705
81706         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81707
81708 2006-05-05  Jim Meyering  <jim@meyering.net>
81709
81710         * m4/warning.m4: New file, derived from bison's file by the same name.
81711
81712 2006-05-03  Bruno Haible  <bruno@clisp.org>
81713
81714         * lib/stdint_.h: Shorter URL.
81715         * lib/inttypes.h: Likewise.
81716
81717 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81720
81721 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * lib/verify.h: Document the internals better.  Most of this change
81724         was written by Bruno Haible.
81725
81726 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81727
81728         * doc/verify.texi: New file, partly based on a proposal by
81729         Bruno Haible.
81730
81731 2006-05-02  Bruno Haible  <bruno@clisp.org>
81732
81733         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81734         test from here...
81735         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81736
81737 2006-04-29  Bruno Haible  <bruno@clisp.org>
81738
81739         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81740         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81741
81742 2006-04-29  Bruno Haible  <bruno@clisp.org>
81743
81744         * gnulib-tool: Make --update option actually work.
81745
81746 2006-04-29  Bruno Haible  <bruno@clisp.org>
81747
81748         * doc/gcd.texi: New file.
81749         * doc/gnulib.texi: Include it.
81750
81751 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * lib/getdate.y (get_date): When adding relative date, start with the
81754         initial time, not with the result of the first mktime call.
81755
81756 2006-04-25  Bruno Haible  <bruno@clisp.org>
81757
81758         * gnulib-tool (func_import): Output the include directives in three
81759         blocks, sorted separately.
81760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81761
81762 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81763
81764         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81765         to define main with arguments, for C++.  Reported by Eric Blake.
81766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81767         Prefer 'int main ()' to 'int main (void)', for C++.
81768         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81769         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81770         for 'main', for C99 and C++.
81771
81772 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81773
81774         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81775         Don't assume that exit status -1 is valid.
81776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81777         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81778         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81779         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81780         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81781         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81782         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81783         functions can be used without declaring them, or that you can
81784         exit with status -1.
81785         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81786
81787 2006-04-24  Karl Berry  <karl@gnu.org>
81788
81789         * config/srclist.txt (longdouble.m4): sync lost.
81790
81791 2006-04-24  Eric Blake  <ebb9@byu.net>
81792
81793         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81794
81795 2006-04-24  Bruno Haible  <bruno@clisp.org>
81796
81797         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81798         poll() implementation in AIX.
81799         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81800
81801 2006-04-24  Bruno Haible  <bruno@clisp.org>
81802
81803         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81804         assigned exactly once.
81805
81806 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81807             Bruno Haible  <bruno@clisp.org>
81808
81809         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81810         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81811         for AM_CPPFLAGS.
81812
81813 2006-04-23  Bruno Haible  <bruno@clisp.org>
81814
81815         * modules/copy-file: Depend on unistd.
81816         * modules/execute: Likewise.
81817         * modules/fatal-signal: Likewise.
81818         * modules/findprog: Likewise.
81819         * modules/mkdtemp : Likewise.
81820         * modules/pipe: Likewise.
81821         * modules/wait-process: Likewise.
81822
81823 2006-04-23  Bruno Haible  <bruno@clisp.org>
81824
81825         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81826         condition was already detected.
81827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81828
81829 2006-04-23  Bruno Haible  <bruno@clisp.org>
81830
81831         * lib/copy-file.c: Include <unistd.h> unconditionally.
81832         * lib/execute.c: Likewise.
81833         * lib/fatal-signal.c: Likewise.
81834         * lib/findprog.c: Likewise.
81835         * lib/mkdtemp.c: Likewise.
81836         * lib/pipe.h: Likewise.
81837         * lib/pipe.c: Likewise.
81838         * lib/wait-process.h: Likewise.
81839
81840 2006-04-23  Bruno Haible  <bruno@clisp.org>
81841
81842         * gnulib-tool (func_usage): Fix --import description. Document
81843         --update.
81844         (func_import): Create temporary file in a temporary directory, if
81845         --dry-run is specified. Silence errors from 'grep' when there are no
81846         m4 files in $m4dir.
81847         (func_create_testdir): Silence errors from 'grep' when there are no
81848         m4 files in $m4dir.
81849         Reported by Karl Berry <karl@freefriends.org>.
81850
81851 2006-04-20  Bruno Haible  <bruno@clisp.org>
81852
81853         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81854         one argument, so that the code will be portable to Autoconf 2.60.
81855         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81856         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81857         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81858
81859 2006-04-19  Derek Price  <derek@ximbiot.com>
81860             Eric Blake  <ebb9@byu.net>
81861
81862         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81863         rather than "/full/path.h".  Update comment to match.  Shorten &
81864         generalize m4_translit call via AS_TR_CPP.
81865
81866 2006-04-19  Derek Price  <derek@ximbiot.com>
81867             Eric Blake  <ebb9@byu.net>
81868
81869         * lib/inttypes.h: Correct grammar in comment.
81870
81871 2006-04-18  Derek Price  <derek@ximbiot.com>
81872             Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * modules/inttypes: New file.
81875         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81876
81877 2006-04-18  Derek Price  <derek@ximbiot.com>
81878             Paul Eggert  <eggert@cs.ucla.edu>
81879
81880         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81881         New files.
81882
81883 2006-04-18  Derek Price  <derek@ximbiot.com>
81884             Paul Eggert  <eggert@cs.ucla.edu>
81885
81886         * lib/inttypes.h: New file.
81887         * lib/strtoimax.c: Assume <inttypes.h>.
81888
81889 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81890
81891         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81892         isn't mounted.  Problem reported by Kir Kolyshkin.
81893
81894 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81897         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81898         Derek R. Price.
81899         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81900         implementation.
81901
81902 2006-04-12  Eric Blake  <ebb9@byu.net>
81903
81904         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81905         is now done automatically by the corresponding Autoconf macro.
81906
81907 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81908
81909         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81910         time_r.h.
81911
81912 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         Merge regex changes from libc, removing some of our
81915         POSIX-conformance changes that were rejected and redoing them in a
81916         less-intrusive way.
81917
81918         * lib/regcomp.c (re_compile_internal, init_dfa):
81919         Length arg is now size_t, not Idx.  All uses changed.
81920         (peek_token): Forward decl now says internal_function.
81921         (__re_error_msgid, __re_error_msgid_idx):
81922         Now static rather than extern with attribute_hidden.
81923         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81924         For some reason libc prefers K&R style defns for external functions.
81925         (regerror) [!defined _LIBC]: Likewise.
81926         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81927         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81928         (build_range_exp, build_collating_symbol):
81929         Use K&R-style defn.
81930         (re_compile_fastmap): Use '\0' to memset, not 0.
81931         (utf8_sb_map): Make the calculations more obvious.
81932         (init_dfa, parse_bracket_exp, build_charclass_op):
81933         Call calloc and cast result, as glibc does.
81934         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81935         (build_range_exp, build_collating_symbol):
81936         Now internal functions.
81937
81938         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81939
81940         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81941         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81942         Don't depend on VMS; depend on __VMS instead, for POSIX
81943         namespace cleanness.
81944         (regoff_t): Define to ssize_t, not long int.
81945
81946         Remove the REG_ macros named below.  Instead, make the old names
81947         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81948         __USE_GNU_REGEX.
81949         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81950         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81951         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81952         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81953         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81954         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81955         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81956         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81957         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81958         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81959         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81960         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81961         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81962         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81963         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81964         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81965         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81966         (REG_NREGS):
81967         Remove.  All uses replaced by the old RE_* names.
81968         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81969         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81970         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81971         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81972         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81973         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81974         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81975         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81976         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81977         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81978         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81979         Don't bother having these macros be independent of each others'
81980         values, since they no longer exist in the POSIX name space.
81981
81982         Rename the following member names back to their old names,
81983         unless !__USE_GNU_REGEX.  All uses changed back.
81984         (buffer): Renamed from re_buffer.
81985         (allocated): Renamed from re_allocated.
81986         (used): Renamed from re_used.
81987         (syntax): Renamed from re_syntax.
81988         (fastmap): Renamed from re_fastmap.
81989         (translate): Renamed from re_translate.
81990         (can_be_null): Renamed from re_can_be_null.
81991         (regs_allocated): Renamed from re_regs_allocated.
81992         (fastmap_accurate): Renamed from re_fastmap_accurate.
81993         (no_sub): Renamed from re_no_sub.
81994         (not_bol): Renamed from re_not_bol.
81995         (not_eol): Renamed from re_not_eol.
81996         (newline_anchor): Renamed from re_newline_anchor.
81997         (num_regs): Renamed from rm_num_regs.
81998         (start): Renamed from rm_start.
81999         (end): Renamed from rm_end.
82000
82001         (free_state): Move up a bit.
82002
82003         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82004         #define to be empty.
82005         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82006         when that is what is intended.
82007         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82008         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82009         (MAX): New macro.
82010         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82011         All uses changed back to re_malloc, etc.  It's now the caller's
82012         responsibility to check for overflow; all callers changed.
82013         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82014         (re_x2nrealloc): Remove.
82015         (free_state): Remove decl.
82016
82017         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82018         (re_set_registers, re_exec):
82019         Use K&R-style defn.
82020
82021         2006-01-31  Roland McGrath  <roland@redhat.com>
82022
82023         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82024         Reported by Mike Frysinger <vapier@gentoo.org>.
82025
82026         2006-01-15  Andreas Jaeger  <aj@suse.de>
82027
82028         [BZ #1950]
82029         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82030         build_wcs_upper_buffer change.
82031         (build_wcs_upper_buffer): Change return type.
82032
82033         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82034
82035         * lib/regex_internal.h: Include <stdint.h> if available.
82036
82037         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82038
82039         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82040
82041         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82042
82043         * lib/regcomp.c: Adjust for changed secondary hash function.
82044
82045         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82046
82047         * lib/regex.h: Pretty printing.
82048         Clean up namespace a bit.
82049
82050         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82051
82052         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82053         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82054
82055         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82056                     Ulrich Drepper  <drepper@redhat.com>
82057
82058         [BZ #1302]
82059         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82060         changed.
82061         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82062
82063         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82064
82065         [BZ #281]
82066         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82067         * lib/regcomp.c: Remove unnecessary uses of
82068         unsigned RE_TRANSLATE_TYPE.
82069         * lib/regex_internal.h: Likewise.
82070         * lib/regex_internal.c: Likewise.
82071         * lib/regexec.c: Likewise.
82072         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82073
82074         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82075
82076         * lib/regexec.c (find_recover_state): Remove unnecessary
82077         initialization.
82078         (transit_state_bkref): Make DFA a const pointer.
82079         (get_subexp): Likewise.
82080         (check_arrival): Likewise.
82081         (update_cur_sifted_state): Likewise.
82082         (re_search_internal): Likewise.
82083         (prune_impossible_nodes): Likewise.
82084         (acquire_init_state_context): Likewise.
82085         (proceed_next_node): Likewise.
82086         (set_regs): Likewise.
82087         (free_fail_stack_return): Likewise.
82088         (check_arrival_expand_ecl): Mark DFA parameter as const.
82089         (check_arrival_expand_ecl_sub): Likewise.
82090         (check_subexp_limits): Likewise.
82091         (sub_epsilon_src_nodes):  Likewise.
82092         (add_epsilon_src_nodes):  Likewise.
82093         (merge_state_array): Likewise.
82094         (update_regs): Likewise.
82095         (build_trtable): Likewise.
82096         (sift_states_backward): Mark MCTX parameter as const.
82097         (build_sifted_states): Likewise.
82098         (update_cur_sifted_state): Likewise.
82099         (sift_states_mkref): Likewise.
82100         (check_arrival_expand_ecl): Mark eclosure as const.
82101         (check_dst_limits_calc_pos_1): Likewise.
82102         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82103         pointer.
82104
82105         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82106
82107         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82108         (transit_state_sb): Likewise.
82109         (transit_state_mb): Likewise.
82110         (sift_states_iter_mb): Likewise.
82111         (check_arrival_add_next_nodes): Likewise.
82112         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82113         [_LIBC] (re_search_2_stub): Use mempcpy.
82114
82115         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82116         mbrtowc for very simple UTF-8 case.
82117
82118         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82119         a pointer-to-const.
82120         (re_acquire_state_context): Likewise.
82121         * lib/regex_internal.h: Adjust prototypes.
82122
82123         * lib/regex.c: Prevent using C++ compilers.
82124
82125         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82126         (re_acquire_state_context): Likewise.
82127
82128 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         * modules/regex (Depends-on): Add ssize_t.
82131
82132 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82135         translation table.
82136
82137 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82140
82141 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82142             Bruno Haible  <bruno@clisp.org>
82143
82144         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82145         <sys/types.h> and <inttypes.h>.
82146
82147 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82148
82149         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82150         `__error_t_defined', so argp.h will not typedef the former.
82151
82152 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82153
82154         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82155         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82156         glibc names.  Even if glibc is changed to conform to POSIX, the
82157         traditional names will be available anyway, since regex depends on
82158         the extensions module.  Also, fix a longstanding typo in the
82159         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82160         reported by Emanuele Giaquinta.  Also, change sense of cached
82161         variable, so that the message makes sense.
82162
82163 2006-03-24  Simon Josefsson  <jas@extundo.com>
82164
82165         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82166         including some doc fixes.
82167         (base64_encode_alloc): Fix +1 bug on allocation failures.
82168
82169 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82170
82171         * lib/base64.c (base64_encode): Do not read past end of array with
82172         unsanitized input on systems with CHAR_BIT > 8.
82173
82174 2006-03-24  Eric Blake  <ebb9@byu.net>
82175
82176         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82177
82178 2006-03-22  Karl Berry  <karl@gnu.org>
82179
82180         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82181         * config/srclistvars.sh (COREUTILS): new var.
82182
82183 2006-03-17  Jim Meyering  <jim@meyering.net>
82184
82185         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82186         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82187
82188 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82191         no longer needs it.  Instead, check that regoff_t is as least
82192         as wide as ptrdiff_t.
82193
82194         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82195         so that our regex.h stays compatible with the installed regex.
82196         This is helpful for installers who configure --without-included-regex.
82197         Problem reported by Emanuele Giaquinta.
82198
82199 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82200
82201         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82202         Typedef to long int, not to off_, as POSIX will likely change
82203         in that direction.
82204
82205 2006-03-15  Eric Blake  <ebb9@byu.net>
82206
82207         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82208
82209 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82210
82211         * lib/argp-help.c (validate_uparams): Fix typo
82212         * lib/argp-parse.c (argp_default_options): Consistently begin help
82213         messages with a lowercase letter.
82214
82215 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82216
82217         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82218         overrun buffers and shouldn't be used (much as gets shouldn't be
82219         used).
82220         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82221
82222 2006-03-08  Simon Josefsson  <jas@extundo.com>
82223
82224         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82225         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82226
82227 2006-03-08  Simon Josefsson  <jas@extundo.com>
82228
82229         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82230         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82231
82232 2006-03-08  Simon Josefsson  <jas@extundo.com>
82233
82234         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82235         signal that configure disabled the device.
82236
82237 2006-03-08  Simon Josefsson  <jas@extundo.com>
82238
82239         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82240         languages.
82241
82242 2006-03-07  Simon Josefsson  <jas@extundo.com>
82243
82244         * modules/getopt (Depends-on): Add unistd.
82245
82246         * modules/unistd: New file.
82247
82248 2006-03-07  Simon Josefsson  <jas@extundo.com>
82249
82250         * modules/gc-random: New file.
82251
82252 2006-03-07  Simon Josefsson  <jas@extundo.com>
82253
82254         * m4/unistd_h.m4: New file.
82255
82256 2006-03-07  Simon Josefsson  <jas@extundo.com>
82257
82258         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82259         test to be side-effect free by storing the result in the cache
82260         variable gl_cv_lib_readline, and moving the assignment of
82261         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82262         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82263
82264 2006-03-07  Simon Josefsson  <jas@extundo.com>
82265
82266         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82267         error on missing devices (the functions will return an error).
82268
82269         * m4/gc.m4: Move random stuff to gc-random.m4
82270
82271 2006-03-07  Simon Josefsson  <jas@extundo.com>
82272
82273         * lib/unistd_.h: New file.
82274
82275 2006-03-07  Simon Josefsson  <jas@extundo.com>
82276
82277         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82278
82279 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82280
82281         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82282         Problem reported by Juan Manuel Guerrero.
82283
82284 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82285
82286         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82287         the unistd module.
82288         * lib/getlogin_r.c: Likewise.
82289         * lib/getlogin_r.h: Likewise.
82290         * lib/glob.c: Likewise.
82291         * lib/pagealign_alloc.c: Likewise.
82292         * lib/unistd_.h: Remove; no longer needed.
82293
82294 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82297         Add unistd.
82298         * modules/c-stack (Depends-on): Add unistd.
82299         * modules/getlogin_r: Likewise.
82300         * modules/glob: Likewise.
82301         * modules/pagealign_alloc: Likewise.
82302         * modules/unistd (Files): Remove lib/unistd_.h.
82303         (EXTRA_DIST): Remove.
82304         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82305         need unistd_.h.
82306         (MOSTLYCLEANFILES): Remove unistd.h-t.
82307
82308 2006-03-03  Simon Josefsson  <jas@extundo.com>
82309
82310         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82311
82312 2006-03-03  Simon Josefsson  <jas@extundo.com>
82313
82314         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82315         libidn and bison.
82316
82317 2006-03-03  Simon Josefsson  <jas@extundo.com>
82318
82319         * build-aux/maint.mk: Add indent target.
82320
82321 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82322
82323         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82324         our replacement poll.h in any case, to avoid a differing
82325         declaration from a system header.  Seen on AIX.
82326
82327 2006-03-01  Simon Josefsson  <jas@extundo.com>
82328
82329         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82330         <kasal@ucw.cz>.
82331
82332 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82333
82334         * modules/gettime (Depends-on): Add extensions module.
82335         * modules/nanosleep (Depends-on): Likewise.
82336         * modules/settime (Depends-on): Likewise.
82337
82338 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82341         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82342         pedantically.
82343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82344         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82345
82346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82347         not "==".  Reported by Ralf Wildenhues.
82348
82349 2006-03-01  Karl Berry  <karl@gnu.org>
82350
82351         * doc/Copyright/request-*: new files, synced from gnuorg.
82352
82353 2006-03-01  Karl Berry  <karl@gnu.org>
82354
82355         * config/srclist.txt (Copyright/*): new entries.
82356
82357 2006-02-28  Simon Josefsson  <jas@extundo.com>
82358
82359         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82360
82361 2006-02-27  Simon Josefsson  <jas@extundo.com>
82362
82363         * lib/base64.h: Indent #define's.  From Jim Meyering
82364         <jim@meyering.net>.
82365
82366 2006-02-27  Jim Meyering  <jim@meyering.net>
82367
82368         Revert the change of 2006-02-24, so these files can continue
82369         to be sync'd from gettext.
82370         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82371         of `config.h'.
82372
82373 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         * modules/intprops: New file.
82376         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82377         Add intprops.
82378         * modules/getloadavg (Files): Remove lib/intprops.h.
82379         (Depends-on): Add intprops.
82380         * modules/human: Likewise.
82381         * modules/inttostr: Likewise.
82382         * modules/openat: Likewise.
82383         * modules/sig2str: Likewise.
82384         * modules/userspec: Likewise.
82385         * modules/utimecmp: Likewise.
82386         * modules/xnanosleep: Likewise.
82387         * modules/xstrtol: Likewise.
82388
82389 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82390
82391         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82392         * modules/lock-tests (TESTS): Use $(EXEEXT).
82393         * modules/tls-tests: Likewise.
82394         * modules/argp-tests: Likewise.
82395         (check_PROGRAMS): New var, replacing...
82396         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82397
82398 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82399
82400         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82401         `config.h'.
82402
82403 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82404
82405         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82406
82407 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82408
82409         Sync from coreutils.
82410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82411         gl_CHDIR_SAFER.
82412
82413 2006-02-22  Jim Meyering  <jim@meyering.net>
82414
82415         Sync from coreutils.
82416         * m4/chdir-safer.m4: New file.
82417
82418 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82421         AT_FDCWD exceeds INT_MAX.
82422         * lib/openat.h (AT_FDCWD): Likewise.
82423
82424 2006-02-17  Eric Blake  <address@hidden>
82425
82426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82427
82428 2006-02-16  Simon Josefsson  <jas@extundo.com>
82429
82430         * modules/getaddrinfo (Depends-on): Add sys_socket.
82431
82432 2006-02-15  Simon Josefsson  <jas@extundo.com>
82433
82434         * build-aux/maint.mk: Add dsyntax-check rule.
82435
82436 2006-02-15  Eric Blake  <ebb9@byu.net>
82437
82438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82439         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82440         'present but cannot compile' warnings on cygwin.
82441         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82442         use ws2tcpip.h if sys/socket.h works.
82443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82444         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82445
82446 2006-02-14  Simon Josefsson  <jas@extundo.com>
82447
82448         * modules/maintainer-makefile (Files): Rename.
82449
82450         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82451         and (the local) Makefile.cfg to maint-cfg.mk.
82452
82453         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82454         to the latter.
82455
82456         * modules/maintainer-makefile: New module.
82457
82458         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82459         severaly stripped to make it possible to build it up from scratch
82460         with reliable tests.
82461
82462         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82463         fixes to permit overriding the default actions when configure and
82464         makefile are not available.
82465
82466 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82467
82468         Sync from coreutils.
82469         * modules/lstat (Depends-on): Don't depend on xalloc.
82470         (License): Change from GPL to LGPL, since this is now simply a
82471         replacement for a libc function.
82472
82473 2006-02-14  Jim Meyering  <jim@meyering.net>
82474
82475         Sync from coreutils.
82476
82477         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82478         failure on deficient systems, and simplify gnulib lgpl dependencies.
82479         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82480         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82481
82482         * lib/xalloc-die.c: Remove unused definition of N_.
82483
82484 2006-02-14  Jim Meyering  <jim@meyering.net>
82485
82486         Sync from coreutils.
82487         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82488         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82489         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82490         double-quote uses of that variable, to accommodate the rare case in
82491         which getmntent is available in none of the libraries checked.  This
82492         happens at least on FreeBSD 5.0.
82493
82494 2006-02-13  Simon Josefsson  <jas@extundo.com>
82495
82496         * gnulib-tool (Usage): Fix --import, from
82497         karl@freefriends.org (Karl Berry).
82498
82499 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82500
82501         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82502
82503 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82504
82505         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82506         "autoupdate" on 2005-12-12.
82507
82508 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82509
82510         * modules/closeout (Depends-on): Remove atexit.
82511
82512 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82515         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82516
82517 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82520         __EXTENSIONS__ if this causes compilation to fail.  Problem
82521         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82522         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82523
82524 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82525
82526         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82527         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82528         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82529         All uses changed.
82530
82531 2006-01-26  Simon Josefsson  <jas@extundo.com>
82532
82533         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82534         prototype is visible on mingw32.
82535
82536         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82537         for mingw32.
82538
82539         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82540         mingw32).
82541
82542 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82543
82544         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82545         attempt to open for write; this always fails, at least on POSIX
82546         hosts.  This reinstates the 2006-01-09 change, which was
82547         inadvertently removed.
82548
82549 2006-01-26  Bruno Haible  <bruno@clisp.org>
82550
82551         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82552         Reported by Paul Eggert.
82553
82554 2006-01-26  Bruno Haible  <bruno@clisp.org>
82555             Paul Eggert  <eggert@cs.ucla.edu>
82556
82557         * lib/stdbool_.h (_Bool)
82558         [(! (defined __cplusplus || defined __BEOS__)
82559           && !defined __GNUC__
82560           && !(defined __HP_cc || defined __xlc__
82561                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82562                || defined __sgi))]:
82563         #define to signed char in these cases too; this simplifies
82564         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82565         etc., separately) and makes it more conservative.
82566
82567 2006-01-25  Simon Josefsson  <jas@extundo.com>
82568
82569         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82570         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82571         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82572
82573 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82574
82575         * lib/argp-namefrob.h: Bugfix. Remove stray #
82576
82577 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82580         so that we test the test.
82581         Check for yet another HP-UX cc bug involving *bool |= bool.
82582
82583 2006-01-25  Karl Berry  <karl@gnu.org>
82584
82585         * config/srclist.txt (vasnprintf.c): sync lost.
82586
82587 2006-01-25  Jim Meyering  <jim@meyering.net>
82588
82589         Sync from the stable (b5) branch of coreutils:
82590
82591         * lib/fts.c (fts_children): Don't let close() clobber errno from
82592         failed fchdir().
82593
82594         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82595         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82596         a dangling symlink.  That can also happen at least for ELOOP.
82597         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82598         FYI, this bug predates the inclusion of fts.c in coreutils.
82599
82600         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82601         in their own block, so pre-c99 compilers don't object.
82602
82603         Avoid the double-free (first in fts_read, second in fts_close) that
82604         would occur when an `active' directory is made inaccessible (e.g.,
82605         via chmod a-x) during a traversal.
82606         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82607         before returning.  Reproduce this failure by
82608         mkdir -p a/b; cd a; chmod a-x . b
82609         Reported by Stavros Passas.
82610
82611 2006-01-25  Jim Meyering  <jim@meyering.net>
82612
82613         * lib/fileblocks.c: Remove more useless parentheses.
82614         * lib/readutmp.h: Likewise.
82615
82616 2006-01-25  Bruno Haible  <bruno@clisp.org>
82617
82618         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82619         warnings.
82620         Reported by Paul Eggert.
82621
82622 2006-01-25  Bruno Haible  <bruno@clisp.org>
82623
82624         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82625         rid of a trap command. For Solaris sh.
82626         Reported by Mark D. Baushke <mdb@gnu.org>.
82627
82628 2006-01-24  Simon Josefsson  <jas@extundo.com>
82629
82630         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82631         Bruno.
82632
82633 2006-01-24  Karl Berry  <karl@gnu.org>
82634
82635         * config/srclist.txt (argp-namefrob.h): sync lost.
82636
82637 2006-01-24  Jim Meyering  <jim@meyering.net>
82638
82639         * modules/openat (Files): Add lib/intprops.h.
82640         From Mark D. Baushke.
82641
82642 2006-01-24  Jim Meyering  <jim@meyering.net>
82643
82644         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82645         Reported by Mark D. Baushke.
82646
82647 2006-01-24  Jim Meyering  <jim@meyering.net>
82648
82649         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82650
82651 2006-01-24  Bruno Haible  <bruno@clisp.org>
82652
82653         * modules/strnlen (Maintainer): Change from glibc to all.
82654
82655 2006-01-24  Bruno Haible  <bruno@clisp.org>
82656
82657         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82658         Patch by Paul Eggert.
82659
82660 2006-01-24  Bruno Haible  <bruno@clisp.org>
82661
82662         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82663         already has it.
82664         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82665         2005-11-26.
82666
82667         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82668         'signed char' to avoid problems with the built-in _Bool type.
82669         Reported by Paul Eggert on 2005-11-26.
82670
82671 2006-01-24  Bruno Haible  <bruno@clisp.org>
82672
82673         * gnulib-tool (func_import): Avoid constructing complicated sed
82674         expressions inside backquote.
82675         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82676
82677 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82678
82679         These changes imported from libc.
82680         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82681         test and two separate function calls.
82682         * lib/strndup.c (__strndup): Add libc_hidden_def.
82683
82684 2006-01-23  Simon Josefsson  <jas@extundo.com>
82685
82686         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82687         Remove the test_*_SOURCES variable: automake infers it by default.
82688         * modules/tls-tests: Likewise.
82689
82690 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         Work around porting bugs reported by Dieter in
82693         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82694         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82695         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82696         Include "getopt.h" first, to check interface.
82697         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82698         !HAVE_DECL_GETENV.
82699         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82700         (__strndup): Revert to K&R-style function dfns, the glibc style.
82701         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82702         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82703         Include strnlen.h first, to get prototype properly.
82704         (strnlen): Renamed from __strnlen.
82705         Remove weak alias.
82706
82707 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82710
82711 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82712
82713         * config/srclist.txt: Adjust to reflect glibc reorganization.
82714         This affects only comments.
82715
82716 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82717
82718          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82719          Reported by Bruce Korb <bkorb@gnu.org>.
82720
82721 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82724         to pacify gcc -Wswitch-default.
82725
82726 2006-01-22  Bruno Haible  <bruno@clisp.org>
82727
82728         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82729         temporary buffer for sprintf, take into account the precision also
82730         for 'd', 'i', 'u', 'o', 'x', 'X'.
82731
82732 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82733
82734         * modules/argp-tests: New module
82735         * tests/test-argp.c: New file
82736         * tests/test-argp-2.sh: New file
82737
82738 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82739
82740         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82741         (__argp_base_name): Removed
82742         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82743         typo.
82744         (__argp_base_name): Provide macro definition or extern declaration
82745         depending on the configuration
82746
82747 2006-01-20  Simon Josefsson  <jas@extundo.com>
82748
82749         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82750
82751 2006-01-20  Simon Josefsson  <jas@extundo.com>
82752
82753         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82754
82755 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82756
82757         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82758         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82759         Suggested by Bruno Haible.
82760
82761 2006-01-20  Karl Berry  <karl@gnu.org>
82762
82763         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82764         until changes propagate, I guess.
82765
82766 2006-01-19  Simon Josefsson  <jas@extundo.com>
82767
82768         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82769
82770 2006-01-19  Simon Josefsson  <jas@extundo.com>
82771
82772         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82773
82774 2006-01-19  Simon Josefsson  <jas@extundo.com>
82775
82776         * gnulib-tool: Set check_PROGRAMS.
82777
82778         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82779         modules/des-tests, modules/gc-arcfour-tests,
82780         modules/gc-arctwo-tests, modules/gc-des-tests,
82781         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82782         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82783         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82784         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82785         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82786         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82787         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82788         test_*_SOURCES.
82789
82790 2006-01-18  Simon Josefsson  <jas@extundo.com>
82791
82792         * modules/socklen (Depends-on): Depend on sys_socket.
82793
82794 2006-01-18  Simon Josefsson  <jas@extundo.com>
82795
82796         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82797         modules/des-tests, modules/gc-arcfour-tests,
82798         modules/gc-arctwo-tests, modules/gc-des-tests,
82799         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82800         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82801         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82802         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82803         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82804         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82805         $(EXEEXT) to automake TESTS variable, for mingw32.
82806
82807 2006-01-17  Simon Josefsson  <jas@extundo.com>
82808
82809         * modules/socklen (Include): Need sys/socket.h.
82810
82811 2006-01-17  Bruno Haible  <bruno@clisp.org>
82812
82813         * modules/ssize_t (Include): Add <sys/types.h>.
82814
82815 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82818         it's not portable and it doesn't work with cross-compiles.
82819         Problem reported by Bruno Haible.  Fix missing-$ typo in
82820         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82821         -zignore from being used with Sun's C compiler.
82822
82823 2006-01-12  Simon Josefsson  <jas@extundo.com>
82824
82825         * lib/base64.c: Fix warning, reported by Bruno Haible
82826         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82827
82828 2006-01-12  Bruno Haible  <bruno@clisp.org>
82829
82830         * modules/ldd: New file.
82831         * build-aux/ldd.sh.in: New file.
82832         * MODULES.html.sh (Support for building libraries and executables): Add
82833         ldd.
82834
82835 2006-01-12  Bruno Haible  <bruno@clisp.org>
82836
82837         * m4/ldd.m4: New file.
82838
82839 2006-01-12  Bruno Haible  <bruno@clisp.org>
82840
82841         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82842         endless loop while replacing $auxdir with build-aux.
82843
82844 2006-01-11  Simon Josefsson  <jas@extundo.com>
82845
82846         * lib/stdint_.h (SIZE_MAX): Add missing (.
82847
82848 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82849
82850         Sync from coreutils.
82851         * lib/md5.c: Fix commentary typos.
82852         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82853         * lib/md5.h (__attribute__): Remove; unused.
82854         * lib/sha1.c: Fix commentary to match md5 better.
82855         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82856         so that we don't need to worry about alignment.  All uses changed.
82857         This merges the 2005-10-28 md5 change into sha1.
82858
82859 2006-01-11  Jim Meyering  <jim@meyering.net>
82860
82861         Sync from coreutils.
82862         * lib/md5.c (OP): Fix spacing.
82863
82864 2006-01-11  Bruno Haible  <bruno@clisp.org>
82865
82866         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82867         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82868         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82869
82870 2006-01-11  Bruno Haible  <bruno@clisp.org>
82871
82872         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82873         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82874         the "early" section as well.
82875
82876 2006-01-11  Bruno Haible  <bruno@clisp.org>
82877
82878         Avoid "ar: no archive members specified" error on MacOS X.
82879         * gnulib-tool (func_modules_add_dummy): New function.
82880         (func_import, func_create_testdir): Invoke it.
82881
82882 2006-01-11  Bruno Haible  <bruno@clisp.org>
82883
82884         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82885         with $auxdir in AC_CONFIG_FILES statements.
82886
82887 2006-01-11  Bruno Haible  <bruno@clisp.org>
82888
82889         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82890         Initialize also noinst_HEADERS to empty.
82891
82892 2006-01-11  Bruno Haible  <bruno@clisp.org>
82893
82894         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82895         variables.
82896         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82897         autoreconf.
82898
82899 2006-01-11  Bruno Haible  <bruno@clisp.org>
82900
82901         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82902         overridable by the user.
82903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82904
82905 2006-01-10  Simon Josefsson  <jas@extundo.com>
82906
82907         * modules/sys_socket: New file.
82908
82909 2006-01-10  Simon Josefsson  <jas@extundo.com>
82910
82911         * m4/sys_socket_h.m4: New file.
82912
82913 2006-01-10  Simon Josefsson  <jas@extundo.com>
82914
82915         * lib/socket_.h: New file.
82916
82917 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * modules/readutmp (Maintainer): Add myself.
82920
82921 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82922
82923         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82924         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82925         People who are still concerned with buggy memcmp implementations
82926         can invoke gl_FUNC_MEMCMP themselves.
82927
82928 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         * lib/regex_internal.h (BITSET_WORD_BITS):
82931         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82932         preprocessor mishandles large unsigned values as if they were signed.
82933         Problem reported by Claudio Fontana in
82934         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82935
82936 2006-01-10  Jim Meyering  <jim@meyering.net>
82937
82938         Avoid the double-free (first in fts_read, second in fts_close) that
82939         would occur when an `active' directory is made inaccessible (e.g.,
82940         via chmod a-x) during a traversal.
82941         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82942         before returning.  Reproduce this failure by
82943         mkdir -p a/b; cd a; chmod a-x . b
82944         Reported by Stavros Passas.
82945
82946         Sync from coreutils.
82947         * lib/sha1.c: Tweak grammar in a comment.
82948
82949 2006-01-10  Jim Meyering  <jim@meyering.net>
82950
82951         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82952         Patch by Joerg Sonnenberger.
82953
82954 2006-01-10  Bruno Haible  <bruno@clisp.org>
82955
82956         * modules/readutmp: Depend on module free.
82957         * modules/strtok_r: Depend on module restrict.
82958
82959 2006-01-10  Bruno Haible  <bruno@clisp.org>
82960
82961         * modules/gettext (configure.ac): Add an invocation of
82962         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82963
82964 2006-01-10  Bruno Haible  <bruno@clisp.org>
82965
82966         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82967         Reported by Werner Lemberg <wl@gnu.org>.
82968
82969 2006-01-10  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/localcharset.c: Update from GNU gettext.
82972
82973 2006-01-10  Bruno Haible  <bruno@clisp.org>
82974
82975         * lib/argp.h (__const): Remove macro. Use const instead.
82976         * lib/argp-fmtstream.h (__const): Likewise.
82977         * lib/glob_.h (__const): Remove macro.
82978         * lib/glob-libc.h: Use const instead of __const.
82979
82980 2006-01-10  Bruno Haible  <bruno@clisp.org>
82981
82982         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82983         variable.
82984         Needed to avoid an automake error regarding the 'gettext' module.
82985
82986 2006-01-09  Simon Josefsson  <jas@extundo.com>
82987
82988         * modules/inet_ntop (Depends-on): Add restrict.
82989
82990 2006-01-09  Simon Josefsson  <jas@extundo.com>
82991
82992         * modules/gc-rijndael-tests (License): Put under LGPL.
82993
82994         * modules/gc-des-tests (License): Likewise.
82995
82996         * modules/gc-arcfour-tests (License): Likewise.
82997
82998         * modules/gc-arctwo-tests (License): Likewise.
82999
83000         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83001
83002         * modules/gc-hmac-sha1-tests (Files): Likewise.
83003
83004         * modules/gc-hmac-md5-tests (License): Likewise.
83005
83006         * modules/gc-sha1-tests (License): Likewise.
83007
83008         * modules/gc-md5-tests (License): Likewise.
83009
83010         * modules/gc-md4-tests (License): Likewise.
83011
83012         * modules/gc-md2-tests (License): Likewise.
83013
83014         * modules/gc-tests (License): Likewise.
83015
83016         * modules/des-tests (License): Likewise.
83017
83018         * modules/md4-tests (License): Likewise.
83019
83020         * modules/md2-tests (License): Likewise.
83021
83022 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83023
83024         Sync from coreutils:
83025
83026         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83027         * modules/lib-ignore: New file.
83028         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83029         chdir-safer.m4, lchmod.m4.
83030         * modules/openat: Add mkdirat.c, openat-priv.h.
83031
83032 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83033
83034         Sync from coreutils.
83035         * m4/lib-ignore.m4: New file.
83036         * m4/lchmod.m4: New file.
83037
83038 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83039
83040         Sync from coreutils.
83041         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83042         for write access: POSIX says that must fail.
83043         * lib/fts.c (diropen): Likewise.
83044         * lib/save-cwd.c (save_cwd): Likewise.
83045         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83046         well, for minor improvements on hosts that lack O_DIRECTORY.
83047         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83048         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83049         Fall back on chown if open failed with EACCES.
83050
83051         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83052         Report an error at compile-time if only a 1-second nominal clock
83053         resolution is found.
83054
83055         * lib/lchmod.h: New file.
83056         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83057         (make_dir_parents): Use lchown rather than chown, and
83058         lchmod rather than chmod.
83059
83060         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83061         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83062         "proc" reported by n0dalus.
83063
83064         * lib/mountlist.c: Include <limits.h>.
83065         (dev_from_mount_options)
83066         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83067         New function.  It no longer assumes "dev=" has the System V meaning
83068         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83069         (read_file_system_list)
83070         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83071         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83072         dev= in that case.
83073
83074         * lib/posixtm.h (PDS_PRE_2000): New macro.
83075         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83076         allow_century.  All usages changed.  Reject dates outside the range
83077         1969-1999 if PDS_PRE_2000 is used.
83078
83079 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83080
83081         Sync from coreutils.
83082         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83083         (Time of day items): Mention the possibility of leap seconds.
83084         Problem reported by Dr. David Alan Gilbert.
83085
83086 2006-01-09  Jim Meyering  <jim@meyering.net>
83087
83088         Sync from coreutils.
83089
83090         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83091
83092         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83093
83094         * lib/modechange.c (mode_compile): Reject an invalid mode string
83095         that starts with an octal digit.  From Andreas Gruenbacher.
83096
83097         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83098         and dup to open_safer and dup_safer, respectively.
83099         (openat_permissive): Fix typo in comment.
83100
83101         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83102         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83103         (_): Remove; no longer needed.
83104         (openat): Renamed from rpl_openat; no need for rpl_openat
83105         since openat.h renames openat for us.
83106         Replace most of the body with a call to openat_permissive,
83107         to avoid duplicate code.
83108         Port to (probably hypothetical) environments were mode_t is
83109         wider than int.
83110         (openat_permissive): Require mode arg, so that we can check
83111         types better.  Put it just after flags.  Change cwd failure
83112         indicator from pointer-to-bool to pointer-to-errno-value.
83113         All callers changed.
83114         Invoke openat_save_fail and/or openat_restore_fail if
83115         cwd_errno is null, so that openat can call us.
83116         (openat_permissive, fdopendir, fstatat, unlinkat):
83117         Simplify errno handling to avoid some duplicate code,
83118         as it's OK to set errno on success.
83119         * lib/openat.h: Revamp code so that function macros depend on
83120         __OPENAT_PREFIX only, not also on AT_FDCWD.
83121         (openat_ro): Remove.  Caller changed to use openat_permissive.
83122         (openat_permissive): Now a macro, if not a function.
83123         (openat_restore_fail, openat_save_fail): Now always functions,
83124         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83125
83126         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83127         and openat.c.
83128         * lib/mkdirat.c: Include openat-priv.h.
83129         Remove definitions of macros defined therein.
83130         * lib/openat.c: Likewise.
83131
83132         * lib/mkdirat.c (mkdirat): New file and function.
83133         * lib/openat.h (mkdirat): Declare.
83134
83135         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83136
83137         * lib/openat.h (openat_permissive): Declare.
83138         (openat_ro): Define.
83139
83140         * lib/openat.c (EXPECTED_ERRNO): New macro.
83141         (openat_permissive): New function -- used in remove.c rewrite.
83142         (all functions): Set errno just before returning, only if there
83143         was an actual failure.
83144         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83145
83146         Emulate openat-family functions using Linux's procfs, if possible.
83147         Idea and some code based on Ulrich Drepper's glibc changes.
83148
83149         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83150         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83151         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83152         before falling back on save_cwd and restore_cwd.
83153         (fdopendir, fstatat, unlinkat): Likewise.
83154
83155         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83156         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83157
83158         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83159         as second argument to va_arg.  Otherwise, some versions of gcc
83160         warn that `if this code is reached, the program will abort'.
83161
83162 2006-01-09  Jim Meyering  <jim@meyering.net>
83163
83164         Sync from coreutils.
83165         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83166         Require openat-priv.h.
83167
83168 2006-01-09  Bruno Haible  <bruno@clisp.org>
83169
83170         * modules/strnlen (Include): Use strnlen.h.
83171
83172 2006-01-09  Bruno Haible  <bruno@clisp.org>
83173
83174         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83175
83176 2006-01-09  Bruno Haible  <bruno@clisp.org>
83177
83178         * lib/sysexit_.h (EX_OK): New macro.
83179         Suggested by Martin Lambers <marlam@marlam.de>.
83180
83181 2006-01-09  Bruno Haible  <bruno@clisp.org>
83182
83183         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83184         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83185
83186 2006-01-09  Bruno Haible  <bruno@clisp.org>
83187
83188         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83189         numbers.
83190
83191 2006-01-09  Bruno Haible  <bruno@clisp.org>
83192
83193         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83194         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83195         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83196         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83197
83198 2006-01-09  Bruno Haible  <bruno@clisp.org>
83199
83200         * build-aux/javacomp.sh.in: New file, moved from lib/.
83201         * modules/javacomp-script (Files): Update.
83202         (configure.ac): Add AC_CONFIG_FILES invocation.
83203         (EXTRA_DIST): Remove variable.
83204
83205         * build-aux/javaexec.sh.in: New file, moved from lib/.
83206         * modules/javaexec (Files): Update.
83207         (configure.ac): Add AC_CONFIG_FILES invocation.
83208         (EXTRA_DIST): Remove javaexec.sh.in.
83209
83210         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83211         * modules/csharpcomp-script (Files): Update.
83212         (configure.ac): Add AC_CONFIG_FILES invocation.
83213         (EXTRA_DIST): Remove variable.
83214
83215         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83216         * modules/csharpexec (Files): Update.
83217         (configure.ac): Add AC_CONFIG_FILES invocation.
83218         (EXTRA_DIST): Remove csharpexec.sh.in.
83219
83220 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83221
83222         Sync from coreutils.
83223
83224         Add POSIX ACL support
83225         * lib/acl.h (copy_acl, set_acl): Add declarations.
83226         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83227         systems other than Linux.
83228         (chmod_or_fchmod): New function: use fchmod when possible,
83229         and chmod otherwise.
83230         (file_has_acl): Add a POSIX ACL implementation, with a
83231         Linux-specific subcase.
83232         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83233         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83234         acls are unsupported.
83235         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83236         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83237         are unsupported.
83238
83239 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83240
83241         Sync from coreutils.
83242         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83243
83244 2006-01-07  Bruno Haible  <bruno@clisp.org>
83245
83246         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83247         gl_EARLY.
83248
83249 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83252         Problem reported for Mingw by Mark Junker.
83253
83254 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83255
83256         * README: Gnulib normally doesn't generate a tarball.
83257
83258 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83259
83260         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83261         long int, not int, for nanosecond counts, so that people who are
83262         used to POSIX struct timespec won't be surprised.  Reported by Jim
83263         Meyering.
83264
83265 2005-12-28  Bruno Haible  <bruno@clisp.org>
83266
83267         * build-aux/config.rpath: Update from GNU gettext.
83268
83269 2005-12-16  Jim Meyering  <jim@meyering.net>
83270
83271         * modules/fprintftime: New module.
83272         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83273
83274 2005-12-16  Jim Meyering  <jim@meyering.net>
83275
83276         * m4/fprintftime.m4: New file.
83277
83278 2005-12-16  Jim Meyering  <jim@meyering.net>
83279
83280         * lib/fprintftime.c, lib/fprintftime.h: New files.
83281
83282 2005-12-15  Simon Josefsson  <jas@extundo.com>
83283
83284         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83285         new m4/socklen.m4.
83286
83287 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83288
83289         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83290         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83291
83292 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83293
83294         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83295         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83296         struct uparams is valid. Fall back to the default values if it is
83297         not.
83298
83299 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83300
83301         * modules/argp (Files): Add argp-pin.c
83302         (Depends-on): dirname
83303         (lib_SOURCES): Add argp-pin.c
83304
83305 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83306
83307         * m4/argp.m4:  Check if program_invocation_name and
83308         program_invocation_short_name are declared and define appropriate
83309         macros if they are not.
83310
83311 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83312
83313         * lib/argp-help.c (__argp_base_name): New function
83314         (__argp_short_program_name): Rewrite using __argp_base_name
83315         * lib/argp-namefrob.h: Define program_invocation_name and
83316         program_invocation_short_name if requested
83317         (__argp_base_name): Add prototype
83318         * lib/argp-parse.c (argp_def): Use gettext wrappers
83319         (argp_default_parser): Use __argp_base_name
83320         * lib/argp-pin.c: New file. Defines program_invocation_name and
83321         program_invocation_short_name on systems that lack them.
83322
83323 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83324
83325         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83326         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83327         porting problem reported by Georg Schwarz in
83328         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83329
83330 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83331
83332         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83333         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83334         porting problem reported by Georg Schwarz in
83335         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83336
83337 2005-12-05  Bruno Haible  <bruno@clisp.org>
83338
83339         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83340         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83341         Reported by Mark Junker <mjscod@gmx.de>.
83342
83343 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83346         Use implementation from Albert Chin, with some
83347         comments/corrections by Stepan Kasal and myself.
83348
83349 2005-12-02  Bruno Haible  <bruno@clisp.org>
83350
83351         * gnulib-tool (func_import): Accept GPLed build tool modules when
83352         --lgpl is given.
83353         * modules/csharpcomp-script: New file.
83354         * modules/csharpcomp: Depend on it.
83355         * modules/javacomp-script: New file.
83356         * modules/javacomp: Depend on it.
83357         Suggested by Simon Josefsson.
83358
83359 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83360
83361         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83362         statement, to work around an HP-UX 10.20 compiler bug reported by
83363         Peter O'Gorman.
83364
83365 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83366
83367         * modules/savedir (Depends-on): Add openat.
83368
83369 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83370
83371         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83372         (uintmax_t) [defined uintmax_t]: Do not declare.
83373         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83374         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83375         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83376         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83377         sake of portability to weird hosts that C allows (though we don't
83378         know of any practical examples).
83379
83380         * lib/savedir.h (fdsavedir): New decl.
83381         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83382         contains most of the former guts of savedir.
83383         (savedir): Use savedirstream.
83384         Include "openat.h".
83385
83386 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83387
83388         * modules/obstack (Files): Add m4/ulonglong.m4.
83389         Problem reported by Davide Angelocola.
83390
83391 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83392
83393         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83394         coreutils no longer futzes with rounding modes.
83395
83396 2005-11-14  Jim Meyering  <jim@meyering.net>
83397
83398         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83399         replacement of mkstemp.
83400
83401 2005-11-10  Simon Josefsson  <jas@extundo.com>
83402
83403         * lib/readline.c: Remove EOL.
83404
83405 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83406
83407         * modules/gethrxtime (Depends-on): Add gettime.
83408
83409 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83410
83411         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83412         or gettimeofday; no longer needed.
83413
83414 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83417         time business.
83418         (gethrxtime) [! (HAVE_NANOUPTIME
83419         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83420         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83421         our own approximation.
83422
83423 2005-11-08  Eric Blake  <ebb9@byu.net>
83424
83425         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83426
83427 2005-11-08  Eric Blake  <ebb9@byu.net>
83428
83429         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83430
83431 2005-11-04  Bruno Haible  <bruno@clisp.org>
83432
83433         * gnulib-tool: Implement --update mode.
83434
83435 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         Fix porting problem reported by Theodoros V. Kalamatianos.
83438         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83439         Don't assume that futimes failing means we must fail.
83440
83441 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83444         variables to suggest the intended function of the PATH_MAX check.
83445
83446 2005-10-30  Kean Johnston  <jkj@sco.com>
83447
83448         Trivial changes to support SCO systems.
83449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83450         as PATH_MAX.
83451         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83452         where __ptr is null when no I/O is pending.
83453
83454 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83457         leave errno alone.  Problem reported by Dmitry V. Levin.
83458
83459 2005-10-28  Simon Josefsson  <jas@extundo.com>
83460
83461         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83462         Test more.
83463
83464         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83465
83466         * modules/md2, modules/md2-tests: New files.
83467
83468 2005-10-28  Simon Josefsson  <jas@extundo.com>
83469
83470         * m4/inet_ntop.m4: More tests.
83471
83472         * m4/gc-md2.m4, md2.m4: New file.
83473
83474 2005-10-28  Simon Josefsson  <jas@extundo.com>
83475
83476         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83477         "restrict" keywords, as per POSIX.  Protect the function
83478         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83479         Don't use K&R prototypes.  Check the sprintf return values.
83480         Re-define EAFNOSUPPORT if not present.  Indent.
83481
83482         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83483         suggested by Bruno Haible <bruno@clisp.org>.
83484
83485         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83486
83487         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83488
83489         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83490         libgcrypt).
83491
83492         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83493
83494         * lib/md2.h, lib/md2.c: New files.
83495
83496 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83497
83498         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83499         errno alone.  Problem reported by Frederic Jolliton.
83500
83501 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83502
83503         * modules/verify (License): Change from GPL to LGPL.  This is a
83504         tiny module and there are apparently near-equivalents that are
83505         under the BSD license.
83506
83507 2005-10-24  Simon Josefsson  <jas@extundo.com>
83508
83509         * modules/sha1: Relicense to LGPL.
83510
83511 2005-10-24  Simon Josefsson  <jas@extundo.com>
83512
83513         * lib/md4.h: Shrink buffer size, now that we changed the type.
83514
83515 2005-10-23  Simon Josefsson  <jas@extundo.com>
83516
83517         * gnulib-tool (func_import): Fix --tests-base.
83518
83519 2005-10-22  Simon Josefsson  <jas@extundo.com>
83520
83521         * modules/arcfour (Depends-on): Need stdint.
83522
83523 2005-10-22  Simon Josefsson  <jas@extundo.com>
83524
83525         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83526         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83527
83528 2005-10-22  Simon Josefsson  <jas@extundo.com>
83529
83530         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83531         suggested by Bruno Haible <bruno@clisp.org>.
83532
83533 2005-10-22  Simon Josefsson  <jas@extundo.com>
83534
83535         * lib/crc.h: Include stddef.h, for size_t.
83536
83537 2005-10-22  Simon Josefsson  <jas@extundo.com>
83538
83539         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83540         arcfour_context struct (simplify test vector testing in GNU
83541         Shishi).
83542
83543 2005-10-21  Simon Josefsson  <jas@extundo.com>
83544
83545         * modules/des, modules/des-tests: New files.
83546
83547         * modules/gc-des, modules/gc-des-tests: New files.
83548
83549         * tests/test-des.c, tests/test-gc-des.c: New file.
83550
83551 2005-10-21  Simon Josefsson  <jas@extundo.com>
83552
83553         * modules/arctwo, modules/arctwo-tests: New files.
83554
83555         * tests/test-arctwo.c: New file.
83556
83557         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83558
83559         * tests/test-gc-arctwo.c: New file.
83560
83561 2005-10-21  Simon Josefsson  <jas@extundo.com>
83562
83563         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83564         Bruno Haible <bruno@clisp.org>.
83565
83566         * m4/gc-des.m4: New file.
83567
83568 2005-10-21  Simon Josefsson  <jas@extundo.com>
83569
83570         * m4/arctwo.m4: New file.
83571
83572         * m4/gc-arctwo.m4: New file.
83573
83574 2005-10-21  Simon Josefsson  <jas@extundo.com>
83575
83576         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83577         block.
83578
83579 2005-10-21  Simon Josefsson  <jas@extundo.com>
83580
83581         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83582         <bruno@clisp.org>.
83583
83584         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83585
83586         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83587         Bruno Haible <bruno@clisp.org>.
83588
83589         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83590         <bruno@clisp.org>.
83591
83592 2005-10-21  Simon Josefsson  <jas@extundo.com>
83593
83594         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83595
83596 2005-10-21  Simon Josefsson  <jas@extundo.com>
83597
83598         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83599
83600 2005-10-21  Simon Josefsson  <jas@extundo.com>
83601
83602         * lib/des.h, lib/des.c: New files.
83603
83604         * lib/gc-gnulib.c: Support DES.c
83605
83606 2005-10-21  Simon Josefsson  <jas@extundo.com>
83607
83608         * lib/arctwo.h, lib/arctwo.c: New files.
83609
83610         * lib/gc-gnulib.c: Support ARCTWO.
83611
83612 2005-10-21  Simon Josefsson  <jas@extundo.com>
83613
83614         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83615         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83616
83617 2005-10-21  Simon Josefsson  <jas@extundo.com>
83618
83619         * gnulib-tool (func_import, func_create_testdir): Define automake
83620         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83621         Makefile.am snippet),
83622         suggested by Bruno Haible <bruno@clisp.org>.
83623
83624         * modules/gc (Makefile.am): Use it.
83625
83626 2005-10-21  Bruno Haible  <bruno@clisp.org>
83627
83628         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83629         patch.
83630
83631 2005-10-19  Simon Josefsson  <jas@extundo.com>
83632
83633         * tests/test-gc-rijndael.c: New file.
83634
83635         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83636
83637 2005-10-19  Simon Josefsson  <jas@extundo.com>
83638
83639         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83640         interface too.
83641
83642 2005-10-19  Simon Josefsson  <jas@extundo.com>
83643
83644         * tests/test-gc-arcfour.c: New file.
83645
83646         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83647
83648 2005-10-19  Simon Josefsson  <jas@extundo.com>
83649
83650         * modules/gc-md4, modules/gc-md4-tests: New file.
83651
83652         * tests/test-gc-md4.c: New file.
83653
83654 2005-10-19  Simon Josefsson  <jas@extundo.com>
83655
83656         * m4/gc-md4.m4: New file.
83657
83658 2005-10-19  Simon Josefsson  <jas@extundo.com>
83659
83660         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83661         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83662         <kasal@ucw.cz>.
83663
83664 2005-10-19  Simon Josefsson  <jas@extundo.com>
83665
83666         * m4/gc-arcfour.m4: New file.
83667
83668         * m4/gc-rijndael.m4: New file.
83669
83670 2005-10-19  Simon Josefsson  <jas@extundo.com>
83671
83672         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83673
83674 2005-10-19  Simon Josefsson  <jas@extundo.com>
83675
83676         * lib/gc-gnulib.c: Support ARCFOUR.
83677
83678 2005-10-19  Simon Josefsson  <jas@extundo.com>
83679
83680         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83681         support.
83682
83683         * lib/gc.h: Add ECB enum type.
83684
83685         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83686
83687 2005-10-18  Simon Josefsson  <jas@extundo.com>
83688
83689         * tests/test-md5.c: New file.
83690
83691         * modules/md5-tests: New file.
83692
83693 2005-10-18  Simon Josefsson  <jas@extundo.com>
83694
83695         * tests/test-md4.c: New file.
83696
83697         * modules/md4, modules/md4-tests: New files.
83698
83699 2005-10-18  Simon Josefsson  <jas@extundo.com>
83700
83701         * m4/md4.m4: New file.
83702
83703 2005-10-18  Simon Josefsson  <jas@extundo.com>
83704
83705         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83706
83707 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83708
83709         * gnulib-tool (func_create_testdir): Omit the second check whether
83710         BUILT_SOURCES in nonempty.
83711
83712 2005-10-17  Simon Josefsson  <jas@extundo.com>
83713
83714         * tests/test-rijndael.c: New file.
83715
83716 2005-10-17  Simon Josefsson  <jas@extundo.com>
83717
83718         * modules/sha1: Depend on stdint instead of md5.
83719
83720         * modules/md5: Depend on stdint, remove uint32_t.
83721
83722 2005-10-17  Simon Josefsson  <jas@extundo.com>
83723
83724         * modules/gc-sha1-tests: New file.
83725
83726         * tests/test-gc-sha1.c: New file.
83727
83728 2005-10-17  Simon Josefsson  <jas@extundo.com>
83729
83730         * m4/md5.m4: Remove call to uint32_t.m4.
83731
83732 2005-10-17  Simon Josefsson  <jas@extundo.com>
83733
83734         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83735
83736         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83737         md5.h.
83738
83739         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83740
83741         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83742
83743 2005-10-17  Simon Josefsson  <jas@extundo.com>
83744
83745         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83746
83747 2005-10-17  Simon Josefsson  <jas@extundo.com>
83748
83749         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83750
83751 2005-10-17  Simon Josefsson  <jas@extundo.com>
83752
83753         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83754
83755         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83756
83757 2005-10-17  Bruno Haible  <bruno@clisp.org>
83758
83759         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83760         that it can also be used in a test.
83761
83762 2005-10-16  Bruno Haible  <bruno@clisp.org>
83763
83764         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83765         TESTS_ENVIRONMENT, so that individual tests can augment it.
83766
83767         * gnulib-tool (func_create_testdir): Use an intermediate target for
83768         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83769         macros, like $(ALLOCA_H), which cannot be passed through the command
83770         line.
83771
83772 2005-10-15  Simon Josefsson  <jas@extundo.com>
83773
83774         * modules/rijndael-tests: New file.
83775
83776         * modules/rijndael: New file.
83777
83778 2005-10-15  Simon Josefsson  <jas@extundo.com>
83779
83780         * m4/rijndael.m4: New file.
83781
83782 2005-10-15  Simon Josefsson  <jas@extundo.com>
83783
83784         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83785
83786         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83787
83788 2005-10-14  Simon Josefsson  <jas@extundo.com>
83789
83790         * tests/test-arcfour.c: New file.
83791
83792         * modules/arcfour, modules/arcfour-tests: New files.
83793
83794 2005-10-14  Simon Josefsson  <jas@extundo.com>
83795
83796         * m4/arcfour.m4: New file.
83797
83798 2005-10-14  Simon Josefsson  <jas@extundo.com>
83799
83800         * lib/arcfour.h, lib/arcfour.c: New files.
83801
83802 2005-10-14  Roland McGrath  <roland@redhat.com>
83803
83804         Import from libc.  [BZ #1331]
83805         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83806         macro argument.
83807         Reported by Matej Vela <vela@debian.org>.
83808
83809 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83810
83811         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83812         include <wchar.h>; no longer needed.
83813
83814 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83817
83818 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83819         and  Ulrich Drepper  <drepper@redhat.com>
83820
83821         Import from libc.
83822         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83823         instead of inline stream orientation test and two separate
83824         function calls.  Pay no attention to USE_IN_LIBIO.
83825
83826 2005-10-13  Simon Josefsson  <jas@extundo.com>
83827
83828         * modules/gc-hmac-md5-tests: New file.
83829
83830         * tests/test-gc-hmac-sha1.c: New file.
83831
83832         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83833
83834         * modules/gc-hmac-md5-tests: New file.
83835
83836         * tests/test-gc-md5.c: New file.
83837
83838         * modules/gc-md5-tests: New file.
83839
83840 2005-10-13  Simon Josefsson  <jas@extundo.com>
83841
83842         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83843         Move memory allocation outside of loop.
83844
83845 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83846
83847         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83848         intermediate directory is in a read-only file system.  Problem
83849         reported by Eric Blake.
83850
83851 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83852
83853         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83854
83855 2005-10-12  Simon Josefsson  <jas@extundo.com>
83856
83857         * tests/test-hmac-sha1.c: New file.
83858
83859         * modules/hmac-sha1-tests: New file.
83860
83861         * modules/hmac-sha1: New file.
83862
83863 2005-10-12  Simon Josefsson  <jas@extundo.com>
83864
83865         * modules/gc-sha1: New file.
83866
83867 2005-10-12  Simon Josefsson  <jas@extundo.com>
83868
83869         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83870
83871         * tests/test-gc-pbkdf2-sha1.c: New file.
83872
83873 2005-10-12  Simon Josefsson  <jas@extundo.com>
83874
83875         * modules/gc-md5, modules/gc-hmac-md5: New files.
83876
83877         * modules/gc (Files): Remove md5, memxor and hmac files.
83878
83879 2005-10-12  Simon Josefsson  <jas@extundo.com>
83880
83881         * m4/gc-pbkdf2-sha1.m4: New file.
83882
83883         * m4/gc-hmac-sha1.m4: New file.
83884
83885         * m4/gc-sha1: New file.
83886
83887         * m4/hmac-sha1.m4: New file.
83888
83889 2005-10-12  Simon Josefsson  <jas@extundo.com>
83890
83891         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83892
83893         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83894
83895 2005-10-12  Simon Josefsson  <jas@extundo.com>
83896
83897         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83898         suggested by Bruno Haible <bruno@clisp.org>.
83899
83900 2005-10-12  Simon Josefsson  <jas@extundo.com>
83901
83902         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83903
83904 2005-10-12  Simon Josefsson  <jas@extundo.com>
83905
83906         * lib/gc-pbkdf2-sha1.c: New file.
83907
83908         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83909
83910 2005-10-12  Simon Josefsson  <jas@extundo.com>
83911
83912         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83913
83914         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83915
83916 2005-10-12  Simon Josefsson  <jas@extundo.com>
83917
83918         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83919         GC_USE_HMAC_MD5, respectively.
83920
83921         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83922         (gc_md5): Fix typo.
83923
83924         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83925
83926         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83927
83928         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83929
83930 2005-10-12  Bruno Haible  <bruno@clisp.org>
83931
83932         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83933         Reported by Stepan Kasal <kasal@ucw.cz>.
83934
83935 2005-10-11  Simon Josefsson  <jas@extundo.com>
83936
83937         * tests/test-crc.c: New file.
83938
83939         * modules/crc, modules/crc-tests: New files.
83940
83941 2005-10-11  Simon Josefsson  <jas@extundo.com>
83942
83943         * m4/crc.m4: New file.
83944
83945 2005-10-11  Simon Josefsson  <jas@extundo.com>
83946
83947         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83948
83949         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83950
83951         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83952
83953 2005-10-11  Simon Josefsson  <jas@extundo.com>
83954
83955         * lib/crc.h, lib/crc.c: New files.
83956
83957         * lib/gc.h (gc_hash_buffer): Add doc.
83958
83959 2005-10-11  Bruno Haible  <bruno@clisp.org>
83960
83961         * modules/c-strcasestr: New file.
83962         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83963
83964 2005-10-11  Bruno Haible  <bruno@clisp.org>
83965
83966         * modules/c-strcase: New file.
83967         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83968
83969 2005-10-11  Bruno Haible  <bruno@clisp.org>
83970
83971         * lib/strcasecmp.c: Include limits.h.
83972         (strcasecmp): Avoid integer overflow on exotic platforms.
83973         * lib/strncasecmp.c: Include limits.h.
83974         (strncasecmp): Avoid integer overflow on exotic platforms.
83975         Reported by Paul Eggert.
83976
83977 2005-10-11  Bruno Haible  <bruno@clisp.org>
83978
83979         * lib/c-strcasestr.h: New file, from GNU gettext.
83980         * lib/c-strcasestr.c: New file, from GNU gettext.
83981
83982 2005-10-11  Bruno Haible  <bruno@clisp.org>
83983
83984         * lib/c-strcase.h: New file, from GNU gettext.
83985         * lib/c-strcasecmp.c: New file, from GNU gettext.
83986         * lib/c-strncasecmp.c: New file, from GNU gettext.
83987
83988 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * modules/mempcpy (License): GPL -> LGPL.
83991         * modules/strchrnul (License): Likewise.
83992         * modules/sysexits (License): Likewise.
83993
83994 2005-10-08  Simon Josefsson  <jas@extundo.com>
83995
83996         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83997
83998 2005-10-07  Simon Josefsson  <jas@extundo.com>
83999
84000         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84001
84002 2005-10-06  Simon Josefsson  <jas@extundo.com>
84003
84004         * tests/test-hmac-md5.c: New file.
84005
84006         * modules/hmac-md5-tests: New file.
84007
84008         * modules/hmac-md5: New file.
84009
84010 2005-10-06  Simon Josefsson  <jas@extundo.com>
84011
84012         * m4/hmac-md5.m4: New file.
84013
84014         * m4/memxor.m4: Require gl_C_RESTRICT.
84015
84016 2005-10-06  Simon Josefsson  <jas@extundo.com>
84017
84018         * lib/memxor.c (memxor): Avoid casts and warnings.
84019
84020 2005-10-06  Simon Josefsson  <jas@extundo.com>
84021
84022         * lib/hmac-md5.c: New file.
84023
84024         * lib/hmac.h: New file.
84025
84026 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84027
84028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84029         promotes to int, not unsigned int, to catch the AIX 5.3
84030         compiler bug.
84031
84032 2005-10-05  Simon Josefsson  <jas@extundo.com>
84033
84034         * modules/memxor: New file.
84035
84036         * modules/iconv (Files): Move config.rpath to havelib, it is used
84037         there.
84038
84039         * modules/havelib (Files): Add config.rpath.
84040
84041 2005-10-05  Simon Josefsson  <jas@extundo.com>
84042
84043         * m4/memxor.m4: New file.
84044
84045 2005-10-05  Simon Josefsson  <jas@extundo.com>
84046
84047         * lib/memxor.c (memxor): Fix compiler error.
84048
84049         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84050         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84051
84052         * lib/memxor.h, lib/memxor.c: New files.
84053
84054         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84055         we assume all systems have it, suggested by Jim Meyering
84056         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84057         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84058         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84059         same reasons.
84060
84061 2005-10-05  Simon Josefsson  <jas@extundo.com>
84062
84063         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84064
84065 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84066
84067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84068         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84069         needed, since the source code now assumes these .h files.
84070
84071 2005-10-05  Derek Price  <derek@ximbiot.com>
84072
84073         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84074
84075 2005-10-05  Bruno Haible  <bruno@clisp.org>
84076
84077         * modules/stdint (License): Change to LGPL.
84078
84079 2005-10-04  Simon Josefsson  <jas@extundo.com>
84080
84081         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84082         D. Baushke" <mdb@gnu.org>.
84083
84084 2005-10-04  Bruno Haible  <bruno@clisp.org>
84085
84086         * lib/verify.h (verify_true): Provide alternative definition for C++.
84087
84088 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84089
84090         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84091         (SSIZE_MAX): New macro, if not already defined.
84092         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84093         than 2 GiB.
84094
84095 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84096
84097         Sync from coreutils.
84098         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84099         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84100         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84101         ULLONG_MAX doesn't work with 2.7.2.1.
84102
84103 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84104
84105         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84106         From Ben Pfaff.
84107
84108         * modules/exclude (Depends-on): Depend on verify.
84109         * modules/strtoimax (Depends-on): Likewise.
84110         * modules/utimecmp (Depends-on): Likewise.
84111
84112 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * lib/exclude.c: Include verify.h.
84115         (verify): Remove.  All callers changed to use verify.h's version.
84116         * lib/strtoimax.c: Likewise.
84117         * lib/utimecmp.c: Likewis.e
84118
84119         Sync from coreutils.
84120         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84121         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84122         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84123         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84124         bother returning ENOSYS if settimeofday or stime fails; just let
84125         them return whatever errno they want to return.
84126         * lib/utimens.c: Include unistd.h, for dup2.
84127         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84128         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84129
84130 2005-10-02  Jim Meyering  <jim@meyering.net>
84131
84132         Sync from coreutils.
84133         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84134         from glibc-2.2.5 that fails for read-only files.
84135
84136 2005-10-02  Jim Meyering  <jim@meyering.net>
84137
84138         Sync from coreutils.
84139         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84140         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84141         `#if HAVE_CONFIG_H'.
84142         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84143         Remove AT_FDCWD test.
84144         Do not consume the fd unless successful.
84145         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84146         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84147         block, so that we don't even try to compile it if settimeofday is
84148         available.  This works around a compilation failure on OSF1 V5.1,
84149         due to stime requiring a `long int*' while tv_sec is `int'.
84150
84151 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84152
84153         Sync from coreutils.
84154         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84155         against `yes', rather than just testing for nonempty.
84156
84157 2005-10-01  Simon Josefsson  <jas@extundo.com>
84158
84159         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84160         and Darwin.
84161
84162         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84163         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84164         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84165         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84166         Check if struct addrinfo is declared.
84167
84168 2005-10-01  Simon Josefsson  <jas@extundo.com>
84169
84170         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84171         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84172         AI_* and EAI_* definitions.  Protect function declarations.
84173
84174 2005-10-01  Jim Meyering  <jim@meyering.net>
84175
84176         Sync from coreutils.
84177
84178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84179         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84180         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84181         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84182         in the inet and nsl libraries.  Required on Solaris 5.7.
84183
84184 2005-10-01  Jim Meyering  <jim@meyering.net>
84185
84186         Sync from coreutils.
84187         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84188         in the inet and nsl libraries.  Required on Solaris 5.7.
84189
84190 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84191
84192         * lib/getdelim.c (getdelim): Remove unused variables.
84193
84194 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84195
84196         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84197         so that the code works even with ancient cpp.  Portability problem
84198         with GCC 2.7.2.1 reported by Thomas M.Ott.
84199
84200 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         * modules/regex (Depends-on): Add strcase.
84203
84204         * modules/gethostname (Licence): Change from GPL to LGPL, since
84205         gethostname.c is a trivial implementation of a standard library
84206         function.
84207         * modules/poll (License): Change from GPL to LGPL, since it's
84208         derived from LGPL code.
84209
84210 2005-09-27  Jim Meyering  <jim@meyering.net>
84211
84212         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84213         HAVE_CONFIG_H.
84214
84215         * lib/intprops.h (signed_type_or_expr__): Define.
84216         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84217         for unsigned types.
84218
84219 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84220
84221         * lib/verify.h (verify_expr): Remove, replacing with:
84222         (verify_true): New macro that returns true instead of void.
84223         (verify_type__): Remove.
84224         (verify): Use verify_true rather than verify_type__.
84225
84226 2005-09-26  Bruno Haible  <bruno@clisp.org>
84227
84228         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84229         is necessary.
84230         (lib_SOURCES): Remove mbchar.c.
84231         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84232         (Files): Add m4/mbrtowc.m4.
84233         * modules/mbiter: Likewise.
84234         * modules/mbuiter: Likewise.
84235
84236 2005-09-26  Bruno Haible  <bruno@clisp.org>
84237
84238         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84239         compile mbchar.c if they are not both present.
84240         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84241         * m4/mbiter.m4 (gl_MBITER): Likewise.
84242         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84243         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84244         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84245
84246 2005-09-25  Jim Meyering  <jim@meyering.net>
84247
84248         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84249         also uses socklen_t.
84250
84251 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84252
84253         * lib/utimens.c (ENOSYS): Define if not already defined.
84254         (futimens): Support having a null PATH if the file descriptor
84255         is nonnegative.
84256
84257         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84258         Remove.
84259         (__attribute): Define to empty unless GCC 3.1 or later.
84260         This works around a core dump on OpenBSD 3.4, which has GCC
84261         2.95.3, which dumps core when given __attribute__(()).  It also
84262         simplifies other tests, since we really don't want to bother with
84263         worrying about which ancient version of GCC supported what.
84264         Original problem reported by Yoann Vandoorselaere, with part of
84265         the fix suggested by Derek Price.
84266
84267 2005-09-24  Jim Meyering  <jim@meyering.net>
84268
84269         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84270         so we can once again use a positive bitfield width of 1 -- now we
84271         don't have to explain why we were using a bitfield width of 2.
84272
84273 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84276         and similarly for the other external symbols.  Problem reported
84277         by James Gallager.
84278
84279         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84280         bug reported by Jim Meyering.
84281
84282         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84283         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84284         not needed, since socklen is a prerequisite module.
84285
84286 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84289         Problem reported by Eric Blake.
84290         (getaddrinfo): Initialize se so that it's not garbage.
84291         Redo internal storage allocation so that it doesn't make unportable
84292         assumptions about alignment.
84293         Fix a memory leak.
84294
84295         * lib/utimens.c (futimens): Use futimesat if available.
84296         Prefer it to futimes since it doesn't have the futimes bug.
84297
84298         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84299         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84300         Instead, declare a function that returns a pointer to an array,
84301         and use verify_type__ to declare the size of the array.
84302         Problem and germ of a solution reported by Bruno Haible.
84303         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84304         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84305
84306 2005-09-23  Jim Meyering  <jim@meyering.net>
84307
84308         Sync from coreutils.
84309         Correct build failure (socklen_t not defined) on at least
84310         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84312
84313 2005-09-23  Jim Meyering  <jim@meyering.net>
84314
84315         * modules/getaddrinfo (Depends-on): Add socklen.
84316
84317 2005-09-23  Bruno Haible  <bruno@clisp.org>
84318
84319         * tests/test-verify.c: New file.
84320
84321 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         Sync from coreutils.
84324
84325         * modules/argmatch (Depends-on): Add verify.
84326         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84327         unistd-safer.
84328         * modules/save-cwd (Depends-on): Likewise.
84329
84330         * modules/openat (Files): Add lib/openat-die.c.
84331         (Depends-on): Remove error, exitfail.
84332         Add dirname.
84333
84334         * modules/verify: New file.
84335         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84336         with "verify" module.
84337
84338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84339
84340         Sync from coreutils.
84341
84342         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84343         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84344         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84345         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84346         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84347         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84348         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84349         Don't bother checking for string.h, stdlib.h, unistd.h.
84350         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84352         module's job.
84353         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84354         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84355
84356         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84357         (gl_GETDATE): Use it.
84358
84359         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84360
84361 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         Sync from coreutils.
84364
84365         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84366         stat-time.h.
84367         * lib/argmatch.h: Include verify.h
84368         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84369         (ARGMATCH_ASSERT): Remove; unused.
84370         * lib/canonicalize.c: Assume STDC_HEADERS.
84371         * lib/exclude.c: Include "strcase.h".
84372         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84373         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84374         and stdio-safer.h.
84375         (getusershell): Call fopen, not fopen_safer.
84376         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84377         Do not include unistd-safer.h.
84378         (save_cwd): Don't call fd_safer; no longer needed
84379         now that we include fcntl--.h.
84380
84381         * lib/getdate.y (relative_time): New type.
84382         (RELATIVE_TIME_0): New constant.
84383         (parser_control): Use relative_time instead of doing it ourselves.
84384         (%union): Add new relative_time rel member.
84385         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84386         Now typeless.
84387         (relunit, relunit_snumber): Now of type rel.
84388         (zone, rel, relunit, get_date): Adjust to above changes.
84389
84390         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84391         Do not include unistd-safer.h.
84392         (getloadavg): Don't call fd_safer; no longer needed
84393         now that we include fcntl--.h.
84394
84395         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84396         (make_dir_parents): Treat ENOSYS like EEXIST.
84397
84398         Improve quality of diagnostics on restore_cwd failure.
84399         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84400         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84401         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84402         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84403         each time through the loop.  Do not diagnose restore_cwd failure;
84404         that is the caller's job (and perhaps the caller does not care).
84405
84406         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84407         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84408         If the file already exists but is not a directory, don't bother
84409         to try to make its parents.
84410         Close potential file descriptor leak if we can't chdir("/") (!).
84411         Don't always return true if chdir($PWD) fails; return true only
84412         if the requested action was done successfully (except for the
84413         chdir($PWD)).
84414         Don't log final directory unless we actually made it.
84415         Refactor to avoid duplicate code to fix up permissions.
84416         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84417
84418         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84419         to make it a bit faster and (I hope) clearer.
84420         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84421         Fix bug in formats like %2N.
84422
84423         * lib/verify.h: New file.
84424
84425 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         Sync from coreutils.
84428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84429
84430 2005-09-22  Jim Meyering  <jim@meyering.net>
84431
84432         Sync from coreutils.
84433
84434         * m4/lstat.m4 (gl_FUNC_LSTAT):
84435         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84436         Remove obsolete comment.
84437         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84438         * m4/xstrtod.m4: Likewise.
84439
84440         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84441
84442 2005-09-22  Jim Meyering  <jim@meyering.net>
84443
84444         Sync from coreutils.
84445
84446         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84447
84448         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84449         the .tm_year member, since otherwise gcc-4.0 would now warn about
84450         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84451
84452         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84453         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84454
84455         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84456         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84457         when run in a time zone for which daylight savings time is in effect
84458         for the starting date.
84459
84460         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84461         stop us from restricting permissions of just-created absolute-named
84462         directories.
84463         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84464         to restore initial working directory.
84465         * lib/mkdir-p.c (make_dir_parents): New parameter:
84466         different_working_dir, to tell caller if/when we change the working
84467         directory and are unable to return to the initial one.
84468         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84469         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84470         `return false'.  This fixes a bug introduced on 2004-07-30.
84471
84472         * lib/openat.c (fdopendir): Be sure to close the supplied
84473         file descriptor before returning.  This makes our replacement
84474         implementation a little closer to Solaris's, where fdopendir
84475         ties the file descriptor to the returned DIR* pointer.
84476         * lib/openat.c (unlinkat): New function.
84477         * lib/openat.h (unlinkat): Add prototype.
84478         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84479         (openat_restore_fail): Rename from openat_restore_die.
84480         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84481
84482         Provide an alternative to exiting immediately upon save_cwd or
84483         restore_cwd failure.  Now, an application can arrange e.g.,
84484         to perform a longjump in that case.
84485         * lib/openat.c: Include dirname.h.
84486         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84487         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84488         and openat_restore_die rather than calling error directly.
84489         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84490
84491         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84492         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84493         define.
84494
84495         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84496         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84497                             int utc, int nanoseconds);
84498         Background:
84499         date should not have to allocate a megabyte of virtual memory to
84500         handle a format argument like +%1048575T.  When implemented with
84501         strftime, it must allocate such a buffer, use strftime to fill it
84502         in, print it, then free it.
84503         With fprintftime, it simply prints everything and exits.
84504         With no need for memory allocation, that's one fewer way to fail.
84505         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84506         optional field width, not before, so we accept %9:z, not %:9z.
84507         (my_strftime): Be sure to use L_('x') for literals.
84508
84509         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84510         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84511         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84512         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84513         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84514         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84515         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84516         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84517         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84518         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84519         * lib/xgethostname.c, lib/xreadlink.c:
84520         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84521
84522         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84523         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84524         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84525         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84526         and don't include <sys/file.h>).
84527
84528 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84529
84530         Sync from coreutils.
84531
84532         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84533         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84534         [!LDAV_DONE]: Avoid unused variable warning.
84535
84536 2005-09-21  Bruno Haible  <bruno@clisp.org>
84537
84538         * lib/unicodeio.h (unicode_to_mb): New declaration.
84539
84540 2005-09-20  Derek Price  <derek@ximbiot.com>
84541
84542         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84543         getaddrinfo.h.
84544
84545 2005-09-20  Bruno Haible  <bruno@clisp.org>
84546
84547         * gnulib-tool: Remove trailing slashes from the values specified for
84548         --source-base, --m4-base, --tests-base, --aux-dir.
84549         Suggested by Simon Josefsson <jas@extundo.com>.
84550
84551 2005-09-20  Bruno Haible  <bruno@clisp.org>
84552
84553         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84554         func_modules_to_filelist, func_import, func_create_testdir): Make all
84555         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84556         change when gnulib-tool is invoked in a different locale.
84557
84558 2005-09-19  Simon Josefsson  <jas@extundo.com>
84559
84560         * m4/socklen.m4: Fix typo.
84561
84562 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84563
84564         Use a consistent style for including <config.h>.
84565         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84566         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84567         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84568         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84569         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84570         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84571         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84572         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84573         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84574         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84575         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84576         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84577         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84578         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84579         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84580         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84581         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84582         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84583         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84584         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84585         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84586         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84587         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84588         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84589         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84590         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84591         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84592         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84593         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84594         lib/xstrtoumax.c, lib/yesno.c:
84595         Standardize inclusion of config.h.
84596         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84597         lib/inttostr.h:  Removed inclusion of config.h from header files.
84598         * lib/inttostr.c:  Adjusted in-tree users.
84599         * lib/timespec.h: Remove superfluous warning to include config.h.
84600         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84601         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84602         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84603         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84604         config.h with HAVE_CONFIG_H.
84605
84606 2005-09-19  Jim Meyering  <jim@meyering.net>
84607
84608         * modules/pathmax (License): Change to LGPL.
84609
84610 2005-09-19  Derek Price  <derek@ximbiot.com>
84611
84612         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84613
84614 2005-09-19  Bruno Haible  <bruno@clisp.org>
84615
84616         * gnulib-tool (import): Provide default for --tests-base.
84617
84618 2005-09-19  Bruno Haible  <bruno@clisp.org>
84619
84620         * doc/quote.texi: New file, extracted from gnulib.texi.
84621         * doc/ctime.texi: New file, extracted from gnulib.texi.
84622         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84623         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84624         * doc/gnulib.texi: Include them.
84625
84626 2005-09-18  Bruno Haible  <bruno@clisp.org>
84627
84628         Portability fix.
84629         * gnulib-tool (func_readlink): New function.
84630         (func_ln_if_changed): Use it.
84631
84632 2005-09-18  Bruno Haible  <bruno@clisp.org>
84633
84634         * gnulib-tool: Support --with-tests also with --import.
84635         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84636         (func_import): Use variables $testsbase and $inctests. Emit a
84637         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84638         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84639         SUBDIRS += $testsdir.
84640         (func_create_testdir): Update.
84641
84642 2005-09-18  Bruno Haible  <bruno@clisp.org>
84643
84644         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84645         instead of $dry_run.
84646         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84647         (func_ln_if_changed): Don't handle dry-run here.
84648         (func_import): In dry-run mode, detect more precisely which actions
84649         would be performed, and don't use "...ing" verbs.
84650
84651 2005-09-18  Bruno Haible  <bruno@clisp.org>
84652
84653         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84654         (func_import): Use join on two temporary files instead of three nested
84655         loops, in order to determine which files are new or old.
84656
84657 2005-09-18  Bruno Haible  <bruno@clisp.org>
84658
84659         * gnulib-tool (func_import): Comment out code that spits out the
84660         new files with --dry-run.
84661
84662 2005-09-18  Bruno Haible  <bruno@clisp.org>
84663
84664         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84665
84666 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84667
84668         * lib/stat-time.h: New file.
84669         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84670         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84671         in a different way.
84672         (timespec_cmp): New function.
84673         * lib/utimecmp.c: Include stat-time.h.
84674         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84675         members exist, not on the obsolescent ST_MTIM_NSEC.
84676         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84677
84678 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84681
84682 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84683
84684         * MODULES.html.sh (File system functions): Add stat-time.
84685         * modules/stat-time: New file.
84686         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84687         is now done in a different way, by the stat-time module.
84688         * modules/utimecmp (Depends-on): Add stat-time.
84689
84690 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84691
84692         * m4/st_mtim.m4: Remove.  Superseded by...
84693         * m4/stat-time.m4: New file.
84694         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84695         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84696
84697 2005-09-15  Derek Price  <derek@ximbiot.com>
84698
84699         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84700
84701 2005-09-15  Derek Price  <derek@ximbiot.com>
84702
84703         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84704         * lib/regex_internal.c: Ditto, using this...
84705         (__GNUC_PREREQ): ...new macro.
84706         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84707         using...
84708         (__GNUC_PREREQ): ...this new macro.
84709
84710         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84711
84712 2005-09-15  Derek Price  <derek@ximbiot.com>
84713             Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84716         changes, consolidating in...
84717         * lib/regex_internal.h: ...this file.
84718
84719 2005-09-13  Jim Meyering  <jim@meyering.net>
84720
84721         * lib/canon-host.c: Filter through gnu indent and reword comments
84722         slightly.
84723         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84724
84725 2005-09-13  Derek Price  <derek@ximbiot.com>
84726
84727         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84728         failure.
84729         Reported by Jim Meyering  <jim@meyering.net>.
84730
84731 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84732
84733         * lib/base64.c: Typo.
84734         (base64_encode): Put b64str in initialized data section.
84735
84736 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84737
84738         Merge glibc and coreutils changes into gnulib, plus a few
84739         extra fixes.
84740         * lib/md5.c: Use #error rather than a string.
84741         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84742         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84743         (__attribute__): Define to empty for non recent-GCC.
84744         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84745         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84746         Renamed from their non-__ counterparts, with new macros replacing
84747         them if not _LIBC.  Add __THROW attribute.
84748         (rol): Remove.
84749         (struct md5_ctx): Align buffer if using GCC.
84750         * lib/sha1.h (struct sha1_ctx): Likewise.
84751         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84752         The old name was backwards.
84753         (NOTSWAP): Remove; not used.
84754         (rol): New macro, moved here from md5.h.
84755         (sha1_process_block): Remove a FIXME that doesn't make sense.
84756
84757 2005-09-12  Derek Price  <derek@ximbiot.com>
84758
84759         Return usable errors from canon-host.
84760         * lib/canon-host.h: New file.
84761         * lib/canon-host.c (canon_host): Wrap...
84762         (canon_host_r): ...this new function, which now relies exclusively on
84763         getaddrinfo.
84764         (ch_strerror): New function.
84765         (last_cherror): New global.
84766         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84767         interface.
84768         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84769         void *.
84770         (freeaddrinfo): Free ai->ai_canonname when set.
84771
84772 2005-09-12  Derek Price  <derek@ximbiot.com>
84773
84774         Make canon-host require getaddrinfo.
84775         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84776         AC_LIBSOURCE canon-host.h.  Call...
84777         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84778         gl_GETADDRINFO.
84779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84780
84781 2005-09-12  Derek Price  <derek@ximbiot.com>
84782
84783         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84784         LGPL.
84785         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84786
84787 2005-09-12  Derek Price  <derek@ximbiot.com>
84788
84789         * lib/gai_strerror.c: Include config.h when available.  Include
84790         getaddrinfo.h before other headers to test interface.
84791         Reported by Larry Jones <lawrence.jones@ugs.com>.
84792
84793 2005-09-12  Derek Price  <derek@ximbiot.com>
84794             Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         * modules/glob (Files): Add glob-libc.h.
84797
84798 2005-09-12  Derek Price  <derek@ximbiot.com>
84799             Paul Eggert  <eggert@cs.ucla.edu>
84800
84801         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84802         glob_.h, glob-libc.h.
84803         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84804
84805 2005-09-12  Derek Price  <derek@ximbiot.com>
84806             Paul Eggert  <eggert@cs.ucla.edu>
84807
84808         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84809         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84810         protecting things that should be done only in gnulib contexts.
84811         * lib/glob_.h: New file, containing only the glob things needed for
84812         gnulib.
84813         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84814         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84815         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84816         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84817         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84818         and to respect the namespace rules better.
84819
84820 2005-09-08  Simon Josefsson  <jas@extundo.com>
84821
84822         * modules/socklen: New file.
84823
84824 2005-09-08  Simon Josefsson  <jas@extundo.com>
84825
84826         * m4/socklen.m4: New file.
84827
84828 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * modules/utimens (Files): Add m4/utimbuf.m4, since
84831         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84832         Reported by Sergey Poznyakoff.
84833
84834 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84835
84836         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84837         definitions, since that's the preferred style in glibc.
84838         Fix a minor spacing issue, and update copyright notice to match
84839         glibc's.
84840
84841 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84844
84845 2005-09-06  Simon Josefsson  <jas@extundo.com>
84846
84847         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84848         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84849
84850 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84853         warning.
84854
84855 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84856
84857         * config/srclist.txt: Add glibc bug 1302.
84858
84859 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         Change bitset word type from unsigned int to unsigned long int,
84862         as this has better performance on typical 64-bit hosts.
84863         Port bitset code to hosts with unusual word sizes.
84864         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84865         (build_collating_symbol):
84866         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84867         argument is a bitset.  This is merely a style issue, but it makes
84868         it clearer that an entire array is expected.
84869         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84870         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84871         Port to the case where bitset_word is not the same as unsigned int.
84872         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84873         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84874         Likewise.
84875         * lib/regexec.c (check_dst_limits_calc_pos_1,
84876         check_subexp_matching_top):
84877         (build_trtable, group_nodes_into_DFAstates):
84878         Likewise.
84879         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84880         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84881         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84882         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84883         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84884         * lib/regcomp.c (optimize_subexps, lower_subexp):
84885         Work even if bitset_word has holes in its bitwise representation.
84886         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84887         * lib/regexec.c (check_dst_limits_calc_pos_1,
84888         check_subexp_matching_top):
84889         Likewise.
84890         * lib/regex_internal.c (re_string_reconstruct):
84891         Don't assume UCHAR_MAX == 255.
84892         * lib/regex_internal.h (bitset_set_all): Likewise.
84893         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84894         All uses changed.
84895         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84896         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84897         All uses changed.
84898         (BITSET_WORD_MAX): New macro.
84899         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84900         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84901         (bitset_empty, bitset_copy):
84902         Prefer sizeof (bitset) to multiplying it out ourselves.
84903         (bitset_not_merge): Remove; unused.
84904         (bitset_contain): Return bool, not unsigned int with one bit on.
84905         All callers changed.
84906         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84907         alignment than re_node_set; do this by defining a new internal
84908         type struct dests_alloc and using it to allocate memory.
84909
84910 2005-09-05  Bruno Haible  <bruno@clisp.org>
84911
84912         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84913         links.
84914
84915 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84916
84917         * modules/size_max (Makefile.am): Add size_max.h
84918
84919 2005-09-04  Derek Price  <derek@ximbiot.com>
84920
84921         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84922
84923 2005-09-03  Simon Josefsson  <jas@extundo.com>
84924
84925         * gnulib-tool: Fix typo.
84926
84927 2005-09-03  Simon Josefsson  <jas@extundo.com>
84928
84929         * config/srclist.txt: Add glibc bug 1293.
84930
84931 2005-09-03  Derek Price  <derek@ximbiot.com>
84932
84933         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84934         From Larry Jones <lawrence.jones@ugs.com>.
84935
84936 2005-09-02  Simon Josefsson  <jas@extundo.com>
84937
84938         * modules/socklen: New file.
84939
84940 2005-09-02  Simon Josefsson  <jas@extundo.com>
84941
84942         * modules/havelib: New module.
84943
84944         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84945         Use havelib.
84946
84947 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         Check for arithmetic overflow when calculating sizes, to prevent
84950         some buffer-overflow issues.  These patches are conservative, in the
84951         sense that when I couldn't determine whether an overflow was possible,
84952         I inserted a run-time check.
84953         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84954         macros.
84955         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84956         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84957         (re_xnrealloc, re_x2nrealloc): New inline functions.
84958         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84959         parse_bracket_exp):
84960         (build_equiv_class, build_charclass): Check for arithmetic overflow
84961         in size expression calculations.
84962         * lib/regex_internal.c (re_string_realloc_buffers):
84963         (build_wcs_upper_buffer, re_node_set_add_intersect):
84964         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84965         (re_dfa_add_node, register_state): Likewise.
84966         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84967         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84968         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84969         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84970
84971 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84972
84973         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84974         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84975
84976 2005-09-02  Bruno Haible  <bruno@clisp.org>
84977
84978         Support for lib vs. lib64 distinction on biarch platforms.
84979         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84980         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84981         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84982
84983 2005-09-02  Bruno Haible  <bruno@clisp.org>
84984
84985         * gnulib-tool (import): In the other first-use case, provide defaults
84986         as well.
84987
84988 2005-09-02  Bruno Haible  <bruno@clisp.org>
84989
84990         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84991         patches not yet found in the latest gettext release.
84992
84993 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84994
84995         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84996         to avoid a collision with bits/local_lim.h in glibc.
84997         All uses changed.  Problem reported by Dmitry V. Levin in
84998         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84999
85000         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85001         bugs in int versus size_t comparisons.
85002         (re_string_context_at): Fix bug where the code assumed that
85003         Idx is signed.
85004
85005         Use bool where appropriate.
85006         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85007         All callers changed.
85008         (calc_eclosure_iter): Likewise, for ROOT arg.
85009         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85010         (build_charclass_op): Likewise, for NON_MATCH arg.
85011         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85012         (re_string_construct_common): Likewise, for ICASE arg.
85013         * lib/regexec.c (re_search_2_stub, re_search_stub):
85014         Likewise, for RET_LEN arg.
85015         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85016         (set_regs): Likewise, for FL_BACKTRACK arg.
85017         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85018         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85019         (calc_eclosure_iter, parse_bracket_exp):
85020         Use bool for internal variables that are booleans.
85021         * lib/regexec.c (re_search_internal, check_matching,
85022         proceed_next_node):
85023         (set_regs, build_sifted_states, sift_states_bkref):
85024         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85025         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85026         (find_collation_sequence_value):
85027         Likewise.
85028         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85029         (re_node_set_compare):
85030         Return bool, not int. All callers changed.
85031         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85032         (build_trtable, check_node_accept): Likewise.
85033         * lib/regex_internal.h: Include stdbool.h.
85034
85035         Fix bugs uncovered when converting to bool.
85036         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85037         failure instead of charging ahead blindly.
85038         * lib/regex_internal.c (register_state): Likewise.
85039         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85040         for freeing internal storage.
85041         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85042         bitset pieces used as boolean, to avoid undefined behavior
85043         on hosts that do int overflow checking.
85044
85045 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         * config/srclist.txt: Add glibc bugs 1285-1287.
85048
85049 2005-09-01  Jim Meyering  <jim@meyering.net>
85050
85051         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85052         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85053         Require gl_STAT_MACROS, too.
85054
85055 2005-09-01  Bruno Haible  <bruno@clisp.org>
85056
85057         * gnulib-tool (import): In the first-use case, provide defaults.
85058
85059 2005-09-01  Bruno Haible  <bruno@clisp.org>
85060
85061         * gnulib-tool (func_import): Remove the .tmp files.
85062
85063 2005-09-01  Bruno Haible  <bruno@clisp.org>
85064
85065         * gnulib-tool (func_import): Fix handling of symbolic links.
85066
85067 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85068
85069         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85070         old glibc regex code mishandles strings longer than 2**31 bytes.
85071         This patch fixes this when the regex code is used in gnulib
85072         (i.e., outside glibc).
85073
85074         This patch should not affect the use of the regex code inside
85075         glibc.  No doubt this problem also needs to be handled for glibc
85076         as well, but the result will be an incompatible change to the
85077         glibc ABI, and the old ABI will have to be supported too.  That
85078         can be the the subject for another patch.
85079
85080         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85081         governing whether the rest of this patch is active.  By default,
85082         the macro is disabled and the patch has no effect.
85083         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85084         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85085         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85086         (re_match_2, re_set_registers): Use the new types.
85087         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85088         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85089         New macros.
85090         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85091         (re_string_context_at, bin_tree_t, re_dfastate_t):
85092         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85093         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85094         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85095         (re_string_char_size_at, re_string_wchar_at):
85096         (re_string_elem_size_at):
85097         Use the new types and macros to port to 64-bit hosts.
85098         Use unsigned types for internal values, so that the code
85099         mostly works even for arrays larger than SSIZE_MAX.
85100         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85101         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85102         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85103         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85104         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85105         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85106         (calc_inveclosure, parse_dup_op, build_range_exp):
85107         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85108         (fetch_number, create_token_tree, mark_opt_subexp):
85109         Likewise.
85110         * lib/regex_internal.c (re_string_construct_common,
85111         create_ci_newstate):
85112         (create_cd_newstate, re_string_allocate, re_string_construct):
85113         (re_string_realloc_buffers, build_wcs_upper_buffer):
85114         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85115         (re_string_reconstruct, re_string_peek_byte_case):
85116         (re_string_fetch_byte_case, re_string_context_at):
85117         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85118         (re_node_set_init_copy, re_node_set_add_intersect):
85119         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85120         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85121         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85122         (re_acquire_state, re_acquire_state_context, register_state):
85123         Likewise.
85124         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85125         search_cur_bkref_entry):
85126         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85127         (re_search_internal, re_search_2_stub, re_search_stub)
85128         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85129         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85130         (update_cur_sifted_state, check_dst_limits):
85131         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85132         (check_subexp_limits, sift_states_bkref, merge_state_array):
85133         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85134         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85135         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85136         (expand_bkref_cache, check_node_accept_bytes):
85137         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85138         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85139         (acquire_init_state_context, check_halt_node_context):
85140         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85141         (sift_states_backward, clean_state_log_if_needed):
85142         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85143         (find_recover_state, transit_state_sb, transit_state_mb):
85144         (transit_state_bkref, build_trtable, match_ctx_clean):
85145         Likewise.
85146         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85147         to work around an assumption that REG_MISSING is negative.
85148
85149         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85150         (seek_collating_symbol_entry) [defined _LIBC]:
85151         (lookup_collation_sequence_value) [defined _LIBC]:
85152         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85153         Use prototypes rather than old-style function definitions.
85154         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85155         (transit_state_sb) [0]:
85156         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85157
85158         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85159         rm_eo.
85160
85161         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85162         (optimize_subexps, lower_subexp):
85163         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85164         since the signed shift might overflow.  Use 1u<<31 instead.
85165         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85166         Likewise.
85167         * lib/regexec.c (check_dst_limits_calc_pos_1,
85168         check_subexp_matching_top): Likewise.
85169
85170         * lib/regcomp.c (optimize_subexps, lower_subexp):
85171         Use CHAR_BIT rather than 8, for clarity.
85172         * lib/regexec.c (check_dst_limits_calc_pos_1):
85173         (check_subexp_matching_top): Likewise.
85174         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85175         have to worry about portability issues when shifting it left.
85176         Remove no-longer-needed test for table_size > 0.
85177         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85178         in a word, as the resulting behavior is undefined.
85179         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85180         in one case, a <= should have been an <, and in another case the
85181         whole test was missing.
85182         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85183         the standard name CHAR_BIT.
85184         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85185         this is not true on one's complement and signed-magnitude hosts.
85186
85187         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85188         next_last_offset.
85189         (struct re_dfa_t): Remove unused member states_alloc.
85190         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85191
85192 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85193
85194         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85195         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85196         and large-file glibc and in 32-bit large-file Solaris.
85197
85198 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85199
85200         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85201         lengths fit in regoff_t; this isn't true if regoff_t is the same
85202         width as size_t.
85203         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85204         (= START + RANGE) instead of RANGE.  This avoids overflow
85205         problems when regoff_t is the same width as size_t.
85206         All callers changed.
85207         (re_search_2_stub): Check for overflow when adding the
85208         sizes of the two strings.
85209         (re_search_stub): Check for overflow when adding START
85210         to RANGE; if it occurs, substitute the extreme value.
85211
85212 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85213
85214         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85215
85216 2005-08-31  Jim Meyering  <jim@meyering.net>
85217
85218         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85219         a pointer-to-const.
85220         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85221         (register_state): Likewise.
85222         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85223         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85224         (group_nodes_into_DFAstates): Likewise.
85225
85226 2005-08-31  Jim Meyering  <jim@meyering.net>
85227
85228         * check-module: Add a FIXME comment.
85229
85230 2005-08-31  Eric Blake  <ebb9@byu.net>
85231
85232         * modules/unistd-safer (Files): Add unistd--.h.
85233         * modules/stdio-safer (Files): Add stdio--.h.
85234
85235 2005-08-31  Derek Price  <derek@ximbiot.com>
85236
85237         * lib/getdelim.c (getdelim): Return EOF on EOF.
85238         Reported by Larry Jones <lawrence.jones@ugs.com>.
85239
85240 2005-08-31  Bruno Haible  <bruno@clisp.org>
85241
85242         Avoid unnecessary diffs in the generated lib/Makefile.am.
85243         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85244         the generated files.
85245         (func_import): Don't set cmd.
85246
85247 2005-08-31  Bruno Haible  <bruno@clisp.org>
85248
85249         * lib/strstr.c: Include <stddef.h>, for NULL.
85250         * lib/strcasestr.c: Likewise.
85251         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85252
85253 2005-08-31  Bruno Haible  <bruno@clisp.org>
85254
85255         * gnulib-tool: New option --macro-prefix.
85256         (func_import): Use macro_prefix.
85257         (import): Handle option --macro-prefix.
85258
85259 2005-08-31  Bruno Haible  <bruno@clisp.org>
85260
85261         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85262         Also use new variables cached_lgpl, cached_libtool.
85263
85264 2005-08-31  Bruno Haible  <bruno@clisp.org>
85265
85266         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85267         always instantiating them.
85268
85269 2005-08-31  Bruno Haible  <bruno@clisp.org>
85270
85271         * gnulib-tool (func_import): Read the previous cached settings
85272         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85273         earlier added by gnulib but are now dropped. Warn when a gnulib file
85274         overwrites a non-gnulib file.
85275
85276 2005-08-31  Bruno Haible  <bruno@clisp.org>
85277
85278         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85279         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85280         projects that don't keep autogenerated files in CVS. Put into
85281         actioncmd only the specified modules, not the transitive closure.
85282
85283 2005-08-31  Bruno Haible  <bruno@clisp.org>
85284
85285         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85286         Create directories that shall be filled.
85287         (import): Don't look for gl_* macros in configure.ac. Recurse across
85288         all directories containing a gnulib-cache.m4 files, if meaningful.
85289
85290 2005-08-31  Bruno Haible  <bruno@clisp.org>
85291
85292         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85293         (import): Set seen_libtool when we see gl_LIBTOOL.
85294
85295 2005-08-31  Bruno Haible  <bruno@clisp.org>
85296
85297         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85298         declaration macro definitions from generated gnulib.m4.
85299
85300 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85301
85302         * lib/iconvme.h: Add prototype for iconv_alloc.
85303
85304 2005-08-29  Simon Josefsson  <jas@extundo.com>
85305
85306         * lib/iconvme.c: Fix errno.
85307
85308 2005-08-29  Bruno Haible  <bruno@clisp.org>
85309
85310         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85311         that it works when the directory contains spaces.
85312
85313 2005-08-29  Bruno Haible  <bruno@clisp.org>
85314
85315         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85316
85317 2005-08-29  Bruno Haible  <bruno@clisp.org>
85318
85319         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85320         Emit more advice.
85321
85322 2005-08-29  Bruno Haible  <bruno@clisp.org>
85323         and Stepan Kasal  <kasal@ucw.cz>
85324
85325         * check-module: If more parameters are given, check each of them
85326         separately; add more exceptions, as noted by Jim Meyering.
85327         (check_module): New procedure.
85328         (%exempt_header): Now contains all exceptions.
85329
85330 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85331
85332         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85333
85334 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85335
85336         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85337
85338 2005-08-28  Bruno Haible  <bruno@clisp.org>
85339
85340         * m4/gnulib-tool.m4: New file.
85341
85342 2005-08-27  Jim Meyering  <jim@meyering.net>
85343
85344         * modules/unistd-safer (Files): Add pipe-safer.c.
85345         * modules/fcntl-safer (Files): Add creat-safer.c.
85346
85347 2005-08-27  Jim Meyering  <jim@meyering.net>
85348
85349         * m4/stdlib-safer.m4: New file.  From coreutils.
85350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85351         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85352         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85353         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85354         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85355
85356 2005-08-27  Jim Meyering  <jim@meyering.net>
85357
85358         * lib/fopen-safer.c: Merge minor changes from coreutils.
85359         * lib/dup-safer.c: Likewise.
85360         * lib/fd-safer.c: Likewise.
85361
85362         Merge from coreutils.
85363         * lib/stdio--.h: New file.
85364         * lib/stdlib--.h: New file.
85365         * lib/mkstemp-safer.c: New file.
85366
85367         GNU tar needs these.
85368         * lib/pipe-safer.c: New file.
85369         * lib/creat-safer.c: New file.
85370         * lib/fcntl--.h (creat): Define to creat_safer.
85371         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85372         * lib/unistd--.h (pipe): Define to pipe_safer.
85373         * lib/unistd-safer.h: Declare pipe_safer.
85374
85375 2005-08-26  Simon Josefsson  <jas@extundo.com>
85376
85377         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85378         Haible <bruno@clisp.org>.
85379
85380 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * lib/regex_internal.h: Remove all references to
85383         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85384         or better.
85385         (bitset_not, bitset_merge, bitset_not_merge):
85386         (bitset_mask, re_string_allocate, re_string_construct):
85387         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85388         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85389         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85390         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85391         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85392         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85393         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85394         (re_acquire_state_context):
85395         Remove unnecessary forward decls.
85396         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85397         Put __attribute at function definition,
85398         now that the function decl has been removed.
85399         * lib/regex_internal.c (re_string_peek_byte_case):
85400         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85401         Likewise.
85402
85403 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85404
85405         * m4/regex.m4: Add AC_PREREQ(2.50).
85406         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85407
85408 2005-08-25  Simon Josefsson  <jas@extundo.com>
85409
85410         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85411         __fsetlocking.
85412
85413 2005-08-25  Simon Josefsson  <jas@extundo.com>
85414
85415         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85416         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85417         GLIBC specific code.
85418
85419 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         Make regex safe for g++.  This fixes one real bug (an "err"
85422         that should have been "*err").  g++ problem reported by
85423         Sam Steingold.
85424         * lib/regex_internal.h (re_calloc): New macro, consistent with
85425         re_malloc etc.  All callers of calloc changed to use re_calloc.
85426         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85427         not int.  All callers changed.
85428         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85429         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85430         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85431         (find_recover_state): Change "err" to "*err"; this fixes what
85432         appears to be a real bug.
85433         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85434         versus int.
85435
85436 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85437
85438         * modules/regex (Depends-on): Add malloc, since the code
85439         assumes that !malloc(0) means failure.
85440
85441 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85444
85445         alloca modernization/simplification for regex.
85446         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85447         needs to be at the start of the file, and can be moved into
85448         regex_internal.h and simplified.
85449         * lib/regex_internal.h: Include <alloca.h>.
85450         (__libc_use_alloca) [!defined _LIBC]: New macro.
85451         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85452         now works outside glibc.
85453
85454 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * config/srclist.txt: Add glibc bugs 1241, 1245.
85457
85458 2005-08-25  Jim Meyering  <jim@meyering.net>
85459
85460         * lib/open-safer.c: Include <config.h>.
85461         Otherwise, we'd lose LARGEFILE support in any file using
85462         e.g. "fcntl--.h"
85463
85464 2005-08-25  Bruno Haible  <bruno@clisp.org>
85465
85466         * m4/minmax.m4: Require autoconf 2.52.
85467         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85468         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85469         alternatives of translit over the alphabet.
85470         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85471
85472 2005-08-24  Simon Josefsson  <jas@extundo.com>
85473
85474         * tests/test-getpass.c: New file.
85475
85476 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85479         for GNU regex features.
85480
85481 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85484         * lib/regex.h (regerror): Likewise.
85485
85486         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85487         requires this.  (The code never needed it.)
85488
85489         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85490         All uses of recently-renamed identifiers changed to use the new,
85491         POSIX-compliant names.  The code will build and run just fine
85492         without these changes, but it's better to eat our own dog food
85493         and use the standard-conforming names.
85494
85495         * lib/regex.h: Fix a multitude of POSIX name space violations.
85496         These changes have an effect only for programs that define
85497         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85498         do not change anything for programs compiled in the normal way.
85499         Also, there is no effect on the ABI.
85500
85501         (_REGEX_SOURCE): New macro.
85502         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85503         defined and _GNU_SOURCE is not; this fixes a name space violation.
85504
85505         Rename the following macros to obey POSIX requirements.
85506         The old names are still visible as macros if _REGEX_SOURCE is defined.
85507         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85508         RE_BACKSLASH_ESCAPE_IN_LISTS.
85509         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85510         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85511         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85512         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85513         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85514         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85515         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85516         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85517         (REG_INTERVALS): renamed from RE_INTERVALS.
85518         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85519         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85520         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85521         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85522         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85523         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85524         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85525         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85526         RE_UNMATCHED_RIGHT_PAREN_ORD.
85527         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85528         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85529         (REG_DEBUG): renamed from RE_DEBUG.
85530         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85531         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85532         unusual, since we can't clash with the POSIX REG_ICASE.
85533         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85534         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85535         (REG_NO_SUB): renamed from RE_NO_SUB.
85536         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85537         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85538         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85539         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85540         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85541         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85542         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85543         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85544         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85545         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85546         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85547         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85548         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85549         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85550         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85551         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85552         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85553         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85554         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85555         (REG_FIXED): Renamed from REGS_FIXED.
85556         (REG_NREGS): Renamed from RE_NREGS.
85557
85558         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85559         of other REG_* macros, since POSIX says the user is allowed to
85560         #undef these macros selectively.
85561
85562         (reg_errcode_t): Update comment stating what other tables need
85563         to be consistent.
85564
85565         Rename the following enum values to obey POSIX requirements.
85566         The old names are still visible as macros.
85567         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85568         is not defined, since GNU is supposed to be a superset of POSIX as
85569         much as possible, and since we want reg_errcode_t to be a signed
85570         type for implementation consistency.
85571         (_REG_NOERROR): Renamed from REG_NOERROR.
85572         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85573         (_REG_BADPAT): Renamed from REG_BADPAT.
85574         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85575         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85576         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85577         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85578         (_REG_EBRACK): Renamed from REG_EBRACK.
85579         (_REG_EPAREN): Renamed from REG_EPAREN.
85580         (_REG_EBRACE): Renamed from REG_EBRACE.
85581         (_REG_BADBR): Renamed from REG_BADBR.
85582         (_REG_ERANGE): Renamed from REG_ERANGE.
85583         (_REG_ESPACE): Renamed from REG_ESPACE.
85584         (_REG_BADRPT): Renamed from REG_BADRPT.
85585         (_REG_EEND): Renamed from REG_EEND.
85586         (_REG_ESIZE): Renamed from REG_ESIZE.
85587         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85588         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85589         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85590         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85591         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85592
85593         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85594         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85595         changed.  But support the old name if the new one is not defined
85596         and if _REGEX_SOURCE.
85597
85598         Change the following member names in struct re_pattern_buffer.
85599         The old names are still supported if !_REGEX_SOURCE.
85600         The new names are always supported, regardless of _REGEX_SOURCE.
85601         (re_buffer): Renamed from buffer.
85602         (re_allocated): Renamed from allocated.
85603         (re_used): Renamed from used.
85604         (re_syntax): Renamed from syntax.
85605         (re_fastmap): Renamed from fastmap.
85606         (re_translate): Renamed from translate.
85607         (re_can_be_null): Renamed from can_be_null.
85608         (re_regs_allocated): Renamed from regs_allocated.
85609         (re_fastmap_accurate): Renamed from fastmap_accurate.
85610         (re_no_sub): Renamed from no_sub.
85611         (re_not_bol): Renamed from not_bol.
85612         (re_not_eol): Renamed from not_eol.
85613         (re_newline_anchor): Renamed from newline_anchor.
85614
85615         Change the following member names in struct re_registers.
85616         The old names are still supported if !_REGEX_SOURCE.
85617         The new names are always supported, regardless of _REGEX_SOURCE.
85618         (rm_num_regs): Renamed from num_regs.
85619         (rm_start): Renamed from start.
85620         (rm_end): Renamed from end.
85621
85622         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85623         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85624         Prepend __ to parameter names.
85625
85626         Undo yesterday's changes.
85627
85628 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85629
85630         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85631         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85632         lib/regex.c.
85633
85634 2005-08-24  Jim Meyering  <jim@meyering.net>
85635
85636         Sync from coreutils.
85637         * m4/fcntl-safer.m4: New file.
85638
85639         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85640         and object files for this module.
85641
85642 2005-08-24  Jim Meyering  <jim@meyering.net>
85643
85644         Sync from coreutils.
85645         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85646
85647 2005-08-24  Jim Meyering  <jim@meyering.net>
85648
85649         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85650         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85651
85652 2005-08-24  Jim Meyering  <jim@meyering.net>
85653
85654         * modules/fcntl-safer: New module.
85655         * modules/fts (Depends-on): Add fcntl-safer.
85656         * MODULES.html.sh (File descriptor based Input/Output):
85657         Add fcntl-safer.
85658
85659 2005-08-24  Bruno Haible  <bruno@clisp.org>
85660
85661         Support for unit test modules.
85662         * modules/README: Mention tests modules.
85663         * modules/TEMPLATE-TESTS: New file.
85664         * gnulib-tool: New options --extract-tests-module, --with-tests and
85665         --tests-base (unused for the moment).
85666         (testsbase, inctests): New variables.
85667         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85668         (func_verify_module): Exclude TEMPLATE-TESTS.
85669         (func_verify_nontests_module, func_verify_tests_module): New functions.
85670         (func_get_dependencies): Add implicit dependency for tests modules.
85671         (func_get_tests_module): New function.
85672         (func_modules_transitive_closure): When --with-tests was specified,
85673         include the unit tests as well, unless explicitly avoided.
85674         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85675         (func_emit_tests_Makefile_am): New function.
85676         (func_create_testdir): When --with-tests was specified, emit a
85677         tests/ directory.
85678         * MODULES.html.sh (Future developments): Update.
85679
85680 2005-08-24  Bruno Haible  <bruno@clisp.org>
85681
85682         * modules/tls-tests: New file.
85683         * tests/test-tls.c: New file, from GNU gettext.
85684
85685 2005-08-24  Bruno Haible  <bruno@clisp.org>
85686
85687         * modules/lock-tests: New file.
85688         * tests/test-lock.c: New file, from GNU gettext.
85689
85690 2005-08-24  Bruno Haible  <bruno@clisp.org>
85691
85692         * lib/lock.h: Add multiple inclusion guard.
85693         * lib/tls.h: Add multiple inclusion guard.
85694
85695 2005-08-24  Bruno Haible  <bruno@clisp.org>
85696
85697         * gnulib-tool: Add support for the --aux-dir option to
85698         --create-testdir, --create-megatestdir, --test, --megatest.
85699         (func_create_testdir, func_create_megatestdir): Optionally emit a
85700         AC_CONFIG_AUX_DIR directive.
85701         (create-testdir, create-megatestdir, test, megatest): Provide a
85702         default value for $auxdir.
85703
85704 2005-08-24  Bruno Haible  <bruno@clisp.org>
85705
85706         * gnulib-tool (import): Use compound statement instead of subshell
85707         where possible.
85708
85709 2005-08-24  Bruno Haible  <bruno@clisp.org>
85710
85711         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85712
85713 2005-08-24  Bruno Haible  <bruno@clisp.org>
85714
85715         * gnulib-tool (func_version): Update.
85716
85717 2005-08-24  Bruno Haible  <bruno@clisp.org>
85718
85719         * gnulib-tool (func_import, func_create_testdir,
85720         func_create_megatestdir): Quote all autoconf macro arguments.
85721
85722 2005-08-24  Bruno Haible  <bruno@clisp.org>
85723
85724         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85725         option --force, because --force causes the aclocal.m4 of each
85726         subdirectory to be newer than the corresponding config.h.in.
85727
85728 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85729
85730         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85731         All contents moved to gl_REGEX.
85732         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85733         assume that it does.
85734
85735 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         * lib/regex.h (REG_NOSYS)
85738         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85739         Define, since POSIX requires it as of 2001.
85740         (_REG_ENOSYS)
85741         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85742         New private symbol, used to keep the enum signed in all cases.
85743         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85744         Youngman in
85745         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85746
85747         * lib/regex_internal.c (re_string_skip_chars, register_state):
85748         (calc_state_hash):
85749         Remove forward decls; no longer needed now that we use prototypes.
85750         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85751         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85752         (clean_state_log_if_needed): Likewise.
85753
85754 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85755
85756         * config/srclist.txt: Add glibc bugs 1231-1233.
85757
85758 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         Fix problems reported by Sam Steingold in
85761         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85762         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85763         assumed that reg_errcode_t is a signed type, which is not
85764         necessarily true if _XOPEN_SOURCE is not defined.
85765         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85766         since some compilers warn about it otherwise.
85767
85768 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85771         (init_word_char, create_initial_state, duplicate_node_closure):
85772         (fetch_token, peek_token_bracket, build_range_exp):
85773         (build_collating_symbol): Remove forward decls; no longer needed
85774         now that we use prototypes.
85775
85776         * lib/regcomp.c:
85777         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85778         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85779         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85780         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85781         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85782         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85783         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85784         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85785         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85786         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85787         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85788         (build_charclass, build_charclass_op, fetch_number, create_tree):
85789         (create_token_tree, mark_opt_subexp, duplicate_tree):
85790         Use prototypes rather than old-style definitions.
85791
85792         * lib/regex_internal.c:
85793         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85794         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85795         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85796         (re_string_reconstruct, re_string_peek_byte_case):
85797         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85798         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85799         (re_node_set_init_copy, re_node_set_add_intersect):
85800         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85801         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85802         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85803         (re_acquire_state, re_acquire_state_context, register_state):
85804         (create_ci_newstate, create_cd_newstate, free_state):
85805         Likewise.
85806         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85807         re_search_2):
85808         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85809         (re_search_internal, prune_impossible_nodes):
85810         (acquire_init_state_context, check_matching, static):
85811         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85812         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85813         (update_regs, sift_states_backward, build_sifted_states):
85814         (clean_state_log_if_needed, merge_state_array):
85815         (update_cur_sifted_state, add_epsilon_src_nodes):
85816         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85817         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85818         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85819         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85820         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85821         (check_arrival, check_arrival_add_next_nodes):
85822         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85823         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85824         (check_node_accept_bytes, check_node_accept, extend_buffers):
85825         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85826         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85827         (sift_ctx_init):
85828         Likewise.
85829
85830         * lib/regex_internal.h:
85831         (re_string_allocate, re_string_construct, re_string_reconstruct):
85832         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85833         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85834         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85835         (re_string_context_at, re_string_peek_byte_case):
85836         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85837         is defined, since we now use prototypes always.
85838
85839         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85840         C89 or better.  All uses removed.
85841
85842 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * config/srclist.txt: Add glibc bugs 1220-1227.
85845
85846 2005-08-20  Jim Meyering  <jim@meyering.net>
85847
85848         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85849         of unused local, dfa.
85850
85851 2005-08-20  Bruno Haible  <bruno@clisp.org>
85852
85853         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85854
85855 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85856
85857         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85858         (re_node_set_insert_last, re_dfa_add_node):
85859         Rename local variables to avoid GCC shadowing warnings.
85860
85861 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85862
85863         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85864         [defined lint]: Suppress bogus uninitialized-variable warnings.
85865
85866         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85867         and let the caller return REG_ESPACE if out of space.  This
85868         removes an uninitialied-variable warning with GCC 4.0.1, and also
85869         avoids taking the address of a local variable.  All callers
85870         changed.
85871
85872 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85873
85874         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85875         $LIBCSRC/posix/regexec.c.
85876         Add glibc bug 1217 for regcomp.c.
85877
85878 2005-08-19  Jim Meyering  <jim@meyering.net>
85879
85880         * lib/regexec.c (proceed_next_node): Redo local variables to
85881         avoid GCC shadowing warnings.
85882
85883 2005-08-18  Bruno Haible  <bruno@clisp.org>
85884
85885         * lib/strstr.c (strstr): Fix return value in multibyte case.
85886         * lib/strcasestr.c (strcasestr): Likewise.
85887
85888 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85889
85890         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85891
85892 2005-08-17  Jim Meyering  <jim@meyering.net>
85893
85894         Make the %s format (seconds since the epoch) work for a negative
85895         number and when used with a zero-padded field width, e.g. %015s.
85896
85897         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85898         label so that it precedes the code to set `digits'.  Otherwise,
85899         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85900         print `00-22'.  Now, it prints `-0022', as it should.
85901
85902 2005-08-17  Bruno Haible  <bruno@clisp.org>
85903
85904         * modules/strstr (Files): Add m4/mbrtowc.m4.
85905         (Depends-on): Add mbuiter.
85906
85907 2005-08-17  Bruno Haible  <bruno@clisp.org>
85908
85909         * modules/strcasestr: New file.
85910         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85911         strcasestr.
85912
85913 2005-08-17  Bruno Haible  <bruno@clisp.org>
85914
85915         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85916
85917 2005-08-17  Bruno Haible  <bruno@clisp.org>
85918
85919         * modules/mbuiter: New file.
85920         * MODULES.html.sh (Extended multibyte and wide character utilities):
85921         Add mbuiter.
85922
85923 2005-08-17  Bruno Haible  <bruno@clisp.org>
85924
85925         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85926         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85927
85928 2005-08-17  Bruno Haible  <bruno@clisp.org>
85929
85930         * m4/strcasestr.m4: New file.
85931
85932 2005-08-17  Bruno Haible  <bruno@clisp.org>
85933
85934         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85935         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85936
85937 2005-08-17  Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/strcasestr.h: New file.
85940         * lib/strcasestr.c: New file.
85941
85942 2005-08-17  Bruno Haible  <bruno@clisp.org>
85943
85944         * lib/strcasecmp.c: Use mbuiter.h.
85945
85946 2005-08-17  Bruno Haible  <bruno@clisp.org>
85947
85948         * lib/mbuiter.h: New file.
85949
85950 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85951
85952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85953         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85954         and gl_GETOPT are both invoked via different paths (as happens
85955         with GNU tar CVS because it uses both argp and getopt), the former
85956         wins.
85957
85958 2005-08-16  Bruno Haible  <bruno@clisp.org>
85959
85960         * modules/tls: New file.
85961         * MODULES.html.sh (Multithreading): Add tls.
85962
85963 2005-08-16  Bruno Haible  <bruno@clisp.org>
85964
85965         * modules/strnlen1: New file.
85966         * MODULES.html.sh (String handling): Add strnlen1.
85967
85968 2005-08-16  Bruno Haible  <bruno@clisp.org>
85969
85970         * modules/strcase (Files): Add m4/mbrtowc.m4.
85971         (Depends-on): Add strnlen1, mbchar.
85972
85973 2005-08-16  Bruno Haible  <bruno@clisp.org>
85974
85975         * modules/mbiter: New file.
85976         * MODULES.html.sh (Extended multibyte and wide character utilities):
85977         Add mbiter.
85978
85979 2005-08-16  Bruno Haible  <bruno@clisp.org>
85980
85981         * modules/mbfile: New file.
85982         * MODULES.html.sh (Extended multibyte and wide character utilities):
85983         Add mbfile.
85984
85985 2005-08-16  Bruno Haible  <bruno@clisp.org>
85986
85987         * modules/mbchar: New file.
85988         * MODULES.html.sh (Extended multibyte and wide character utilities):
85989         New section.
85990
85991 2005-08-16  Bruno Haible  <bruno@clisp.org>
85992
85993         * m4/tls.m4: New file, from GNU gettext.
85994
85995 2005-08-16  Bruno Haible  <bruno@clisp.org>
85996
85997         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85998         always.
85999         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86000
86001 2005-08-16  Bruno Haible  <bruno@clisp.org>
86002
86003         * m4/mbiter.m4: New file.
86004
86005 2005-08-16  Bruno Haible  <bruno@clisp.org>
86006
86007         * m4/mbfile.m4: New file.
86008
86009 2005-08-16  Bruno Haible  <bruno@clisp.org>
86010
86011         * m4/mbchar.m4: New file.
86012
86013 2005-08-16  Bruno Haible  <bruno@clisp.org>
86014
86015         * lib/tls.h: New file, from GNU gettext.
86016         * lib/tls.c: New file, from GNU gettext.
86017
86018 2005-08-16  Bruno Haible  <bruno@clisp.org>
86019
86020         * lib/strnlen1.h: New file.
86021         * lib/strnlen1.c: New file.
86022
86023 2005-08-16  Bruno Haible  <bruno@clisp.org>
86024
86025         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86026         (mbi_init): Update.
86027         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86028         NUL byte, not after it.
86029
86030 2005-08-16  Bruno Haible  <bruno@clisp.org>
86031
86032         * lib/strcase.h (strcasecmp): Add note in comments.
86033         * lib/strncasecmp.c: Use code from strcasecmp.c.
86034         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86035         (strcasecmp): Work correctly in multibyte locales.
86036
86037 2005-08-16  Bruno Haible  <bruno@clisp.org>
86038
86039         * lib/mbiter.h: New file.
86040
86041 2005-08-16  Bruno Haible  <bruno@clisp.org>
86042
86043         * lib/mbfile.h: New file.
86044
86045 2005-08-16  Bruno Haible  <bruno@clisp.org>
86046
86047         * lib/mbchar.h: New file.
86048         * lib/mbchar.c: New file.
86049
86050 2005-08-16  Bruno Haible  <bruno@clisp.org>
86051
86052         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86053         the valid ones. Makes the comparison operations transitive:
86054         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86055         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86056
86057 2005-08-15  Simon Josefsson  <jas@extundo.com>
86058
86059         * modules/ssize_t (License): Change to 'unlimited'.
86060
86061         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86062
86063 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86066         Add comments for each pending glibc patch.
86067
86068 2005-08-15  Bruno Haible  <bruno@clisp.org>
86069
86070         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86071         __cplusplus is defined.
86072
86073 2005-08-14  Jim Meyering  <jim@meyering.net>
86074
86075         Sync from coreutils.
86076
86077         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86078         Use the hash-table-based cycle-detection code not just when
86079         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86080         Reported by James Youngman in
86081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86082         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86083         FTS_TIGHT_CYCLE_CHECK.
86084         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86085         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86086         once again.
86087         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86088         * lib/fts.c (fd_safer): Remove decl.
86089         Include fcntl--.h rather than unistd-safer.h
86090         (fts_safe_changedir): Don't call fd_safer; no longer needed
86091         now that we include fcntl--.h.
86092
86093 2005-08-12  Simon Josefsson  <jas@extundo.com>
86094
86095         * modules/getndelim2: Use ssize_t module.
86096         * modules/getnline: Likewise.
86097         * modules/safe-read: Likewise.
86098         * modules/xreadlink: Likewise.
86099
86100         * modules/ssize_t: New file.
86101
86102 2005-08-12  Simon Josefsson  <jas@extundo.com>
86103
86104         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86105
86106 2005-08-12  Simon Josefsson  <jas@extundo.com>
86107
86108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86109         ssize_t.
86110
86111 2005-08-12  Simon Josefsson  <jas@extundo.com>
86112
86113         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86114         readline, getdelim and check_version.
86115         (Support for systems lacking ISO C 99: Sizes of integer types):
86116         Add size_max.
86117
86118 2005-08-12  Bruno Haible  <bruno@clisp.org>
86119
86120         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86121
86122 2005-08-11  Simon Josefsson  <jas@extundo.com>
86123
86124         * modules/readline: New file.
86125
86126         * modules/strnlen (Files): Add strnlen.h.
86127
86128 2005-08-11  Simon Josefsson  <jas@extundo.com>
86129
86130         * m4/readline.m4: New file.
86131
86132 2005-08-11  Simon Josefsson  <jas@extundo.com>
86133
86134         * lib/readline.h, readline.c: New file.
86135
86136 2005-08-11  Simon Josefsson  <jas@extundo.com>
86137
86138         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86139         gl_AVOID.
86140
86141 2005-08-11  Bruno Haible  <bruno@clisp.org>
86142
86143         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86144
86145 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86146
86147         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86148
86149 2005-08-10  Simon Josefsson  <jas@extundo.com>
86150
86151         * tests/test-iconvme.c: New file.
86152
86153 2005-08-10  Simon Josefsson  <jas@extundo.com>
86154
86155         * m4/strnlen.m4: New file.
86156
86157         * m4/strndup.m4: Don't check for strnlen declaration, done in
86158         strnlen.m4.
86159
86160 2005-08-10  Simon Josefsson  <jas@extundo.com>
86161
86162         * lib/strndup.c: Use strnlen.h.
86163
86164         * lib/strnlen.h: New file.
86165
86166 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86167
86168         * README: Typos.
86169
86170 2005-08-02  Simon Josefsson  <jas@extundo.com>
86171
86172         * modules/readline: New file.
86173
86174 2005-08-02  Simon Josefsson  <jas@extundo.com>
86175
86176         * modules/getdelim: New file.
86177
86178         * modules/getline: Rewrite, don't use getndelim2.
86179
86180 2005-08-02  Simon Josefsson  <jas@extundo.com>
86181
86182         * m4/getline.m4: Separate out getdelim stuff into separate module.
86183
86184         * m4/getdelim.m4: New file.
86185
86186 2005-08-02  Simon Josefsson  <jas@extundo.com>
86187
86188         * lib/getline.h, getline.c: Rewrite.
86189
86190         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86191
86192 2005-07-31  Bruno Haible  <bruno@clisp.org>
86193
86194         * lib/lock.h (gl_lock_initializer): New macro.
86195         (gl_lock_define_initialized): Use it.
86196         (gl_rwlock_initializer): New macro.
86197         (gl_rwlock_define_initialized): Use it.
86198         (gl_recursive_lock_initializer): New macro.
86199         (gl_recursive_lock_define_initialized): Use it.
86200
86201 2005-07-30  Karl Berry  <karl@gnu.org>
86202
86203         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86204         Report from Ben Pfaff, regarding getopt.
86205
86206 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86207
86208         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86209         normal way.
86210         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86211         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86212         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86213         (gl_GETOPT): Use the new macros.  Most of the implementation
86214         is moved to the new macros.  This is for programs like Emacs
86215         that don't want all the functionality of gl_GETOPT.
86216
86217 2005-07-26  Bruno Haible  <bruno@clisp.org>
86218
86219         * m4/lock.m4: Update from GNU gettext.
86220
86221 2005-07-26  Bruno Haible  <bruno@clisp.org>
86222
86223         * lib/lock.h: Update from GNU gettext.
86224         * lib/lock.c: Update from GNU gettext.
86225
86226 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86227
86228         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86229         obsolescent AC_TRY_RUN.  Include the default includes files, for
86230         'exit'.
86231
86232 2005-07-24  Bruno Haible  <bruno@clisp.org>
86233
86234         * modules/visibility: New file.
86235         * MODULES.html.sh (Misc): Add visibility.
86236
86237 2005-07-24  Bruno Haible  <bruno@clisp.org>
86238
86239         * m4/visibility.m4: New file.
86240
86241 2005-07-24  Bruno Haible  <bruno@clisp.org>
86242
86243         * doc/visibility.texi: New file.
86244
86245 2005-07-22  Bruno Haible  <bruno@clisp.org>
86246
86247         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86248         $(ALLOCA_H), redundant through BUILT_SOURCES.
86249         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86250         redundant through BUILT_SOURCES.
86251         * modules/byteswap (Makefile.am): Remove explicit dependency on
86252         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86253         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86254         $(FNMATCH_H), redundant through BUILT_SOURCES.
86255         * modules/getopt (Makefile.am): Remove explicit dependency on
86256         $(GETOPT_H), redundant through BUILT_SOURCES.
86257         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86258         redundant through BUILT_SOURCES.
86259         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86260         redundant through BUILT_SOURCES.
86261         * modules/stdbool (Makefile.am): Remove explicit dependency on
86262         $(STDBOOL_H), redundant through BUILT_SOURCES.
86263         * modules/stdint (Makefile.am): Remove explicit dependency on
86264         $(STDINT_H), redundant through BUILT_SOURCES.
86265         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86266         Remove explicit dependency on $(SYSEXITS_H).
86267         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86268
86269 2005-07-18  Simon Josefsson  <jas@extundo.com>
86270
86271         * lib/check-version.c (check_version): Accept identical versions too.
86272
86273 2005-07-18  Bruno Haible  <bruno@clisp.org>
86274
86275         * modules/lock: New file.
86276         * MODULES.html.sh (Multithreading): New section.
86277
86278 2005-07-18  Bruno Haible  <bruno@clisp.org>
86279
86280         * m4/lock.m4: New file, from GNU gettext.
86281
86282 2005-07-18  Bruno Haible  <bruno@clisp.org>
86283
86284         * lib/lock.h: New file, from GNU gettext.
86285         * lib/lock.c: New file, from GNU gettext.
86286
86287 2005-07-18  Bruno Haible  <bruno@clisp.org>
86288
86289         * lib/lock.h (gl_once_t): New type.
86290         (gl_once_define, gl_once): New macros.
86291         * lib/lock.c (fresh_once): New variable.
86292         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86293         functions.
86294
86295 2005-07-16  Simon Josefsson  <jas@extundo.com>
86296
86297         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86298         workaround, suggested by Bruno.
86299
86300 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86301
86302         * modules/xalloc (Depends-on): Add xalloc-die.
86303         * modules/xvasprintf (Depends-on): Add xalloc-die.
86304
86305 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86308         with a minor change.
86309
86310 2005-07-15  Bruno Haible  <bruno@clisp.org>
86311
86312         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86313         When using lib/poll.c, define poll as rpl_poll.
86314
86315 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86316
86317         * modules/argp (Depends-on): Remove unlocked-io.
86318
86319 2005-07-14  Derek Price  <derek@ximbiot.com>
86320
86321         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86322         for glob symlink bug.
86323
86324 2005-07-14  Bruno Haible  <bruno@clisp.org>
86325
86326         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86327         Instead, test for *_unlocked function declarations directly.
86328
86329 2005-07-11  Simon Josefsson  <jas@extundo.com>
86330
86331         * modules/size_max: New file.
86332
86333         * modules/xsize: Depend on size_max module for size_max.m4.
86334
86335 2005-07-11  Simon Josefsson  <jas@extundo.com>
86336
86337         * lib/size_max.h: New file.
86338
86339 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86342         copyright symbol and the year.
86343         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86344         (version_etc_va): Use parameterized copyright notice.
86345         Reword to conform to the current GNU coding standards.
86346
86347 2005-07-11  Karl Berry  <karl@gnu.org>
86348
86349         * doc/gnulib.texi (Quoting): new node.
86350         (Initial import): more info, from Patrice.
86351
86352 2005-07-11  Bruno Haible  <bruno@clisp.org>
86353
86354         * gnulib-tool (func_usage): Document option --avoid.
86355         (Command line options): Handle --avoid.
86356         (func_acceptable): New function.
86357         (func_modules_transitive_closure): Use it.
86358
86359 2005-07-11  Bruno Haible  <bruno@clisp.org>
86360
86361         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86362         Reported by Jim Meyering.
86363
86364 2005-07-10  Bruno Haible  <bruno@clisp.org>
86365
86366         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86367         Needed when size_t is smaller than 'unsigned int'.
86368         Reported by Paul Eggert.
86369
86370 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86371
86372         * modules/argp (Depends-on): Add unlocked-io
86373
86374 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86375
86376         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86377         block of defines.
86378
86379 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86382         fix now.
86383
86384 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86385         and Paul Eggert  <eggert@cs.ucla.edu>
86386
86387         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86388         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86389
86390 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86391
86392         * modules/regex (Files): Add lib/regex_internal.c,
86393         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86394         (Depends-on): Add extensions.
86395         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86396
86397 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86398
86399         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86400         pathconf.
86401         * m4/same.m4 (gl_SAME): Likewise.
86402         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86403
86404         * m4/regex.m4: Adjust to new libc regex implementation.
86405         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86406         all the .c and .h parts of (the new) regex.
86407         Quote the m4 stuff better.
86408         Check for RE_ICASE bug of old gnulib.
86409         Check for REG_STARTEND of recent libc.
86410         Rename local variables from jm_* to gl_*.
86411         Quote operand of "test -f".
86412         Say "recent enough" version of libc, not "version 2".
86413         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86414         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86415         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86416         Remove check for btowc, isascii.
86417         Require AM_LANGINFO_CODESET.
86418
86419 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86420
86421         * lib/regex.c, regex.h: Sync from libc.
86422         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86423         * lib/regexec.c:
86424         New files, synced from libc, except that regex_internal.h
86425         currently has a small porting fix.
86426
86427 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86428
86429         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86430         regex_internal.c, regexec.c.
86431         Add regex_internal.h too, but as a comment, since the libc version
86432         is currently broken in gnulib mode.
86433
86434 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         Support programs like Emacs that use gnulib but not gettext.
86437         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86438         * modules/gettext-h: New file.
86439         * modules/gettext (Files): Remove lib/gettext.h.
86440         (Depends-on): Add gettext-h.
86441         (Makefile.am): Remove lib_SOURCES.
86442         * modules/argmatch, modules/c-stack, modules/closeout:
86443         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86444         * modules/execute, modules/file-type, modules/getaddrinfo:
86445         * modules/getopt, modules/human, modules/javacomp:
86446         * modules/javaexec, modules/mkdir-p, modules/obstack:
86447         * modules/openat, modules/pagealign_alloc, modules/pipe:
86448         * modules/quotearg, modules/regex, modules/rpmatch:
86449         * modules/unicodeio, modules/userspec, modules/version-etc:
86450         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86451         * modules/xsetenv:
86452         Depend on gettext-h, not gettext.
86453
86454 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86455
86456         * gnulib-tool (func_import): Add support for 'public domain' license.
86457         * modules/alloca, modules/atexit, modules/memmove:
86458         Now public domain, not GPL.
86459         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86460         * modules/realloc, modules/strerror, modules/strtod:
86461         Now LGPL, not GPL.
86462
86463 2005-07-05  Bruno Haible  <bruno@clisp.org>
86464
86465         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86466         autoconf CVS. Needed for mingw.
86467
86468 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86469
86470         Remove the dependency of the strftime module on the tzset module.
86471         * modules/strftime (Depends-on): Remove dependency on tzset.
86472
86473 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86474
86475         Remove the dependency of the strftime module on the tzset module.
86476         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86477         gl_FUNC_TZSET_CLOBBER.
86478
86479 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86480
86481         Remove the dependency of the strftime module on the tzset module.
86482         * lib/strftime.c (my_strftime)
86483         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86484         Copy the input structure, to work around some of the bug with
86485         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86486         Solaris releases, you should also use the tzset module, but we won't
86487         require it as a dependency any more since we don't want LGPLed code
86488         to depend on GPLed code.
86489
86490 2005-07-02  Jim Meyering  <jim@meyering.net>
86491
86492         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86493         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86494         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86495         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86496
86497 2005-07-02  Jim Meyering  <jim@meyering.net>
86498
86499         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86500
86501 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86502
86503         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86504         declares only 'struct timespec;' (!).
86505
86506 2005-07-01  Jim Meyering  <jim@meyering.net>
86507
86508         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86509         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86510         * lib/save-cwd.c, tempname.c:
86511         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86512         and don't include <sys/file.h>).
86513
86514 2005-06-29  Jim Meyering  <jim@meyering.net>
86515
86516         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86517         type name.  Use the variable name instead.
86518         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86519         Likewise.
86520
86521 2005-06-28  Simon Josefsson  <jas@extundo.com>
86522
86523         * modules/check-version (Files): Add check-version.m4.
86524
86525 2005-06-28  Simon Josefsson  <jas@extundo.com>
86526
86527         * m4/check-version.m4: New file, suggested by Jim Meyering
86528         <jim@meyering.net>.
86529
86530 2005-06-28  Simon Josefsson  <jas@extundo.com>
86531
86532         * lib/check-version.h, lib/check-version.c: New files.
86533
86534 2005-06-28  Simon Josefsson  <jas@extundo.com>
86535
86536         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86537         collision with global variable.  Better indentation.  Don't
86538         increment buffer pointer beyond buffer end.  Based on comments
86539         from Paul Eggert <eggert@cs.ucla.edu>.
86540
86541         * lib/base64.h: Indent.
86542
86543 2005-06-28  Simon Josefsson  <jas@extundo.com>
86544
86545         * doc/gnulib.texi (Library version handling): New section.
86546
86547 2005-06-28  Jim Meyering  <jim@meyering.net>
86548
86549         * check-module (find_included_lib_files): Hard-code another
86550         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86551         but modules/fts-lgpl (correctly) does not list those files.
86552
86553         * modules/canonicalize (Files): Add lib/pathmax.h.
86554
86555 2005-06-25  Simon Josefsson  <jas@extundo.com>
86556
86557         * modules/check-version: New file.
86558
86559 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86560
86561         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86562         initializer of struct addrinfo, as an indication that we don't
86563         care how many members the structure has.
86564
86565 2005-06-24  Derek Price  <derek@ximbiot.com>
86566         and Bruno Haible  <bruno@clisp.org>
86567
86568         Remove stat module & update lstat.
86569         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86570         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86571         * m4/stat.m4: Remove this file.
86572
86573 2005-06-24  Derek Price  <derek@ximbiot.com>
86574         and Bruno Haible  <bruno@clisp.org>
86575
86576         Remove stat module & update lstat.
86577         * lib/stat.c: Remove this file...
86578         (slash_aware_lstat): ...moving this content and its support...
86579         * lib/lstat.c (rpl_lstat): ...into here.
86580         * lib/lstat.h: New file.
86581
86582 2005-06-24  Derek Price  <derek@ximbiot.com>
86583         and Bruno Haible  <bruno@clisp.org>
86584
86585         Remove stat module & update lstat.
86586         * config/srclist.txt (libc sources): Remove stat.
86587
86588 2005-06-24  Derek Price  <derek@ximbiot.com>
86589         and Bruno Haible  <bruno@clisp.org>
86590
86591         Remove stat module & update lstat.
86592         * MODULES.html.sh (stat): Remove.
86593         * MODULES.html: Regenerated.
86594         * modules/lstat (Description): Correct function name.
86595         (Files): Add "lstat.h".
86596         (Depends-on): Remove stat, add xalloc, stat-macros.
86597         * modules/stat: Remove this file.
86598         (Include): Add "lstat.h", remove <sys/stat.h>.
86599
86600 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86601
86602         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86603         (ranged_convert): Don't save conversion in a temporary struct.
86604         This causes a warning with GCC 4.0.0, and anyway in the typical
86605         case it's not worth the extra 100 bytes or so of code.
86606         (ranged_convert, __mktime_internal): When calling a function via a
86607         pointer P, use P () rather than (*P) (), as we now assume C89 or
86608         better.
86609
86610 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86611
86612         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86613         "who -r" failed to give output.  Problem reported by Tim Waugh.
86614
86615         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86616         (xcalloc): Use it to avoid needless tests.
86617         Problem reported by Jim Meyering.
86618
86619 2005-06-20  Derek Price  <derek@ximbiot.com>
86620
86621         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86622         unnecessary for Autoconfs > 2.59c.
86623
86624 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86625
86626         * lib/argp.h (__option_is_short): Check upper limit of
86627         __key. Isprint() requires its argument to have the value
86628         of an unsigned char or EOF.
86629
86630 2005-06-16  Jim Meyering  <jim@meyering.net>
86631
86632         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86633         when either N or S is zero.
86634
86635 2005-06-16  Derek Price  <derek@ximbiot.com>
86636
86637         * m4/bison.m4: Declare YACC & YFLAGS precious.
86638
86639 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86640
86641         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86642         multibyte string or pattern, fall back on unibyte matching.
86643         Problem reported by James Youngman.
86644
86645 2005-06-08  Bruno Haible  <bruno@clisp.org>
86646
86647         * modules/csharpcomp: New file.
86648         * MODULES.html.sh (C#): Add csharpcomp.
86649
86650 2005-06-08  Bruno Haible  <bruno@clisp.org>
86651
86652         * m4/csharpcomp.m4: New file, from GNU gettext.
86653
86654 2005-06-08  Bruno Haible  <bruno@clisp.org>
86655
86656         * lib/csharpcomp.h: New file, from GNU gettext.
86657         * lib/csharpcomp.c: New file, from GNU gettext.
86658         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86659
86660 2005-06-08  Bruno Haible  <bruno@clisp.org>
86661
86662         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86663         warning on mingw.
86664
86665 2005-06-07  Derek Price  <derek@ximbiot.com>
86666
86667         Sync from CVS.
86668         * lib/glob_.h: Indent nested #ifdef.
86669
86670 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86671
86672         Sync from coreutils.
86673         Use "file name" when talking about file names, instead of "filename"
86674         or "path", as per the GNU coding standards.
86675         * lib/mkdir-p.c: Renamed from makepath.c.
86676         (make_dir_parents): Renamed from make_path.  All callers changed.
86677         * lib/mkdir-p.h: Likewise.  All includers changed.
86678         * lib/filenamecat.c: Renamed from path-concat.c.
86679         (file_name_concat): Renamed from path_concat.  All callers changed.
86680         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86681         * lib/filenamecat.h: Likewise.  All includers changed.
86682         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86683         in comments or local variable names.
86684         * lib/basename.c: Likewise.
86685         * lib/canonicalize.c, canonicalize.h: Likewise.
86686         * lib/dirname.c, dirname.h: Likewise.
86687         * lib/euidaccess.c: Likewise.
86688         * lib/exclude.c: Likewise
86689         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86690         * lib/fsusage.c, fsuage.h: Likewise.
86691         * lib/fts.c, fts_.h: Likewise.
86692         * lib/getcwd.c: Likewise.
86693         * lib/getloadavg.c: Likewise.
86694         * lib/mkstemp.c: Likewise.
86695         * lib/mountlist.c, mountlist.h: Likewise.
86696         * lib/openat.c, openat.h: Likewise.
86697         * lib/readlink-stub.c: Likewise.
86698         * lib/readutmp.c, readutmp.h: Likewise.
86699         * lib/rename.c: Likewise.
86700         * lib/rmdir.c: Likewise.
86701         * lib/same.c: Likewise.
86702         * lib/savedir.c: Likewise.
86703         * lib/stripslash.c: Likewise.
86704         * lib/tempname.c: Likewise.
86705         * lib/xreadlink.c: Likewise.
86706         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86707         All uses changed.
86708         * lib/exclude.h: Likewise.
86709
86710         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86711         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86712         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86713         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86714         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86715         files have been getting away with it for years (MORE/BSD 4.3
86716         is extinct now).
86717         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86718         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86719
86720         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86721         Define to 256, not 255, as per modern POSIX.
86722
86723 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86724
86725         Sync from coreutils.
86726         Use "file name" when talking about file names, instead of "filename"
86727         or "path", as per the GNU coding standards.
86728         * MODULES.html.sh: mkdir-p renamed from makepath.
86729         filenamecat renamed from path-concat.
86730         * modules/filenamecat: Renamed from modules/path-concat.
86731         (Files): filenamecat.h and filenamecat.c renamed from
86732         path-concat.h and path-concat.c.
86733         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86734         (Include): filenamecat.h, not path-concat.h.
86735         * modules/mkdir-p: Renamed from modules/makepath.
86736         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86737         makepath.c.
86738         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86739         (Include): mkdir-p.h, not makepath.h.
86740
86741 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86742
86743         Sync from coreutils.
86744         * m4/mkdir-p.m4: Renamed from makepath.m4.
86745         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86746         Rename files from makepath.c to mkdir-p.c, and from
86747         makepath.h to mkdir-p.h.
86748         * m4/filenamecat.m4: Renamed from path-concat.m4.
86749         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86750         Rename files from path-concat.c to filenamecat.c,
86751         and from path-concat.h to filenamecat.h.
86752         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86753         "file name" in local variables or comments.
86754         * m4/rename.m4: Likewise.
86755
86756 2005-06-01  Bruno Haible  <bruno@clisp.org>
86757
86758         * modules/csharpexec: New file.
86759         * MODULES.html.sh (C#): New section.
86760
86761 2005-06-01  Bruno Haible  <bruno@clisp.org>
86762
86763         * m4/csharp.m4: New file, from GNU gettext.
86764         * m4/csharpexec.m4: New file, from GNU gettext.
86765
86766 2005-06-01  Bruno Haible  <bruno@clisp.org>
86767
86768         * lib/csharpexec.h: New file, from GNU gettext.
86769         * lib/csharpexec.c: New file, from GNU gettext.
86770         * lib/csharpexec.sh.in: New file, from GNU gettext.
86771
86772 2005-05-31  Derek Price  <derek@ximbiot.com>
86773             Paul Eggert  <eggert@cs.ucla.edu>
86774
86775         Sync from cvs.
86776         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86777
86778 2005-05-31  Derek Price  <derek@ximbiot.com>
86779             Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         Sync from cvs.
86782         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86783
86784 2005-05-29  Derek Price  <derek@ximbiot.com>
86785
86786         * config/srclist.txt (glob_.h, glob.c): Add these files.
86787
86788 2005-05-29  Derek Price  <derek@ximbiot.com>
86789
86790         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86791         * modules/glob: New file.
86792         * modules/getlogin_r: Add link to POSIX spec in description.
86793
86794 2005-05-29  Derek Price  <derek@ximbiot.com>
86795             Paul Eggert  <eggert@cs.ucla.edu>
86796
86797         * m4/glob.m4: New file.
86798
86799 2005-05-29  Derek Price  <derek@ximbiot.com>
86800             Paul Eggert  <eggert@cs.ucla.edu>
86801
86802         * lib/glob_.h, lib/glob.c: New files.
86803
86804 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86807         * modules/fts-lgpl (Depends-on): Remove gettext.
86808
86809 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86810
86811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86812         and don't require gt_INTTYPES_PRI.
86813
86814 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86815
86816         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86817
86818         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86819         the configuration hassle isn't worth it.
86820         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86821         (LONGEST_MODIFIER, PRIuMAX): Remove.
86822
86823 2005-05-27  Bruno Haible  <bruno@clisp.org>
86824
86825         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86826
86827 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86828
86829         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86830         _POSIX_PTHREAD_SEMANTICS for Solaris.
86831
86832 2005-05-25  Derek Price  <derek@ximbiot.com>
86833
86834         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86835
86836 2005-05-25  Derek Price  <derek@ximbiot.com>
86837             Paul Eggert  <eggert@cs.ucla.edu>
86838
86839         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86840         * lib/getlogin_r.c, getlogin_r.h: New files.
86841
86842 2005-05-25  Bruno Haible  <bruno@clisp.org>
86843             Derek Price  <derek@ximbiot.com>
86844
86845         * lib/getlogin_r.h: Simplify API documentation.
86846
86847 2005-05-23  Derek Price  <derek@ximbiot.com>
86848
86849         * modules/minmax (Files): Add m4/minmax.m4.
86850         (configure.ac): Add gl_MINMAX.
86851
86852 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86853
86854         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86855         so that unistd-safer.h (GPL'ed code) need not be included.
86856
86857 2005-05-22  Bruno Haible  <bruno@clisp.org>
86858
86859         * m4/minmax.m4: New file.
86860         Based on a patch by Derek Price <derek@ximbiot.com>.
86861
86862 2005-05-22  Bruno Haible  <bruno@clisp.org>
86863
86864         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86865         (INT64_MIN): Fix definition.
86866         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86867
86868         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86869         NEED_SIGNED_INT_TYPES.
86870
86871         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86872         HAVE_SYSTEM_INTTYPES.
86873
86874 2005-05-22  Bruno Haible  <bruno@clisp.org>
86875
86876         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86877         Also include <sys/param.h> if it defines MIN, MAX.
86878         Based on a patch by Derek Price <derek@ximbiot.com>.
86879
86880 2005-05-21  Jim Meyering  <jim@meyering.net>
86881
86882         * modules/fts (Files): Add m4/inttypes-pri.m4.
86883         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86884
86885 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86886
86887         New fts module.
86888         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86889         (setup_dir, free_dir): New functions.
86890         (enter_dir, leave_dir): Define trivial
86891         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86892         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86893         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86894         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86895         Move to fts-cycle.c.
86896         (fts_open): Use setup_dir.
86897         (fts_close): Use free_dir.
86898         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86899         This adds a label and some gotos, but the alternatives were messier.
86900         Check for memory allocation failure when entering a dir.
86901         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86902         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86903         (FTS): New member fts_cycle, that is a union that contains the
86904         old active_dir_ht and cycle_state.  All uses changed to mention
86905         fts_cycle.ht and fts_cycle.state.
86906         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86907         fts.c, with the following changes:
86908         (setup_dir, free_dir): New functions.
86909         (enter_dir): Now returns bool.  Return true if successful, false
86910         if memory exhausted.  All callers changed.
86911         Do not bother partly cleaning up on
86912         memory allocation failure; that is free_dir's job.
86913         However, free ad if hash_insert fails, to avoid memory leak.
86914         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86915         fts->fts_options to see which union member to use.
86916
86917 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86918
86919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86920         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86921
86922 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86923
86924         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86925
86926 2005-05-20  Jim Meyering  <jim@meyering.net>
86927
86928         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86929         Now a macro, to pacify GCC.
86930
86931 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86932
86933         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86934         of -1.
86935
86936 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86937
86938         * lib/chown.c (rpl_chown): Return -1 on failure.
86939
86940 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86941
86942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86943         Don't check for stddef.h.
86944         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86945         don't use its results.
86946         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86947         since we include them unconditionally.  Don't require
86948         AM_STDBOOL_H, since stdbool is a prerequisite.
86949         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86950         since we assume C89 or better.
86951         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86952         as we don't use their results.
86953         Don't check for fchdir, memmove, memset, strrchr, as we use
86954         them unconditionally.
86955         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86956         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86957
86958 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86959
86960         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86961         Include <stddef.h> unconditionally, since we assume C89 now.
86962         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86963         * lib/fts.c: Include fts_.h first, to check interface.
86964         Do not include intprops.h; no longer needed.
86965         Include cycle-check.h and hash.h, since fts_.h no longer does.
86966         Remove unnecessary casts of closedir to void.
86967         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86968         decide whether to decrement nlinks.
86969         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86970         (FTS): Use struct hash_table * instead of Hash_table, so that
86971         we no longer need to include hash.h here.
86972
86973 2005-05-18  Jim Meyering  <jim@meyering.net>
86974
86975         * modules/dirfd (License): Change to LGPL.  Most of the code
86976         is already in the public domain.
86977
86978 2005-05-18  Jim Meyering  <jim@meyering.net>
86979
86980         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86981         Reported by Yoann Vandoorselaere.
86982
86983 2005-05-17  Jim Meyering  <jim@meyering.net>
86984
86985         * m4/fts.m4: New file, from coreutils.
86986
86987 2005-05-17  Jim Meyering  <jim@meyering.net>
86988
86989         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86990
86991 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86992
86993         Sync from coreutils.
86994         * m4/unlinkdir.m4: New file.
86995
86996 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86997
86998         Sync from coreutils.
86999         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87000         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87001         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87002         White space changes only.
87003         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87004         special.
87005         * lib/yesno.c: Include getline.h, not ctype.h.
87006         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87007         Use getline to remove arbitrary restriction on response length.
87008
87009 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * config/srclist-update: Spell out "Street" in FSF postal
87012         mail address; this is the style the FSF seems to prefer.
87013
87014         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87015         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87016         this updates FSF postal mail address.
87017
87018         Sync from coreutils.
87019         * modules/unlinkdir: New file.
87020         * modules/yesno (Depends-on): Add getline.
87021         * MODULES.html.sh (File system functions): Add unlinkdir.
87022
87023 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87024
87025         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87026         lib/strsep.h:
87027         Change the initial comment to refer to GPL, not LGPL.
87028         gnulib-tool will change it to LGPL as needed.
87029
87030         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87031         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87032         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87033         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87034         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87035         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87036         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87037         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87038         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87039         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87040         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87041         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87042         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87043         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87044         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87045         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87046         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87047         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87048         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87049         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87050         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87051         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87052         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87053         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87054         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87055         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87056         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87057         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87058         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87059         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87060         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87061         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87062         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87063         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87064         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87065         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87066         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87067         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87068         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87069         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87070         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87071         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87072         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87073         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87074         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87075         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87076         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87077         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87078         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87079         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87080         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87081         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87082         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87083         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87084         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87085         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87086         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87087         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87088         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87089         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87090         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87091         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87092         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87093         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87094         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87095         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87096         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87097         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87098         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87099         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87100         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87101         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87102         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87103         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87104         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87105         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87106         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87107         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87108         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87109         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87110         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87111         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87112         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87113         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87114         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87115         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87116         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87117         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87118         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87119         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87120         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87121         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87122         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87123         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87124         lib/yesno.c, lib/yesno.h:
87125         Update FSF postal mail address.
87126
87127 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87128
87129         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87130         tests/test-memmem.c, tests/test-stpncpy.c:
87131         Update FSF postal mail address.
87132
87133 2005-05-13  Bruno Haible  <bruno@clisp.org>
87134
87135         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87136         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87137         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87138         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87139         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87140         Add support for 64-bit integers in the MSVC compiler.
87141
87142 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87143
87144         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87145
87146 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87147
87148         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87149
87150 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87151
87152         * doc/getdate.texi (General date syntax): Don't say that date
87153         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87154         Problem reported by Nic Ferrier.
87155
87156 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87157
87158         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87159         specified in ai_socktype. Fix invalid ai_protocol
87160         check. ai_protocol is usually set to 0 or depending on
87161         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87162         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87163         ai_socktype / ai_protocol in the returned addrinfo structure.
87164
87165 2005-05-10  Simon Josefsson  <jas@extundo.com>
87166
87167         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87168         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87169
87170 2005-05-10  Karl Berry  <karl@gnu.org>
87171
87172         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87173         (from http://www.gnu.org/licenses).
87174         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87175         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87176         fdl.texi suffices.
87177
87178 2005-05-10  Karl Berry  <karl@gnu.org>
87179
87180         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87181         (COPYING.DOC): remove.
87182
87183         * config/srclist-update: new FSF address.
87184
87185 2005-05-10  Derek Price  <derek@ximbiot.com>
87186
87187         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87188         possible.
87189
87190 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87191             Bruno Haible  <bruno@clisp.org>
87192
87193         * modules/inet_ntop: New file.
87194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87195         inet_ntop.
87196
87197 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87198             Bruno Haible  <bruno@clisp.org>
87199
87200         * m4/inet_ntop.m4: New file.
87201
87202 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87203             Bruno Haible  <bruno@clisp.org>
87204
87205         * lib/inet_ntop.h: New file.
87206         * lib/inet_ntop.c: New file, from glibc with modifications.
87207
87208 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87209
87210         * modules/time_r (License): Change to LGPL.
87211         * modules/extensions (License): Change to LGPL.  Actually,
87212         the license is more permissive than that, but currently gnulib-tool
87213         doesn't know how to handle more-permissive licenses.
87214
87215         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87216         Problem reported by Dave Love.
87217
87218 2005-05-08  Jim Meyering  <jim@meyering.net>
87219
87220         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87221         blank.
87222
87223 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87224
87225         * modules/argmatch (Depends-on): Add stdbool.
87226         * modules/backupfile (Depends-on): Likewise.
87227         * modules/chdir-long (Depends-on): Likewise.
87228         * modules/closeout (Depends-on): Likewise.
87229         * modules/cycle-check (Depends-on): Likewise.
87230         * modules/dirname (Depends-on): Likewise.
87231         * modules/fnmatch (Depends-on): Likewise.
87232         * modules/fsusage (Depends-on): Likewise.
87233         * modules/fwriteerror (Depends-on): Likewise.
87234         * modules/getcwd (Depends-on): Likewise.
87235         * modules/getloadavg (Depends-on): Likewise.
87236         * modules/hard-locale (Depends-on): Likewise.
87237         * modules/makepath (Depends-on): Likewise.
87238         * modules/mountlist (Depends-on): Likewise.
87239         * modules/nanosleep (Depends-on): Likewise.
87240         * modules/posixtm (Depends-on): Likewise.
87241         * modules/quotearg (Depends-on): Likewise.
87242         * modules/readtokens (Depends-on): Likewise.
87243         * modules/readtokens0 (Depends-on): Likewise.
87244         * modules/readutmp (Depends-on): Likewise.
87245         * modules/save-cwd (Depends-on): Likewise.
87246         * modules/strftime (Depends-on): Likewise.
87247         * modules/userspec (Depends-on): Likewise.
87248         * modules/utimecmp (Depends-on): Likewise.
87249         * modules/xgetcwd (Depends-on): Likewise.
87250         * modules/xnanosleep (Depends-on): Likewise.
87251         * modules/xstrtod (Depends-on): Likewise.
87252         * modules/yesno (Depends-on): Likewise.
87253
87254 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87257         needless checks.
87258
87259 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87260
87261         Merge from coreutils.  Among other things,
87262         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87263         * lib/fd-safer.c: New file.
87264         * lib/fcntl-safer.h, open-safer.c: Remove.
87265         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87266         * lib/dup-safer.c: Include unistd-safer.h first.
87267         Don't include errno.h.
87268         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87269         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87270         * lib/file-type.c: Rely on file-type.h change.
87271         * lib/getloadavg.c: Include unistd-safer.h.
87272         (getloadavg): Use safer open.
87273         * lib/getusershell.c: Include "stdio-safer.h".
87274         (getusershell): Use safer fopen.
87275         * lib/long-options.c (long_options): Use NULL rather than 0.
87276         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87277         'free'.
87278         * lib/modechange.c: Likewise.
87279         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87280         (MODE_DONE): New constant.
87281         (struct mode_change): Remove 'next' member.
87282         (make_node_op_equals): New function; like the old one of the
87283         same name, except it allocates an array.
87284         (mode_compile, mode_create_from_ref): Use it.
87285         (mode_compile): Allocate result as an array, not a linked list.
87286         Parse octal string ourself, so that we catch mistakes like "+0".
87287         (mode_adjust): Arg is an array, not a linked list.
87288         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87289         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87290         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87291         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87292         Remove.  This is now stat-macros.h's job.
87293         (talloc): Remove.  All callers replaced by xalloc, so that
87294         our invokers don't have to worry about reporting memory failures.
87295         (make_node_op_equals): Remove.
87296         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87297         New constants.
87298         (struct mode_change): Moved here from modechange.h.
87299         (mode_append_entry): Remove.
87300         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87301         apps to have incorrect behavior.  Use simpler algorithm for head
87302         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87303         Detect more invalid usages rather than having somewhat-random behavior.
87304         Don't insert an "a=" action, as that leads to incorrect behavior.
87305         (mode_compile, mode_create_from_ref): Return NULL on error instead
87306         of an enum, since now there's only one way to have an error.  All
87307         callers changed.
87308         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87309         at the correct time.  Simplify calculation of "+u" and its ilk.
87310         Don't mishandle "+X".
87311         (mode_free): Remove "register" and localize decls.
87312         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87313         (struct mode_change): Move to modechange.c; callers don't
87314         need to see this stuff.
87315         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87316         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87317         (mode_change, mode_adjust): Reflect the new signatures noted above.
87318         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87319         that might redefine system include files.
87320         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87321         (my_usleep): Use NULL rather than (void *) 0.
87322         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87323         Use siginterrupt to specify that system calls should be interrupted.
87324         (rpl_nanosleep): Move initialization of suspended closer to call of
87325         my_usleep.
87326         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87327         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87328         (desirable_utmp_entry): New function.
87329         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87330         using x2nrealloc, to simplify logic.
87331         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87332         size calculation.  Do not assume utmp file is a regular file.
87333         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87334         (READ_UTMP_CHECK_PIDS): New constant.
87335         * lib/save-cwd.c: Include unistd-safer.h.
87336         (save_cwd): Use fd_safer.
87337         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87338         [!_LIBC] Include "stat-macros.h" instead.
87339         * lib/unistd-safer.h (fd_safer): New decl.
87340
87341 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87342
87343         * modules/getloadavg (Depends-on): Add unistd-safer.
87344         * modules/getusershell (Depends-on): Add stdio-safer.
87345         * modules/lstat (Depends-on): Remove xalloc.
87346         * modules/mkstemp (Depends-on): Add stat-macros.
87347         * modules/modechange (Depends-on): Remove xstrtol.
87348         Add stat-macros, xalloc.
87349         * modules/save-cwd (Depends-on): Add unistd-safer.
87350         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87351         * modules/unistd-safer (Files): Add lib/fd-safer.c
87352         (Makefile.am): Remove lib_SOURCES.
87353
87354         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87355         Remove fcntl-safer; unistd-safer supersedes it.
87356
87357 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87358
87359         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87360         AC_HEADER_STAT.
87361         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87362         (gl_PREREQ_CHOWN): Remove.
87363         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87364         it.  Don't require AC_HEADER_STAT.
87365         (gl_PREREQ_LSTAT): Remove.
87366         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87367         Don't require AC_HEADER_STAT.
87368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87369         (gl_PREREQ_RMDIR): Remove.
87370         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87371         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87372         the stat-macros module a prerequisite.
87373         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87374         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87375         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87376         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87377         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87378         variable names.
87379         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87380         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87381         variable prefixes.
87382         * m4/fcntl-safer.m4: Remove.
87383         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87385         Invoke gl_PREREQ_FD_SAFER.
87386         (gl_PREREQ_FD_SAFER): New macro.
87387         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87388         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87389         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87390         Remove duplicate call to AC_LIBOBJ(readutmp).
87391         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87392
87393         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87394         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87395
87396 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87397
87398         * MODULES.html.sh (Misc): Add byteswap.
87399
87400 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87401
87402         * modules/getcwd (Depends-on): Add extensions.
87403         * modules/openat (Depends-on): Likewise.
87404
87405 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87406
87407         * modules/byteswap: New file.
87408
87409 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87410
87411         * m4/byteswap.m4: New file.
87412
87413 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87414
87415         * lib/byteswap_.h: New file.
87416
87417 2005-04-25  Karl Berry  <karl@gnu.org>
87418
87419         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87420
87421 2005-04-25  Albert Chin  <china@thewrittenword.com>
87422
87423         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87424         Toolkit C bug.
87425
87426 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87427
87428         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87429         (func_ln_if_changed): Remove forcibly for no error message
87430         in case file does not exist.
87431
87432 2005-04-19  Simon Josefsson  <jas@extundo.com>
87433
87434         * gnulib-tool (Options): Make --symlink mean --symbolic.
87435
87436 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87437
87438         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87439
87440 2005-04-16  Simon Josefsson  <jas@extundo.com>
87441
87442         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87443
87444 2005-04-15  Simon Josefsson  <jas@extundo.com>
87445
87446         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87447
87448 2005-04-15  Simon Josefsson  <jas@extundo.com>
87449
87450         * gnulib-tool: Rename --symlink to --symbolic.
87451
87452 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87453
87454         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87455         symbolic links to files instead of copying/moving.  Add --aux-dir,
87456         specifying directory relative --dir where auxiliary build tools
87457         are placed.
87458
87459 2005-04-14  Bruno Haible  <bruno@clisp.org>
87460
87461         * modules/allocsa (License): Change to LGPL.
87462         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87463
87464 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87465
87466         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87467         that "UTC +1 second" continues to work.  Problem reported
87468         by Dmitry V. Levin.
87469         (relunit_snumber): New rule.
87470         (relunit): Use it.
87471
87472 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87473
87474         * lib/getdate.y (universal_time_zone_table): New constant.
87475         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87476         universal_time_zone_table.
87477         (lookup_zone): Prefer universal_time_zone_table to
87478         local_time_zone_table, so that "GMT" time stamps are allowed in
87479         London during the summer.  Problem reported by Ian Abbott.
87480
87481 2005-04-12  Jim Meyering  <jim@meyering.net>
87482
87483         * lib/human.c (humblock): Set *options even when returning due to
87484         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87485         warning from gcc-4.
87486
87487 2005-04-09  Jim Meyering  <jim@meyering.net>
87488
87489         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87490         -Wuninitialized: initialize tm0.tm_year.
87491
87492 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87493
87494         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87495         count, since there's no maximum.  All uses changed.
87496         Add member dsts_seen.
87497         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87498         not being INT_MAX.
87499         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87500         Use pc_rels_seen to decide whether a date is absolute.
87501
87502         * lib/getdate.y (number): Don't overwrite year.
87503         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87504         check.
87505
87506 2005-04-02  Simon Josefsson  <jas@extundo.com>
87507
87508         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87509         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87510
87511 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87512
87513         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87514         where no absolute path name can be longer than PATH_MAX.
87515
87516 2005-03-27  Jim Meyering  <jim@meyering.net>
87517
87518         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87519
87520 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87521
87522         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87523         "one's complement" -> "ones' complement" in comment, as per Knuth.
87524         "value of type" -> "type or expression" in comment.
87525         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87526
87527 2005-03-26  Jim Meyering  <jim@meyering.net>
87528
87529         Comment nits.
87530         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87531         Correct typos: s/or/of/.
87532
87533 2005-03-26  Jim Meyering  <jim@meyering.net>
87534
87535         * modules/check-include-files: Move to ../ and rename to...
87536         * check-module: ...this.
87537
87538 2005-03-25  Jim Meyering  <jim@meyering.net>
87539
87540         * modules/xvasprintf (Files): Add xalloc.h.
87541
87542 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87543
87544         * modules/gettext (Files): config/config.rpath ->
87545         build-aux/config.rpath
87546         * modules/iconv (Files): Likewise.
87547         Problem reported by Oskar Liljeblad.
87548
87549 2005-03-23  Jim Meyering  <jim@meyering.net>
87550
87551         * modules/check-include-files: New script to check for
87552         missing dependencies, multiple includes, etc.
87553
87554         * modules/c-strtold (Depends-on): Add xalloc.
87555         * modules/c-strtod (Depends-on): Add xalloc.
87556         * modules/hash (Depends-on): Add xalloc.
87557         (Files): Remove lib/xalloc.h.
87558
87559         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87560         * modules/userspec (Files): Add lib/inttostr.h.
87561
87562 2005-03-23  Jim Meyering  <jim@meyering.net>
87563
87564         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87565
87566 2005-03-22  Jim Meyering  <jim@meyering.net>
87567
87568         * modules/stat-macros: New module.
87569         * modules/canonicalize, modules/euidaccess, modules/file-type,
87570         * modules/filemode, modules/lchown, modules/makepath,
87571         * modules/rmdir, modules/stat: Depend on new stat-macros module
87572         rather than listing lib/stat-macros.h manually.
87573         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87574
87575 2005-03-22  Jim Meyering  <jim@meyering.net>
87576
87577         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87578
87579 2005-03-22  Bruno Haible  <bruno@clisp.org>
87580
87581         * config/srclist.txt: Replace target directory 'config' with
87582         'build-aux'.
87583         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87584         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87585         ../build-aux/.
87586
87587 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87588
87589         * modules/chdir-long (Depends-on): Add mempcpy.
87590
87591         * modules/acl, modules/backupfile, modules/c-strtod,
87592         modules/c-strtold, modules/canon-host, modules/canonicalize,
87593         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87594         modules/exclude, modules/exitfail, modules/file-type,
87595         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87596         modules/getdate, modules/getline, modules/getpagesize,
87597         modules/getpass, modules/getugroups, modules/group-member,
87598         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87599         modules/inttostr, modules/long-options, modules/makepath,
87600         modules/md5, modules/memcasecmp, modules/memcoll,
87601         modules/modechange, modules/mountlist, modules/path-concat,
87602         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87603         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87604         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87605         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87606         modules/strftime, modules/strndup, modules/strverscmp,
87607         modules/timespec, modules/unlocked-io, modules/userspec,
87608         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87609         modules/yesno:
87610         Remove lib_SOURCES line from Makefile.am section, as this is now
87611         done automatically by the corresponding Autoconf macro.
87612
87613 2005-03-21  Jim Meyering  <jim@meyering.net>
87614
87615         Changes imported from coreutils.
87616
87617         * lib/cycle-check.c: Don't include xalloc.h.
87618
87619         * lib/path-concat.c: Don't include assert.h.
87620         (path_concat): Remove assertion that would have triggered
87621         for ABASE starting with more than one slash.
87622         Reported by Andreas Schwab.
87623
87624         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87625         properly when ABASE is an absolute file name.
87626         Correct the description of this function.
87627         Include <assert.h>.
87628         Add an assertion and a test driver.
87629         This fixes a bug introduced on 2004-07-02.
87630         Andreas Schwab reported the resulting failure of cp --parents:
87631         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87632
87633 2005-03-21  Jim Meyering  <jim@meyering.net>
87634
87635         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87637
87638 2005-03-21  Jim Meyering  <jim@meyering.net>
87639         and  Paul Eggert  <eggert@cs.ucla.edu>
87640
87641         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87642         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87643         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87644         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87645         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87646         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87647         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87648         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87649         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87650         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87651         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87652         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87653         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87654         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87655         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87656         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87657         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87658         for these modules.
87659
87660 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87661
87662         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87663         (which shouldn't happen), generate nothing instead of returning 0
87664         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87665
87666 2005-03-16  Bruno Haible  <bruno@clisp.org>
87667
87668         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87669         HAVE_LONGLONG_64BIT.
87670
87671 2005-03-16  Bruno Haible  <bruno@clisp.org>
87672
87673         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87674         HAVE_LONGLONG_64BIT.
87675
87676 2005-03-16  Bruno Haible  <bruno@clisp.org>
87677
87678         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87679         HAVE_LONGLONG_64BIT.
87680
87681 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87682
87683         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87684         reliably distinguish strftime failure from empty output on POSIX
87685         hosts.
87686
87687 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87688
87689         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87690         (iconv_string): Don't guess a size-zero buffer, as that might cause
87691         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87692         result would be 'too large', where 'too large' is (heuristically)
87693         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87694         overflow concerns.  This will prevent some unwanted malloc failures
87695         when the inputs are very large.
87696
87697 2005-03-15  Karl Berry  <karl@gnu.org>
87698
87699         * config/srclist.txt (config.rpath): from gettext.
87700         * config/config.rpath: update.
87701
87702 2005-03-15  Bruno Haible  <bruno@clisp.org>
87703
87704         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87705         to 'negate'.
87706
87707         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87708         variable.
87709
87710         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87711         results.
87712
87713 2005-03-14  Simon Josefsson  <jas@extundo.com>
87714
87715         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87716         <fx@gnu.org>.
87717
87718 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87719
87720         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87721         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87722         intprops.h.
87723         * lib/strtol.c: Likewise.
87724
87725 2005-03-14  Jim Meyering  <jim@meyering.net>
87726
87727         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87728         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87729         to be nonzero so that we (and caller) can detect the difference
87730         between a valid zero-length expansion and an error return, even
87731         when the underlying strftime fails before writing anything into
87732         that location.
87733
87734 2005-03-14  Bruno Haible  <bruno@clisp.org>
87735
87736         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87737         Update from GNU gettext 0.14.3.
87738
87739 2005-03-10  Jim Meyering  <jim@meyering.net>
87740
87741         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87742
87743 2005-03-10  Jim Meyering  <jim@meyering.net>
87744
87745         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87746         so that this module works on systems without fchdir.
87747
87748 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87749
87750         Factor int-properties macros into a single file, except for
87751         glibc-related files.
87752         * lib/intprops.h: New file.
87753         * lib/getloadavg.c: Include it instead of limits.h.
87754         (INT_STRLEN_BOUND): Remove.
87755         * lib/human.c: Include intprops.h.
87756         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87757         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87758         302/1000.
87759         * lib/inttostr.h: Include intprops.h instead of limits.h.
87760         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87761         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87762         for consistency with intprops.h.
87763         (time_t_is_integer, twos_complement_arithmetic): Use them.
87764         * lib/sig2str.h: Include <signal.h>, intprops.h.
87765         (INT_STRLEN_BOUND): Remove.
87766         * lib/strftime.c (TYPE_SIGNED): Remove.
87767         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87768         * lib/strtol.c: Adjust comments to match intprops.h.
87769         * lib/userspec.c: Include intprops.h.
87770         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87771         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87772         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87773         instead of rolling our own expressions.
87774         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87775
87776         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87777         instead of int.
87778         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87779         the right thing even if adding 1900 would overflow.  Similarly
87780         for tm_mon + 1 and tm_yday + 1.
87781         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87782         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87783         (DO_SIGNED_NUMBER): New macro.
87784         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87785
87786 2005-03-07  Bruno Haible  <bruno@clisp.org>
87787
87788         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87789
87790 2005-03-07  Bruno Haible  <bruno@clisp.org>
87791
87792         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87793
87794 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87795
87796         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87797         (func_import): Only replace files via --import when they have actually
87798         changed.
87799
87800 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87801
87802         * m4/mmap-anon.m4: New file.
87803         * m4/pagealign_alloc.m4: New file.
87804
87805 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87806             Bruno Haible  <bruno@clisp.org>
87807
87808         * modules/pagealign_alloc: New file.
87809         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87810
87811 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87812             Bruno Haible  <bruno@clisp.org>
87813
87814         * lib/pagealign_alloc.h: New file.
87815         * lib/pagealign_alloc.c: New file.
87816
87817 2005-03-03  Bruno Haible  <bruno@clisp.org>
87818
87819         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87820         Use an all-permissive copyright notice, recommended by RMS.
87821
87822 2005-03-02  Bruno Haible  <bruno@clisp.org>
87823
87824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87825         of AIX, the replacement has to be done only after <string.h> is
87826         included, therefore not in config.h. stpncpy.h does the replacement,
87827         and stpncpy.c uses it.
87828
87829 2005-03-02  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87832         stpncpy.c uses it.
87833
87834 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87835
87836         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87837         The workaround isn't strictly needed for POSIX conformance, and
87838         it's too much of a pain to configure and maintain.  We'll ask
87839         people to fix their kernels instead.
87840         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87841         (NANOSLEEP_BUG_WORKAROUND): Remove.
87842         (xnanosleep): Remove the workaround.
87843
87844 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87845
87846         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87847         Reported by Derek Price.
87848         (Include): Add "timespec.h".
87849
87850         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87851
87852 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87853
87854         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87855         to detect nanosleep bug.
87856
87857 2005-03-01  Bruno Haible  <bruno@clisp.org>
87858
87859         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87860
87861 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87862
87863         * modules/gethrxtime: New file.
87864         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87865         (Depends-on): Add gethrxtime.
87866         (configure.ac): Add gl_XNANOSLEEP.
87867         (Makefile.am): Remove lib_SOURCES line.
87868
87869 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87870
87871         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87872         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87873
87874 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87875
87876         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87877         * lib/timespec.h (gettime): Return void, since it always
87878         succeeds now.  All uses changed.
87879         * lib/gettime.c (gettime): Likewise.
87880         [HAVE_NANOTIME]: Prefer nanotime.
87881         Assume gettimeofday succeeds, as POSIX requires.
87882         Assime time () succeeds, since other code already does.
87883         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87884         (timespec_subtract): Remove.
87885         (NANOSLEEP_BUG_WORKAROUND): New constant.
87886         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87887         things considerably.  Use it only on GNU/Linux hosts, since the
87888         workaround shouldn't be needed elsewhere.
87889
87890 2005-02-24  Bruno Haible  <bruno@clisp.org>
87891
87892         * modules/gettext (Files): Add m4/glibc2.m4.
87893
87894 2005-02-24  Bruno Haible  <bruno@clisp.org>
87895
87896         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87897         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87898         * m4/progtest.m4:
87899         Update from GNU gettext 0.14.2.
87900         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87901
87902 2005-02-24  Bruno Haible  <bruno@clisp.org>
87903
87904         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87905         * lib/config.charset: Update from GNU gettext 0.14.2.
87906
87907 2005-02-24  Bruno Haible  <bruno@clisp.org>
87908
87909         * lib/gettext.h: Update from GNU gettext 0.14.2.
87910
87911 2005-02-23  Simon Josefsson  <jas@extundo.com>
87912
87913         * m4/iconvme.m4: New file.
87914
87915 2005-02-23  Jim Meyering  <jim@meyering.net>
87916
87917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87918         change.
87919         Thanks to Bruno Haible for catching it.
87920
87921 2005-02-22  Simon Josefsson  <jas@extundo.com>
87922
87923         * modules/iconvme: New file.
87924
87925         * MODULES.html.sh: Add iconvme.
87926
87927 2005-02-22  Simon Josefsson  <jas@extundo.com>
87928
87929         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87930
87931 2005-02-22  Simon Josefsson  <jas@extundo.com>
87932
87933         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87934
87935 2005-02-22  Jim Meyering  <jim@meyering.net>
87936
87937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87938         s/ifndef/ifdef/.
87939
87940 2005-02-20  Neil Conway  <neilc@samurai.com>
87941
87942         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87943         returned by OSX/Darwin if the specified buffer is not large
87944         enough for the hostname.
87945
87946 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87947
87948         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87949         pass it to _help, otherwise the latter coredumps trying to
87950         dereference state.root_argp.
87951
87952 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87953
87954         * modules/chdir-long (Depends-on): Add memrchr.
87955         * modules/memrchr (Files): Add lib/memrchr.h.
87956         (Include): "memrchr.h".
87957
87958 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87961
87962 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87963
87964         * lib/memrchr.h: New file.
87965         * lib/chdir-long.c: Include it.
87966         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87967         Don't bother including stddef.h.
87968
87969 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87970
87971         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87972         inclusion.
87973         Include <sys/types.h>, for dev_t.
87974         (ME_DUMMY, ME_REMOTE): Move from here....
87975         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87976         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87977         Dmitry V. Levin.
87978         Include mountlist.h first, to test the interface.
87979
87980 2005-01-29  Bruno Haible  <bruno@clisp.org>
87981
87982         * lib/progname.c (program_name): Initialize.
87983         Needed when linking statically on MacOS X.
87984
87985 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         Sync from coreutils.
87988         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87989         (Depends-on): Add c-strtod.
87990         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87991
87992 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87993
87994         Sync from coreutils.
87995         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87996
87997         Remove files that are specific to coreutils.
87998         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87999
88000 2005-01-28  Bruno Haible  <bruno@clisp.org>
88001
88002         * modules/javacomp: New file.
88003         * MODULES.html.sh (Java): Add javacomp.
88004
88005 2005-01-28  Bruno Haible  <bruno@clisp.org>
88006
88007         * m4/javacomp.m4: New file, from GNU gettext.
88008
88009 2005-01-28  Bruno Haible  <bruno@clisp.org>
88010
88011         * lib/javacomp.sh.in: New file, from GNU gettext.
88012         * lib/javacomp.h: New file, from GNU gettext.
88013         * lib/javacomp.c: New file, from GNU gettext.
88014
88015 2005-01-26  Simon Josefsson  <jas@extundo.com>
88016
88017         * lib/gai_strerror.c: Use GPL in header.
88018
88019 2005-01-26  Bruno Haible  <bruno@clisp.org>
88020
88021         * modules/javaexec: New file.
88022         * MODULES.html.sh (Java): Add javaexec.
88023
88024 2005-01-26  Bruno Haible  <bruno@clisp.org>
88025
88026         * m4/javaexec.m4: New file, from GNU gettext.
88027
88028 2005-01-26  Bruno Haible  <bruno@clisp.org>
88029
88030         * lib/javaexec.sh.in: New file, from GNU gettext.
88031         * lib/javaexec.h: New file, from GNU gettext.
88032         * lib/javaexec.c: New file, from GNU gettext.
88033
88034 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88035
88036         * modules/lchown (Depends-on): Remove lchown.h
88037
88038 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88039
88040         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88041         must be defined if the header file was not found, in order
88042         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88043
88044 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88045
88046         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88047         initializers for struct pentry_state.
88048         (__argp_error): Check return value of __asprintf
88049         (__argp_failure): Translate error message
88050
88051         * lib/argp-parse.c: Removed braces around the expansion of N_()
88052
88053 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88054
88055         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88056         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88057         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88058         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88059         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88060         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88061         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88062         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88063         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88064         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88065         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88066         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88067         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88068         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88069         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88070         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88071         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88072         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88073         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88074         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88075         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88076         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88077         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88078         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88079         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88080         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88081         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88082         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88083         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88084         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88085         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88086         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88087         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88088         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88089         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88090         Use an all-permissive copyright notice, recommended by RMS.
88091
88092 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88093
88094         * modules/chdir-long (Depends-on): Remove mempcpy.
88095
88096 2005-01-21  Jim Meyering  <jim@meyering.net>
88097
88098         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88099         same value as for Solaris 9.
88100
88101         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88102         component length.  This included changing the parameter to be
88103         of type `char *' rather than `char const *'.
88104         * lib/chdir-long.h (chdir_long): Update prototype.
88105
88106         * lib/openat.c (fdopendir, fstatat): New functions.
88107         * lib/openat.h: Include headers required for use of DIR and struct
88108         stat.
88109         [AT_SYMLINK_NOFOLLOW]: Define.
88110         (fdopendir, fstatat): Add prototypes.
88111
88112 2005-01-21  Bruno Haible  <bruno@clisp.org>
88113
88114         * modules/classpath: New file.
88115         * MODULES.html.sh (Java): Add classpath.
88116
88117 2005-01-21  Bruno Haible  <bruno@clisp.org>
88118
88119         * lib/classpath.h: New file, from GNU gettext.
88120         * lib/classpath.c: New file, from GNU gettext.
88121
88122 2005-01-20  Simon Josefsson  <jas@extundo.com>
88123
88124         * modules/version-etc-fsf: New file.
88125
88126 2005-01-20  Simon Josefsson  <jas@extundo.com>
88127
88128         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88129         * lib/version-etc.c: Remove version_etc_copyright.
88130         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88131         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88132
88133 2005-01-20  Simon Josefsson  <jas@extundo.com>
88134
88135         * lib/base64.h (isbase64): Add.
88136
88137         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88138         using a unsigned prototype, don't inline.
88139         (base64_decode): Use it.
88140
88141 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88142
88143         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88144         it.
88145
88146 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88147
88148         * lib/save-cwd.c (save_cwd): Remove code to support the case
88149         where fchdir is missing or flaky.
88150
88151 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88152
88153         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88154
88155 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88156
88157         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88158         AC_LIBSOURCES now does this.
88159         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88160         with new ullong_max module.
88161
88162 2005-01-19  Bruno Haible  <bruno@clisp.org>
88163
88164         * modules/sh-quote: New file.
88165         * MODULES.html.sh (Executing programs): Add sh-quote.
88166
88167 2005-01-19  Bruno Haible  <bruno@clisp.org>
88168
88169         * lib/sh-quote.h: New file, from GNU gettext.
88170         * lib/sh-quote.c: New file, from GNU gettext.
88171
88172 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88173
88174         Merge from coreutils.
88175         * m4/ullong_max.m4: New file.
88176         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88177         (gl_MACROS): Assume localeconv exists.
88178
88179 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88180
88181         Merge changes from coreutils, as described below in several
88182         changelogs dated today.
88183
88184         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88185         (O_DIRECTORY): Remove; not needed here, since "." must be
88186         a directory.  All uses removed.
88187         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88188         universal on Suns, and we also need to test for IRIX.
88189         Revamp code to use 'if' rather than '#if'.
88190         Avoid unnecessary comparison of cwd->desc to 0.
88191
88192         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88193         for known valid error numbers rather than observed invalid ones.
88194
88195 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88196
88197         * modules/ullong_max: New file.
88198
88199         * modules/chdir-long, modules/openat: New files.
88200         * modules/save-cwd (Depends-on): Depend on chdir-long.
88201         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88202
88203 2005-01-18  Jim Meyering  <jim@meyering.net>
88204
88205         Merge from coreutils.
88206         * m4/chdir-long.m4, m4/openat.m4: New files.
88207         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88208         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88209         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88210         is sane and DOES follow symlinks.  Besides, testing 20 different
88211         systems found no broken chown implementations.
88212         Prompted by a change in rsync's copy of this macro.
88213         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88214
88215         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88216
88217         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88218         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88219         NULL-means-set-to-current-time semantics.
88220         Remove temporary file immediately, rather than waiting
88221         for configure's at-exit trap code to do it.
88222
88223 2005-01-18  Jim Meyering  <jim@meyering.net>
88224
88225         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88226
88227         * lib/utimens.c (futimens): Account for the fact that futimes
88228         can also fail with errno == ENOSYS or errno == ENOENT.
88229         Patch from Dmitry V. Levin.
88230
88231         Change the name of the robust chdir function from chdir to chdir_long.
88232         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88233         (restore_cwd): Use chdir_long, not chdir.
88234         * lib/chdir-long.c: Renamed from chdir.c.
88235         * lib/chdir-long.h: Renamed from chdir.h.
88236         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88237         Hurd.
88238
88239 2005-01-18  Bruno Haible  <bruno@clisp.org>
88240
88241         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88242         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88243         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88244         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88245         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88246         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88247         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88248         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88249         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88250         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88251         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88252         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88253         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88254         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88255         Use an all-permissive copyright notice, recommended by RMS.
88256
88257 2005-01-18  Bob Proulx  <bob@proulx.com>
88258
88259         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88260         simplify offsetof() macro construct to avoid compile failure with
88261         native HP-UX 11.0 ANSI C compiler.
88262
88263 2005-01-17  Bruno Haible  <bruno@clisp.org>
88264
88265         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88266         redundant because stpncpy.m4 takes care of it.
88267
88268 2005-01-17  Bruno Haible  <bruno@clisp.org>
88269
88270         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88271
88272 2005-01-17  Bruno Haible  <bruno@clisp.org>
88273
88274         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88275         used.
88276
88277 2005-01-17  Bruno Haible  <bruno@clisp.org>
88278
88279         * lib/fwriteerror.h (fwriteerror): Change specification to include
88280         fclose.
88281         * lib/fwriteerror.c: Include <stdbool.h>.
88282         (fwriteerror): At the end, close the file stream. Record whether
88283         stdout was already closed.
88284
88285 2005-01-17  Bruno Haible  <bruno@clisp.org>
88286
88287         * lib/execute.c (environ): Declare if needed.
88288         * lib/pipe.c (environ): Likewise.
88289         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88290
88291 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88292
88293         * modules/argp: Depend on vsnprintf
88294
88295 2005-01-10  Jim Meyering  <jim@meyering.net>
88296
88297         * modules/closeout (Depends-on): Add atexit.
88298
88299 2005-01-06  Bruno Haible  <bruno@clisp.org>
88300
88301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88302
88303 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88304
88305         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88306         definitions to be after all include files, to avoid collisions.
88307         Problem reported by Bob Proulx.
88308
88309 2005-01-04  Jim Meyering  <jim@meyering.net>
88310
88311         Changes imported from coreutils.
88312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88313         as the mkstemp template, use a temporary directory and an
88314         8.3-friendly template to avoid trouble on systems like DJGPP.
88315         Reported by Juan M. Guerrero via Stepan Kasal.
88316         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88317         close. Remove the temporary directory right away, rather than waiting
88318         for configure's at-exit trap code to do it.
88319         Suggestion from Stepan Kasal.
88320
88321 2005-01-01  Simon Josefsson  <jas@extundo.com>
88322
88323         * gnulib-tool: Print #include directives when --import'ing.
88324
88325 2004-12-28  Simon Josefsson  <jas@extundo.com>
88326
88327         * tests/test-base64.c: Include required header files.  Remove
88328         unused variables.
88329
88330 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88331
88332         * modules/error (Depends-on): Remove gettext.
88333
88334 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88335
88336         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88337         not needed.  This removes a dependency on the gettext module.
88338         [defined _LIBC]: Do not include <libintl.h>; not needed.
88339
88340 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88341
88342         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88343         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88344
88345 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88346
88347         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88348         HAVE_DECL_STRTOLD.
88349
88350 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88351
88352         * modules/getdate (Depends-on): Remove alloca-opt.
88353
88354 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88355
88356         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88357
88358 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88359
88360         * lib/argp-parse.c: Include <stddef.h>.
88361         (alignof, alignto): New macros.
88362         (parser_init): Don't assume that void * is aligned sufficiently
88363         for struct option.
88364
88365         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88366         need to extend the stack.
88367         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88368         large.
88369
88370 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88371
88372         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88373
88374 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88375
88376         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88377         (2004-10-24) change.  Apparently this was a false alarm.
88378
88379         * modules/getdate: Depend on alloca-opt, not alloca.
88380
88381 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88382
88383         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88384         Remove now-obsolete comment about AIX.
88385         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88386         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88387         (YYMAXDEPTH): New macro.
88388
88389 2004-12-18  Simon Josefsson  <jas@extundo.com>
88390
88391         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88392
88393 2004-12-18  Bruno Haible  <bruno@clisp.org>
88394
88395         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88396
88397 2004-12-18  Bruno Haible  <bruno@clisp.org>
88398
88399         * lib/fatal-signal.c (fatal_signals): Make non-const.
88400         (init_fatal_signals): New function.
88401         (uninstall_handlers, install_handlers): Ignore signals that were set to
88402         SIG_IGN.
88403         (at_fatal_signal): Call init_fatal_signals.
88404         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88405         SIG_IGN.
88406         Reported by Paul Eggert.
88407
88408 2004-12-18  Bruno Haible  <bruno@clisp.org>
88409
88410         * doc/alloca.texi: New file.
88411         * doc/alloca-opt.texi: New file.
88412
88413 2004-12-17  Jim Meyering  <jim@meyering.net>
88414
88415         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88416         Otherwise, install-sh could exit with improper exit status when
88417         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88418
88419 2004-12-16  Simon Josefsson  <jas@extundo.com>
88420
88421         * tests/test-base64.c: Add license.
88422
88423 2004-12-15  Stepan Kasal  <address@hidden>
88424
88425         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88426
88427 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88428
88429         * modules/getcwd (Files): Add m4/d-ino.m4.
88430         Suggested by Mark D. Baushke.
88431
88432 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88433
88434         * lib/getdate.y (textint): New member "negative".
88435         (time_zone_hhmm): New function.
88436         Expect 14 shift-reduce conflicts, not 13.
88437         (o_colon_minutes): New rule.
88438         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88439         (yylex): Set the "negative" member of signed numbers.
88440
88441 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88442
88443         * doc/getdate.texi (Time of day items, Time zone items):
88444         Describe new formats +00:00, UTC+00:00.
88445
88446 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88447
88448         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88449         spurious "-l"s.  Problem reported by Stepan Kasal.
88450
88451 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88452
88453         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88454         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88455
88456 2004-12-04  Simon Josefsson  <jas@extundo.com>
88457
88458         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88459         Vandoorselaere <yoann@prelude-ids.org>.
88460
88461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88462
88463         Changes imported from coreutils.
88464         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88465         exist.
88466         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88467
88468 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88469
88470         Changes imported from coreutils.
88471         * lib/hard-locale.c: Assume <locale.h> exists.
88472         Include "strdup.h".
88473         (GLIBC_VERSION): New macro.
88474         (hard_locale): Assume setlocale exists.
88475         Rewrite to avoid #ifdef.
88476         Use strdup rather than malloc + strcpy.
88477         * lib/human.c: Assume <locale.h> exists.
88478         (human_readable): Assume localeconv exists.
88479
88480 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88481
88482         * modules/hard-locale (Depends-on): Add strdup.
88483
88484 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88485
88486         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88487         convert T2, not T.  (Imported from libc.)
88488
88489 2004-11-30  Simon Josefsson  <jas@extundo.com>
88490
88491         * modules/restrict (License): Change to LGPL.
88492
88493 2004-11-30  Simon Josefsson  <jas@extundo.com>
88494
88495         * m4/restrict.m4: Add copyright and copying conditions.
88496
88497 2004-11-30  Simon Josefsson  <jas@extundo.com>
88498
88499         * m4/base64.m4: New file.
88500
88501 2004-11-30  Simon Josefsson  <jas@extundo.com>
88502
88503         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88504         base64.
88505
88506         * tests/test-base64.c: New file.
88507
88508         * modules/base64: New file.
88509
88510 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88511
88512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88513         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88514
88515         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88516
88517 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88518
88519         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88520         (__getcwd.c): Don't restore errno; glibc doesn't.
88521         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88522         first, falling back to our code only if its results look suspicious.
88523         Ensure that the resulting buffer is only as large as necessary.
88524
88525         * lib/readutmp.c: Include readutmp.h first.
88526         Include <errno.h>, since readutmp.h no longer does that.
88527         * lib/readutmp.h: Don't include <errno.h>,
88528         <sys/param.h>, <time.h>; not needed to establish interface.
88529         (errno): Remove decl.
88530         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88531         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88532         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88533
88534 2004-11-28  Simon Josefsson  <jas@extundo.com>
88535
88536         * lib/base64.h, base64.c: New file.
88537
88538 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88539
88540         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88541
88542 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88543
88544         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88545         (Depends-on): Remove pathmax, same.  Add mempcpy.
88546         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88547         (Makefile.am): Append getcwd.h to lib_SOURCES.
88548         (Include): Add getcwd.h.
88549         (Maintainer): Change from Jim Meyering to "all, glibc",
88550         since getdate now uses intended-for-glibc code.
88551         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88552         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88553
88554 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88555
88556         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88557         HP's ANSI C compiler.
88558         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88559         Declaring int functions causes warnings on some modern systems and
88560         shouldn't be needed to compile on ancient ones.
88561         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88562         defined.
88563
88564         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88565         with the following changes.
88566         (__set_errno): Parenthesize properly.
88567         Include <stdbool.h>.
88568         (MIN, MAX, MATCHING_INO): New macros.
88569         (__getcwd): Define with prototype, not K&R form.
88570         Use heuristics to allocate default buffer on stack if possible.
88571         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88572         behavior, and to avoid the PATH_MAX limit when computing
88573         ../../../../...
88574         Use MATCHING_INO to compare inode number to file.
88575         Check for arithmetic overflow in size calculations.
88576         Fix bug in reallocation of dot array that caused getcwd to fail
88577         on directories nested deeper than 75.
88578         Be more careful about saving errno on error.
88579         Do not use realloc; use only free+malloc, as this is a bit
88580         more flexible and avoids a needless copy operation.
88581         Do not inspect st_dev and st_ino for symbolic links; POSIX
88582         doesn't specify the latter.
88583         Check for closedir errors.
88584         Avoid needless casts.
88585         Use "#ifdef weak_alias" around weak_alias, to be like other
88586         glibc code.
88587         The following changes to getcwd.c have effect only when used in
88588         gnulib; they have no effect inside glibc proper.
88589         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88590         as alloca isn't used.
88591         (alloca, __alloca): Likewise.
88592         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88593         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88594         unconditionally, as gnulib assumes C89 or better.
88595         Do not include <sys/param.h>.
88596         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88597         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88598         better.
88599         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88600         Include <dirent.h> in a way that is compatible with modern Autoconf.
88601         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88602         New macros, if not already defined.
88603         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88604         Use "_LIBC", not "defined _LIBC", for consistency.
88605         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88606         a mempcpy module.
88607         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88608         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88609         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88610         credit only to Jim Meyering and adjust the copyright dates.
88611         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88612         <stdlib.h>, <unistd.h>, "pathmax.h".
88613         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88614         (INITIAL_BUFFER_SIZE): Remove.
88615         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88616
88617 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88618
88619         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88620         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88621         Use the _ONCE methods, for efficiency.
88622         Check for fcntl.h.  In test program, include <errno.h>
88623         and <fcntl.h> if available.  Remove old K&R cruft from
88624         test program.  Check for common errors in GNU/Linux,
88625         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88626         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88627         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88628         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88629         name accordingly.
88630         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88631         accommodate new getcwd.c.
88632         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88633         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88634         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88635         that's all we need now.
88636
88637 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88638
88639         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88640         argp-parse.c depends on getopt internals, that means we should
88641         always use our getopt, to be on the safe side.
88642         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88643         order not to spoil the result of an eventual previous invocation
88644         of gl_GETOPT_SUBSTITUTE.
88645
88646 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88647
88648         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88649         redefinition warnings. To avoid them, include the defines
88650         in `#if !defined __need_getopt ... #endif'. The only place
88651         where __getopt_argv_const is used is in definitions
88652         of getopt_long and getopt_long_only below, which are as well
88653         protected by `#ifndef __need_getopt'.
88654         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88655         __need_getopt after including <stdio.h> and <unistd.h> These
88656         headers might have defined it.
88657
88658 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88659
88660         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88661
88662 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88663
88664         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88665         (futimens): New function, which uses futimes if available.
88666         (futimens, utimens): Support timespec==NULL, with same semantics
88667         as utime and utimens.
88668         * lib/utimens.h (futimens): New decl.
88669
88670 2004-11-23  Jim Meyering  <jim@meyering.net>
88671
88672         * lib/getopt_.h: Remove trailing blanks.
88673
88674 2004-11-23  Jim Meyering  <jim@meyering.net>
88675
88676         * lib/__fpending.c: Add comment.
88677
88678 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88679
88680         * modules/canonicalize (Depends-on): Add xreadlink.
88681         Problem reported by James Youngman.
88682
88683 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88684
88685         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88686         New macros.
88687         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88688         optopt): Use them instead of invoking ## directly; otherwise, the
88689         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88690
88691 2004-11-19  Bruno Haible  <bruno@clisp.org>
88692
88693         * lib/strtok_r.c: Move comments from here...
88694         * lib/strtok_r.h: ... to here.
88695
88696 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88697
88698         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88699         implementations that mishandle size_t overflow.
88700
88701 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88702
88703         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88704         might fail.  Problem reported by Yoann Vandoorselaere.
88705         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88706         implementations that mishandle size_t overflow.
88707
88708 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88709
88710         * modules/canon-host (Depends-on): Add strdup.
88711
88712 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88713
88714         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88715
88716 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88717
88718         * lib/canon-host.c: Include "strdup.h".
88719         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88720         Use strdup instead of malloc/strcpy to duplicate strings.
88721
88722         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88723         (human_space_before_unit): New constant.
88724         * lib/human.c (human_readable): Support it.
88725
88726         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88727         (xgetcwd): Set errno correctly when failing.
88728         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88729         the failure is actually due to a PATH_MAX problem.
88730
88731         Further getopt changes to make it more likely that glibc will
88732         buy the changes back.
88733         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88734         (getopt): Use it, so to preserve glibc semantic
88735         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88736         when compiling for libc.
88737         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88738         (getopt_long, getopt_long_only): Use it.
88739
88740         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88741         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88742         (getopt): Argv is now char * const *, as per standard.
88743         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88744         not char *__getopt_argv_const *.
88745         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88746         _getopt_long_only_r): Likewise.
88747         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88748         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88749         _getopt_long_r, _getopt_long_only_r): Likewise.
88750         * lib/getopt_.h (__getopt_argv_const): Remove.
88751         (getopt): Argv is now char * const *, as per standard.
88752
88753         * lib/getdate.y (tORDINAL): New token.
88754         (day, relunit): Allow it for relative times.
88755         (relative_time_table): Use tORDINAL for ordinals.
88756
88757 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88758
88759         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88760         Document that "second" isn't allowed as an ordinal number.
88761
88762 2004-11-16  Jim Meyering  <jim@meyering.net>
88763
88764         * modules/closeout (Depends-on): Add fpending.
88765
88766 2004-11-15  Jim Meyering  <jim@meyering.net>
88767
88768         * lib/closeout.c: Include "__fpending.h" once again.
88769         Include <stdbool.h>.
88770         (close_stdout): Don't fail just because stdout was closed initially,
88771         since some programs don't write to stdout in the normal course of
88772         operation (other than --version and --help), and we don't want this
88773         function to make e.g. `touch file >&-' fail.
88774         But do fail if it was closed and someone has tried to write to it.
88775         E.g., `printf foo >&-' must fail.
88776
88777 2004-11-13  Jim Meyering  <jim@meyering.net>
88778
88779         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88780
88781 2004-11-12  Simon Josefsson  <jas@extundo.com>
88782
88783         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88784         small doc fix is still pending.
88785
88786 2004-11-11  Simon Josefsson  <jas@extundo.com>
88787
88788         * modules/strtok_r: New file.
88789
88790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88791         strtok_r.
88792
88793 2004-11-11  Simon Josefsson  <jas@extundo.com>
88794
88795         * m4/strtok_r.m4: New file.
88796
88797         * m4/getopt.m4: Replace opterr.
88798
88799 2004-11-11  Simon Josefsson  <jas@extundo.com>
88800
88801         * lib/strtok_r.h, strtok_r.c: New file.
88802
88803 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88804
88805         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88806         of replacing opterr, getopt, etc.  This should handle the
88807         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88808
88809 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88810
88811         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88812         we can stop lying to compilers about the constness of argv when we
88813         are compiled outside glibc.
88814         (getopt, getopt_long, getopt_long_only): Use it.
88815         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88816         _getopt_internal, getopt): Likewise.
88817         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88818         _getopt_long_only_r): Likewise.
88819         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88820         _getopt_long_r, _getopt_long_only_r): Likewise.
88821
88822         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88823         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88824         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88825         the other external symbols.
88826         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88827         declaration, since the above renaming now works around collisions.
88828
88829 2004-11-11  Jim Meyering  <jim@meyering.net>
88830
88831         * lib/linebreak.c: Remove trailing blanks.
88832         * lib/alloca_.h: Likewise.
88833         * lib/acosl.c: Likewise.
88834         * lib/euidaccess.c: Likewise.
88835         * lib/allocsa.h: Likewise.
88836
88837 2004-11-10  Simon Josefsson  <jas@extundo.com>
88838
88839         * m4/getaddrinfo.m4: New file.
88840
88841 2004-11-10  Simon Josefsson  <jas@extundo.com>
88842
88843         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88844
88845 2004-11-10  Simon Josefsson  <jas@extundo.com>
88846
88847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88848         getaddrinfo.
88849
88850         * modules/getaddrinfo: New file.
88851
88852 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88853
88854         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88855
88856 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88857
88858         * lib/mktime.c (SHR): New macro, which is a portable
88859         substitute for >> that should work even on Crays.
88860         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88861         Problem reported by Mark D. Baushke in
88862         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88863         * lib/getdate.y (SHR): Likewise.
88864         (tm_diff): Use it.
88865         * lib/strftime.c (SHR): Likewise.
88866         (tm_diff): Use it.
88867         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88868         quote_these_too, so that right shifts are well defined.  All uses
88869         changed.
88870
88871 2004-11-10  Jim Meyering  <jim@meyering.net>
88872
88873         Ensure that no close failure goes unreported.
88874         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88875         return early when it seems there's nothing to flush.
88876         Don't include __fpending.h.
88877
88878 2004-11-10  Jim Meyering  <jim@meyering.net>
88879
88880         * modules/closeout (Depends-on): Remove fpending.
88881
88882 2004-11-10  Jim Meyering  <jim@meyering.net>
88883
88884         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88885
88886 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88887
88888         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88889         gl_FUNC_STRFTIME.
88890         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88891         and AC_REQUIRE when possible, to avoid duplicate checks.
88892         Check for <wchar.h>.
88893
88894 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88895
88896         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88897
88898 2004-11-09  Bruno Haible  <bruno@clisp.org>
88899
88900         * m4/sockpfaf.m4: New file.
88901
88902 2004-11-05  Bruno Haible  <bruno@clisp.org>
88903
88904         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88905         Reported by Mark D. Baushke <mdb@cvshome.org>.
88906
88907 2004-11-04  Bruno Haible  <bruno@clisp.org>
88908
88909         2004-09-11  Bruno Haible  <bruno@clisp.org>
88910                 * allocsa.valgrind: New file.
88911         2004-02-06  Bruno Haible  <bruno@clisp.org>
88912                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88913                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88914                 Reported by Christopher Seip <chris.seip@hp.com>.
88915
88916 2004-11-04  Bruno Haible  <bruno@clisp.org>
88917
88918         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88919         (Makefile.am): Distribute it.
88920
88921 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88922
88923         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88924         with errno == ERANGE if the buffer is too small.
88925         Problem reported by Mark D. Baushke.
88926
88927 2004-11-03  Albert Chin  <china@thewrittenword.com>
88928             Paul Eggert  <eggert@cs.ucla.edu>
88929
88930         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88931         equivalent, substitute $ac_type for equivalent type rather than
88932         blindly using uint32_t *always* which won't work if uint32_t is not
88933         available.  Define _UINT32_T to work around typedef of uint32_t if
88934         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88935         2.5.1.
88936
88937 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88938
88939         * m4/jm-macros.m4: Sync from coreutils.
88940         (gl_MACROS): Check for mbrlen, for pathchk.
88941         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88942
88943 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88944
88945         * lib/xreadlink.c (MAXSIZE): New macro.
88946         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88947         size does not exceed MAXSIZE.  Avoid cast.
88948         As suggested by Mark D. Baushke in
88949         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88950         if readlink fails with buffer size just under MAXSIZE, try again
88951         with MAXSIZE.
88952
88953 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88954
88955         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88956
88957 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88958         and  Paul Eggert  <eggert@cs.ucla.edu>
88959
88960         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88961         (get_date): Overparenthesize to avoid GCC warning.
88962
88963 2004-11-02  Bruno Haible  <bruno@clisp.org>
88964
88965         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88966         returns void.
88967
88968 2004-11-02  Bruno Haible  <bruno@clisp.org>
88969
88970         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88971         function returns void.
88972
88973 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88974
88975         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88976         fflush_unlocked, flockfile, funlockfile, funlockfile,
88977         fputs_unlocked, putc_unlocked.
88978
88979 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88980
88981         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88982         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88983         already declared.
88984
88985 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88986
88987         * modules/getdate (Files): Add doc/getdate.texi.
88988         (Depends-on): Add setenv, xalloc.
88989
88990 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88991
88992         * lib/getdate.y: Add support for TZ="foo" within a date string.
88993         Fix some bugs near time_t boundaries.  Reject dates with
88994         out-of-range components, e.g., "Sept 31".
88995         Include <stdlib.h>, "setenv.h", "xalloc.h".
88996         (ISDIGIT_LOCALE): Remove; unused.
88997         Note that the TZ and time functions used here are not reentrant.
88998         (mktime_ok, get_tz): New functions.
88999         (TZBUFSIZE): New constant.
89000         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89001         This requires that we sometimes generate our own TZ="XXX..." setting.
89002
89003 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89004
89005         * doc/getdate.texi: New file, from coreutils with modifications for
89006         the new TZ parsing.
89007
89008 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89009
89010         * lib/mktime.c (not_equal_tm): Remove redundant check.
89011
89012 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89013
89014         * modules/regex (lib_SOURCES): Add regex.c.
89015         Reported by James Youngman in
89016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89017
89018 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89019
89020         * lib/getdate.y: Use Bison 1.875 features, and some minor
89021         code cleanups.  This change does not affect semantics.
89022         Don't include <stdlib.h>; no longer needed.
89023         Don't include unlocked-io.h; only the "#if TEST" code uses
89024         stdio, and performance isn't crucial there.
89025         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89026         Bison 1.875 features as described below.
89027         All uses of "PC." replaced by "pc->".
89028         (YYSTYPE): Add a forward declaration.
89029         (yylex, yyerror): Use full prototypes in forward decls.
89030         Use "%pure-parser" rather than obsolescent "%pure_parser".
89031         Use %parse-param and %lex-param instead of obsolescent
89032         YYPARSE_PARAM and YYLEX_PARAM.
89033         (meridian_table, month_and_day_table, time_units_table,
89034         relative_time_table, time_zone_table, military_table,
89035         lookup_zone, lookup_word, get_date):
89036         Use NULL instead of 0 where appropriate.
89037         (to_hour): Avoid abort (), to avoid a dependency on
89038         stdlib.h.
89039         (yyerror, yylex): Now accepts parser_control * arg.
89040         (main) [TEST]: Use '\0' rather than 0 for char.
89041
89042 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89043
89044         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89045
89046 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89047
89048         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89049         It's now the caller's responsibility to handle the case where
89050         !HAVE_GETPAGESIZE && !defined getpagesize.
89051
89052         * lib/mktime.c (leapyear): Arg is long int, not int.
89053
89054 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89055
89056         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89057
89058 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89059
89060         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89061         missing.  Problem reported by James Youngman.
89062
89063 2004-10-16  Simon Josefsson  <jas@extundo.com>
89064
89065         * gnulib-tool: Fix comments.  Fix parse problem.
89066         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89067
89068 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89069
89070         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89071         implementation of getopt_long.  Problem reported by Alexander Taler in:
89072         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89073
89074 2004-10-15  Bruno Haible  <bruno@clisp.org>
89075
89076         * gnulib-tool: Untabify. Initialize supplied_libname.
89077         (func_usage): More homogenous output.
89078         (func_modules_transitive_closure, func_modules_to_filelist,
89079         func_emit_lib_Makefile_am): New functions.
89080         (func_import): New function, extracted from big case statement. Use
89081         func_get_license, func_modules_transitive_closure,
89082         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89083         opt_lgpl. Don't use test -a, as it's not portable.
89084         (func_create_testdir): Use func_modules_transitive_closure,
89085         func_modules_to_filelist, func_emit_lib_Makefile_am.
89086
89087 2004-10-15  Bruno Haible  <bruno@clisp.org>
89088
89089         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89090
89091 2004-10-15  Bruno Haible  <bruno@clisp.org>
89092
89093         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89094         the portions belonging to each module.
89095         Suggested by Derek Robert Price <derek@ximbiot.com>.
89096
89097 2004-10-12  Simon Josefsson  <jas@extundo.com>
89098
89099         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89100         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89101         to real functions.
89102
89103 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89104
89105         * modules/vsnprintf: New file.
89106
89107 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89108
89109         * m4/vsnprintf.m4: New file.
89110
89111 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89112
89113         * lib/vsnprintf.h: New file.
89114         * lib/vsnprintf.c: New file.
89115
89116 2004-10-11  Bruno Haible  <bruno@clisp.org>
89117
89118         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89119         vsnprintf.
89120
89121 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89122
89123         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89124
89125 2004-10-07  Bruno Haible  <bruno@clisp.org>
89126
89127         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89128         fits into the provided buffer.
89129
89130 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         * lib/diacrit.c, diacrit.h: Add GPL notice.
89133
89134         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89135         notice.
89136         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89137         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89138         This avoids a potential constant-folding bug.
89139
89140 2004-10-05  Bruno Haible  <bruno@clisp.org>
89141
89142         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89143         for the declaration of strsep.
89144
89145 2004-10-05  Bruno Haible  <bruno@clisp.org>
89146
89147         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89148
89149 2004-10-04  Simon Josefsson  <jas@extundo.com>
89150
89151         * modules/memmem: New file.
89152         * tests/test-memmem.c: New file.
89153         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89154
89155 2004-10-04  Simon Josefsson  <jas@extundo.com>
89156
89157         * m4/memmem.m4: New file.
89158
89159 2004-10-04  Simon Josefsson  <jas@extundo.com>
89160
89161         * lib/memmem.h: New file.
89162         * lib/memmem.c: New file, taken from glibc.
89163
89164 2004-10-04  Simon Josefsson  <jas@extundo.com>
89165
89166         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89167         '#ifdef USE_UNLOCKED_IO'.
89168
89169 2004-10-04  Simon Josefsson  <jas@extundo.com>
89170
89171         * config/srclist.txt: Add memmem from glibc.
89172
89173 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89174
89175         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89176
89177         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89178         modules/exclude, modules/getdate, modules/getline,
89179         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89180         modules/getusershell, modules/linebuffer, modules/md5,
89181         modules/mountlist, modules/posixtm, modules/readtokens,
89182         modules/readutmp, modules/regex, modules/sha1,
89183         modules/version-etc, modules/yesno:
89184         Remove dependency on unlocked-io.
89185
89186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89187
89188         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89189
89190         * m4/unlocked-io.m4: Add copyright notice.
89191         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89192
89193 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89194
89195         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89196         * lib/xmalloc.c (xmemdup): Likewise.
89197         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89198         XFREE): Remove these long-obsolescent macros.
89199         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89200         * lib/xstrdup.c: Remove.
89201
89202         * lib/regex.c (re_comp): Cast gettext return value to char *,
89203         Problem reported by Martin Neitzel via Mark D. Baushke.
89204
89205 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89206
89207         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89208         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89209         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89210         regex.c, sha1.c, version-etc.c, yesno.c:
89211         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89212         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89213         the includer's responsibility.
89214
89215         Sync from coreutils.
89216
89217         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89218         points to the start of a string, as the C Standard says the
89219         resulting behavior is undefined.
89220
89221         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89222         simple -> simple_backups, numbered_existing ->
89223         numbered_existing_backups, numbered -> numbered_backups
89224         to avoid shadowing problems.  All uses changed.
89225         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89226         * lib/backupfile.c (check_extension, numbered_backup):
89227         Rename locals to avoid shadowing 'basename'.
89228         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89229         once.
89230
89231         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89232         * lib/.cvsignore: Add getopt.h.
89233
89234 2004-10-04  Bruno Haible  <bruno@clisp.org>
89235
89236         * modules/README: New file.
89237         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89238         not a module.
89239
89240 2004-10-02  Jim Meyering  <jim@meyering.net>
89241
89242         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89243
89244 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89245
89246         * modules/strsep: New file.
89247
89248 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89249
89250         * m4/strsep.m4: New file.
89251
89252 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89253
89254         * lib/strsep.h: New file.
89255         * lib/strsep.c: New file.
89256
89257 2004-10-01  Simon Josefsson  <jas@extundo.com>
89258
89259         * lib/snprintf.c (snprintf): Handle size==0.
89260
89261 2004-10-01  Simon Josefsson  <jas@extundo.com>
89262             Bruno Haible  <bruno@clisp.org>
89263
89264         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89265         (snprintf): Declare 'args'.
89266
89267 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89268
89269         * lib/snprintf.c: Remove comments as to why each header is needed.
89270
89271 2004-10-01  Bruno Haible  <bruno@clisp.org>
89272
89273         * MODULES.html.sh: Add strsep.
89274
89275 2004-09-30  Simon Josefsson  <jas@extundo.com>
89276
89277         * modules/snprintf: New file.
89278
89279 2004-09-30  Simon Josefsson  <jas@extundo.com>
89280
89281         * m4/snprintf.m4: New file.
89282
89283 2004-09-30  Simon Josefsson  <jas@extundo.com>
89284
89285         * lib/snprintf.h, lib/snprintf.c: New files.
89286
89287 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89288
89289         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89290         (hol_entry_help): Never translate an empty string.
89291         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89292         * lib/argp.h (OPTION_NO_TRANS): New option.
89293
89294 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89295
89296         * modules/argp (Maintainer): Replace Simon Josefsson
89297         by Sergey Poznyakoff.
89298
89299 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89300
89301         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89302         changes merged back into glibc.
89303
89304 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89305
89306         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89307
89308 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89309
89310         * lib/xvasprintf.c: Include xalloc.h.
89311         (xvasprintf): Use xalloc_die, not xmalloc_die.
89312
89313 2004-09-29  Bruno Haible  <bruno@clisp.org>
89314
89315         * modules/alloca-opt: New file, derived from modules/alloca.
89316         * modules/allocsa: Depend on alloca-opt instead of alloca.
89317         * modules/setenv: Likewise.
89318         * modules/vasnprintf: Likewise.
89319         * MODULES.html.sh: Add alloca-opt.
89320
89321 2004-09-28  Simon Josefsson  <jas@extundo.com>
89322
89323         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89324         LGPL, and to replace license template from GPL to LGPL.
89325
89326 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89327
89328         * modules/dummy: Change license to LGPL.
89329
89330 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89331
89332         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89333
89334 2004-09-24  Simon Josefsson  <jas@extundo.com>
89335
89336         * modules/minmax (License): Change from GPL to LGPL.
89337
89338 2004-09-23  Simon Josefsson  <jas@extundo.com>
89339
89340         * gnulib-tool (--import): Typo.
89341
89342 2004-09-23  Simon Josefsson  <jas@extundo.com>
89343
89344         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89345
89346 2004-09-22  Bruno Haible  <bruno@clisp.org>
89347
89348         * modules/*: Add 'License' field.
89349         * gnulib-tool: Accept --extract-license option.
89350         (func_get_license): New function.
89351
89352 2004-09-21  Bruno Haible  <bruno@clisp.org>
89353
89354         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89355         Reported by Simon Josefsson.
89356
89357 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89358
89359         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89360         gl_AC_TYPE_LONG_LONG.
89361
89362 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89363
89364         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89365
89366 2004-09-18  Simon Josefsson  <jas@extundo.com>
89367         and  Paul Eggert  <eggert@cs.ucla.edu>
89368
89369         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89370         calls with autoreconf.  Define GL_LIB.
89371
89372 2004-09-14  Karl Berry  <karl@gnu.org>
89373
89374         * config/srclist.txt: unsync setenv.c, sigh.
89375
89376 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89377
89378         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89379         Problem reported by Bruno Haible in:
89380         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89381
89382 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         * config/srclist.txt: Comment out argp-pvh.c.
89385
89386 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89387
89388         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89389         in case some system header has #define'd it.  Problem reported by
89390         Soeren D. Schulze in
89391         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89392
89393 2004-09-09  Karl Berry  <karl@gnu.org>
89394
89395         * regex.[ch]: delete from the root.  These were supposed to be
89396                 synced with emacs cvs, but this has not happened for about
89397                 a year, and anyway nothing else uses emacs regex.[ch].
89398                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89399                 lib/regex[.ch] is untouched.
89400
89401 2004-09-09  Bruno Haible  <bruno@clisp.org>
89402
89403         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89404
89405 2004-09-09  Bruno Haible  <bruno@clisp.org>
89406
89407         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89408         modifications.
89409         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89410
89411 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89412
89413         * modules/xvasprintf: New file.
89414         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89415
89416 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89417
89418         * lib/xvasprintf.h: New file.
89419         * lib/xvasprintf.c: New file.
89420         * lib/xasprintf.c: New file.
89421
89422 2004-09-08  Bruno Haible  <bruno@clisp.org>
89423
89424         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89425
89426 2004-09-08  Bruno Haible  <bruno@clisp.org>
89427
89428         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89429         length is > INT_MAX.
89430         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89431         more.
89432
89433 2004-09-08  Bruno Haible  <bruno@clisp.org>
89434
89435         * lib/stdint_.h: New file, taken from GNU clisp.
89436
89437 2004-09-08  Bruno Haible  <bruno@clisp.org>
89438             Oskar Liljeblad  <oskar@osk.mine.nu>
89439
89440         * modules/stdint: New file.
89441         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89442
89443 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89444
89445         Import from coreutils.
89446         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89447         strings on unbounded length.  alloca's performance benefits aren't
89448         that important here.
89449         (V_STRDUP): Remove.
89450         (parse_with_separator): New function, with most of the internals
89451         of the old parse_user_spec.  Allow user to omit both user and group,
89452         for compatibility with FreeBSD.
89453         Clone only the user name, not the entire spec.
89454         Do not set *uid, *gid unless entirely successful.
89455         Avoid memory leak in some failing cases.
89456         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89457         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89458         (parse_user_spec): Rewrite to use parse_with_separator.
89459
89460 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89461
89462         * modules/userspec: Don't depend on alloca.
89463
89464 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89467
89468 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89469
89470         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89471         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89472         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89473
89474 2004-08-16  Simon Josefsson  <jas@extundo.com>
89475
89476         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89477         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89478         Add --dry-run for --import.
89479         Let user provided command line parameters override configure.ac
89480         settings.
89481
89482 2004-08-12  Simon Josefsson  <jas@extundo.com>
89483
89484         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89485         as discussed with Paul Eggert in threads rooted at
89486         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89487         and
89488         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89489         Before, the test was empty, and relied on ELIDE_CODE in source
89490         code.)
89491         (gl_PREREQ_GETOPT): New macro.
89492         (gl_GETOPT): Use them.
89493
89494 2004-08-12  Simon Josefsson  <jas@extundo.com>
89495
89496         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89497         * lib/getopt_.h: Renamed from getopt.h.
89498
89499 2004-08-12  Simon Josefsson  <jas@extundo.com>
89500
89501         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89502         Change default library name from libfoo to libgnu.
89503         Now, if you have a configure.ac that says:
89504                 gl_SOURCE_BASE(gl)
89505                 gl_M4_BASE(gl/m4)
89506                 gl_MODULES(error getopt etcetera)
89507                 gl_INIT
89508         you can import all you need by running:
89509                 ../gnulib/gnulib-tool --import
89510
89511         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89512         (Makefile.am): Rewrite, use logic from argz.
89513         (Include): Use <getopt.h> instead of "getopt.h".
89514
89515 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89516
89517         * modules/argp (Files): Add m4/unlocked-io.m4.
89518         (Depends-on): Add extensions.
89519
89520 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89521
89522         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89523         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89524         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89525         Check for program_invocation_name, program_invocation_short_name,
89526         flockfile, funlockfile, features.h, _getopt_long_only_r.
89527
89528 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89531         its complicated substitute.
89532         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89533         and program_invocation_name.
89534         (__argp_basename) [!_LIBC]: Remove; the only use was
89535         replaced by its body.
89536         (__argp_short_program_name): Change condition from
89537         !defined __argp_short_program_name to
89538         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89539         to match argp-namefrob.h.
89540         (__argp_failure): Don't assume strerror_r returns char *.
89541         * lib/argp-parse.c (N_): Define unconditionally.
89542         (argp_default_options): Fill out initializers with 0 to avoid
89543         gcc warnings.
89544
89545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89546
89547         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89548         getopt1.c.
89549
89550 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89551
89552         Merge from coreutils.
89553
89554         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89555
89556         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89557         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89558
89559 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89560
89561         Merge from coreutils.
89562
89563         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89564         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89565         for Reliant Unix 5.43.
89566
89567         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89568         (union fooround): Use uintmax_t, not long int.
89569         The rest is a merge from libc:
89570         [defined _LIBC]: Include <shlib-compat.h>.
89571         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89572
89573         * lib/settime.c (settime): Recode to avoid warning with
89574         Sun Forte C 6U2.
89575
89576         * lib/strverscmp.c: Convert to UTF-8.
89577
89578 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89579
89580         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89581         m4/uintmax_t.m4.
89582
89583 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89584
89585         * modules/xalloc-die: New file.
89586         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89587
89588         * modules/md5 (Files): Add m4/uint32_t.m4.
89589         * modules/sha1: Renamed from modules/sha.
89590         (Files):
89591         Rename lib/sha.h to lib/sha1.h.
89592         Rename lib/sha.c to lib/sha1.c.
89593         Rename m4/sha.m4 to m4/sha1.m4.
89594         (lib_SOURCES): Likewise.
89595         (configure.ac): Rename gl_SHA to gl_SHA1.
89596         (Include): sha.h -> sha1.h.
89597
89598 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89599
89600         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89601         * m4/sha1.m4: Renamed from sha.m4.
89602         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89603
89604 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89605
89606         * lib/obstack.h (obstack_empty_p):
89607         Don't assume that chunk->contents is suitably aligned.
89608         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89609         Likewise. Problem reported by Benno in
89610         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89611
89612         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89613         readable.  This could be improved further but it'd take some work.
89614
89615 2004-08-08  Simon Josefsson  <jas@extundo.com>
89616
89617         * modules/xgethostname (Depends-on): Remove exit and error (not
89618         used).
89619
89620         * modules/getpass-gnu: Add getpass.h.
89621         (Depends-on): Add stdbool.
89622         * modules/getpass: Add getpass.h.
89623
89624 2004-08-08  Simon Josefsson  <jas@extundo.com>
89625
89626         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89627         Check getpass declaration.
89628
89629 2004-08-08  Simon Josefsson  <jas@extundo.com>
89630
89631         * lib/xgethostname.c: Don't include error.h (not used).
89632
89633         * lib/getpass.h: Add.
89634         * lib/getpass.c: Include getpass.h first.
89635
89636 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89637
89638         * lib/xalloc-die.c: New file.
89639         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89640         All uses removed.
89641         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89642         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89643         xalloc-die.c.
89644         (_, N_, xalloc_die): Move to xalloc-die.c.
89645         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89646         so that we needn't mess with xalloc_msg_memory_exhausted.
89647
89648         * lib/sha1.h: Renamed from sha.h.
89649         (SHA1_H): Renamed from _SHA_H.
89650         (sha1_ctx): Renamed from sha_ctx.
89651         (sha1_init_ctx): Renamed from sha_init_ctx.
89652         (sha1_process_block): Renamed from sha_process_block.
89653         (sha1_process_bytes): Renamed from sha_process_bytes.
89654         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89655         (sha1_read_ctx): Renamed from sha_read_ctx.
89656         (sha1_stream): Renamed from sha_stream.
89657         (sha1_buffer): Renamed from sha_buffer.
89658         * lib/sha1.c: Likewise; renamed from sha.c.
89659         Do not include <sys/types.h>.
89660         Include <stddef.h> rather than <stdlib.h>.
89661
89662 2004-08-08  Bruno Haible  <bruno@clisp.org>
89663
89664         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89665         FILESYSTEM_PREFIX_LEN.
89666         * lib/progreloc.c: Likewise.
89667         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89668
89669 2004-08-06  Simon Josefsson  <jas@extundo.com>
89670
89671         * modules/progname (Depends-on): Don't depend on stdbool.
89672
89673 2004-08-06  Simon Josefsson  <jas@extundo.com>
89674
89675         * modules/getsubopt: New file.
89676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89677         getsubopt.
89678
89679 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89680
89681         More merge from coreutils.
89682
89683         * m4/utimens.m4, m4/utimecmp.m4: New files.
89684         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89685         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89686         prereq.m4, sha.m4: Import changes from coreutils.
89687
89688 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89689
89690         More merge from coreutils.
89691         * modules/raise, modules/readtokens0, modules/utimens:
89692         * modules/utimecmp, module/xnanosleep: New files.
89693         * modules/strftime: Add lib/strftime.h.
89694         Change include from <time.h> to "strftime.h".
89695         * modules/yesno: Add lib/yesno.h.
89696         * modules/backupfile: Remove lib/addext.c.
89697         * modules/euidaccess: Add stat-macros.h.
89698         * modules/canonicalize, modules/euidaccess,
89699         modules/filemode, modules/lchown, modules/makepath,
89700         modules/rmdir, modules/stat: Likewise.
89701
89702 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89703
89704         Merge from tar.
89705         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89706         SIZE_MAX is a valid preprocessor constant.
89707         (__argp_basename): Change from "#ifndef _LIBC"
89708         to "#ifndef __argp_short_program_name", so that
89709         we don't compile these functions for tar.
89710
89711         More merges from coreutils.
89712         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89713         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89714         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89715         * lib/addext.c: Remove; no longer needed.
89716         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89717         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89718         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89719         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89720         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89721         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89722         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89723         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89724         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89725         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89726         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89727         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89728         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89729         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89730         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89731         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89732         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89733         Import changes from coreutils.
89734
89735 2004-08-05  Simon Josefsson  <jas@extundo.com>
89736
89737         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89738
89739 2004-08-05  Simon Josefsson  <jas@extundo.com>
89740
89741         * m4/getsubopt.m4: New file.
89742
89743 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89744
89745         Merge from coreutils.
89746
89747         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89748         * m4/getcwd-path-max.m4: New files.
89749
89750         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89751         FILESYSTEM_PREFIX_LEN ->
89752         FILE_SYSTEM_PREFIX_LEN.
89753         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89754         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89755         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89756         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89757
89758         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89759         prerequisite modules now handle the DOS stuff.
89760         Don't check for unistd.h.
89761
89762 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89763
89764         Merge from coreutils.
89765
89766         * lib/.gdb-history: Remove; this doesn't belong here.
89767
89768         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89769         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89770         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89771         * lib/getcwd.c: New files.
89772
89773         * lib/dirname.h: Include <stdbool.h>.
89774         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89775         for consistency with POSIX terminology.  All uses changed.
89776         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89777         (strip_trailing_slashes): Use bool for booleans.
89778         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89779
89780         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89781         sometimes returns a positive errno value even when it succeeds.
89782         (print_errno_message) [!LIBC]: Fall back on strerror if
89783         __strerror_r fails.
89784
89785         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89786         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89787         (longest_relative_suffix): New function.
89788         (path_concat): Use it.  Assume first argument is not NULL.
89789         Port to DOS.  Omit redundant separators.
89790         Report an error instead of returning NULL.
89791         Use mempcpy instead of memcpy.
89792         (xpath_concat): Remove: not declared or used.
89793
89794         * lib/same.h: Include <stdbool.h>
89795         (same_name): Return bool, not int.
89796         * lib/same.c (same_name): Likewise.
89797         (errno): Don't declare; we assume C89 or better now.
89798
89799         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89800         if not already defined.
89801
89802         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89803         * lib/dup-safer.c (errno): Likewise.
89804
89805 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89806
89807         Merge from coreutils.
89808         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89809         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89810         * modules/path-concat: Don't depend on strdup.
89811
89812 2004-08-03  Simon Josefsson  <jas@extundo.com>
89813
89814         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89815         * lib/progname.h: Don't include stdbool.h.
89816
89817 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89818
89819         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89820         * MODULES.html.sh (func_all_modules): Remove fatal.
89821
89822 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89823
89824         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89825
89826 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89827
89828         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89829         working.
89830
89831 2004-08-02  Simon Josefsson  <jas@extundo.com>
89832
89833         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89834         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89835         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89836
89837 2004-08-01  Simon Josefsson  <jas@extundo.com>
89838
89839         * lib/xgetdomainname.c: Include stdlib.h, for free().
89840
89841 2004-07-19  Bruno Haible  <bruno@clisp.org>
89842
89843         * MODULES.html.sh (func_all_modules): Add dummy.
89844
89845 2004-07-16  Simon Josefsson  <jas@extundo.com>
89846
89847         * modules/dummy: New file.
89848
89849 2004-07-16  Simon Josefsson  <jas@extundo.com>
89850
89851         * lib/dummy.c: New file.
89852
89853 2004-07-16  Bruno Haible  <bruno@clisp.org>
89854
89855         * lib/backupfile.h: Add extern "C" for C++.
89856         * lib/closeout.h: Likewise.
89857         * lib/copy-file.h: Likewise.
89858         * lib/findprog.h: Likewise.
89859         * lib/full-write.h: Likewise.
89860         * lib/pathname.h: Likewise.
89861         * lib/progname.h: Likewise.
89862         * lib/stpcpy.h: Likewise.
89863         * lib/stpncpy.h: Likewise.
89864         * lib/strcase.h: Likewise.
89865         * lib/strstr.h: Likewise.
89866         * lib/xalloc.h: Likewise.
89867
89868         * lib/mbswidth.h: Add extern "C" for C++.
89869         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89870
89871 2004-07-13  Robert Millan  <robertmh@gnu.org>
89872
89873         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89874
89875 2004-07-09  Simon Josefsson  <jas@extundo.com>
89876
89877         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89878         failed without this.)
89879
89880 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89881
89882         * modules/chown (Files): Add lib/fchown-stub.c, since
89883         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89884
89885 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89886
89887         * lib/fchown-stub.c: New file.
89888
89889 2004-06-24  Jim Meyering  <jim@meyering.net>
89890
89891         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89892
89893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89894
89895         * modules/argz: Omit "#include".
89896
89897         * MODULES.html.sh (func_all_modules): Add calloc, to match
89898         2004-06-01 addition of calloc module.
89899
89900 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89901
89902         * m4/argz.m4: New file, which is autoupdated from libtool.
89903
89904 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89905
89906         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89907         libtool.
89908
89909 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89910
89911         * config/srclist-update: Don't insist on "USA." before the
89912         close-comment, as libtool omits the period and puts the */ on a
89913         separate line.
89914         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89915         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89916
89917 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89918
89919         * modules/argz: New file.
89920         * MODULES.html.sh (func_all_modules): Add argz.
89921
89922 2004-06-12  Jim Meyering  <jim@meyering.net>
89923         and  Paul Eggert  <eggert@cs.ucla.edu>
89924
89925         * modules/hash (Files): Add lib/xalloc.h.
89926         * modules/pipe (Depends-on): Add wait-process.
89927         * modules/stat (Depends-on): Add xalloc.
89928         * modules/userspec (Files): Add lib/userspec.h.
89929         * modules/xstrto
89930
89931         Upgrade from gettext-0.13.
89932         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89933         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89934         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89935
89936 2004-06-10  Jim Meyering  <jim@meyering.net>
89937
89938         * lib/calloc.c: New file.
89939
89940 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89941
89942         * lib/getdate.y (yylex): Allow space between sign and number.
89943         Problem reported by Dan Jacobson.
89944
89945 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89946
89947         Merge from coreutils CVS.
89948
89949         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89950         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89951         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89952         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89953         xstrtol.m4: Fix copyright date and/or serial number.
89954
89955         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89956         See if we need an fchown replacement.
89957         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89958         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89959         and use the replacement function if we detect either defect.
89960
89961         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89962         gl_UTIMECMP.
89963
89964 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89965         and  Jim Meyering  <jim@meyering.net>
89966
89967         Merge from coreutils CVS.
89968
89969         * lib/stat-macros.h: New file, with contents from file-type.h
89970         and coreutils' system.h.
89971         * lib/file-type.c: Include "stat-macros.h".
89972         * lib/file-type.h (file_type): Move all macro definitions to new file,
89973         stat-macros.h.
89974
89975         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89976         Wrap old code with this conditional.
89977         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89978         function that does not dereference symlinks.
89979         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89980
89981         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89982         dependency problems.
89983         (xreadlink): Accept new arg SIZE, for efficiency.
89984         All decls and uses changed.
89985         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89986
89987         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89988         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89989
89990         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89991         sysexits.h.
89992
89993 2004-06-01  Jim Meyering  <jim@meyering.net>
89994
89995         * m4/calloc.m4: New file.
89996
89997 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89998
89999         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90000         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90001         Also, fix a typo in a diagnostic.
90002
90003 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90004
90005         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90006         or AC_FUNC_REALLOC.
90007
90008 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90009
90010         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90011         macros to be defined.
90012         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90013         the allocator returns NULL because the requested size is zero.
90014
90015 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90016
90017         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90018         var.  Add comment explaining why libc still defines it.  This
90019         merges the following patch from glibc:
90020         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90021
90022 2004-05-20  Andreas Schwab  <schwab@suse.de>
90023
90024         * m4/free.m4: Replace free if it not known to work, not the other
90025         way round.
90026
90027 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90028
90029         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90030         present in glibc since revision 1.1 of this file.
90031         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90032         obstack_alignment_mask, obstack_alloc, obstack_base,
90033         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90034         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90035         obstack_grow0, obstack_init, obstack_int_grow,
90036         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90037         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90038         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90039         nonexistent functions.
90040
90041 2004-05-18  Karl Berry  <karl@gnu.org>
90042
90043         * config/srclist.txt: break link for vasnprintf.c.
90044
90045 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90046
90047         Port obstack to the AS/400, where pointers are 16 bytes wide and
90048         you cannot cast an integer to a valid pointer.  This patch is
90049         currently waiting to be integrated into glibc; see
90050         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90051
90052         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90053         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90054         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90055         (struct obstack): temp member is now a union of a pointer and
90056         an integer, instead of an integer.  All integer uses changed.
90057         This does not affect the physical layout of struct obstack,
90058         except on hosts (like the AS/400) where the size or alignment of
90059         void * is greater than that of ptrdiff_t.
90060         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90061         __STDC__)]: Store temporary in pointer member of union, not
90062         integer member.
90063         * lib/obstack.c: Include <stddef.h>, for offsetof.
90064         (struct fooalign): Remove; it doesn't need a name.
90065         (union fooround): Change double to long double, and add void *.
90066         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90067         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90068         not a macro.  Hence the values are always int; so remove all
90069         casts-to-int in uses.
90070
90071 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90072
90073         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90074         we can get this patch merged into glibc.
90075
90076 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90077             Paul Eggert  <eggert@cs.ucla.edu>
90078
90079         * m4/argp: Depend on alloca.
90080
90081 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90082             Paul Eggert  <eggert@cs.ucla.edu>
90083
90084         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90085         freecoding.
90086
90087 2004-05-17  Bruno Haible  <bruno@clisp.org>
90088
90089         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90090         precision that consists of a '.' followed by an empty digit string.
90091         Patch by Tor Lillqvist <tml@iki.fi>.
90092
90093 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90094
90095         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90096         for backward compatibility with older code.  We need our own
90097         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90098         it under some other name, and our alloca.h will define it.
90099
90100 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90101             Derek Price  <derek@ximbiot.com>
90102
90103         * lib/alloca.c: Include <alloca.h>, to get our interface.
90104         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90105         include <alloca.h> first.  Use C89 prototype for alloca; this
90106         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90107         Use #elif for simplicity, since we can assume C89 now.
90108         Don't try to source the system alloca.h since it will not be found
90109         and to prevent recursively including its replacement.
90110         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90111         * lib/regex.c: Likewise.
90112
90113 2004-05-16  Derek Price  <derek@ximbiot.com>
90114             Paul Eggert  <eggert@cs.ucla.edu>
90115
90116         getline cleanup.  This changes the getndelim2 API: both order of
90117         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90118         no delimiter).
90119
90120         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90121         interface does that.
90122         (getline): Always use getdelim, so that we don't have two
90123         copies of this code.
90124         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90125         if available.
90126         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90127         (GETNDELIM2_MAXIMUM): New macro.
90128         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90129         instead of the old practice of delim2==0.  All callers changed.
90130         Return -1 on overflow, instead of returning junk.
90131         Do not set *linesize unless allocation succeeds.
90132         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90133         that we include sys/types.h.
90134         * lib/getnline.h: Likewise.
90135         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90136         (getndelim2): Reorder arguments.
90137         * lib/getnline.c (getnline, getndelim):
90138         Don't discard the NMAX argument.
90139         (getnline): Invoke getndelim, to avoid code duplication.
90140         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90141         of (size_t) -1 by callers of the getnline family.
90142
90143 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90144
90145         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90146         Check for gettimeofday.
90147         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90148         Check for settimeofday, stime.
90149
90150 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90151
90152         * lib/nanosleep.c (suspended): Change its type from int to
90153         sig_atomic_t volatile.
90154         (first_call): Make it private to rpl_nanosleep, and have it
90155         be zero initially as that's a bit faster.
90156         (my_usleep): Round up fractional times instead of truncating them,
90157         as this is the usual meaning for 'sleep'.
90158
90159         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90160         doesn't work.
90161         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90162         (ENOSYS): Define if not defined.
90163         (settime): Fall back on stime if it exists and settimeofday fails.
90164         But don't bother with fallbacks if a method fails with errno == EPERM.
90165
90166 2004-05-11  Jim Meyering  <jim@meyering.net>
90167
90168         Prior to this change, the save_cwd caller required read access to the
90169         current directory on most systems (ones with the fchdir function).
90170
90171         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90172         fails, try write-only, and finally, resort to using xgetcwd.
90173
90174 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90175
90176         * lib/obstack.c, obstack.h: Import changes from libc.
90177
90178 2004-04-28  Bruno Haible  <bruno@clisp.org>
90179
90180         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90181         also implicitly appends .exe to executables.
90182         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90183         accepts Windows pathnames.
90184         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90185         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90186         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90187         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90188         Reported by Derek Robert Price <derek@ximbiot.com>.
90189
90190 2004-04-21  Karl Berry  <karl@gnu.org>
90191
90192         * config/srclist.txt (localcharset.c): break sync.
90193
90194 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90195
90196         * m4/host-os.m4: Add a copyright notice.
90197
90198 2004-04-20  Jim Meyering  <jim@meyering.net>
90199
90200         Change UTILS_ to gl_ in AC_DEFINE'd names.
90201         Change utils_- and jm_-prefixed variables, too.
90202         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90203         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90205
90206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90207         Don't emit trailing blanks.
90208         Also rename jm_-prefixed variables to have gl_ prefix.
90209
90210         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90211         Also rename jm_-prefixed variables to have gl_ prefix.
90212
90213         * m4/jm-macros.m4: Reflect the renamings.
90214         * m4/prereq.m4: Likewise.
90215
90216 2004-04-20  Jim Meyering  <jim@meyering.net>
90217
90218         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90219         memory.
90220
90221 2004-04-20  Jim Meyering  <jim@meyering.net>
90222             Bruno Haible  <bruno@clisp.org>
90223
90224         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90225         memory when realloc fails.
90226
90227 2004-04-19  Jim Meyering  <jim@meyering.net>
90228
90229         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90230         now that readutmp.c may call `free (0)'.
90231
90232 2004-04-19  Bruno Haible  <bruno@clisp.org>
90233
90234         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90235         * m4/inttypes_h.m4: Likewise.
90236         * m4/stdint_h.m4: Likewise.
90237         * m4/intmax_t.m4: Likewise.
90238         * m4/uintmax_t.m4: Likewise.
90239
90240 2004-04-18  Jim Meyering  <jim@meyering.net>
90241
90242         * m4/prereq.m4: Don't forbid jm_ prefix.
90243
90244         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90245         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90246         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90247         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90248         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90249         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90250         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90251         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90252         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90253         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90254         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90255         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90256         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90257         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90258         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90259         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90260         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90261         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90262         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90263
90264 2004-04-18  Jim Meyering  <jim@meyering.net>
90265
90266         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90267         failure, don't leak memory and do call END_UTMP_ENT.
90268
90269 2004-04-16  Jim Meyering  <jim@meyering.net>
90270
90271         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90272         coreutils' stat program.
90273         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90274
90275 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90276
90277         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90278         C89.
90279         (CHAR_BIT): Remove, since we assume C89.
90280         Include <stdint.h> if available, as per current Autoconf CVS advice.
90281
90282 2004-03-31  Jim Meyering  <jim@meyering.net>
90283
90284         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90285         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90286         * m4/xalloc.m4: Likewise.
90287
90288 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90289
90290         Merge from coreutils.
90291
90292         * m4/inttostr.m4: New file.
90293         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90294         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90295         Require gl_CLOCK_TIME.
90296         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90297
90298 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90299
90300         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90301         not bool, to be more consistent with Unix conventions.
90302         Suggested by Bruno Haible.
90303
90304         Merge from coreutils.
90305
90306         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90307         * lib/umaxtostr.c: New files.
90308
90309         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90310         the usual <time.h> dance.
90311         (get_date): Change signature to support fractional time stamps.
90312         All callers changed.
90313         * lib/getdate.y: Include "getdate.h" first, as we can now
90314         assume C89 and don't need to worry about 'const'.
90315         Similarly, include "unlocked-io.h" near start, not in middle.
90316         Include <limits.h>.
90317         (textint.value): Use long int rather than int.
90318         (textint.digits): Use size_t rather than int.
90319         (BILLION, LOG10_BILLION): New constants.
90320         (parser_control): New member rel_ns.  Members day_ordinal,
90321         time_zone, month, day, hour, minutes, rel_year, rel_month,
90322         rel_day, rel_hour, rel_minutes, rel_seconds
90323         are now long int, not int.  Member seconds is now struct timespec,
90324         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90325         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90326         not int.
90327         (%union.intval): Now long int, not int.
90328         New member timespec.
90329         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90330         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90331         (spec): Now is a timespec or an item list.
90332         (timespec, items): New nonterminals.
90333         (time, rel, relunit, number, get_date):
90334         Add support for fractional seconds.
90335         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90336         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90337         (to_hour): First arg is now long int, not int.
90338         (to_year): Returns long int, not int.
90339         Don't treat year -70 like 70.
90340         (tm_diff): Returns long int, not int.
90341         (lookup_word): Use bool instead of int when appropriate.
90342         (yylex): Use size_t for count, not int.
90343         Detect overflow when parsing large integer constants.
90344         Add support for fractions.
90345         (get_date): Make pointers 'const' if possible.
90346         Use more-portable code to detect integer overflow.
90347         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90348         Don't use ctime; it's not reliable if the year has >4 digits.
90349
90350         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90351         This is for compatibility with BSD.
90352
90353         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90354         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90355         From coreutils' system.h.
90356
90357         * lib/userspec.c: Don't include "posixver.h".
90358         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90359         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90360         compatible extension.  Simplify code by removing a boolean int
90361         that was always nonzero if a string was nonnull.
90362
90363 2004-03-30  Jim Meyering  <jim@meyering.net>
90364
90365         Merge from coreutils.
90366
90367         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90368         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90369         on some systems one must include <grp.h> before it.
90370         Reported by Christian Krackowizer.
90371
90372 2004-03-30  Jim Meyering  <jim@meyering.net>
90373
90374         Merge from coreutils.
90375
90376         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90377
90378         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90379         an empty input stream.
90380
90381         * lib/readtokens.c: Include <stdbool.h>.
90382         (readtoken): Use `size_t' rather than int/long.
90383         All callers adjusted.
90384         Use `bool' rather than `int' where appropriate.
90385         Use memset rather than an explicit loop.
90386         Use x2nrealloc rather than xrealloc.
90387         Allow the use of `\0' as a delimiter.
90388         (readtokens): Likewise.
90389         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90390
90391 2004-03-30  Jim Meyering  <jim@meyering.net>
90392
90393         * m4/realloc.m4: Remove file, since now it does no more than
90394         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90395         the `configure.ac' section of module/realloc.
90396         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90397
90398 2004-03-30  Bruno Haible  <bruno@clisp.org>
90399
90400         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90401         nonnull.
90402
90403 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90404
90405         Merge changes to getloadavg.c from coreutils and Emacs.
90406
90407         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90408         Define to an expression, not to the empty string.
90409         Include cloexec.h and xalloc.h.
90410         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90411         Use set_cloexec_flag rather than rolling our own.
90412         * lib/cloexec.c, lib/cloexec.h: New files.
90413
90414 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90415
90416         * m4/cloexec.m4: New file.
90417
90418 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90419
90420         * lib/getopt.h: Sync with libc CVS.
90421
90422 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90423             Bruno Haible  <bruno@clisp.org>
90424
90425         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90426         mbswidth.
90427
90428 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90429             Bruno Haible  <bruno@clisp.org>
90430
90431         * lib/mbswidth.h: Include <wchar.h> only if
90432         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90433         <wchar.h>.
90434         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90435
90436 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90437
90438         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90439         Sync with libc CVS.
90440         * lib/getopt_int.h: New file, also synced from libc.
90441
90442 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90443
90444         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90445         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90446         Bring back getopt.c, getopt.h, getopt1.c.
90447
90448 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90449
90450         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90451         All uses changed.  Check for sa_sigaction member; this fixes
90452         a bug first reported by Jason Andrade in
90453         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90454
90455 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90456
90457         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90458         '#if' expressions.  Unlike the code it replaces, it does not
90459         depend on (defined _SC_PAGESIZE).  However, it does depend on
90460         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90461         first reported by Jason Andrade in
90462         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90463
90464 2004-02-25  Simon Josefsson  <jas@extundo.com>
90465
90466         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90467
90468 2004-02-25  Simon Josefsson  <jas@extundo.com>
90469
90470         * lib/strdup.h: New file.
90471         * lib/strdup.c: Include it.
90472         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90473         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90474
90475 2004-02-23  Karl Berry  <karl@gnu.org>
90476
90477         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90478         (from fencepost.gnu.org:/gd/gnuorg).
90479
90480 2004-02-23  Karl Berry  <karl@gnu.org>
90481
90482         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90483         * config/srclist.txt: add maintain/standards documents.
90484
90485 2004-02-18  Bruno Haible  <bruno@clisp.org>
90486
90487         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90488         Reported by Derek Robert Price <derek@ximbiot.com>.
90489
90490 2004-02-16  Karl Berry  <karl@gnu.org>
90491
90492         * config/mkinstalldirs, install-sh: update from automake.
90493
90494 2004-02-06  Karl Berry  <karl@gnu.org>
90495
90496         * m4/po.m4: update from gettext 0.14.1.
90497
90498 2004-02-06  Karl Berry  <karl@gnu.org>
90499
90500         * lib/config.charset: update from gettext 0.14.1.
90501
90502 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90503
90504         Add comments and code, prompted by suggestions from Bruno Haible
90505         for sh-quote.
90506         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90507         describing the enum quoting_style values.
90508         * lib/quotearg.c (quotearg_alloc): New function.
90509         (quotearg_buffer_restyled): Treat lone { and } as special.
90510         Treat = as special.  Work around bug with older shells
90511         that "see" a '\' that is really the 2nd byte of a multibyte char.
90512         Quote empty string with shell_quoting_style.
90513
90514 2004-02-03  Bruno Haible  <bruno@clisp.org>
90515
90516         * m4/pipe.m4: New file, from GNU gettext.
90517
90518 2004-02-03  Bruno Haible  <bruno@clisp.org>
90519
90520         * lib/pipe.h: New file, from GNU gettext.
90521         * lib/pipe.c: New file, from GNU gettext.
90522
90523 2004-01-27  Bruno Haible  <bruno@clisp.org>
90524
90525         * m4/execute.m4: New file, from GNU gettext.
90526
90527 2004-01-27  Bruno Haible  <bruno@clisp.org>
90528
90529         * lib/execute.h: New file, from GNU gettext.
90530         * lib/execute.c: New file, from GNU gettext.
90531         * lib/w32spawn.h: New file, from GNU gettext.
90532
90533 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90534
90535         Merge from diffutils.
90536
90537         * lib/file-type.c (file_type): Add typed memory objects.
90538         * lib/file-type.h (S_TYPEISTMO): New macro.
90539
90540         * lib/c-stack.h (c_stack_action): Remove argv argument.
90541         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90542         (die): Don't calculate message unless segv_action returns.
90543         (get_stack_location, min_address_from_argv, max_address_from_argv,
90544         volatile stack_base, volatile_stack_size): Remove.
90545         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90546         that every segmentation violation is a stack overflow.  (Ouch!)
90547         See Debian bug 136249 (still outstanding) for more info about why
90548         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90549
90550 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90551
90552         Exit-status fix from coreutils.
90553
90554         Use exit_failure consistently in place of EXIT_FAILURE,
90555         so that program exit statuses are consistent on failure.
90556
90557         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90558         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90559         * lib/argmatch.h: Comment fix to match the above.
90560         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90561         Now a macro referring to exit_failure, instead of a separate
90562         variable.  Include "exitfail.h" to get it.
90563         * lib/xstrtol.h: Include "exitfail.h".
90564         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90565
90566         * lib/long-options.c (parse_long_options): Use prototype
90567         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90568         for clarity.
90569
90570 2004-01-21  Jim Meyering  <jim@meyering.net>
90571
90572         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90573         so as not to conflict with a different-sized __mktime_internal
90574         function in GNU libc.
90575         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90576         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90577
90578 2004-01-20  Karl Berry  <karl@gnu.org>
90579
90580         * config/config.guess: update from config.
90581
90582         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90583
90584 2004-01-20  Bruno Haible  <bruno@clisp.org>
90585
90586         Safer stack allocation.
90587         * lib/setenv.c: Include allocsa.h.
90588         (alloca): Remove fallback definition.
90589         (freea): Remove macro.
90590         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90591         instead of freea.
90592
90593 2004-01-20  Bruno Haible  <bruno@clisp.org>
90594
90595         * m4/eealloc.m4: New file, from GNU gettext.
90596
90597 2004-01-20  Bruno Haible  <bruno@clisp.org>
90598
90599         * m4/allocsa.m4: New file, from GNU gettext.
90600
90601 2004-01-20  Bruno Haible  <bruno@clisp.org>
90602
90603         * lib/xallocsa.h: New file, from GNU gettext.
90604         * lib/xallocsa.c: New file, from GNU gettext.
90605
90606 2004-01-20  Bruno Haible  <bruno@clisp.org>
90607
90608         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90609
90610 2004-01-20  Bruno Haible  <bruno@clisp.org>
90611
90612         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90613         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90614         specially.
90615
90616 2004-01-20  Bruno Haible  <bruno@clisp.org>
90617
90618         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90619         patch.
90620
90621 2004-01-20  Bruno Haible  <bruno@clisp.org>
90622
90623         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90624
90625 2004-01-20  Bruno Haible  <bruno@clisp.org>
90626
90627         * lib/eealloc.h: New file.
90628
90629 2004-01-20  Bruno Haible  <bruno@clisp.org>
90630
90631         * lib/binary-io.h: Avoid warnings on Cygwin.
90632
90633 2004-01-20  Bruno Haible  <bruno@clisp.org>
90634
90635         * lib/allocsa.h: New file, from GNU gettext.
90636         * lib/allocsa.c: New file, from GNU gettext.
90637
90638 2004-01-18  Karl Berry  <karl@gnu.org>
90639
90640         * doc/gpl.texi, doc/lgpl.texi: new files.
90641
90642 2004-01-18  Karl Berry  <karl@gnu.org>
90643
90644         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90645         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90646
90647 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90648
90649         Merge from coreutils.
90650
90651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90652         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90653         (gl_DEFAULT_POSIX2_VERSION): Move
90654         the documentation from 'configure' into 'config.hin',
90655         so that 'configure --help' isn't burdened by it and
90656         we don't have to worry about its formatting there.
90657         Reword the documentation so that it's more succinct
90658         and can be run together into a single paragraph.
90659         * m4/same.m4 (gl_SAME): Check for pathconf.
90660
90661 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90662
90663         Merge from coreutils.
90664
90665         * lib/posixver.c: Include posixver.h.
90666
90667         * lib/same.c: Include <stdbool.h>, <limits.h>.
90668         (_POSIX_NAME_MAX): Define if not defined.
90669         (MIN): New macro.
90670         (same_name): If file names are silently truncated, report
90671         that the file names are the same if they are the same after
90672         the silent truncation.
90673
90674         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90675         conversion function.
90676         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90677         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90678         longer needed.
90679
90680 2004-01-15  Jim Meyering  <jim@meyering.net>
90681
90682         Merge from coreutils.
90683
90684         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90685         if no library is required.
90686         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90687         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90688         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90689         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90690         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90691         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90692         value, $ac_cv_search_crypt, if it's "none required".
90693         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90694         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90695         not gl_FUNC_GETLOADAVG.
90696         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90697         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90698
90699 2004-01-15  Jim Meyering  <jim@meyering.net>
90700
90701         Merge from coreutils.
90702
90703         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90704         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90705         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90706
90707         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90708         optional configure-time default.
90709
90710         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90711
90712         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90713
90714 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90715
90716         Merge from coreutils.
90717
90718         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90719         value, $ac_cv_search_nanosleep, if it's "none required".
90720
90721 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90722
90723         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90724         with like-named macro in fnmatch.c.
90725         (EXT): Use an internal constant instead.
90726
90727         Merge fnmatch patches from glibc.
90728         * lib/fnmatch.c (mbsinit): Remove define.
90729         Add libc_hidden_ver (__fnmatch, fnmatch).
90730         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90731         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90732
90733 2004-01-14  Karl Berry  <karl@gnu.org>
90734
90735         * config/install-sh: update from automake.
90736
90737 2004-01-13  Karl Berry  <karl@gnu.org>
90738
90739         * config/install-sh: update from automake.
90740
90741 2004-01-09  Karl Berry  <karl@gnu.org>
90742
90743         * config/install-sh: update from automake.
90744
90745 2004-01-05  Karl Berry  <karl@gnu.org>
90746
90747         * config/config.{sub,guess}: update from config.
90748
90749 2003-12-31  Karl Berry  <karl@gnu.org>
90750
90751         * config/depcomp: update from automake.
90752
90753 2003-12-14  Karl Berry  <karl@gnu.org>
90754
90755         * lib/config.charset: update from gettext-runtime.
90756
90757 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90758
90759         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90760         Bug reported by Alfred M. Szmidt.
90761
90762 2003-12-03  Bruno Haible  <bruno@clisp.org>
90763
90764         * m4/gettext.m4: Upgrade from gettext-0.13.
90765         * m4/po.m4: Upgrade from gettext-0.13.
90766         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90767         * m4/intmax.m4: New file, from gettext-0.13.
90768         * m4/printf-posix.m4: New file, from gettext-0.13.
90769
90770 2003-11-29  Karl Berry  <karl@gnu.org>
90771
90772         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90773
90774 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90775             Bruno Haible  <bruno@clisp.org>
90776
90777         * lib/printf-parse.h: Don't include sys/types.h.
90778         (ARG_NONE): New macro.
90779         (char_directive): Change type of *arg_index fields to size_t.
90780         * lib/printf-parse.c: Don't include sys/types.h.
90781         (SSIZE_MAX): Remove macro.
90782         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90783         Remove unnecessary overflow check.
90784         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90785         fields.
90786
90787 2003-11-25  Bruno Haible  <bruno@clisp.org>
90788
90789         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90790
90791 2003-11-25  Bruno Haible  <bruno@clisp.org>
90792
90793         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90794         gt_TYPE_SSIZE_T.
90795
90796 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90797
90798         * modules/alloca: Remove dependency on xalloc.
90799
90800 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90801
90802         * lib/alloca.c: Remove dependency on xalloc module.
90803         (xalloc_die): Remove.
90804         (memory_full) [!defined emacs]: New macro.
90805         [!defined emacs]: Don't include xalloc.h.
90806         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90807         address arithmetic overflows.  Change datatypes a bit to avoid
90808         unnecessary casts.
90809
90810 2003-11-22  Jim Meyering  <jim@meyering.net>
90811
90812         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90813         s/size/size_t/.
90814
90815 2003-11-21  Karl Berry  <karl@gnu.org>
90816
90817         * config/config.{sub,guess}: update from config.
90818
90819 2003-11-18  Karl Berry  <karl@gnu.org>
90820
90821         * config/config.{sub,guess}: update from config.
90822
90823         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90824
90825 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90826
90827         * README: Mention that S+T cannot overflow if S is the size of
90828         an existing object and T is sufficiently small.
90829
90830 2003-11-17  Jim Meyering  <jim@meyering.net>
90831
90832         On systems without utime and without a utimes function capable of
90833         dealing with a NULL struct utimbuf* argument, this utime replacement
90834         could -- in unusual circumstances -- leak a file descriptor.
90835         * lib/utime.c: Include <unistd.h> and <errno.h>.
90836         (utime_null): Be sure to close `fd' and to preserve errno.
90837         Reported by Geoff Collyer via Arnold Robbins.
90838
90839 2003-11-17  Bruno Haible  <bruno@clisp.org>
90840
90841         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90842         (Depends-on): Add xsize.
90843
90844 2003-11-17  Bruno Haible  <bruno@clisp.org>
90845
90846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90847
90848 2003-11-17  Bruno Haible  <bruno@clisp.org>
90849
90850         * lib/vasnprintf.c (alloca): Remove fallback definition.
90851         (freea): Remove definition.
90852         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90853         Reported by Paul Eggert.
90854
90855 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90856             Bruno Haible  <bruno@clisp.org>
90857
90858         Protect against address arithmetic overflow.
90859         * lib/printf-args.h: Include stddef.h.
90860         (arguments): Change type of field 'count' to size_t.
90861         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90862         'unsigned int' where appropriate.
90863         * lib/printf-parse.h: Include sys/types.h.
90864         (char_directive): Change type of *arg_index fields to ssize_t.
90865         (char_directives): Change type of fields 'count', max_*_length to
90866         size_t.
90867         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90868         (SSIZE_MAX): Define fallback value.
90869         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90870         instead of 'int' where appropriate. Check a_allocated, d_allocated
90871         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90872         * lib/vasnprintf.c: Include xsize.h.
90873         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90874         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90875         overflow. Avoid wraparound when converting a width or precision from
90876         decimal to binary.
90877
90878 2003-11-16  Bruno Haible  <bruno@clisp.org>
90879
90880         Update from GNU gettext.
90881         * lib/printf-parse.c: Generalize to it can be compiled for wide
90882         strings.
90883         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90884         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90885         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90886         SNPRINTF): New macros.
90887         Don't include <alloca.h> if the file is used inside libintl.
90888         (local_wcslen): New function, for Solaris 2.5.1.
90889         (VASNPRINTF): Use it instead of wcslen.
90890
90891 2003-11-16  Bruno Haible  <bruno@clisp.org>
90892
90893         * lib/xsize.h (xmax): New function.
90894         (xsum, xsum3, xsum4): Declare as "pure" functions.
90895
90896 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90897
90898         * modules/xalloc (Files): Undo latest change, since xalloc.h
90899         no longer needs SIZE_MAX or PTRDIFF_MAX.
90900
90901 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90902
90903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90904         gl_PTRDIFF_MAX.
90905
90906 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90907
90908         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90909         "return", to pacify some unknown compiler.  Problem reported
90910         by Joerg Schilling.
90911
90912 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90913
90914         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90915         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90916         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90917         heuristic is just as accurate as far as we know, and it removes a
90918         dependency on size_max.m4 and ptrdiff_max.m4.
90919
90920 2003-11-11  Bruno Haible  <bruno@clisp.org>
90921
90922         * modules/xsize (Files): Add m4/size_max.m4.
90923         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90924
90925 2003-11-11  Bruno Haible  <bruno@clisp.org>
90926
90927         * m4/size_max.m4: New file.
90928         * m4/ptrdiff_max.m4: New file.
90929         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90930         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90931         (gl_XALLOC): Invoke it.
90932
90933 2003-11-11  Bruno Haible  <bruno@clisp.org>
90934
90935         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90936         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90937         defined.
90938
90939 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90940
90941         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90942         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90943         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90944         From Bruno Haible.
90945         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90946         not (size_t) -1, since it's defined here.
90947
90948 2003-11-09  Karl Berry  <karl@gnu.org>
90949
90950         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90951
90952 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90953
90954         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90955         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90956         Reject sizes of exactly SIZE_MAX bytes.
90957         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90958         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90959
90960 2003-11-05  Bruno Haible  <bruno@clisp.org>
90961
90962         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90963         SIZE_MAX defined in <limits.h> on Solaris.
90964
90965 2003-11-04  Jim Meyering  <jim@meyering.net>
90966
90967         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90968         variable names, rather than @VAR@.
90969         * modules/poll: Likewise.
90970
90971 2003-11-04  Bruno Haible  <bruno@clisp.org>
90972
90973         * modules/xsize: New file.
90974         * modules/linebreak: Depend on xsize.
90975         * MODULES.html.sh (func_all_modules): Add xsize.
90976
90977 2003-11-04  Bruno Haible  <bruno@clisp.org>
90978
90979         * m4/xsize.m4: New file.
90980
90981 2003-11-04  Bruno Haible  <bruno@clisp.org>
90982
90983         * lib/xsize.h: New file.
90984         * lib/linebreak.c: Include xsize.h.
90985         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90986         argument for overflow.
90987         Suggested by Paul Eggert.
90988
90989 2003-11-03  Karl Berry  <karl@gnu.org>
90990
90991         * config/config.{guess,sub}: update from config.
90992
90993 2003-11-03  Jim Meyering  <jim@meyering.net>
90994
90995         * modules/userspec (lib_SOURCES): Add userspec.h.
90996         (Include): Add "userspec.h".
90997         Improve description.
90998
90999 2003-11-03  Jim Meyering  <jim@meyering.net>
91000
91001         * lib/userspec.c: Include "userspec.h".
91002         * lib/userspec.h: New file.
91003
91004 2003-11-03  Bruno Haible  <bruno@clisp.org>
91005
91006         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91007
91008 2003-11-03  Bruno Haible  <bruno@clisp.org>
91009
91010         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91011         available, to avoid (extremely rare) race condition.
91012         Suggested by Paul Eggert.
91013
91014 2003-11-02  Karl Berry  <karl@gnu.org>
91015
91016         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91017
91018 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91019
91020         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91021         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91022         (read_filesystem_list): Set and use me_type_malloced.
91023         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91024         whatever the type happens to be), for brevity and consistency.
91025         Check for size calculation overflow on Alphas running OSF/1.
91026
91027 2003-10-31  Jim Meyering  <jim@meyering.net>
91028
91029         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91030
91031         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91032
91033 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91034             Bruno Haible  <bruno@clisp.org>
91035
91036         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91037         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91038
91039 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91040
91041         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91042         netbsd*-gnu*.  Suggested by Robert Millan.
91043
91044 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91045
91046         * modules/group-member: Depend on stdbool.
91047
91048 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91049
91050         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91051
91052 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91053
91054         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91055         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91056         after the 'gnu' in these cases.  This fixes some bugs in the
91057         previous change, and is based on suggestions by Robert Millan.
91058
91059 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91060
91061         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91062         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91063         no longer needed.
91064         * lib/quotearg.c (quotearg_n_options): Use it.
91065         * lib/group-member.c: Include <stdbool.h>.
91066         (free_group_info): Arg is now const *; don't free arg.
91067         (get_group_info): Now returns bool and accepts struct group_info *,
91068         rather than returning a malloc'ed struct group_info *.
91069         All uses changed.  Check for overflow in internal size calculation.
91070
91071         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91072         rather than xmalloc/xrealloc.
91073         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91074         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91075         conformance bug: the old code used a pointer after freeing the
91076         storage that it addressed.
91077         * lib/hash.c (hash_initialize): Simplify the code by using
91078         xalloc_oversized rather than doing it by hand.
91079         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91080         the buffer preserved.  Use free and xmalloc instead.
91081         * lib/quotearg.c (quotearg_n_options): Likewise.
91082         Use a simpler test for size overflow.  Don't use xalloc_oversized
91083         because unsigned int might be wider than size_t (!); this suggests
91084         that we should switch from unsigned int to size_t for slot numbers.
91085
91086 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91087
91088         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91089         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91090         NetBSD kernels.  Requested by Richard Stallman.
91091
91092 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91093
91094         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91095         to allocate the returned structure.  Do not allocate a subarray,
91096         as x2nrealloc will do that.
91097         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91098         instead of xnrealloc.
91099         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91100
91101 2003-10-27  Bruno Haible  <bruno@clisp.org>
91102
91103         * lib/stdbool_.h: Better support for BeOS.
91104
91105 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91106
91107         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91108         now uses inline.
91109
91110 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91111
91112         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91113         callers that want to do their own size-overflow checking.  Include
91114         <stdbool.h>, since xalloc_oversized returns bool.
91115         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91116         to use xalloc_oversized.
91117
91118         Add two functions x2realloc, x2nrealloc, for programs that grow
91119         arrays dynamically by doubling their sizes.
91120         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91121         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91122         New functions.
91123
91124         Port to C99 semantics for 'inline' of external functions.
91125         Bug reported by Bruno Haible.
91126         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91127         with the old contents of xnmalloc.
91128         (xnmalloc, xmalloc): Use it.
91129         (xnrealloc_inline): New static inline function,
91130         with the old contents of xnrealloc.
91131         (xnrealloc, xrealloc): Use it.
91132
91133         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91134         that.
91135
91136 2003-10-26  Karl Berry  <karl@gnu.org>
91137
91138         * config/srclist.txt (COPYING.DOC): no longer available from
91139         /gd/gnuorg; don't know where the ultimate source is.
91140
91141 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91142
91143         Fix several address-calculation bugs in the hash modules,
91144         plus some minor code cleanup.
91145
91146         * lib/hash.h: Include <stdbool.h>, for bool.
91147         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91148         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91149         hash_get_n_entries, hash_get_max_bucket_length,
91150         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91151         hash_rehash): Use size_t rather than unsigned.
91152         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91153         hash_get_n_buckets_used, hash_get_n_entries,
91154         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91155         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91156         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91157         Likewise.
91158         (SIZE_MAX): Define if not defined.
91159         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91160         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91161         hash_print):
91162         Use const * when possible.
91163         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91164         (check_tuning): Fix bug: if tuning parameters were very close to
91165         0 or 1, rounding errors could have caused subscript violations.
91166         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91167         (hash_initialize): Add 'fail:' label
91168         to free table and return NULL, and use it to simplify code.
91169         Use calloc rather than clearing the storage ourself.
91170         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91171         buffer size calculations.
91172         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91173         Include <stddef.h>, for size_t.
91174         * lib/hash-pjw.c (hash_pjw): Likewise.
91175         Switch to method described by Bruno Haible.
91176         Include <limits.h>, for CHAR_BIT.
91177         (SIZE_BITS): New macro.
91178
91179 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91180
91181         * m4/getline.m4 (AM_FUNC_GETLINE):
91182         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91183         hosts.  Problem reported by Derek Robert Price in
91184         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91185         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91186         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91187
91188 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91189
91190         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91191         ceiling the allocation at NMAX bytes rather than silently
91192         discarding input bytes before NMAX is reached.  This makes
91193         a difference only if NMAX exceeds SIZE_MAX / 2.
91194
91195         * lib/obstack.c: Merge from glibc.
91196         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91197         Add libc_hidden_def (_obstack_newchunk).
91198         (_obstack_free) [! defined _LIBC]: Remove.
91199         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91200         a clone of the function body.
91201         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91202         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91203
91204         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91205         glibc.
91206         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91207         arg to memcpy.
91208
91209         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91210         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91211         Don't use lvalue casts, as GCC plans to remove support for them
91212         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91213         was also present in the non-GCC version, indicating that this
91214         code had always been buggy and had never been widely used.
91215         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91216         Use the fast variant of each macro, rather than copying the
91217         definiens of the fast variant; that way, we'll be more likely to
91218         catch future bugs in the fast variants.
91219
91220 2003-10-20  Bruno Haible  <bruno@clisp.org>
91221
91222         * modules/wait-process: New file.
91223         * MODULES.html.sh (func_all_modules): Add wait-process.
91224
91225 2003-10-20  Bruno Haible  <bruno@clisp.org>
91226
91227         * m4/wait-process.m4: New file.
91228
91229 2003-10-20  Bruno Haible  <bruno@clisp.org>
91230
91231         * lib/wait-process.h: New file, from GNU gettext.
91232         * lib/wait-process.c: New file, from GNU gettext.
91233
91234 2003-10-19  Jim Meyering  <jim@meyering.net>
91235
91236         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91237         HPUX 10.20.
91238
91239 2003-10-18  Karl Berry  <karl@gnu.org>
91240
91241         * config/config.guess: update from config.
91242
91243 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91244
91245         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91246         (getgroups): First arg is int, not size_t.
91247         Don't let 'free' mangle errno.
91248
91249 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91250
91251         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91252
91253 2003-10-16  Karl Berry  <karl@gnu.org>
91254
91255         * config/config.{guess,sub}: update from config.
91256
91257 2003-10-16  Jim Meyering  <jim@meyering.net>
91258
91259         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91260         memcpy.
91261
91262 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91263
91264         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91265         (SIZE_MAX): Remove.
91266         (new_exclude, add_exclude_file): Initial size no longer needs to
91267         be a power of 2.
91268         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91269         our own address arithmetic overflow checking.
91270
91271         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91272         (fnmatch): Do not alloca more than 2000 wide characters;
91273         instead, use malloc for large buffers.
91274         Check for address arithmetic overflow, and return -1
91275         with errno set to ENOMEM in that case.
91276         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91277         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91278         instead, return -1.  Check for address arithmetic overflow.
91279
91280 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91281
91282         Handle invalid suffixes and overflow independently, so that
91283         callers can treat them independently as needed.  Fix some bugs in
91284         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91285         suffix for a human-readable blocksize.  The major caller-visible
91286         change is the addition of a new
91287         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91288         that both overflow and suffix chars were found.
91289
91290         * lib/human.c (humblock): Don't check separately for invalid suffix
91291         char; that is xstrtoumax's job (now that its bug is fixed).
91292         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91293         INTMAX_MAX]: New macros.
91294         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91295         TYPE_MAXIMUM): New macros.
91296         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91297         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91298         if overflow occurs, as it's what __strtol does and it's more useful
91299         in practice.
91300         (__xstrtol): If __strtol reports some error other than ERANGE,
91301         reflect it to the caller as LONGINT_INVALID.  If it reports
91302         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91303         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91304         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91305         value.
91306         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91307         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91308         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91309         [defined UINTMAX_MAX]: New macros.
91310
91311 2003-10-14  Bruno Haible  <bruno@clisp.org>
91312
91313         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91314
91315 2003-10-14  Bruno Haible  <bruno@clisp.org>
91316
91317         * m4/sig_atomic_t: New file, from GNU gettext.
91318         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91319
91320 2003-10-14  Bruno Haible  <bruno@clisp.org>
91321
91322         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91323         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91324         Also use volatile where needed.
91325
91326 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91327
91328         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91329         Change maintainer from Bruno Haible to 'all'.
91330
91331 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91332
91333         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91334
91335 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91336
91337         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91338         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91339         and define in terms of the other primitives.
91340         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91341         (SIZE_MAX): Define if not already defined.
91342         (array_size_overflow): New function.
91343         (xalloc_die): Abort instead of exiting if 'error' returns.
91344         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91345         (xmalloc, xrealloc): Use them.
91346         (xcalloc): Check for address arithmetic overflow.
91347         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91348         a bit faster than strcpy.
91349
91350 2003-10-10  Simon Josefsson  <jas@extundo.com>
91351
91352         * modules/argp (Depends-on): Add restrict and strcase.
91353
91354 2003-10-10  Simon Josefsson  <jas@extundo.com>
91355
91356         * m4/argp.m4: Add AC_C_INLINE.
91357
91358 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91359
91360         Merge getpass from libc, plus a few fixes.
91361
91362         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91363         Include <stdbool.h>.
91364         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91365         __fsetlocking to empty.
91366         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91367         do include <bits/libc-lock.h>.
91368         Do not include <fcntl.h>; not needed.
91369         [_LIBC]: Include <wchar.h>.
91370         (NOTCANCEL_MODE): New macro.
91371         (flockfile, funlockfile) [_LIBC]: New macros.
91372         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91373         [!_LIBC]: New macros.
91374         (call_fclose): New function.
91375         (getpass): Use it.  Save tty stream separately; this simplifies the
91376         code and makes it more reliable if stdin happens to equal stdout.
91377         Invoke __fsetlocking on tty.
91378         Handle thread cancellation if needed.
91379         Namespace cleanup (use __tcgetattr, __getline).
91380         Use bool for Booleans.
91381         [USE_IN_LIBIO]: Handle wide streams.
91382         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91383         stream might go where.
91384
91385         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91386         doesn't have to include <stdio.h> before us.
91387         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91388         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91389         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91390         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91391         if not declared, so that we can use getpass.c code from libc without
91392         rewriting it.
91393         (flockfile, ftrylockfile, funlockfile): New macros.
91394
91395 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91396
91397         * modules/getpass: Depend on stdbool.
91398
91399 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91400
91401         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91402
91403 2003-10-07  Karl Berry  <karl@gnu.org>
91404
91405         * config/config.{guess,sub}: update from config.
91406
91407 2003-10-06  Jim Meyering  <jim@meyering.net>
91408             Bruno Haible  <bruno@clisp.org>
91409
91410         This lets translators provide better translations for the
91411         "Written by ..." part of --version output.
91412         * lib/version-etc.h: Include stdarg.h.
91413         (version_etc_copyright): Declare as readonly.
91414         (version_etc): Make this function variadic with a NULL-terminated list
91415         of author name strings.
91416         (version_etc_va): New declaration.
91417         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91418         (version_etc_copyright): Declare as readonly.
91419         (version_etc_va): New function. Provide a different translatable string
91420         for each possible number of authors < 10. Abbreviate when there are 10
91421         authors or more.
91422         (version_etc): Make this function variadic. Call version_etc_va.
91423         Suggestion from Gary V. Vaughan.
91424
91425         * lib/long-options.h (parse_long_options): Change prototype: the
91426         authors string is moved to the end and becomes variadic.
91427         * lib/long-options.c: Include stdarg.h.
91428         (parse_long_options): Make this function variadic, too.
91429         Call version_etc_va, not version_etc.
91430
91431 2003-10-06  Bruno Haible  <bruno@clisp.org>
91432
91433         * modules/version-etc-2: Remove file.
91434         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91435
91436 2003-10-06  Bruno Haible  <bruno@clisp.org>
91437
91438         * modules/fatal-signal: New file.
91439         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91440
91441 2003-10-06  Bruno Haible  <bruno@clisp.org>
91442
91443         * m4/fatal-signal.m4: New file.
91444         * m4/signalblocking.m4: New file, from GNU gettext.
91445
91446 2003-10-06  Bruno Haible  <bruno@clisp.org>
91447
91448         * lib/version-etc-2.h: Remove file.
91449         * lib/version-etc-2.c: Remove file.
91450
91451 2003-10-06  Bruno Haible  <bruno@clisp.org>
91452
91453         * lib/fatal-signal.h: New file, from GNU gettext.
91454         * lib/fatal-signal.c: New file, from GNU gettext.
91455
91456 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91457
91458         * README: Rework advice for preventing empty .o files.
91459         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91460         not <sys/types.h>.
91461
91462 2003-10-04  Karl Berry  <karl@gnu.org>
91463
91464         * lib/argp*: update from libc.
91465
91466 2003-10-04  Karl Berry  <karl@gnu.org>
91467
91468         * config/config.{guess,sub}: update from config.
91469
91470 2003-10-02  Bruno Haible  <bruno@clisp.org>
91471
91472         * modules/lchown (Include): Add lchown.h.
91473         * modules/time_r (Include): Use "..." syntax.
91474         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91475
91476 2003-10-01  Simon Josefsson  <jas@extundo.com>
91477
91478         * MODULES.html.sh (func_all_modules): Move gethostname from section
91479         'based on' to section 'lacking' POSIX:2001.
91480
91481 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91482
91483         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91484         to output mode on the same stream.
91485
91486 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91487
91488         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91489         Fix arg typo in previous patch.
91490
91491 2003-09-28  Jim Meyering  <jim@meyering.net>
91492
91493         * lib/error.c: Correct cpp indentation.
91494
91495 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91496
91497         * modules/free: New file.
91498
91499 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91500
91501         * m4/free.m4: New file.
91502
91503 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91504
91505         * lib/minmax.h (MIN, MAX)
91506         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91507         Omit the special code that used __typeof__, since we worry that
91508         it could be more trouble than it's worth.  See:
91509         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91510         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91511
91512         * lib/free.c: New file.
91513
91514 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91515
91516         Trivial fixes to Makefile.am parts of module listings.
91517         * modules/strstr: Append strstr.h to lib_SOURCES.
91518         * modules/strcase: Likewise, for strcase.h.
91519
91520 2003-09-27  Karl Berry  <karl@gnu.org>
91521
91522         * config/mkinstalldirs: update from automake.
91523
91524 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91525
91526         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91527         (error_tail): Do not loop, reallocating temporary buffer, since
91528         the output cannot contain more wide characters than the input
91529         contains bytes, the size must be big enough already.  This avoids
91530         one potential size overflow calculation.  Check for size overflow
91531         when calculating temporary buffer size.  Free temporary buffer
91532         when done, if it was allocated with malloc; this plugs a memory
91533         leak.  Remove casts from void * to pointers, that are no longer
91534         needed now that we're assuming C89 or better.
91535
91536         Merge error changes from glibc.
91537
91538         * lib/error.c, error.h: Update copyright notice header to match glibc.
91539         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91540         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91541         Disable cancellation while printing error.
91542         * lib/error.h: Prepend __ to parameter names.
91543
91544 2003-09-26  Jim Meyering  <jim@meyering.net>
91545
91546         * lib/error.c (error_tail): Move some declarations
91547         into inner scope where the local variables are used.
91548
91549 2003-09-26  Bruno Haible  <bruno@clisp.org>
91550
91551         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91552         stpncpy().
91553         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91554
91555 2003-09-26  Bruno Haible  <bruno@clisp.org>
91556
91557         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91558         (stpncpy): Define as alias for gnu_stpncpy.
91559         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91560
91561 2003-09-25  Simon Josefsson  <jas@extundo.com>
91562
91563         * lib/xgetdomainname.h: New file.
91564         * lib/xgetdomainname.c: New file.
91565
91566 2003-09-25  Simon Josefsson  <jas@extundo.com>
91567             Bruno Haible  <bruno@clisp.org>
91568
91569         * modules/getdomainname: New file.
91570         * modules/xgetdomainname: New file.
91571         * MODULES.html.sh (func_all_modules): Add getdomainname,
91572         xgetdomainname.
91573
91574 2003-09-25  Simon Josefsson  <jas@extundo.com>
91575             Bruno Haible  <bruno@clisp.org>
91576
91577         * m4/getdomainname.m4: New file.
91578
91579 2003-09-25  Simon Josefsson  <jas@extundo.com>
91580             Bruno Haible  <bruno@clisp.org>
91581
91582         * lib/getdomainname.h: New file.
91583         * lib/getdomainname.c: New file.
91584
91585 2003-09-25  Karl Berry  <karl@gnu.org>
91586
91587         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91588
91589 2003-09-25  Karl Berry  <karl@gnu.org>
91590
91591         * config/install-sh: update from automake.
91592
91593 2003-09-25  Bruno Haible  <bruno@clisp.org>
91594
91595         * modules/version-etc-2: New file, from modules/version-etc with
91596         modifications.
91597         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91598
91599 2003-09-25  Bruno Haible  <bruno@clisp.org>
91600
91601         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91602         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91603
91604 2003-09-24  Simon Josefsson  <jas@extundo.com>
91605
91606         * modules/xgethostname: Add xgethostname.h.
91607
91608 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91609
91610         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91611         the buffer associated with the argument.  Bug reported by
91612         Simon Josefsson.
91613
91614 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91615
91616         * README: Document assumptions that 'int' is at least 32 bits
91617         wide, that integer arithmetic is 2's complement without overflow,
91618         that there are no holes in integer values, that adding sizes of
91619         two nonoverlapping objects can't overflow, and that all-bits-zero
91620         yields scalar zero.  Fix spelling and capitalization typos.
91621
91622 2003-09-19  Karl Berry  <karl@gnu.org>
91623
91624         * lib/argp.h: update from libc.
91625
91626 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91627
91628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91629         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91630         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91631
91632 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91633
91634         * gnulib-tool: Use "test -h", not "test -L", for portability
91635         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91636         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91637         (sed_extract_prog): Issue s commands one-by-one, rather than
91638         using \| in one s command.
91639
91640 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91641
91642         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91643         input error, instead of returning NULL the next time we are called
91644         (and therefore losing track of errno).
91645
91646 2003-09-16  Bruno Haible  <bruno@clisp.org>
91647
91648         * gnulib-tool (func_create_testdir): Warn about duplicated
91649         dependencies.
91650
91651 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91652
91653         * modules/argmatch, modules/fatal, modules/obstack,
91654         modules/xalloc, modules/xgethostname: Sort dependencies by
91655         importance, not alphabetically.
91656
91657 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91658
91659         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91660         fails, so that the caller gets the proper errno.
91661
91662         * lib/readutmp.c (read_utmp): Likewise.
91663         Check for fstat error.  Close stream and free storage
91664         when failing.
91665
91666 2003-09-14  Karl Berry  <karl@gnu.org>
91667
91668         * config/srclist.txt (strdup.c): disable for c89 changes.
91669
91670 2003-09-14  Jim Meyering  <jim@meyering.net>
91671
91672         * lib/getloadavg.c: Correct cpp indentation.
91673         * lib/strdup.c: Likewise.
91674         * lib/vasnprintf.c: Likewise.
91675
91676 2003-09-14  Bruno Haible  <bruno@clisp.org>
91677
91678         * modules/fwriteerror: New file.
91679         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91680
91681 2003-09-14  Bruno Haible  <bruno@clisp.org>
91682
91683         * lib/fwriteerror.h: New file.
91684         * lib/fwriteerror.c: New file.
91685
91686 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91687
91688         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91689         modules/xgethostname, modules/xalloc: Depend on exit.
91690
91691 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91692
91693         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91694
91695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91696         and AC_MINIX, too, so that their extensions are available.
91697
91698         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91699         This macro has been superseded by gl_BACKUPFILE.
91700
91701         More patches to assume C89 or better.
91702
91703         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91704
91705         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91706         unconditionally.
91707         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91708         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91709         Include <string.h>, <stdlib.h> unconditionally.
91710         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91711         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91712         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91713         headers or for string.h.
91714         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91715         or strtoul.
91716
91717         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91718         headers.
91719         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91720         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91721         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91722         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91723         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91724         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91725         memcpy, memset.
91726         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91727         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91728         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91729         strtol.
91730         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91731         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91732         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91733         strtoul.
91734
91735 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91736
91737         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91738         * lib/obstack.c [!defined _LIBC]: Likewise.
91739         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91740         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91741         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91742
91743         More changes to assume C89 or better.
91744
91745         * lib/error.c (error_tail): Assume vprintf.
91746
91747         * lib/argmatch.c (getenv): Remove decl.
91748         * lib/progreloc.c (get_full_program_name): Define via prototype.
91749         * lib/setenv.c (clearenv): Likewise.
91750         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91751         needed.
91752         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91753         (malloc, memcpy): Remove decls.
91754         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91755         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91756         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91757         (memcpy): Remove macro.
91758         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91759         (__P): Remove.  All uses removed.
91760         (PTR): Remove.  All uses changed to void *.
91761         (CHAR_BIT, NULL): Remove.
91762         (spaces, zeros, memset_space, memset_zero)
91763         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91764         Remove.
91765         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91766         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91767         Define with prototype.
91768         Remove now-unnecessary prototype decl.
91769         (extra_args_spec): Assume ANSI C.  All uses changed.
91770         (extra_args_spec_iso): Remove.
91771         (my_strftime, emacs_strftimeu): Define via prototype.
91772         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91773         unconditionally.
91774         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91775         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91776         (strtoul, strtol): Remove decls.
91777         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91778         LONG_MAX): Remove.
91779         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91780         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91781         (LOCALE_PARAM_PROTO): New macro.
91782         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91783         (INTERNAL (strtol), strtol): Define with a prototype.
91784         (PARAMS): Remove.  All uses removed.
91785         * lib/tempname.c: Include <string.h> unconditionally.
91786         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91787         * lib/xgethostname.c (main): Define with a prototype.
91788         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91789         Include <stdlib.h> unconditionally.
91790         (calloc, malloc, realloc, free): Remove decls.
91791         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91792         Include <stdlib.h> unconditionally.  Sort include file names.
91793         (strtod): Remove.
91794         (xstrtod): Define with a prototype.
91795         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91796         (strtol, strtoul): Remove decls.
91797
91798 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91799
91800         More patches to assume C89 or better.
91801         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91802         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91803         string.h, memchr, STDC_HEADERS.
91804
91805 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91806
91807         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91808         Include <stdlib.h>, <string.h> unconditionally.
91809         Remove now-unnecessary cast to char *.
91810         * lib/strnlen.c: Include <string.h> unconditionally.
91811         * lib/yesno.c (yesno): Define with a prototype.
91812
91813 2003-09-11  Bruno Haible  <bruno@clisp.org>
91814
91815         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91816
91817 2003-09-10  Jim Meyering  <jim@meyering.net>
91818
91819         * lib/error.c: Correct indentation of cpp directives.
91820
91821 2003-09-10  Bruno Haible  <bruno@clisp.org>
91822
91823         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91824         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91825         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91826         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91827         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91828         <stdlib.h> and <string.h> checks.
91829         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91830         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91831
91832 2003-09-10  Bruno Haible  <bruno@clisp.org>
91833
91834         * lib/strcspn.c: Include <string.h> unconditionally.
91835         * lib/strpbrk.c: Include <string.h> unconditionally.
91836         * lib/strstr.c: Include <string.h> unconditionally.
91837         * lib/unicodeio.c: Include <string.h> unconditionally.
91838         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91839         * lib/unsetenv.c: Likewise.
91840         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91841         * lib/yesno.c: Include <stdlib.h> unconditionally.
91842         (rpmatch): Add prototype.
91843
91844 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91845
91846         More patches to assume C89 or better.
91847         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91848         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91849         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91850         or for string.h.
91851         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91852         stdlib.h.
91853         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91854         C headers.
91855         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91856         string.h.
91857         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91858         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91859         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91860         or for string.h.
91861         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91862         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91863         C headers.
91864         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91865         memcpy.
91866         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91867         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91868         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91869         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91870         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91871         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91872         string.h, free.
91873         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91874         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91875         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91876         C headers, or for string.h.
91877         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91878         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91879         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91880         headers, memory.h, stdlib.h, string.h, strings.h.
91881         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91882         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91883         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91884         strchr.
91885         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91886         headers, memory.h, string.h.
91887         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91888         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91889         free.
91890         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91891         headers.
91892         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91893         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91894         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91895         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91896         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91897
91898 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91899
91900         More K&R removal.
91901
91902         * lib/acosl.c (main): Use a prototype.
91903         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91904         tanl.c: Likewise.
91905
91906         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91907
91908         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91909         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91910         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91911         with a prototype.
91912         * lib/getopt.c (const): Remove macro.
91913         Include <string.h> unconditionally.
91914         (my_index): Remove; all uses changed to strchr.
91915         (strlen): Remove decl.
91916         (exchange): Remove forward decl; no longer needed.
91917         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91918         Define with prototype.
91919         * lib/getopt1.c (const): Remove macro.
91920         (getopt_long, getopt_long_only, main): Define with prototype.
91921
91922         * lib/getugroups.c: Include <string.h> unconditionally.
91923
91924         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91925         (getusershell, setusershell, endusershell, readname, main):
91926         Define with prototypes.
91927
91928         * lib/group-member.c: Include group-member.h first.
91929         Include <stdlib.h> unconditionally.
91930
91931         * lib/hard-locale.c: Include hard-locale.h first.
91932         Include <stdlib.h>, <string.h> unconditionally.
91933
91934         * lib/hash.c (free, malloc): Remove decls.
91935         Include <stdlib.h> unconditionally.
91936
91937         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91938         (getenv): Do not declare.
91939
91940         * lib/idcache.c: Include <string.h> unconditionally.
91941
91942         * lib/long-options.c: Include long-options.h first, to test interface.
91943         Include <stdlib.h> unconditionally.
91944
91945         * lib/makepath.c: Include makepath.h first, to test interface.
91946         Include <stdlib.h> and <string.h> unconditionally.
91947
91948         * lib/linebuffer.c: Include <stdlib.h>.
91949         (free): Remove decl.
91950
91951         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91952         stddef.h. rpl_malloc returns void *, not char *.
91953         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91954         prototype.
91955
91956         * lib/md5.h: Include <limits.h> unconditionally.
91957         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91958         (__P): Remove; all uses removed.
91959         * lib/md5.c: Include "md5.h" first.
91960         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91961         md5_buffer, md5_process_bytes, md5_process_block):
91962         Define with prototypes.
91963         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91964         * lib/sha.c: Include "sha.h" first.
91965         Include <stdlib.h>, <string.h> unconditionally.
91966
91967         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91968         * lib/memcmp.c (__ptr_t): Likewise.
91969         * lib/memrchr.c (__ptr_t): Likewise.
91970         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91971         Include <string.h> unconditionally.
91972         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91973         * lib/memchr.c: Include <stdlib.h> unconditionally.
91974         * lib/memchr.c (LONG_MAX): Remove.
91975         * lib/memrchr.c (LONG_MAX): Likewise.
91976         * lib/memchr.c (__memchr): Define via a prototype.
91977         * lib/memrchr.c (__memrchr): Likewise.
91978         * lib/memcmp.c (__P): Remove, and remove all uses.
91979         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91980         Remove forward decls; no longer needed.
91981         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91982         Use types required by C89 in prototype.
91983
91984         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91985         * lib/savedir.c: Likewise.
91986         * lib/mkdir.c (free): Remove decl.
91987         * lib/rmdir.c (rmdir): Define with a prototype.
91988         * lib/savedir.c: Include savedir.h first, to test interface.
91989
91990         * lib/mktime.c (STDC_HEADERS): Remove.
91991         Include <stdlib.h>, <string.h> unconditionally.
91992
91993         * lib/modechange.c: Include <stdlib.h> unconditionally.
91994         (malloc): Remove decl.
91995
91996         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91997         (free): Remove decl.
91998
91999         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92000         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92001         (This type really should be intptr_t, but that's a C99ism.)
92002         (_obstack_memcpy): Remove: all uses changed to memcpy.
92003         Include <string.h> unconditionally.
92004         (struct obstack): Assume __STDC__ for types of members
92005         chunkfun, freefun, extra_arg.
92006         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92007         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92008         obstack_begin, obstack_specify_allocation,
92009         obstack_specify_allocation_with_arg, obstack_chunkfun,
92010         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92011         Remove unprototyped decls and the macros that use them.
92012         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92013         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92014         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92015         (defined __STDC__ && __STDC__)]:
92016         Remove nonprototyped code.
92017         Include <stdlib.h> unconditionally.
92018         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92019         _obstack_allocated_p, _obstack_free, obstack_free,
92020         _obstack_memory_used, print_and_abort):
92021         Define using prototypes.
92022         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92023         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92024         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92025         obstack_next_free, obstack_object_size, obstack_room) [0]:
92026         Remove unused, unprototyped code.
92027
92028         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92029
92030         * lib/physmem.c (physmem_total, physmem_available, main): Define
92031         with prototypes.
92032
92033         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92034         (main): Define with a prototype.
92035
92036         * lib/posixver.c (getenv): Remove decl.
92037
92038         * lib/putenv.c (malloc): Returns void *, not char *.
92039         Include <string.h> unconditionally.
92040         (strchr, memcpy, NULL): Do not define.
92041
92042         * lib/readtokens.c: Include readtokens.h first, to test interface.
92043         Include <stdlib.h>, <string.h> unconditionally.
92044         (init_tokenbuffer): Define with a prototype.
92045
92046         * lib/regex.c (PARAMS): Remove.  All uses removed.
92047         All uses of _RE_ARGS removed, too.
92048         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92049         unconditionally.
92050         (bzero): Assume memset exists.
92051         (memcmp, memcpy, NULL): Remove.
92052         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92053         char, or assignments to local vars of type signed char.
92054         (init_syntax_once, PREFIX(extract_number_and_incr),
92055         PREFIX(print_partial_compiled_pattern),
92056         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92057         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92058         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92059         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92060         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92061         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92062         wcs_compile_range, byte_compile_range, truncate_wchar,
92063         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92064         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92065         count_mbs_length, wcs_re_match_2_internal,
92066         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92067         PREFIX(alt_match_null_string_p),
92068         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92069         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92070         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92071         now-unnecessary declaration, if any.
92072         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92073         regcomp, regexec):
92074         Remove now-unnecessary casts among pointer types.
92075         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92076
92077         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92078         (free): Remove decl.
92079
92080         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92081
92082         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92083         (free): Remove decl.
92084
92085         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92086         * lib/xgetcwd.c: Likewise.
92087
92088         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92089         (free): Remove decl.
92090
92091         * lib/strchrnul.c (strchrnul): Define with a prototype.
92092         Fix bug: c_in was not converted to char before searching.
92093
92094         The following changes are not K&R related:
92095
92096         * lib/group-member.h: Include <sys/types.h>, so that this file is
92097         self-contained.
92098         * lib/makepath.h: Likewise.
92099
92100         * lib/getusershell.c (readname, default_index, line_size, readname):
92101         Use size_t, not int, for sizes.
92102         (readname): If the size overflows, report an error instead of
92103         looping forever.
92104
92105 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92106
92107         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92108         libc.
92109
92110 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92111
92112         * README: New section: portability guidelines.
92113
92114 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92115
92116         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92117         C89 spec.
92118
92119 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92120
92121         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92122
92123 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92124
92125         Assume C89 or better; remove K&R cruft.
92126         A few of these changes were first proposed by Derek Robert Price
92127         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92128
92129         * lib/addext.c: Include <string.h> unconditionally.
92130         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92131         Don't declare getenv or malloc.
92132
92133         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92134         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92135         (NULL): Remove.
92136         (find_stack_direction, alloca): Use prototypes.
92137
92138         * lib/atexit.c (atexit): Define using a prototype.
92139
92140         * lib/basename.c, dirname.c, stripslash.c:
92141         Include <string.h> unconditionally.
92142
92143         * lib/bcopy.c: Include <stddef.h>.
92144         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92145
92146         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92147
92148         * lib/error.h (error, error_at_line, error_print_progname)
92149         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92150         * lib/error.c: Include error.h first, to check interface.
92151         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92152         (VA_START): Remove; all uses changeed to va_start.
92153         (exit, strerror): Remove decls.
92154         (error_print_progname): Prototype uncondionally.
92155         Don't include <errno.h>; no longer needed.
92156         (private_strerror): Remove.
92157         (error_tail): Always define.
92158         (error, error_at_line): Assume C89 or better; always use prototypes.
92159         * lib/fatal.c: Include "fatal.h" first, to test interface.
92160         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92161         (VA_START): Remove; all uses changed to va_start.
92162         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92163         this case.
92164         (exit): Remove decl.
92165         (fatal): Prototype unconditionally.  Assume va_start works.
92166         Abort at end, to pacify gcc.
92167
92168         * lib/euidaccess.c (main): Define with a prototype.
92169
92170         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92171
92172         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92173
92174         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92175         prototypes.
92176         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92177         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92178         (getenv): Remove decl.
92179         (fnmatch): Define using a prototype.
92180         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92181         (FCT): Define using a prototype.
92182
92183         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92184
92185         * lib/gethostname.c: Include <stddef.h>.
92186         (gethostname): Define with prototype.  Length is size_t, not int.
92187
92188 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92189
92190         Assume C89 or better; remove K&R cruft.
92191         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92192         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92193         string.h, getenv, malloc.
92194         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92195         headers.
92196         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92197         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92198         do not check for strerror.
92199         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92200         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92201         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92202         do not check for doprnt or vprintf.
92203         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92204         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92205
92206 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92207
92208         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92209         getversion.c should have been removed then, but was accidentally
92210         preserved.
92211
92212         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92213         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92214
92215 2003-09-08  Karl Berry  <karl@gnu.org>
92216
92217         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92218                 config, forget about prep.
92219
92220         * config/depcomp, missing: update from automake.
92221
92222 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92223
92224         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92225         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92226
92227 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92228
92229         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92230         copy_tm_result.  Bug reported by Simon Josefsson in
92231         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92232
92233 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92234
92235         * m4/time_r.m4: New file.
92236         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92237         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92238         is. Check for timegm declaration.
92239         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92240         Do not check for gmtime_r.
92241         Replace mktime if __mktime_internal does not exist and if mktime
92242         hasn't been replaced already.
92243
92244 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92245
92246         * lib/time_r.c, lib/time_r.h: New files.
92247
92248         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92249         __localtime_r.
92250         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92251         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92252
92253         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92254         __gmtime_r.
92255         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92256         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92257         Include <time_r.h>.
92258
92259         * lib/timegm.c: Switch to glibc implementation, with the following
92260         changes:
92261         [defined HAVE_CONFIG_H]: Include <config.h>.
92262         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92263         (__mktime_internal) [!defined _LIBC]: New decl.
92264         (__gmtime_r) [!defined _LIBC]: New macro and function.
92265         (timegm): Use a prototype, since gnulib assumes C89.
92266         Do not bother declaring tmp to be const, as it's not really usefu.
92267         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92268         (timegm): Declare only if HAVE_DECL_TIMEGM.
92269
92270 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92271
92272         * MODULES.html.sh (func_all_modules): Add time_r.
92273         * modules/time_r: New file.
92274         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92275         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92276
92277 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92278
92279         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92280         Bug reported by Lute Kamstra in
92281         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92282
92283         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92284         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92285         course with correspondingly smaller numbers for tomorrow and
92286         yesterday.  From Tadayoshi Funaba.  Originally installed into
92287         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92288         coreutils merge?).
92289
92290 2003-08-31  Simon Josefsson  <jas@extundo.com>
92291
92292         * modules/timegm: New file.
92293         * MODULES.html.sh (func_all_modules): Add timegm.
92294
92295 2003-08-31  Simon Josefsson  <jas@extundo.com>
92296
92297         * m4/timegm.m4: New file.
92298
92299 2003-08-31  Simon Josefsson  <jas@extundo.com>
92300
92301         * lib/timegm.h: New file.
92302         * lib/timegm.c: New file.  Based on
92303         wget-1.8.2/src/http.c:mktime_from_utc.
92304
92305 2003-08-31  Karl Berry  <karl@gnu.org>
92306
92307         * lib/argp.h: update from libc.
92308
92309 2003-08-28  Bruno Haible  <bruno@clisp.org>
92310
92311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92312         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92313         followed by '#define fnmatch fnmatch_posix' gives an error.
92314
92315 2003-08-28  Bruno Haible  <bruno@clisp.org>
92316
92317         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92318         warning on QNX, which defines O_BINARY to 000000.
92319
92320 2003-08-27  Jim Meyering  <jim@meyering.net>
92321
92322         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92323         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92324         would fail after 32.  Reported by Danny Levinson.  Details here:
92325         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92326
92327 2003-08-24  Bruno Haible  <bruno@clisp.org>
92328
92329         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92330         MSVC7 <stdio.h> is included later.
92331
92332 2003-08-22  Simon Josefsson  <jas@extundo.com>
92333
92334         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92335
92336 2003-08-20  Karl Berry  <karl@gnu.org>
92337
92338         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92339
92340 2003-08-20  Bruno Haible  <bruno@clisp.org>
92341
92342         * modules/progname: New file.
92343         * MODULES.html.sh (func_all_modules): Add progname.
92344
92345 2003-08-20  Bruno Haible  <bruno@clisp.org>
92346
92347         * lib/progname.h: New file, from GNU gettext.
92348         * lib/progname.c: New file, from GNU gettext.
92349         * lib/progreloc.c: New file, from GNU gettext.
92350
92351 2003-08-19  Jim Meyering  <jim@meyering.net>
92352
92353         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92354         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92355
92356 2003-08-19  Bruno Haible  <bruno@clisp.org>
92357
92358         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92359         more.
92360
92361 2003-08-19  Bruno Haible  <bruno@clisp.org>
92362
92363         * lib/xstrdup.c: Assume <string.h> exists.
92364
92365 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92366
92367         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92368         in makefile rules.
92369
92370 2003-08-18  Jim Meyering  <jim@meyering.net>
92371
92372         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92373         * m4/lib-ld.m4: Likewise.
92374
92375 2003-08-18  Jim Meyering  <jim@meyering.net>
92376
92377         * lib/setenv.h: Indent nested cpp directive.
92378         * lib/vasnprintf.c: Remove trailing blanks.
92379
92380 2003-08-17  Simon Josefsson  <jas@extundo.com>
92381
92382         * modules/xstrndup: New file.
92383         * MODULES.html.sh (func_all_modules): Add xstrndup.
92384
92385 2003-08-17  Simon Josefsson  <jas@extundo.com>
92386
92387         * modules/argp: Fix autoconf macro name. Add more dependencies.
92388
92389 2003-08-17  Simon Josefsson  <jas@extundo.com>
92390
92391         * m4/xstrndup.m4: New file.
92392
92393 2003-08-17  Simon Josefsson  <jas@extundo.com>
92394
92395         * m4/argp.m4: New file.
92396
92397 2003-08-17  Simon Josefsson  <jas@extundo.com>
92398             Bruno Haible  <bruno@clisp.org>
92399
92400         * lib/xstrndup.h: New file.
92401         * lib/xstrndup.c: New file.
92402
92403 2003-08-17  Bruno Haible  <bruno@clisp.org>
92404
92405         * modules/strndup (Files, Include): Add lib/strndup.h.
92406
92407 2003-08-17  Bruno Haible  <bruno@clisp.org>
92408
92409         * modules/euidaccess (Files): Add lib/euidaccess.h.
92410
92411 2003-08-17  Bruno Haible  <bruno@clisp.org>
92412
92413         * lib/strndup.h: New file.
92414
92415 2003-08-17  Bruno Haible  <bruno@clisp.org>
92416
92417         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92418         like AC_GNU_SOURCE.
92419         * modules/extensions (configure.ac): Comment out the invocation of
92420         gl_USE_SYSTEM_EXTENSIONS.
92421
92422 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92423
92424         Merges from coreutils, etc.
92425         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92426         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92427         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92428         fixing a typo.
92429         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92430         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92431
92432 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92433
92434         Document merge from coreutils.
92435         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92436         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92437         * modules/utime: Add m4/utimes-null.m4.
92438
92439 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92440
92441         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92442         space, undoing this 2003-08-12 change:
92443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92444
92445 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92446
92447         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92448         strtoul.c from libc, undoing this 2003-08-12 change:
92449         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92450
92451 2003-08-16  Jim Meyering  <jim@meyering.net>
92452
92453         Merges from coreutils.
92454         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92455         prefix.  Adjust cache variables similarly.  Create 500 rather than
92456         just 300 files, to exercise bug on Darwin6.5, too.
92457         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92458         $missing_dir.
92459         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92460         AM_SYS_POSIX_TERMIOS.
92461         Reported by mkc@mathdogs.com.
92462         Also change use of $am_cv_sys_posix_termios
92463         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92464         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92465         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92466         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92467         in /proc/mounts until it finds one with matching device number.  This
92468         is unnecessary when the FILE argument *is* a mount point.  No stat call
92469         is necessary in that case.  So, disable the statvfs-testing code on
92470         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92471         as RedHat bug# 84846.
92472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92473         to 1MB, so as not to render systems with no stack size limit (e.g.,
92474         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92475         Include <unistd.h>.  On some systems,
92476         it is required for the definition of _SC_PAGESIZE.
92477
92478 2003-08-16  Jim Meyering  <jim@meyering.net>
92479
92480         Merge from coreutils.
92481         * lib/xstrtoimax.c: #else #if -> #elif.
92482         * lib/xstrtoumax.c: Likewise.
92483
92484 2003-08-16  Jim Meyering  <jim@meyering.net>
92485
92486         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92487         * m4/utimes.m4: Removed.
92488         * m4/utimes-null.m4: Renamed from utimes.m4.
92489
92490         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92491         to 1MB, so as not to render systems with no stack size limit (e.g.,
92492         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92493         Include <unistd.h>.  On some systems,
92494         it is required for the definition of _SC_PAGESIZE.
92495
92496 2003-08-16  Jim Meyering  <jim@meyering.net>
92497         and Paul Eggert  <eggert@cs.ucla.edu>
92498
92499         Merges from coreutils, etc.
92500
92501         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92502         using the latest version from cvs.  This avoids problems with #line
92503         directives using a vendor (Sun) compiler.
92504         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92505         Don't set GETGROUPS_LIB here; now it's
92506         done via getgroups.m4's wrapper function.
92507         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92508         rather than just in sh-util/configure.in, so that the
92509         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92510         same.
92511         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92512         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92513         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92514         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92515         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92516         Remove code that is now done by the newly-required macros.
92517         Append $(EXEEXT) to DF_PROG.
92518         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92519         Do not invoke or require the following here,
92520         since prereq.m4 or some gnulib .m4 now does this for us:
92521         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92522         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92523         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92524         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92525         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92526         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92527         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92528         AC_FUNC_OBSTACK.
92529         Do not replace the following functions, as this is now the job
92530         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92531         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92532         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92533         atexit getpass, strdup, getpagesize.
92534         Replace 'raise'.
92535         Do not check for the following functions, as this is now the job
92536         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92537         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92538         setregid.
92539         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92540         Check for sys/sysctl.h.
92541         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92542         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92543         of checking for ssize_t ourselves.
92544
92545         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92546         Require every macro that gnulib/modules/* suggests for us.
92547         (jm_PREREQ_ADDEXT): New macro.
92548         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92549         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92550
92551         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92552         (gl_PHYSMEM): Use it.
92553         Also check for `table' function.
92554         Check for new headers and functions.
92555         Add check for sys/sysmp.h.
92556         With suggestions from Kaveh Ghazi.
92557         Ignore headers that are present but cannot be compiled.  This
92558         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92559         C 5.4.
92560
92561 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92562
92563         Document merge from coreutils.
92564         * modules/userspec: Depend on posixver.
92565         * modules/strftime: Depend on tzset.
92566
92567 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92568
92569         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92570         rather than tab, after '#' in shell-script copyright notices.
92571         Suggested by Bruno Haible.
92572
92573 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92574
92575         * config/srclist-update: Use three spaces, rather than tab, after '#'
92576         in shell-script copyright notices.  Suggested by Bruno Haible.
92577         Remove unnecessary parenthesization in regular expression.
92578
92579 2003-08-15  Jim Meyering  <jim@meyering.net>
92580
92581         Merge from coreutils.
92582         * lib/xgethostname.c: Include <stdlib.h>.
92583         (xghostname): Don't exit for anything other than memory-related
92584         failure; just return NULL.
92585         * lib/userspec.c: Include "posixver.h".
92586         (parse_user_spec): Accept `.' as a separator only
92587         in pre-POSIX-200112 mode.
92588         * lib/strtoimax.c: Use #elif rather than #else #if.
92589         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92590         Remove function, now that we can rely on a working tzset function.
92591         [!_LIBC]: Ensure that the required autoconf test has been run.
92592         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92593         Use underlying_strftime for %r.
92594         * lib/sha.c: Merge in some clean-up and optimization changes from
92595         glibc.
92596         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92597         Ensure that it is a multiple of 64.
92598         Rearrange loop exit tests so as to avoid performing an
92599         additional fread after encountering an error or EOF.
92600         * lib/realloc.c: Update copyright date.
92601
92602 2003-08-15  Jim Meyering  <jim@meyering.net>
92603         and Paul Eggert  <eggert@twinsun.com>
92604
92605         Merge from coreutils.
92606         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92607         member but strut utmpx does not.  Needed for AIX 4.3.3.
92608         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92609
92610 2003-08-15  Jim Meyering  <jim@meyering.net>
92611         and Paul Eggert  <eggert@cs.ucla.edu>
92612
92613         Merges from coreutils, etc.
92614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92615         Require gl_FUNC_TZSET_CLOBBER.
92616         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92617         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92618         members.
92619
92620 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92621
92622         Help the merge from coreutils.
92623         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92624         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92625         * m4/tzset.m4: Use it too.
92626
92627 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92628
92629         * modules/tzset: New file.
92630
92631 2003-08-14  Jim Meyering  <jim@meyering.net>
92632
92633         Merges from coreutils.
92634         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92635         variable names, rather than @FNMATCH_H@.
92636         * modules/alloca: Likewise for $(ALLOCA_H).
92637
92638         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92639         the three copies of the literal target, `fnmatch.h'.
92640         * modules/alloca (alloca.h): Likewise.
92641
92642 2003-08-14  Jim Meyering  <jim@meyering.net>
92643
92644         Merge from coreutils.
92645         * m4/tzset.m4: New file.
92646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92647         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92648         otherwise, AIX 5.1 systems would end up using the latter.
92649         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92650         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92651         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92652         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92653
92654 2003-08-14  Jim Meyering  <jim@meyering.net>
92655
92656         Merge from coreutils.
92657         * lib/obstack.h: Whitespace changes.
92658         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92659         and xcalloc return values.
92660         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92661         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92662         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92663         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92664         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92665         error from mntctl.
92666         Use mntctl's return value to drive the entry-processing loop, since
92667         we can't rely on the value of the vmt_length member in the last
92668         entry.  On some systems doing so could result in exhausting
92669         virtual memory.  Based in part on a patch from Mike Jetzer.
92670
92671 2003-08-14  Jim Meyering  <jim@meyering.net>
92672         and Paul Eggert  <eggert@twinsun.com>
92673
92674         Merges from coreutils, plus other fixes.
92675         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92676         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92677         for credits and details.  Thanks to Kaveh Ghazi for helping
92678         to keep these files in sync.
92679         (ARRAY_SIZE): Define it.
92680         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92681         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92682         (memcasecmp): Don't assume size_t fits in unsigned int.
92683         Remove casts and duplicate code.
92684         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92685         (memcpy): Remove definition.
92686         Merge in some clean-up and optimization changes from glibc.
92687         [BLOCKSIZE]: Move definition to top of file.
92688         Ensure that it is a multiple of 64.
92689         Rearrange loop exit tests so as to avoid performing an
92690         additional fread after encountering an error or EOF.
92691         * lib/md5.h (md5_uintptr): Define.
92692         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92693         return to the initial working directory.  Preserve errno
92694         for caller.
92695         * lib/idcache.c: Include "xalloc.h".
92696         (xmalloc, xrealloc): Remove decls.
92697         (getuser): Remove casts no longer required in C89.
92698         * lib/human.c: Include stdio.h, for sprintf.
92699         * lib/group-member.c: Include "xalloc.h".
92700         (xmalloc, xrealloc): Remove decls.
92701         (get_group_info): Remove casts no longer required in C89.
92702         * lib/getusershell.c (readname): Remove casts no longer required in
92703         C89.
92704         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92705         * lib/getline.c: Whitespace fix, from coreutils.
92706
92707 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92708
92709         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92710         Check for isascii.
92711
92712         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92713         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92714         Undo previous (whitespace-only) change.
92715
92716 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92717
92718         * lib/exclude.c: Include <ctype.h>
92719         (IN_CTYPE_DOMAIN): New macro.
92720         (is_space): New fn.
92721         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92722         and empty lines.
92723
92724         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92725         Undo previous (whitespace-only) change.
92726
92727 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92728
92729         * config/srclist-update: Change update back to the old behavior,
92730         leaving whitespace alone.  Use one 'sed' command rather than a
92731         pipeline.
92732         (fixlicense): Now a variable, not a function.
92733         (remove_trailing_blanks): Remove.
92734         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92735         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92736         Undo previous (whitespace-only) change.
92737
92738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92739
92740         Merge from coreutils.
92741         * modules/euidaccess: Add lib_SOURCES, include for new
92742         file euidaccess.h
92743
92744 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92745
92746         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92747         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92748         Normalize leading white space and remove trailing white space.
92749
92750         Merge from coreutils
92751         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92752
92753         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92754         0.12.1.  These files are now being upgraded automatically by
92755         ../config/srclist-update.
92756
92757 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92758
92759         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92760         Normalize leading white space and remove trailing white space.
92761         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92762         notice, as per ../config/srclist-update.
92763
92764         Merge from coreutils.
92765         * lib/euidaccess.h: New file.
92766         * lib/euidaccess.c: Include it.
92767         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92768         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92769         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92770
92771 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92772
92773         * config/srclist-update: Add copyright notice.
92774         (remove_id_lines, remove_trailing_blanks): New constants.
92775         (fixfile): Use them to normalize spacing a bit in copied files.
92776         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92777         Normalize leading white space and remove trailing white space.
92778
92779         * config/texinfo.tex: Sync with texinfo.
92780
92781         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92782         strtoul.c from libc, to merge coreutils whitespace changes.
92783
92784         * config/srclist.txt: Get the following m4 files from gettext:
92785         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92786         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92787         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92788         wint_t.m4.
92789
92790 2003-08-12  Karl Berry  <karl@gnu.org>
92791
92792         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92793         been made.
92794
92795 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92796
92797         * modules/gnu-source, m4/gnu-source.m4:
92798         Remove; we're assuming Autoconf 2.54 or later now.
92799         Suggested by Bruno Haible.
92800         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92801
92802 2003-08-11  Bruno Haible  <bruno@clisp.org>
92803
92804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92805
92806 2003-08-11  Bruno Haible  <bruno@clisp.org>
92807
92808         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92809         (vasnprintf): Use it instead of wcslen.
92810
92811 2003-08-11  Bruno Haible  <bruno@clisp.org>
92812
92813         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92814         value to ensure that _Bool promotes to int. Use #define for _Bool when
92815         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92816
92817 2003-08-10  Karl Berry  <karl@gnu.org>
92818
92819         * lib/regex.h: update from libc (whitespace fix).
92820
92821 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92822
92823         Merge some files from coreutils.  These changes were
92824         originally made by Jim Meyering.
92825         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92826         many older Unixes require this.
92827         * lib/alloca.c (alloca): Remove cast to argument of free;
92828         no longer needed in C89.
92829         * lib/alloca_.h, regex.h: Fix white space to match
92830         what GNU indent does.
92831
92832 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92833
92834         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92835         apparently Emacs's Unicode mode got confused before my 2003-08-05
92836         checkin.
92837
92838 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92839
92840         * m4/extensions.m4: New file.
92841         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92842         Require gl_USE_SYSTEM_EXTENSIONS.
92843         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92844         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92845
92846 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92847
92848         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92849         * modules/extensions, modules/gnu-source: New files.
92850         * modules/timespec, modules/unlocked-io: Depend on extensions.
92851
92852 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92853
92854         * modules/restrict: New file.
92855         * MODULES.html.sh (func_all_modules): Add restrict.
92856         * modules/regex: Depend on restrict.
92857
92858 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92859
92860         * m4/restrict.m4: New file.
92861         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92862
92863 2003-08-07  Bruno Haible  <bruno@clisp.org>
92864
92865         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92866         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92867
92868 2003-08-07  Bruno Haible  <bruno@clisp.org>
92869
92870         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92871         makes the module 'getndelim2' compatible with the module 'getline'.
92872
92873 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92874
92875         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92876         byte with "\201" to avoid glitches when editing that source file
92877         with multi-gnome-terminal.
92878
92879 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92880
92881         * lib/bumpalloc.h: Remove.
92882
92883 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92884
92885         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92886         * modules/bumpalloc: Remove.
92887
92888 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92889
92890         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92891         GNU coding style.
92892
92893         Merge from coreutils.
92894         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92895         1. From glibc.
92896         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92897         from Karl Berry, implemented by Jim Meyering.
92898         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92899         from Dmitry V. Levin.
92900         Remove anachronistic cast of xrealloc.
92901         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92902         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92903         type. Otherwise, it wouldn't compile with at least /bin/cc on
92904         ymp-cray-unicos9.0.2.X.
92905         Combine two mostly-identical uses of alloca into one.
92906         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92907
92908 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92909
92910         [From Emacs.]
92911
92912         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92913         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92914         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92915         obsolete NLIST_NAME_UNION.
92916         [__GNU__]: Undef BSD and FSCALE.
92917         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92918
92919 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92920
92921         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92922         an enum type, so that it's guaranteed to promote to int.  See:
92923         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92924
92925 2003-08-03  Karl Berry  <karl@gnu.org>
92926
92927         * config/depcomp: update from automake.
92928
92929 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92930
92931         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92932         (strerror): Don't assume that a printable int fits in 14 bytes.
92933
92934 2003-07-31  Bruno Haible  <bruno@clisp.org>
92935
92936         * modules/getpass-gnu: New file.
92937         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92938
92939 2003-07-31  Bruno Haible  <bruno@clisp.org>
92940
92941         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92942
92943 2003-07-24  Karl Berry  <karl@gnu.org>
92944
92945         * config/missing: update from automake.
92946
92947 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92948             Bruno Haible  <bruno@clisp.org>
92949
92950         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92951         * lib/getline.c (getline, getdelim): Likewise.
92952         Remove _GNU_SOURCE define; now it's defined in config.h through
92953         m4/getline.m4.
92954
92955 2003-07-23  Karl Berry  <karl@gnu.org>
92956
92957         * config/config.sub: update from prep.
92958
92959 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92960
92961         * modules/xalloc (Depends-on): Add exitfail.
92962         * modules/xmemcoll: Likewise.
92963
92964 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92965
92966         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92967         over-parenthesization in macros.
92968
92969         Sync with coreutils.
92970
92971         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92972         required by C99.
92973
92974         Use `exit_failure' for xalloc and xmemcoll instead of their own
92975         private exit-failure variables.
92976         * lib/xalloc.h (xalloc_exit_failure): Remove.
92977         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92978         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92979         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92980         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92981         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92982
92983 2003-07-20  Jim Meyering  <jim@meyering.net>
92984
92985         * modules/closeout (Depends-on): Add exitfail.
92986         Suggestion from Bruno Haible.
92987
92988 2003-07-19  Karl Berry  <karl@gnu.org>
92989
92990         * config/config.sub: update from prep.
92991
92992 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92993
92994         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92995         Remove.
92996         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92997         to test that it can stand by itself.  Include "exitfail.h".
92998         Clients should set exit_failure instead.
92999         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93000
93001 2003-07-18  Bruno Haible  <bruno@clisp.org>
93002
93003         * modules/getndelim2: New file.
93004         * modules/getline: Share files with module getndelim2.
93005         * modules/getnline: Depend on getndelim2 instead of sharing files with
93006         it. Add getnline.c to lib_SOURCES.
93007         * MODULES.html.sh (func_all_modules): Add getndelim2.
93008
93009 2003-07-18  Bruno Haible  <bruno@clisp.org>
93010
93011         * m4/getndelim2.m4: New file.
93012         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93013         invoke gl_PREREQ_GETNDELIM2.
93014         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93015         gl_PREREQ_GETNDELIM2.
93016         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93017         gl_GETNDELIM2.
93018
93019 2003-07-18  Bruno Haible  <bruno@clisp.org>
93020
93021         * lib/getndelim2.h: New file.
93022         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93023         getndelim2.h.
93024         (getndelim2): Make non-static. Change return type to ssize_t.
93025         * lib/getline.h: Change argument names.
93026         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93027         * lib/getnline.c: Include getndelim2.h.
93028
93029 2003-07-18  Andreas Schwab  <schwab@suse.de>
93030
93031         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93032
93033 2003-07-17  Karl Berry  <karl@gnu.org>
93034
93035         * config/config.sub: update from prep.
93036
93037 2003-07-17  Bruno Haible  <bruno@clisp.org>
93038
93039         * modules/getnline: New file.
93040         * modules/getline: Add lib/getndelim2.c to source file list.
93041         * MODULES.html.sh (func_all_modules): Add getnline.
93042
93043 2003-07-17  Bruno Haible  <bruno@clisp.org>
93044
93045         * m4/getnline.m4: New file.
93046
93047 2003-07-17  Bruno Haible  <bruno@clisp.org>
93048
93049         * m4/Makefile.am.in: Remove file.
93050         * m4/Makefile.am: Remove file.
93051         * m4/Makefile.in: Remove file.
93052
93053 2003-07-17  Bruno Haible  <bruno@clisp.org>
93054
93055         * lib/getnline.h: New file.
93056         * lib/getnline.c: New file.
93057         * lib/getndelim2.c: New file, extracted from getline.c.
93058         (getndelim2): Renamed from getdelim2, with added nmax argument.
93059         * lib/getline.c: Include getndelim2.c.
93060         (getdelim2): Moved out to getndelim2.c.
93061         (getline, getdelim): Update.
93062
93063 2003-07-17  Bruno Haible  <bruno@clisp.org>
93064
93065         * lib/Makefile.am: Remove file.
93066         * lib/Makefile.in: Remove file.
93067
93068 2003-07-17  Bruno Haible  <bruno@clisp.org>
93069
93070         * configure.in: Remove file.
93071         * Makefile.in: Remove file.
93072
93073 2003-07-17  Bruno Haible  <bruno@clisp.org>
93074
93075         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93076
93077 2003-07-16  Karl Berry  <karl@gnu.org>
93078
93079         * config/srclist-update: was running fixlicense twice, which caused
93080                 texinfo.tex to be nullified for some reason.  Simplify,
93081                 $gplsrc is no longer needed as far as I can see?
93082
93083 2003-07-16  Jim Meyering  <jim@meyering.net>
93084
93085         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93086
93087 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93088
93089         * config/srclist.txt: Get the following files from gettext-runtime/intl
93090         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93091         ref-del.sin.  From Bruno Haible.
93092         * config/srclist-update (fixfile): Change grep pattern again, since the
93093         previous fix didn't work (there was another trailing $).  Use
93094         '[$]' to escape the $s.
93095
93096 2003-07-15  Karl Berry  <karl@gnu.org>
93097
93098         * lib/vasnprintf.c: update from gettext.
93099
93100 2003-07-15  Karl Berry  <karl@gnu.org>
93101
93102         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93103         gets expanded when surrounded by '$'.
93104
93105 2003-07-15  Jim Meyering  <jim@meyering.net>
93106
93107         * modules/save-cwd: Don't depend on error.  From Derek Price.
93108
93109 2003-07-15  Jim Meyering  <jim@meyering.net>
93110
93111         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93112
93113 2003-07-14  Simon Josefsson  <jas@extundo.com>
93114
93115         * modules/mempcpy: New file.
93116         * MODULES.html.sh (func_all_modules): Add mempcpy.
93117
93118 2003-07-14  Simon Josefsson  <jas@extundo.com>
93119
93120         * m4/mempcpy.m4: New file.
93121
93122 2003-07-14  Simon Josefsson  <jas@extundo.com>
93123
93124         * lib/mempcpy.h: New file.
93125         * lib/mempcpy.c: New file.
93126
93127 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93128
93129         * modules/getdate, modules/posixtm: Depend on mktime.
93130
93131 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93132
93133         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93134         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93135         unicodeio.c, unicodeio.h, unlocked-io.h:
93136         Switch from LGPL to GPL.
93137
93138 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93139
93140         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93141         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93142         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93143         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93144         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93145         updated automatically by ../config/srclist-update.  This changes
93146         their license from LPGL to GPL.
93147
93148 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93149
93150         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93151         assumed to refer to the root of the most recent stable gettext version.
93152         * config/srclistvars.sh: Add defaults for eggert.
93153         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93154         Match "This program" as well as "The program".  This is needed
93155         for gettext.
93156
93157 2003-07-14  Jim Meyering  <jim@meyering.net>
93158
93159         Don't emit diagnostics.  Let callers do that.
93160         * lib/save-cwd.c: Don't include "error.h".
93161         (save_cwd): Don't call error.  Ensure that errno is valid
93162         when returning nonzero.
93163
93164         * lib/save-cwd.h (restore_cwd): Update prototype.
93165         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93166         Simplify.  Don't call error upon failure.  Let callers do that.
93167         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93168         when auditing is enabled.  But don't bother updating the #if.
93169
93170 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93171
93172         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93173         it breaks C++ compilation.
93174         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93175
93176 2003-07-10  Simon Josefsson  <jas@extundo.com>
93177
93178         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93179
93180 2003-07-10  Jim Meyering  <jim@meyering.net>
93181
93182         * m4/clock_time.m4: Remove trailing blank.
93183         * m4/intmax_t.m4: Likewise.
93184
93185 2003-07-10  Jim Meyering  <jim@meyering.net>
93186
93187         * lib/vasnprintf.c: Remove trailing blanks.
93188         Make cpp indentation consistent.
93189
93190 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93191
93192         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93193         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93194         Switch from LGPL to GPL.
93195
93196 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93197
93198         * config/srclist.txt: Sort sublists.  Add
93199         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93200         that differ from gnulib for one reason or another; we'd like this list
93201         to be smaller but for now let's document what we have.
93202
93203 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93204
93205         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93206         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93207         and sweeter "eval x=$x".
93208         * config/srclist.txt: Get lib/argp* from glibc.
93209
93210 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93211
93212         * lib/mktime.c: Fix some boundary cases and remove need for floating
93213         point.
93214
93215         Issue a compile-time diagnostic if time_t is floating point, or if
93216         two's complement arithmetic is not in effect, or if arithmetic
93217         right shift does not propagate the sign.  These assumptions were
93218         all in the original code but they weren't checked.
93219
93220         (TIME_T_MIDPOINT, verify): New macros.
93221         (__isleap): Remove; it has integer overflow problems.
93222         (leapyear): New function, without those problems.
93223         (ydhms_tm_diff): Remove; splitting into two parts.
93224         (ydhms_diff): New function, containing the arithmetic part of
93225         the old ydhms_tm_diff function.  Issue a compile-time
93226         diagnostic if we are not using C99 integer division.
93227         Avoid casts when possible.
93228         (guess_time_tm): New function, containing the checking part of
93229         the old ydhms_tm_diff function.  Return the new value, rather than
93230         the difference between it and the old.  Accept a new argument T
93231         so that *T specifies the old value.  Check for overflow in the result.
93232
93233         (__mktime_internal): Use a time_t offset, not a long int offset.
93234         This undoes the 2003-06-04 change, which is no longer needed now
93235         that we have better overflow checking.
93236         (localtime_offset): Likewise.
93237
93238         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93239         and long are 64-bit but int is only 32-bit.
93240         (ydhms_diff): Use long int to store year1 and yday1.
93241         Issue a compile-time diagnostic if long int is not wide enough.
93242
93243         (__mktime_internal): Use long int to store adjusted year and yday.
93244         Use plain C rather than preprocessor commands, if that doesn't
93245         affect efficiency.
93246         Check for overflow (and try to repair) after each probe
93247         rather than checking only at the very end.  This avoids some bugs
93248         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93249         does not equal GMT offset at maximum time).
93250         Use integer to check for overflow rather than floating point; this
93251         is more portable to non-IEEE hosts, and is a tad faster.
93252         When we detect that we are oscillating between two values,
93253         don't check whether tm_isdst has the requested value, since
93254         we already know the answer.  When tm_isdst has the wrong value,
93255         use a different heuristic to find the right one, based on the
93256         extreme values actually observed in practice in tz2003a,
93257         rather than the (overly optimistic) "previous 3 calendar quarters".
93258
93259         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93260         "T const" to accommodate glibc style.
93261         (check_result): Use less-confusing report format.  "long" -> "long int.
93262         (main): Likewise.
93263         Don't loop if the iteration overflows time_t.
93264         Allow a negative step in the iteration.
93265
93266 2003-07-06  Karl Berry  <karl@gnu.org>
93267
93268         * config/depcomp: update from automake.
93269         * config/config.sub: update from prep.
93270
93271 2003-07-03  Karl Berry  <karl@gnu.org>
93272
93273         * config/config.guess: update from prep.
93274
93275 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93276
93277         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93278         xreadlink.c now includes it unconditionally.
93279
93280 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93281
93282         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93283         having it depend on HAVE_SYS_TYPES_H.
93284
93285 2003-07-01  Bruno Haible  <bruno@clisp.org>
93286
93287         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93288         <sys/types.h> should be sufficient.
93289         Reported by Paul Eggert.
93290
93291 2003-06-26  Karl Berry  <karl@gnu.org>
93292
93293         * config/depcomp: update from automake.
93294
93295 2003-06-26  Bruno Haible  <bruno@clisp.org>
93296
93297         * modules/human: Depend on module stdbool.
93298
93299 2003-06-25  Bruno Haible  <bruno@clisp.org>
93300
93301         * modules/readlink: New file.
93302         * modules/xreadlink: Depend on it.
93303         * MODULES.html.sh (func_all_modules): Add readlink.
93304
93305 2003-06-25  Bruno Haible  <bruno@clisp.org>
93306
93307         * m4/readlink.m4: New file.
93308
93309 2003-06-25  Bruno Haible  <bruno@clisp.org>
93310
93311         * lib/readlink.c: New file.
93312
93313 2003-06-22  Karl Berry  <karl@gnu.org>
93314
93315         * config/srclist.txt: update mkinstalldirs from automake.
93316         * config/mkinstalldirs: update.
93317
93318 2003-06-22  Bruno Haible  <bruno@clisp.org>
93319
93320         Portability to mingw32.
93321         * m4/ssize_t.m4: New file, from GNU gettext.
93322         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93323         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93324
93325 2003-06-22  Bruno Haible  <bruno@clisp.org>
93326
93327         * modules/safe-read: Add m4/ssize_t.m4.
93328         * modules/xreadlink: Add m4/ssize_t.m4.
93329
93330 2003-06-20  Bruno Haible  <bruno@clisp.org>
93331
93332         Assume C89, so PARAMS isn't needed.
93333         * lib/unicodeio.h (PARAMS): Remove.
93334         * lib/unicodeio.c: Don't use PARAMS.
93335
93336 2003-06-18  Karl Berry  <karl@gnu.org>
93337
93338         * config/config.{guess,sub}: update from prep.
93339
93340 2003-06-18  Jim Meyering  <jim@meyering.net>
93341
93342         Merge changes from coreutils.
93343         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93344         Remove explicit declarations of xmalloc and realloc.
93345         Include xalloc.h.
93346         (read_utmp): Remove anachronistic cast of xmalloc.
93347
93348 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93349
93350         Assume C89, so PARAMS isn't needed.
93351         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93352         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93353         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93354         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93355         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93356         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93357         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93358         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93359         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93360         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93361         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93362         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93363         no longer needed. Anyway, config.h should always be included before any
93364         other file.
93365
93366 2003-06-11  Simon Josefsson  <jas@extundo.com>
93367
93368         * modules/sysexits: New file.
93369         * MODULES.html.sh (func_all_modules): Add sysexits.
93370
93371 2003-06-11  Simon Josefsson  <jas@extundo.com>
93372
93373         * lib/sysexit_.h: New file.
93374
93375 2003-06-11  Derek Price  <derek@ximbiot.com>
93376
93377         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93378         necessary.
93379
93380 2003-06-11  Bruno Haible  <bruno@clisp.org>
93381
93382         * m4/sysexits.m4: New file.
93383
93384 2003-06-10  Simon Josefsson  <jas@extundo.com>
93385
93386         * lib/argp.h: New file, from glibc.
93387         * lib/argp-ba.c: New file, from glibc.
93388         * lib/argp-eexst.c: New file, from glibc.
93389         * lib/argp-fmtstream.c: New file, from glibc.
93390         * lib/argp-fmtstream.h: New file, from glibc.
93391         * lib/argp-fs-xinl.c: New file, from glibc.
93392         * lib/argp-help.c: New file, from glibc.
93393         * lib/argp-namefrob.h: New file, from glibc.
93394         * lib/argp-parse.c: New file, from glibc.
93395         * lib/argp-pv.c: New file, from glibc.
93396         * lib/argp-pvh.c: New file, from glibc.
93397         * lib/argp-xinl.c: New file, from glibc.
93398
93399 2003-06-10  Simon Josefsson  <jas@extundo.com>
93400
93401         * modules/strchrnul: New file.
93402
93403 2003-06-10  Simon Josefsson  <jas@extundo.com>
93404
93405         * modules/argp: New file.
93406
93407 2003-06-10  Simon Josefsson  <jas@extundo.com>
93408
93409         * m4/strchrnul.m4: New file.
93410
93411 2003-06-10  Simon Josefsson  <jas@extundo.com>
93412
93413         * lib/strchrnul.h: New file.
93414         * lib/strchrnul.c: New file.
93415
93416 2003-06-10  Bruno Haible  <bruno@clisp.org>
93417
93418         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93419
93420 2003-06-07  Karl Berry  <karl@gnu.org>
93421
93422         * config/config.{guess,sub}: update from prep.
93423
93424 2003-06-07  Jim Meyering  <jim@meyering.net>
93425
93426         * modules/strtod: Use $(...) notation, not @...@ for
93427         AC_REPLACE'd variables.
93428         * modules/localcharset: Likewise.
93429
93430 2003-06-07  Jim Meyering  <jim@meyering.net>
93431
93432         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93433         in place of my name in the copyright comment.
93434         Remove definition and uses of __P.
93435
93436         From coreutils.
93437         * lib/stat.c: Don't declare xmalloc explicitly.
93438         Instead, include "xalloc.h".
93439         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93440         xrealloc, and xcalloc return values.
93441         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93442         Improve comment.
93443         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93444
93445 2003-06-07  Bruno Haible  <bruno@clisp.org>
93446
93447         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93448         avoid AC_CONFIG_LINKS.
93449         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93450         fnmatch.h, to avoid AC_CONFIG_LINKS.
93451         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93452
93453 2003-06-07  Bruno Haible  <bruno@clisp.org>
93454
93455         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93456         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93457         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93458         directory.
93459         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93460         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93461         directory.
93462
93463 2003-06-06  Jim Meyering  <jim@meyering.net>
93464
93465         Merge from coreutils.
93466         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93467         Consolidate declarations and initializations of *_base* locals.
93468
93469         Merge from coreutils.
93470         This avoids a core dump on systems without GNU putenv,
93471         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93472         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93473         (unsetenv): New static function, from GNU libc.
93474         (rpl_putenv): Use it.
93475
93476         * lib/modechange.c: Remove trailing blanks.
93477
93478         Merge from coreutils.
93479         * lib/fsusage.c: Remove declaration of statfs.
93480         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93481
93482         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93483
93484 2003-06-06  Jim Meyering  <jim@meyering.net>
93485
93486         * lib/stdbool_.h: Renamed from stdbool.h.in.
93487
93488 2003-06-06  Jim Meyering  <jim@meyering.net>
93489             Bruno Haible  <bruno@clisp.org>
93490
93491         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93492         Adjust Makefile.am snippet not to redirect directly to target.
93493         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93494
93495 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93496
93497         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93498         mismatch, look in future quarters as well as past.  This fixes a
93499         bug when processing fall-backwards gaps immediately after a long
93500         period of daylight-saving time.
93501
93502         * lib/mktime.c: Assume freestanding C89 or better.
93503         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93504         (__P): Remove; not used.
93505         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93506         (mktime, not_equal_tm, print_tm, check_result,
93507         main): Use prototypes.  Use const * where appropriate.
93508         (main): Fix typo in testing code that uncovered by above changes.
93509         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93510
93511 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93512
93513         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93514         locale.h, localeconv.  This merges changes from coreutils.
93515
93516         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93517         It can be removed after the next Autoconf is released.
93518         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93519         needed.
93520
93521 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93522
93523         * lib/mktime.c: Fix Debian bug 177940
93524         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93525         (localtime_offset): Now long int, not time_t, because we want it
93526         to be guaranteed to be signed.  All uses changed.
93527         (__mktime_internal): If overflow would occur when adding offset,
93528         don't add it.
93529
93530         Merge 'human' changes from coreutils.  Rewrite to support
93531         locale-specific notations like thousands separators.
93532         * lib/human.c: Simplify authorship notice.
93533         Include human.h immediately after config.h.
93534         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93535         <limits.h>: Do not include, since human.h does.
93536         (SIZE_MAX, UINTMAX_MAX): New macros.
93537         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93538         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93539         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93540         (power_letter): Renamed from suffixes.
93541         (generate_suffix_backwards): Remove.
93542         (adjust_value): Now takes int style (because of human.h changes)
93543         and long double value (for greater precision on some platforms).
93544         (group_number): New function.
93545         (human_readable): Use it.  Use integer options, not enum.
93546         Put the options before the sizes in the arg list.
93547         Support all the new options.
93548         The old human_readable function has been removed;
93549         use inttostr.h instead.
93550         (human_readable, default_block_size, humblock):
93551         Use uintmax_t, not int, for block sizes.
93552         (human_readable_inexact, block_size_types): Remove.
93553         (block_size_opts): New constant.
93554         (human_options): Renamed from human_block_size, with new signature
93555         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93556         * lib/human.h: Add copyright and authorship notice.
93557         Include <limits.h> and <stdbool.h> unconditionally.
93558         (PARAMS): Remove.  All uses removed.
93559         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93560         (enum human_inexact_style): Remove tag; now a nameless enum.
93561         (human_floor, human_ceiling, human_round_to_even): Now have
93562         values 2, 0, 1 rather than -1, 1, 0.
93563         (human_group_digits, human_suppress_point_zero, human_autoscale,
93564         human_base_1024, human_SI, human_B): New constants.
93565         (human_readable_inexact, human_block_size): Remove.
93566         (human_readable): Size args are now uintmax_t, not int.
93567         (human_options): New decl.
93568
93569         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93570         unnecessary now that we assume C89 or better.  This change
93571         imported from coreutils.
93572
93573         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93574         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93575         in the 2003-05-30 sync from glibc.
93576
93577         .h files should stand alone, but we shouldn't include <sys/types.h>
93578         if we can get away with just <stddef.h>.
93579
93580         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93581         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93582         rather than <sys/types.h>, as we merely need size_t.
93583         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93584         to get size_t.
93585         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93586         Include <stdio.h>, to get FILE.
93587         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93588         memcasecmp.h has included <stddef.h> and all we need is size_t.
93589         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93590         our interface, instead of including <sys/types.h>
93591
93592 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93593
93594         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93595         now, as glibc mktime is buggy on non-glibc systems.
93596
93597 2003-06-03  Karl Berry  <karl@gnu.org>
93598
93599         * config/config.sub: update from prep.
93600
93601 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93602
93603         [from coreutils]
93604         Fix some minor time-related bugs with POSIX time arguments.
93605         Some valid time stamps were being rejected (notably -1, and
93606         time stamps before 1900 on 64-bit hosts).  And some invalid
93607         time stamps were being accepted, e.g. September 31.
93608
93609         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93610         that we can return (time_t) -1 successfully.
93611         * lib/posixtm.c: Likewise.
93612         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93613         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93614         (t): Remove static var.
93615         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93616         of static var.  All uses changed.
93617         (year): Do not reject years before 1900; they can occur with
93618         64-bit time_t.
93619         (posix_time_parse): Do not check for out-of-range components;
93620         that is now the caller's responsibility, since our checks were
93621         only approximations.
93622         (posixtime): Use mktime to check for out-of-range components,
93623         since it knows them exactly.
93624         If mktime returns (time_t) -1, check whether an error actually occurred
93625         by invoking localtime on -1.
93626         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93627         posixtime failures better.
93628         Improve the test data (in comments only).
93629
93630 2003-06-02  Karl Berry  <karl@gnu.org>
93631
93632         * config/mkinstalldirs (version): new variable.
93633         (--version): new option.
93634         (usage): improve message.
93635
93636 2003-05-30  Karl Berry  <karl@gnu.org>
93637
93638         * lib/mktime.c: update from libc.
93639
93640 2003-05-30  Bruno Haible  <bruno@clisp.org>
93641
93642         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93643         * config/config.rpath: Upgrade to gettext-0.12.1.
93644
93645 2003-05-30  Bruno Haible  <bruno@clisp.org>
93646
93647         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93648         * m4/nls.m4: New file, from gettext-0.12.1.
93649         * m4/po.m4: New file, from gettext-0.12.1.
93650         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93651
93652 2003-05-30  Bruno Haible  <bruno@clisp.org>
93653
93654         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93655         * lib/localcharset.h: Likewise.
93656         * lib/localcharset.c: Likewise.
93657
93658 2003-05-29  Karl Berry  <karl@gnu.org>
93659
93660         * config/config.rpath: update from gettext.
93661
93662 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93663
93664         Assume the headers required for C89 freestanding compilers.
93665         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93666         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93667         * m4/human.m4 (gl_HUMAN): Likewise.
93668         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93669         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93670         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93671         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93672         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93673         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93674
93675 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93676
93677         Assume the headers required for C89 freestanding compilers.
93678         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93679         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93680         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93681         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93682         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93683         define, since <limits.h> is guaranteed to do that.
93684         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93685         * lib/exclude.c: Include <stdbool.h> unconditionally.
93686         * lib/tempname.c: Include <stddef.h> unconditionally.
93687         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93688         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93689         <stddef.h> does that.
93690         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93691         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93692         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93693         needed.
93694         * lib/xstrtol.c: Likewise.
93695         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93696         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93697
93698         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93699         warnings on some platforms.
93700
93701         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93702         arbitrarily.
93703
93704 2003-05-26  Jim Meyering  <jim@meyering.net>
93705
93706         Merge in a change from coreutils:
93707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93708         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93709         that condition, rather than `-1' which is slightly misleading.
93710         Change the name of the cache variable to have the gl_ prefix.
93711         Prompted by a patch from Richard Dawe for DJGPP.
93712
93713 2003-05-24  Karl Berry  <karl@gnu.org>
93714
93715         * config/config.guess: update from prep.
93716
93717 2003-05-22  Karl Berry  <karl@gnu.org>
93718
93719         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93720
93721 2003-05-20  Karl Berry  <karl@gnu.org>
93722
93723         * config/config.guess: update from prep.
93724
93725 2003-05-18  Karl Berry  <karl@gnu.org>
93726
93727         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93728         might actually be set by the user.
93729
93730         * config/depcomp, install-sh, mdate-sh: update from automake.
93731
93732 2003-05-17  Bruno Haible  <bruno@clisp.org>
93733
93734         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93735         invalid expansion for AC_EGREP_CPP.
93736         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93737         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93738         Suggested by Akim Demaille <akim@epita.fr> in
93739         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93740
93741 2003-05-12  Jim Meyering  <jim@meyering.net>
93742
93743         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93744         the space-padded-by-default conversion specifiers, %e, %k, %l.
93745
93746 2003-05-12  Bruno Haible  <bruno@clisp.org>
93747
93748         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93749         the string is longer than 4 KB.
93750
93751 2003-05-11  Karl Berry  <karl@gnu.org>
93752
93753         * config/config.{guess,sub}: update from prep.
93754
93755 2003-05-09  Bruno Haible  <bruno@clisp.org>
93756
93757         * modules/error: Add m4/strerror_r.m4 to file list.
93758
93759 2003-05-03  Bruno Haible  <bruno@clisp.org>
93760
93761         Upgrade to Unicode-4.0.
93762         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93763         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93764         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93765         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93766         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93767         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93768         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93769         Change width of U+E0100..U+E01EF from 1 to 0.
93770
93771 2003-04-25  Jim Meyering  <jim@meyering.net>
93772
93773         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93774         of type size_t, not int.
93775
93776 2003-04-25  Bruno Haible  <bruno@clisp.org>
93777
93778         * lib/copy-file.c: Include <stddef.h>, for size_t.
93779
93780 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93781
93782         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93783         code which expansion is under static control.  Patch imported from
93784         Akim Demaille's patch to Bison; see
93785         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93786
93787 2003-04-14  Bruno Haible  <bruno@clisp.org>
93788
93789         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93790
93791 2003-04-11  Jim Meyering  <jim@meyering.net>
93792
93793         Merge changes from Coreutils.
93794
93795         2003-03-22  Jim Meyering  <jim@meyering.net>
93796
93797         * lib/strftime.c (widen): Cast alloca return value to proper type.
93798
93799         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93800
93801         From GNU libc.
93802         * lib/strftime.c (my_strftime): Handle very large width
93803         specifications for numeric values correctly.  Improve checks for
93804         overflow.
93805
93806         2003-01-19  Jim Meyering  <jim@meyering.net>
93807
93808         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93809         definitions.
93810         (nl_get_alt_digit) [! defined my_strftime]: Define.
93811         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93812         _nl_get_alt_digit and _nl_get_walt_digit.
93813
93814         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93815         libc. These changes have no effect outside of _LIBC.
93816
93817 2003-04-10  Bruno Haible  <bruno@clisp.org>
93818
93819         * modules/findprog: New file.
93820         * MODULES.html.sh (func_all_modules): Add it.
93821
93822 2003-04-10  Bruno Haible  <bruno@clisp.org>
93823
93824         * m4/findprog.m4: New file.
93825         * m4/eaccess.m4: New file.
93826
93827 2003-04-10  Bruno Haible  <bruno@clisp.org>
93828
93829         * lib/findprog.h: New file, from GNU gettext.
93830         * lib/findprog.c: New file, from GNU gettext.
93831
93832 2003-04-05  Jim Meyering  <jim@meyering.net>
93833
93834         Merge changes from Coreutils.
93835
93836         * lib/exclude.h (PARAMS): Remove definition and uses.
93837         * lib/exclude.c: Remove uses of `PARAMS'.
93838
93839         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93840         Add test-cases for DOS filenames. Declare program_name.
93841         (main): Set up program_name.  Patch by Rich Dawe.
93842
93843         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93844         error from mntctl.
93845         Use mntctl's return value to drive the entry-processing loop, since
93846         we can't rely on the value of the vmt_length member in the last
93847         entry.  On some systems doing so could result in exhausting
93848         virtual memory.  Based in part on a patch from Mike Jetzer.
93849
93850 2003-04-04  Bruno Haible  <bruno@clisp.org>
93851
93852         * modules/linebreak: New file.
93853         * MODULES.html.sh (func_all_modules): Add it.
93854
93855 2003-04-04  Bruno Haible  <bruno@clisp.org>
93856
93857         * m4/linebreak.m4: New file.
93858
93859 2003-04-04  Bruno Haible  <bruno@clisp.org>
93860
93861         * lib/linebreak.h: New file, from GNU gettext.
93862         * lib/linebreak.c: New file, from GNU gettext with slight
93863         modifications.
93864         * lib/lbrkprop.h: New file, from GNU gettext.
93865
93866 2003-04-03  Bruno Haible  <bruno@clisp.org>
93867
93868         * modules/utf8-ucs4: New file.
93869         * modules/utf16-ucs4: New file.
93870         * modules/ucs4-utf8: New file.
93871         * modules/ucs4-utf16: New file.
93872         * MODULES.html.sh (func_all_modules): Add them.
93873
93874 2003-04-03  Bruno Haible  <bruno@clisp.org>
93875
93876         * m4/utf-ucs4.m4: New file.
93877         * m4/ucs4-utf.m4: New file.
93878
93879 2003-04-03  Bruno Haible  <bruno@clisp.org>
93880
93881         * lib/utf8-ucs4.h: New file, from GNU gettext.
93882         * lib/utf16-ucs4.h: New file, from GNU gettext.
93883         * lib/ucs4-utf8.h: New file, from GNU gettext.
93884         * lib/ucs4-utf16.h: New file, from GNU gettext.
93885
93886 2003-04-02  Bruno Haible  <bruno@clisp.org>
93887
93888         * modules/binary-io: New file.
93889         * MODULES.html.sh (func_all_modules): Add it.
93890
93891 2003-04-02  Bruno Haible  <bruno@clisp.org>
93892
93893         * lib/binary-io.h: New file, from GNU gettext.
93894
93895 2003-04-01  Bruno Haible  <bruno@clisp.org>
93896
93897         * modules/pathname: New file.
93898         * MODULES.html.sh (func_all_modules): Add it.
93899
93900 2003-04-01  Bruno Haible  <bruno@clisp.org>
93901
93902         * lib/pathname.h: New file, from GNU gettext.
93903         * lib/concatpath.c: New file, from GNU gettext.
93904
93905 2003-03-30  Bruno Haible  <bruno@clisp.org>
93906
93907         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93908
93909 2003-03-30  Bruno Haible  <bruno@clisp.org>
93910
93911         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93912         function chown() doesn't exist.
93913
93914 2003-03-28  Bruno Haible  <bruno@clisp.org>
93915
93916         * modules/copy-file: New file.
93917         * MODULES.html.sh (func_all_modules): Add it.
93918
93919 2003-03-28  Bruno Haible  <bruno@clisp.org>
93920
93921         * m4/copy-file.m4: New file.
93922
93923 2003-03-28  Bruno Haible  <bruno@clisp.org>
93924
93925         * lib/copy-file.h: New file, from GNU gettext.
93926         * lib/copy-file.c: New file, from GNU gettext.
93927
93928 2003-03-18  Jim Meyering  <jim@meyering.net>
93929
93930         * lib/quote.c (quote_n): Fix typo in comment.
93931
93932 2003-03-18  Bruno Haible  <bruno@clisp.org>
93933
93934         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93935         checking.
93936         * m4/onceonly_2_57.m4: Likewise.
93937
93938 2003-03-17  Bruno Haible  <bruno@clisp.org>
93939
93940         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93941         (m4_quote): Remove macro.
93942         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93943
93944 2003-03-14  Jim Meyering  <jim@meyering.net>
93945
93946         Merge changes from Coreutils.
93947         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93948         to be const, in order to avoid warnings.
93949         (obstack_room): Likewise.
93950         (obstack_empty_p): Likewise.
93951
93952 2003-03-14  Bruno Haible  <bruno@clisp.org>
93953
93954         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93955         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93956
93957 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93958
93959         Merge changes from Bison.
93960         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93961         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93962         when compiling Bison 1.875's `bitset bset = obstack_alloc
93963         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93964         * lib/hash.c: Include <stdbool.h> unconditionally.
93965
93966 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93967
93968         * m4/onceonly.m4 (m4_quote): New macro.
93969         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93970         Quote AC_FOREACH variable-expansions properly.
93971
93972 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93973
93974         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93975
93976 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93977
93978         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93979         Reported by Bruce Becker; see:
93980         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93981
93982 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93983             Bruno Haible  <bruno@clisp.org>
93984
93985         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93986         Reported by John Hughes, see
93987         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93988
93989 2003-02-20  Bruno Haible  <bruno@clisp.org>
93990
93991         * MODULES.html.sh (func_all_modules): Add poll.
93992
93993 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93994
93995         * modules/poll: New file.
93996
93997 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93998
93999         * lib/poll_.h: New file.
94000         * lib/poll.c: New file.
94001
94002 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94003
94004         * m4/poll.m4: New file.
94005
94006 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94007
94008         * modules/mathl: New file.
94009
94010 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94011
94012         * lib/mathl.h: New file.
94013         * lib/acosl.c: New file.
94014         * lib/asinl.c: New file.
94015         * lib/atanl.c: New file.
94016         * lib/ceill.c: New file.
94017         * lib/cosl.c: New file.
94018         * lib/expl.c: New file.
94019         * lib/floorl.c: New file.
94020         * lib/frexpl.c: New file.
94021         * lib/ldexpl.c: New file.
94022         * lib/logl.c: New file.
94023         * lib/sincosl.c: New file.
94024         * lib/sinl.c: New file.
94025         * lib/sqrtl.c: New file.
94026         * lib/tanl.c: New file.
94027         * lib/trigl.c: New file.
94028         * lib/trigl.h: New file.
94029
94030 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94031
94032         * m4/mathl.m4: New file.
94033
94034 2003-02-18  Bruno Haible  <bruno@clisp.org>
94035
94036         * MODULES.html.sh (func_all_modules): Add mathl.
94037
94038 2003-02-17  Bruno Haible  <bruno@clisp.org>
94039
94040         * modules/mkdtemp: New module.
94041         * MODULES.html.sh (func_all_modules): Add it.
94042
94043 2003-02-17  Bruno Haible  <bruno@clisp.org>
94044
94045         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94046
94047 2003-02-17  Bruno Haible  <bruno@clisp.org>
94048
94049         * lib/mkdtemp.h: New file, from GNU gettext.
94050         * lib/mkdtemp.c: New file, from GNU gettext.
94051
94052 2003-02-02  Jim Meyering  <jim@meyering.net>
94053
94054         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94055         e.g. glibc-2.2.93.
94056
94057 2003-01-31  Bruno Haible  <bruno@clisp.org>
94058
94059         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94060         'rpl_rename'.
94061         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94062         'rpl_strnlen'.
94063         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94064         'rpl_strtod'.
94065         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94066         'rpl_utime'.
94067
94068 2003-01-31  Bruno Haible  <bruno@clisp.org>
94069
94070         * lib/rename.c: #undef rename before defining rpl_rename.
94071         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94072
94073 2003-01-30  Bruno Haible  <bruno@clisp.org>
94074
94075         * modules/vasnprintf, modules/vasprintf: New modules.
94076         * MODULES.html.sh (func_all_modules): Add them.
94077
94078 2003-01-30  Bruno Haible  <bruno@clisp.org>
94079
94080         * m4/signed.m4: New file, from GNU gettext.
94081         * m4/longdouble.m4: New file, from GNU gettext.
94082         * m4/wchar_t.m4: New file, from GNU gettext.
94083         * m4/wint_t.m4: New file, from GNU gettext.
94084         * m4/vasnprintf.m4: New file.
94085         * m4/vasprintf.m4: New file.
94086
94087 2003-01-30  Bruno Haible  <bruno@clisp.org>
94088
94089         * lib/printf-args.h: New file, from GNU gettext.
94090         * lib/printf-args.c: New file, from GNU gettext.
94091         * lib/printf-parse.h: New file, from GNU gettext.
94092         * lib/printf-parse.c: New file, from GNU gettext.
94093         * lib/vasnprintf.h: New file, from GNU gettext.
94094         * lib/vasnprintf.c: New file, from GNU gettext.
94095         * lib/asnprintf.c: New file, from GNU gettext.
94096         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94097         * lib/vasprintf.c: New file, from GNU gettext.
94098         * lib/asprintf.c: New file, from GNU gettext.
94099
94100 2003-01-29  Bruno Haible  <bruno@clisp.org>
94101
94102         * modules/stpncpy: New module.
94103         * MODULES.html.sh (func_all_modules): Add it.
94104
94105 2003-01-29  Bruno Haible  <bruno@clisp.org>
94106
94107         * m4/stpncpy.m4: New file.
94108
94109 2003-01-29  Bruno Haible  <bruno@clisp.org>
94110
94111         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94112         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94113
94114 2003-01-28  Bruno Haible  <bruno@clisp.org>
94115
94116         * modules/c-ctype: New module.
94117         * MODULES.html.sh (func_all_modules): Add it.
94118
94119 2003-01-28  Bruno Haible  <bruno@clisp.org>
94120
94121         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94122         Paul Eggert.
94123         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94124         Paul Eggert.
94125
94126 2003-01-27  Bruno Haible  <bruno@clisp.org>
94127
94128         * modules/xsetenv: New module.
94129         * MODULES.html.sh (func_all_modules): Add it.
94130
94131 2003-01-27  Bruno Haible  <bruno@clisp.org>
94132
94133         * lib/xsetenv.h: New file, from GNU gettext.
94134         * lib/xsetenv.c: New file, from GNU gettext.
94135
94136 2003-01-23  Jim Meyering  <jim@meyering.net>
94137
94138         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94139         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94140
94141 2003-01-23  Bruno Haible  <bruno@clisp.org>
94142
94143         * modules/minmax: New module.
94144         * MODULES.html.sh (func_all_modules): Add it.
94145
94146 2003-01-23  Bruno Haible  <bruno@clisp.org>
94147
94148         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94149         Eggert.
94150
94151 2003-01-22  Bruno Haible  <bruno@clisp.org>
94152
94153         * modules/exit: New module.
94154         * MODULES.html.sh (func_all_modules): Add it.
94155
94156 2003-01-22  Bruno Haible  <bruno@clisp.org>
94157
94158         * lib/exit.h: New file, from GNU gettext.
94159
94160 2003-01-19  Bruno Haible  <bruno@clisp.org>
94161
94162         * gnulib-tool: Recognize option --extract-maintainer.
94163         (func_get_maintainer): New function.
94164         * modules/*: Add Maintainer entry.
94165
94166 2003-01-16  Jim Meyering  <jim@meyering.net>
94167
94168         * m4/regex.m4: The `regex' struct is both input and output.
94169         Initialize it before each use.  Patch by Tim Waugh.
94170
94171 2003-01-16  Bruno Haible  <bruno@clisp.org>
94172
94173         * MODULES.html.sh: Add a table of contents. Add the module name as
94174         leftmost column. Add hyperlinks.
94175
94176 2003-01-15  Bruno Haible  <bruno@clisp.org>
94177
94178         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94179
94180 2003-01-15  Bruno Haible  <bruno@clisp.org>
94181
94182         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94183         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94184         suffix.
94185
94186 2003-01-15  Bruno Haible  <bruno@clisp.org>
94187
94188         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94189
94190 2003-01-15  Bruno Haible  <bruno@clisp.org>
94191
94192         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94193         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94194
94195 2003-01-14  Jim Meyering  <jim@meyering.net>
94196
94197         * lib/same.c (same_name): Tweak a comment.
94198
94199 2003-01-14  Bruno Haible  <bruno@clisp.org>
94200
94201         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94202         when a string comparison is sufficient.
94203
94204 2003-01-14  Bruno Haible  <bruno@clisp.org>
94205
94206         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94207         'unsigned int'.
94208
94209 2003-01-14  Bruno Haible  <bruno@clisp.org>
94210
94211         * lib/hash-pjw.c: Add comment about low quality of this function.
94212
94213 2003-01-13  Bruno Haible  <bruno@clisp.org>
94214
94215         * modules/stpcpy: Distribute lib/stpcpy.h.
94216         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94217
94218 2003-01-13  Bruno Haible  <bruno@clisp.org>
94219
94220         * modules/*: Add a description.
94221         * modules/strpbrk: Fix Makefile.am snippet.
94222         * modules/strtoimax: Fix dependencies.
94223         * modules/strtoumax: Likewise.
94224
94225 2003-01-13  Bruno Haible  <bruno@clisp.org>
94226
94227         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94228         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94229         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94230
94231 2003-01-13  Bruno Haible  <bruno@clisp.org>
94232
94233         * gnulib-tool (func_create_testdir): Store config/* files in the main
94234         directory.
94235         * config.rpath: Move to ...
94236         * config/config.rpath: ... here.
94237         * modules/gettext: Contains config/config.rpath, not config.rpath.
94238         * modules/iconv: Likewise.
94239
94240 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94241
94242         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94243         to avoid collisions with libcurses and libreadline.
94244
94245         * m4/getstr.m4: Remove.
94246         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94247
94248 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94249
94250         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94251         to avoid collisions with libcurses and libreadline.
94252
94253         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94254         * lib/getstr.h, getstr.c: Remove.
94255         * lib/getline.c: Include "getline.h", to check interface.
94256         Move body of old getstr.c here: this defines MIN_CHUNK and
94257         declares getdelim2, which is renamed from getstr.
94258         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94259
94260         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94261         All uses changed.
94262         * lib/linebuffer.h: Likewise.
94263         (readline): Remove backward-compatibility macro.
94264
94265 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94266
94267         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94268         to avoid collisions with libcurses and libreadline.
94269         * getstr: Remove.
94270         * MODULES.html.sh: Remove getstr.
94271         * modules/getline: Depend on unlocked-io, not getstr.
94272
94273 2003-01-12  Jim Meyering  <jim@meyering.net>
94274
94275         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94276
94277 2003-01-10  Bruno Haible  <bruno@clisp.org>
94278
94279         * modules/alloca: Change Makefile.am requirements. Simplify Include
94280         requirements. Add lib/alloca_.h to file list.
94281
94282 2003-01-10  Bruno Haible  <bruno@clisp.org>
94283
94284         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94285
94286 2003-01-10  Bruno Haible  <bruno@clisp.org>
94287
94288         * lib/alloca_.h: New file.
94289         * lib/getdate.y: Unconditionally include alloca.h.
94290         * lib/makepath.c: Likewise.
94291         * lib/setenv.c: Likewise.
94292         * lib/userspec.c: Likewise.
94293
94294 2003-01-09  Karl Berry  <karl@gnu.org>
94295
94296         * MODULES.html.sh: include `dirname $0` in PATH, to find
94297         gnulib-tool.
94298
94299 2003-01-09  Bruno Haible  <bruno@clisp.org>
94300
94301         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94302         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94303
94304 2003-01-09  Bruno Haible  <bruno@clisp.org>
94305
94306         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94307
94308 2003-01-09  Bruno Haible  <bruno@clisp.org>
94309
94310         * lib/stdbool.h.in: New file.
94311
94312 2003-01-09  Bruno Haible  <bruno@clisp.org>
94313
94314         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94315         * MODULES.html.sh: Likewise.
94316
94317 2003-01-08  Jim Meyering  <jim@meyering.net>
94318
94319         * lib/full-write.c: Undefine and define-away `const' after inclusion
94320         of errno.h, not before.  Suggestion from Bruno Haible.
94321
94322 2003-01-08  Bruno Haible  <bruno@clisp.org>
94323
94324         * modules/full-read: Depend on full-write.
94325
94326 2003-01-08  Bruno Haible  <bruno@clisp.org>
94327
94328         * lib/safe-read.c: Include specification header first, to ensure its
94329         selfcontainedness.
94330         * lib/full-write.c: Likewise.
94331
94332 2003-01-07  Jim Meyering  <jim@meyering.net>
94333
94334         * lib/full-write.c: Rework so that it may serve to define full_read,
94335         too.
94336         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94337
94338 2003-01-07  Bruno Haible  <bruno@clisp.org>
94339
94340         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94341         <inttypes.h>.
94342         * lib/xstrtol.h: Likewise.
94343         * lib/xstrtoimax.c: Likewise.
94344         * lib/xstrtoumax.c: Likewise.
94345         * lib/human.h: Likewise.
94346
94347         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94348         on systems that have <inttypes.h> but not <stdint.h>.
94349
94350 2003-01-07  Bruno Haible  <bruno@clisp.org>
94351
94352         * MODULES.html.sh: Add copyright notice.
94353         (missed_files): Omit CVS directory entries.
94354         (func_module): Make it work with sed-3.02.
94355         * MODULES.txt: Remove file.
94356
94357 2003-01-06  Jim Meyering  <jim@meyering.net>
94358
94359         * lib/version-etc.c: Update year in translatable copyright string.
94360
94361 2003-01-03  Karl Berry  <karl@gnu.org>
94362
94363         * config/config.{guess,sub}: update from prep.
94364
94365 2003-01-02  Karl Berry  <karl@gnu.org>
94366
94367         * doc/COPYING.DOC: belatedly updated to 1.2.
94368
94369 2003-01-01  Karl Berry  <karl@gnu.org>
94370
94371         * gnulib-tool (func_verify_module): report module name $module in
94372         error message, not $1.
94373         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94374         be created, only if it doesn't exist.
94375         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94376
94377 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94378
94379         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94380
94381 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94382
94383         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94384         memcmp if strcoll doesn't work.
94385
94386 2002-12-31  Bruno Haible  <bruno@clisp.org>
94387
94388         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94389         nonempty.
94390
94391 2002-12-31  Bruno Haible  <bruno@clisp.org>
94392
94393         * lib/memcoll.c (STRCOLL): New macro.
94394         (memcoll): Use it.
94395
94396 2002-12-31  Bruno Haible  <bruno@clisp.org>
94397
94398         * lib/localcharset.h: New file.
94399         * lib/localcharset.c: Include it.
94400         * lib/unicodeio.c: Likewise.
94401
94402 2002-12-31  Bruno Haible  <bruno@clisp.org>
94403
94404         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94405         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94406
94407 2002-12-31  Bruno Haible  <bruno@clisp.org>
94408
94409         * lib/getline.h: Include <stddef.h>, for size_t.
94410
94411         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94412         * lib/unicodeio.c: Don't include <stddef.h>.
94413
94414 2002-12-31  Bruno Haible  <bruno@clisp.org>
94415
94416         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94417         HAVE_TM_ZONE.
94418
94419 2002-12-24  Karl Berry  <karl@gnu.org>
94420
94421         * config/config.guess: update from prep.
94422
94423 2002-12-24  Bruno Haible  <bruno@clisp.org>
94424
94425         General infrasructure.
94426         * m4/README: Rewritten.
94427         * m4/onceonly.m4: New file.
94428         * m4/onceonly_2_57.m4: New file.
94429
94430         Module atexit.
94431         * m4/atexit.m4: New file.
94432
94433         Module strtod.
94434         * m4/strtod.m4: New file.
94435
94436         Module strtol.
94437         * m4/strtol.m4: New file.
94438
94439         Module strtoul.
94440         * m4/strtoul.m4: New file.
94441
94442         Module memchr.
94443         * m4/memchr.m4: New file.
94444
94445         Module memcmp.
94446         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94447         (jm_FUNC_MEMCMP): Invoke it.
94448
94449         Module memcpy.
94450         * m4/memcpy.m4: New file.
94451
94452         Module memmove.
94453         * m4/memmove.m4: New file.
94454
94455         Module memset.
94456         * m4/memset.m4: New file.
94457
94458         Module strcspn.
94459         * m4/strcspn.m4: New file.
94460
94461         Module strpbrk.
94462         * m4/strpbrk.m4: New file.
94463
94464         Module strstr.
94465         * m4/strstr.m4: New file.
94466
94467         Module strerror.
94468         * m4/strerror.m4: New file.
94469
94470         Module mktime.
94471         * m4/mktime.m4: Renamed from jm-mktime.m4.
94472         (gl_PREREQ_MKTIME): New macro.
94473         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94474
94475         Module malloc.
94476         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94477         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94478         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94479
94480         Module realloc.
94481         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94482         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94483         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94484
94485         Module strftime.
94486         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94487         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94488         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94489         gl_TM_GMTOFF.
94490         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94491
94492         Module xalloc.
94493         * m4/xalloc.m4: New file.
94494
94495         Module alloca.
94496         * m4/alloca.m4: New file.
94497
94498         Module putenv.
94499         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94500         (jm_FUNC_PUTENV): Invoke it.
94501
94502         Module setenv.
94503         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94504         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94505         when invoked twice.
94506         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94507         gt_FUNC_SETENV.
94508
94509         Module memrchr.
94510         * m4/memrchr.m4: New file.
94511
94512         Module stpcpy.
94513         * m4/stpcpy.m4: New file.
94514
94515         Module strcase.
94516         * m4/strcase.m4: New file.
94517
94518         Module strdup.
94519         * m4/strdup.m4: New file.
94520
94521         Module strnlen.
94522         * m4/strnlen.m4: New file.
94523
94524         Module strndup.
94525         * m4/strndup.m4: New file.
94526
94527         Module xstrtod.
94528         * m4/xstrtod.m4: New file.
94529
94530         Module xstrtol.
94531         * m4/xstrtol.m4: New file.
94532
94533         Module getdate.
94534         * m4/getdate.m4: New file.
94535
94536         Module unlocked-io.
94537         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94538         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94539         * m4/jm-glibc-io.m4n: Remove file.
94540
94541         Module long-options.
94542         * m4/long-options.m4: New file.
94543
94544         Module md5.
94545         * m4/md5.m4: New file.
94546
94547         Module sha.
94548         * m4/sha.m4: New file.
94549
94550         Module getstr.
94551         * m4/getstr.m4: New file.
94552
94553         Module getline.
94554         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94555         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94556         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94557         simply getline. Infoke gl_PREREQ_GETLINE.
94558
94559         Module obstack.
94560         * m4/obstack.m4: New file.
94561
94562         Module hash.
94563         * m4/hash.m4: New file.
94564
94565         Module readtokens.
94566         * m4/readtokens.m4: New file.
94567
94568         Module strverscmp.
94569         * m4/strverscmp.m4: New file.
94570
94571         Module stdbool.
94572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94573         OSF/1.
94574
94575         Module strtoll.
94576         * m4/strtoll.m4: New file.
94577
94578         Module strtoull.
94579         * m4/strtoull.m4: New file.
94580
94581         Module strtoimax.
94582         * m4/strtoimax.m4: New file.
94583
94584         Module strtoumax.
94585         * m4/strtoumax.m4: New file.
94586
94587         Module xstrtoimax.
94588         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94589         jm_AC_PREREQ_XSTRTOIMAX.
94590         Moved the strtol prerequisites to strtol.m4.
94591         Moved the strtoll prerequisites to strtoll.m4.
94592         Moved the strtoimax prerequisites to strtoimax.m4.
94593
94594         Module xstrtoumax.
94595         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94596         jm_AC_PREREQ_XSTRTOUMAX.
94597         Moved the strtoul prerequisites to strtoul.m4.
94598         Moved the strtoull prerequisites to strtoull.m4.
94599         Moved the strtoumax prerequisites to strtoumax.m4.
94600
94601         Module chown.
94602         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94603         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94604
94605         Module dup2.
94606         * m4/dup2.m4: New file.
94607
94608         Module ftruncate.
94609         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94610         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94611
94612         Module getgroups.
94613         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94614         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94615
94616         Module gettimeofday.
94617         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94618         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94619         gl_PREREQ_GETTIMEOFDAY.
94620
94621         Module mkdir.
94622         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94623         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94624
94625         Module mkstemp.
94626         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94627         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94628         jm_AC_TYPE_UINTMAX_T.
94629         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94630
94631         Module stat.
94632         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94633         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94634
94635         Module lstat.
94636         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94637         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94638
94639         Module timespec.
94640         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94641         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94642         * m4/st_mtim.m4: Indentation.
94643
94644         Module nanosleep.
94645         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94646         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94647         gl_PREREQ_NANOSLEEP.
94648
94649         Module regex.
94650         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94651         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94652         (gl_REGEX): New macro.
94653
94654         Module rename.
94655         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94656         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94657
94658         Module rmdir.
94659         * m4/rmdir.m4: New file.
94660
94661         Module utime.
94662         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94663         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94664         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94665
94666         Module dirname.
94667         * m4/dirname.m4: New file.
94668
94669         Module getopt.
94670         * m4/getopt.m4: New file.
94671
94672         Module unistd-safer.
94673         * m4/unistd-safer.m4: New file.
94674
94675         Module fnmatch.
94676         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94677         declaration.
94678         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94679         (gl_FUNC_FNMATCH_POSIX): New macro.
94680         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94681         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94682         simply fnmatch.
94683
94684         Module exclude.
94685         * m4/exclude.m4: New file.
94686
94687         Module human.
94688         * m4/human.m4: New file.
94689
94690         Module acl.
94691         * m4/acl.m4: Nop.
94692
94693         Module backupfile.
94694         * m4/backupfile.m4: New file.
94695         * m4/d-ino.m4: Indentation.
94696
94697         Module fsusage.
94698         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94699         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94700         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94701
94702         Module dirfd.
94703         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94704         requirements.
94705
94706         Module euidaccess.
94707         * m4/euidaccess.m4: New file.
94708
94709         Module file-type.
94710         * m4/file-type.m4: New file.
94711
94712         Module fileblocks.
94713         * m4/fileblocks.m4: New file.
94714
94715         Module filemode.
94716         * m4/filemode.m4: New file.
94717
94718         Module isdir.
94719         * m4/isdir.m4: New file.
94720
94721         Module lchown.
94722         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94723         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94724
94725         Module makepath.
94726         * m4/makepath.m4: New file.
94727
94728         Module modechange.
94729         * m4/modechange.m4: New file.
94730
94731         Module mountlist.
94732         * m4/mountlist.m4: New file.
94733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94734         Indentation.
94735
94736         Module path-concat.
94737         * m4/path-concat.m4: New file.
94738
94739         Module pathmax.
94740         * m4/pathmax.m4: New file.
94741
94742         Module same.
94743         * m4/same.m4: New file.
94744
94745         Module save-cwd.
94746         * m4/save-cwd.m4: New file.
94747
94748         Module savedir.
94749         * m4/savedir.m4: New file.
94750
94751         Module xgetcwd.
94752         * m4/xgetcwd.m4: New file.
94753         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94754
94755         Module xreadlink.
94756         * m4/xreadlink.m4: New file.
94757
94758         Module safe-read.
94759         * m4/safe-read.m4: New file.
94760
94761         Module safe-write.
94762         * m4/safe-write.m4: New file.
94763
94764         Module closeout.
94765         * m4/closeout.m4: New file.
94766
94767         Module stdio-safer.
94768         * m4/stdio-safer.m4: New file.
94769
94770         Module getpass.
94771         * m4/getpass.m4: New file.
94772
94773         Module getugroups.
94774         * m4/getugroups.m4: New file.
94775
94776         Module group-member.
94777         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94778         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94779
94780         Module idcache.
94781         * m4/idcache.m4: New file.
94782
94783         Module userspec.
94784         * m4/userspec.m4: New file.
94785
94786         Module gettime.
94787         * m4/clock_time.m4: New file.
94788         * m4/gettime.m4: New file.
94789
94790         Module settime.
94791         * m4/settime.m4: New file.
94792
94793         Module posixtm.
94794         * m4/posixtm.m4: New file.
94795
94796         Module gethostname.
94797         * m4/gethostname.m4: New file.
94798
94799         Module canon-host.
94800         * m4/canon-host.m4: New file.
94801
94802         Module gettext.
94803         * m4/codeset.m4: New file, from gettext-0.11.5.
94804         * m4/gettext.m4: New file, from gettext-0.11.5.
94805         * m4/glibc21.m4: New file, from gettext-0.11.5.
94806         * m4/iconv.m4: New file, from gettext-0.11.5.
94807         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94808         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94809         * m4/inttypes.m4: New file, from gettext-0.11.5.
94810         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94811         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94812         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94813         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94814         * m4/lib-link.m4: New file, from gettext-0.11.5.
94815         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94816         * m4/progtest.m4: New file, from gettext-0.11.5.
94817         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94818         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94819         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94820
94821         Module localcharset.
94822         * m4/localcharset.m4: New file.
94823
94824         Module hard-locale.
94825         * m4/hard-locale.m4: New file.
94826
94827         Module mbswidth.
94828         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94829         onceonly macros.
94830         * m4/mbrtowc.m4: Add comment.
94831
94832         Module memcasecmp.
94833         * m4/memcasecmp.m4: New file.
94834
94835         Module memcoll.
94836         * m4/memcoll.m4: New file.
94837
94838         Module unicodeio.
94839         * m4/unicodeio.m4: New file.
94840
94841         Module rpmatch.
94842         * m4/rpmatch.m4: New file.
94843
94844         Module yesno.
94845         * m4/yesno.m4: New file.
94846
94847         Module exitfail.
94848         * m4/exitfail.m4: New file.
94849
94850         Module c-stack.
94851         * m4/c-stack.m4 (gl_C_STACK): New macro.
94852         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94853
94854         Module error.
94855         * m4/error.m4 (gl_ERROR): New macro.
94856         (jm_PREREQ_ERROR): Use onceonly macros.
94857
94858         Module fatal.
94859         * m4/fatal.m4: New file.
94860
94861         Module getloadavg.
94862         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94863         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94864
94865         Module getpagesize.
94866         * m4/getpagesize.m4: New file.
94867
94868         Module getusershell.
94869         * m4/getusershell.m4: New file.
94870
94871         Module physmem.
94872         * m4/physmem.m4: New file.
94873
94874         Module posixver.
94875         * m4/posixver.m4: New file.
94876
94877         Module quotearg.
94878         * m4/quotearg.m4: New file.
94879
94880         Module quote.
94881         * m4/quote.m4: New file.
94882
94883         Module readutmp.
94884         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94885
94886         Module sig2str.
94887         * m4/sig2str.m4: New file.
94888
94889         Other.
94890         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94891         ulonglong.m4.
94892         * m4/intmax_t.m4: New file.
94893         * m4/d-type.m4: Indentation.
94894         * m4/jm-macros.m4: Update.
94895         * m4/prereq.m4 (jm_PREREQ): Update.
94896         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94897         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94898         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94899         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94900         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94901         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94902         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94903         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94904         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94905         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94906         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94907         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94908         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94909         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94910         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94911         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94912         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94913         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94914         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94915
94916 2002-12-24  Bruno Haible  <bruno@clisp.org>
94917
94918         * MODULES.txt: Update according to m4/ changes.
94919
94920         Module gettext.
94921         * config.rpath: New file, from gettext-0.11.5.
94922
94923         * modules/*: New module descriptions.
94924         * gnulib-tool: New file.
94925         * MODULES.html.sh: New file.
94926
94927 2002-12-21  Karl Berry  <karl@gnu.org>
94928
94929         * doc/fdl.texi: update to version 1.2.
94930
94931 2002-12-19  Karl Berry  <karl@gnu.org>
94932
94933         * config/config.guess: update from prep.
94934
94935 2002-12-18  Bruno Haible  <bruno@clisp.org>
94936
94937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94938         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94939
94940 2002-12-17  Bruno Haible  <bruno@clisp.org>
94941
94942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94943         stdlib.h, string.h.
94944
94945 2002-12-17  Bruno Haible  <bruno@clisp.org>
94946
94947         * lib/canon-host.c (strdup): Remove unused declaration.
94948
94949         * lib/fsusage.c: Include full_read.h.
94950         (get_fs_usage): Use full_read instead of safe_read.
94951
94952         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94953
94954 2002-12-12  Karl Berry  <karl@gnu.org>
94955
94956         * config/config.guess: update from prep.
94957
94958 2002-12-11  Bruno Haible  <bruno@clisp.org>
94959
94960         * m4/setenv.m4: New file, from gettext-0.11.5.
94961
94962 2002-12-11  Bruno Haible  <bruno@clisp.org>
94963
94964         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94965         not unsetenv().
94966         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94967         modifications:
94968
94969         2002-12-11  Bruno Haible  <bruno@clisp.org>
94970
94971                 * setenv.c (alloca): Fall back to malloc.
94972                 (freea): New macro.
94973                 (setenv): Use freea() to free memory allocated with alloca().
94974
94975         2002-11-13  Bruno Haible  <bruno@clisp.org>
94976
94977                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94978                 function declarations.
94979                 * unsetenv.c (unsetenv): Likewise.
94980
94981         2002-03-04  Bruno Haible  <bruno@clisp.org>
94982
94983                 Portability to AIX 4.3.3.
94984                 * unsetenv.c: New file, extracted from setenv.c.
94985                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94986
94987         2001-12-20  Bruno Haible  <bruno@clisp.org>
94988
94989                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94990                 use malloc instead. For SunOS 4.
94991
94992         2001-12-11  Bruno Haible  <bruno@clisp.org>
94993
94994                 * setenv.c: Declare alloca.
94995                 (compar_fn_t): New typedef.
94996                 (KNOWN_VALUE, STORE_VALUE): Use it.
94997
94998         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94999         setenv.h.
95000
95001 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95002
95003         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95004         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95005         Choose values that are less likely to collide with system fnmatch
95006         options.
95007         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95008         defined (e.g., a pure POSIX system).
95009         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95010         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95011
95012 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95013
95014         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95015         a pain in practice to deal with generated m4 files.  This change
95016         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95017
95018         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95019         and jm-glibc-io.m4, as they are no longer a special case.
95020         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95021         kludge and the auto-generation stuff.  Check only whether the
95022         functions are declared, not whether they exist, since older hosts
95023         that don't declare the functions can't use the optimization anyway.
95024
95025 2002-12-06  Jim Meyering  <jim@meyering.net>
95026
95027         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95028
95029         Merge in changes from libc's misc/error.c, in preparation
95030         for the merge of gnulib's changes back into libc.
95031
95032         * lib/error.c (_): Define only if not already defined.
95033         Move definition to follow all #include directives.
95034         Include unlocked-io.h only if !_LIBC.
95035         [_LIBC]: Include <libio/libioP.h>.
95036         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95037         (fflush): Tweak definition to use INTUSE.
95038         (putc): Define.
95039
95040 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95041
95042         * lib/alloca.c [defined emacs]: Include "lisp.h".
95043         (xalloc_die) [defined emacs]: New macro.
95044         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95045         [! defined emacs]: Include <xalloc.h>.
95046         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95047         (pointer): Typedef to POINTER_TYPE *.
95048         (malloc): Remove decl; we now always use xmalloc.
95049         (alloca): Use old-style definition, since Emacs needs this.
95050         Check for arithmetic overflow when computing combined size.
95051
95052 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95053
95054         Do not generate unlocked-io.h automatically, since it's easier to
95055         maintain it by hand.
95056
95057         * lib/unlocked-io.h: New file, from GNU diffutils,
95058         but with proper copyright notice and attribution.
95059         * lib/gen-uio: Remove.
95060         * lib/Makefile.am: Add copyright notice.
95061         (libfetish_a_SOURCES): Add unlocked-io.h.
95062         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95063         (DISTCLEANFILES, io_functions): Remove macros.
95064         (EXTRA_DIST): Remove gen_uio.
95065         (unlocked-io.h): Remove rule.
95066
95067 2002-12-04  Jim Meyering  <jim@meyering.net>
95068
95069         Reflect the fact that stat.c and lstat.c are no longer generated.
95070         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95071         (DISTCLEANFILES): Likewise.
95072         (EXTRA_DIST): Likewise.
95073         (all_local): Don't depend on stat.c or lstat.c.
95074         (stat.c, lstat.c): Remove rules.
95075         (EXTRA_DIST): Remove xstat.in.
95076
95077         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95078         * lib/stat.c: New file.  Contents mostly from xstat.in.
95079         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95080         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95081
95082         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95083         too.
95084         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95085
95086 2002-12-03  Jim Meyering  <jim@meyering.net>
95087
95088         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95089         but not semantics, to minimize the differences between these two files.
95090         (safe_read): Change comment to mention SAFE_READ_ERROR.
95091
95092         * lib/safe-read.c (IS_EINTR): Define.
95093         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95094
95095 2002-12-02  Jim Meyering  <jim@meyering.net>
95096
95097         * lib/safe-read.c (EINTR): Define.
95098         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95099         (INT_MAX): Provide fallback.
95100         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95101
95102         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95103
95104 2002-12-02  Bruno Haible  <bruno@clisp.org>
95105
95106         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95107         Define, taken from safe-read.c.
95108         (INT_MAX): Provide fallback.
95109         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95110         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95111
95112         * lib/safe-read.c (EINTR): Remove definition.
95113         (safe_read): Don't use EINTR if it is absent.
95114
95115 2002-12-01  Jim Meyering  <jim@meyering.net>
95116
95117         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95118         zero.
95119         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95120
95121 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95122
95123         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95124         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95125         with `if (! (value < limit)) abort ();', for readability.
95126
95127 2002-11-26  Karl Berry  <karl@gnu.org>
95128
95129         * lib/strdup.c: copy from libc again, with jim's ok.
95130         * lib/.cppi-disable: re-add strdup.c
95131
95132 2002-11-25  Karl Berry  <karl@gnu.org>
95133
95134         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95135         instead of "strtol.c".
95136
95137 2002-11-25  Karl Berry  <karl@gnu.org>
95138
95139         * config/install-sh: update from automake for variable quoting, $0 in
95140         error msgs, etc.
95141
95142         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95143         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95144         entry.
95145
95146 2002-11-25  Jim Meyering  <jim@meyering.net>
95147
95148         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95149
95150 2002-11-24  Karl Berry  <karl@gnu.org>
95151
95152         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95153         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95154
95155 2002-11-24  Jim Meyering  <jim@meyering.net>
95156
95157         Update from coreutils:
95158
95159         * lib/mktime.c: Merge in changes from libc.
95160
95161         Avoid a link-time failure on some Linux systems.
95162         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95163         (otherwise).
95164         (__mon_yday): Declare with the STATIC attribute.
95165         (__mktime_internal): Likewise.
95166         Based on a report from Greg Schafer.
95167
95168 2002-11-23  Jim Meyering  <jim@meyering.net>
95169
95170         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95171         Use `unsigned', not `int', as type of index.
95172
95173         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95174
95175         * lib/fsusage.c: Remove unneeded parentheses around operands of
95176         `defined'.
95177
95178 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95179
95180         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95181         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95182         so that we can be included first.
95183         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95184         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95185         No need to include stddef.h or sys/types.h any more.
95186         Surround local include files with "", not "<>".
95187         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95188         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95189         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95190         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95191         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95192         (ISPRINT): Remove; no longer needed now that we assume C89.
95193
95194         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95195         Preserve errno.
95196
95197         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95198         quotearg_char): Use SIZE_MAX rather than
95199         (size_t) -1 when we are talking about "infinity".
95200
95201         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95202
95203 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95204
95205         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95206         hint that one should use `if (! x) abort ();' rather than `assert
95207         (x);', and anyway it's one less thing to worry about configuring.
95208         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95209         hash_rehash, hash_insert): Use abort rather than assert.
95210
95211 2002-11-22  Bruno Haible  <bruno@clisp.org>
95212
95213         * lib/safe-read.h: Assume C89. Add comments.
95214         (safe_read): Change return type to size_t.
95215         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95216         byte counts > SSIZE_MAX correctly.
95217         * lib/safe-write.h: New file.
95218         * lib/safe-write.c: New file.
95219         * lib/full-read.h: New file.
95220         * lib/full-read.c: New file.
95221         * lib/full-write.h: Assume C89. Add comments.
95222         * lib/full-write.c: Include safe-write.h.
95223         (full_write): Rewritten to use safe_write.
95224         Suggested by Jim Meyering and Paul Eggert.
95225
95226 2002-11-21  Jim Meyering  <jim@meyering.net>
95227
95228         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95229
95230         Merge in changes from the coreutils.
95231
95232         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95233         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95234         <stdint.h>.
95235         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95236         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95237         int.  Work more efficiently if X is the same width as uintmax_t.
95238         Do not compare X to -1, to avoid bogus compiler warning.
95239         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95240         Don't assume that f_frsize and f_bsize are the same type.
95241
95242         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95243         warning on FreeBSD.
95244
95245         * lib/makepath.c (make_path): Restore umask *before* creating the final
95246         component.
95247         (make_path): Minor reformatting.
95248
95249         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95250         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95251         HAVE_MALLOC/HAVE_REALLOC.
95252
95253         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95254         dummy ones.  At least on GNU/Linux systems, `auto' means something
95255         else.
95256         From Michael Stone.
95257
95258 2002-11-21  Bruno Haible  <bruno@clisp.org>
95259
95260         Remove case insensitive option matching.
95261         * lib/argmatch.h (argcasematch): Remove declaration.
95262         (ARGCASEMATCH): Remove macro.
95263         (__xargmatch_internal): Remove case_sensitive argument.
95264         (XARGMATCH): Update.
95265         (XARGCASEMATCH): Remove macro.
95266         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95267         case_sensitive argument.
95268         (argcasematch): Remove function.
95269         (__xargmatch_internal): Remove case_sensitive argument.
95270         (main): Use XARGMATCH instead of XARGCASEMATCH.
95271
95272         * lib/xmalloc.c: Change compile-time error message. Add comment about
95273         required autoconf version.
95274
95275 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95276
95277         Merge argmatch cleanups from Bison.  Assume C89.
95278
95279         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95280         Include stdlib.h, for EXIT_FAILURE.
95281         Always include <string.h>, since we assume C89.
95282         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95283         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95284         Include <stddef.h> instead, since it's all we need for size_t.
95285         (PARAMS): Remove.  All uses removed.
95286         (ARRAY_CARDINALITY): Do not bother to #undef.
95287         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95288         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95289         Remove unnecessary parentheses.
95290         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95291         Insert necessary parentheses.
95292         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95293         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95294
95295 2002-11-19  Bruno Haible  <bruno@clisp.org>
95296
95297         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95298         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95299
95300         * lib/mbswidth.h (PARAMS): Remove macro.
95301         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95302         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95303
95304         * lib/gcd.h (PARAMS): Remove macro.
95305         (gcd): Use ANSI C function declarations.
95306         * lib/gcd.c (gcd): Likewise.
95307
95308 2002-11-15  Bruno Haible  <bruno@clisp.org>
95309
95310         * lib/strcspn.c: Include <stddef.h>.
95311         (strcspn): Use ANSI C function declaration. Change return type to
95312         size_t. Use NULL.
95313         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95314         (strpbrk): Use NULL.
95315         * lib/strpbrk.h (PARAMS): Remove macro.
95316         (strpbrk): Use ANSI C function declaration.
95317         * lib/strstr.c: Don't include <sys/types.h>.
95318         * lib/strstr.h (PARAMS): Remove macro.
95319         (strstr): Use ANSI C function declarations.
95320
95321 2002-11-14  Karl Berry  <karl@gnu.org>
95322
95323         * config/mkinstalldirs: `do' on separate line, instead of
95324         `for var; do'.
95325
95326 2002-11-06  Bruno Haible  <bruno@clisp.org>
95327
95328         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95329         * lib/gcd.c (gcd): Likewise.
95330
95331 2002-11-05  Bruno Haible  <bruno@clisp.org>
95332
95333         * lib/gcd.h: New file, from gettext-0.11.5.
95334         * lib/gcd.c: New file, from gettext-0.11.5.
95335
95336 2002-11-05  Bruno Haible  <bruno@clisp.org>
95337
95338         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95339         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95340         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95341         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95342
95343         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95344         <libintl.h>.
95345         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95346         <libintl.h>.
95347
95348         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95349         * lib/human.c: Include gettext.h instead of <libintl.h>.
95350         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95351         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95352         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95353         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95354         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95355         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95356         (textdomain): Remove definition.
95357         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95358
95359         * lib/long-options.c: Remove include of <libintl.h> and definition of
95360         _.
95361         * lib/same.c: Remove include of <libintl.h> and definition of _.
95362
95363 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95364
95365         * lib/config.charset: A few additions for Solaris.
95366
95367 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95368
95369         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95370         * lib/localcharset.c (locale_charset): Declare as extern "C".
95371
95372 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95373
95374         * lib/config.charset: msdos in uk_UA uses CP1125.
95375
95376 2002-11-04  Bruno Haible  <bruno@clisp.org>
95377
95378         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95379         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95380         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95381         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95382         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95383
95384 2002-11-04  Bruno Haible  <bruno@clisp.org>
95385
95386         * lib/localcharset.c (locale_charset): Don't return an empty string.
95387
95388 2002-11-04  Bruno Haible  <bruno@clisp.org>
95389
95390         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95391         aliases.
95392
95393 2002-11-04  Bruno Haible  <bruno@clisp.org>
95394
95395         * lib/config.charset: Update for newest glibc. Add canonical names
95396         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95397
95398 2002-11-04  Bruno Haible  <bruno@clisp.org>
95399
95400         * lib/config.charset: Add support for NetBSD.
95401
95402 2002-11-04  Bruno Haible  <bruno@clisp.org>
95403
95404         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95405
95406 2002-11-01  Bruno Haible  <bruno@clisp.org>
95407
95408         * configure.in: Add AC_CONFIG_AUX_DIR call.
95409         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95410         test/Makefile.
95411         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95412
95413 2002-09-28  Karl Berry  <karl@gnu.org>
95414
95415         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95416         installed automake until the next release, since changes have been
95417         made.
95418
95419 2002-09-25  Karl Berry  <karl@gnu.org>
95420
95421         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95422         * lib/getopt*: copy from libc/posix.
95423         * lib/gettext.h: copy from gettext.
95424         * lib/.cppi-disable: add strdup.c, gettext.h.
95425
95426 2002-09-25  Karl Berry  <karl@gnu.org>
95427
95428         * config/srclist.txt: enable gettext.h check.
95429         * config/config.{guess,sub}: update from prep.
95430         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95431                 from automake 1.6.3.
95432         See srclist*.
95433
95434 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95435
95436         * regex.c (PATFETCH): Remove the translating fetch.
95437         (PATFETCH_RAW): Rename to PATFETCH.
95438         (set_image_of_range): New fun.
95439         (SET_RANGE_TABLE_WORK_AREA): Use it.
95440         (regex_compile): Don't translate the pattern chars so eagerly.
95441         Only do it when inserting an `exactn' bytecode or when handling
95442         a char-range.
95443         (mutually_exclusive_p): Avoid empty statement.
95444
95445 2002-07-06  Jim Meyering  <meyering@lucent.com>
95446
95447         * m4/README: Don't mention Makefile.am.in.
95448         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95449
95450 2002-07-01  Jim Meyering  <meyering@lucent.com>
95451
95452         * lib/c-stack.c: Include sys/time.h.
95453         From Volker Borchert.
95454
95455 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95456
95457         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95458
95459 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95460
95461         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95462         New macro.  Use it uniformly instead of
95463         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95464         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95465         reported by Vin Shelton.
95466
95467 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95468
95469         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95470         Do not assume SA_SIGINFO behavior.
95471         Bug reported by Jim Meyering on NetBSD 1.5.2.
95472
95473 2002-06-22  Jim Meyering  <meyering@lucent.com>
95474
95475         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95476         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95477
95478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95479         now that configure.ac uses AC_GNU_SOURCE.
95480         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95481         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95482
95483         Update to latest tools.  Suggestions from Paul Eggert.
95484         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95485         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95486         * m4/fnmatch.m4: Likewise.
95487         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95488         to AC_HEADER_STDBOOL
95489
95490 2002-06-22  Jim Meyering  <meyering@lucent.com>
95491
95492         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95493         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95494
95495 2002-06-22  Jim Meyering  <meyering@lucent.com>
95496
95497         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95498
95499         * lib/exitfail.c, exitfail.h: Likewise.
95500         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95501
95502         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95503         of fnmatch.h.
95504         (EXTRA_DIST): Add fnmatch_loop.c.
95505         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95506
95507         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95508         * lib/fnmatch.c: Update from diffutils-2.8.2.
95509         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95510         * lib/fnmatch.h: Remove file.
95511
95512 2002-06-21  Jim Meyering  <meyering@lucent.com>
95513
95514         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95515         * m4/mbrtowc.m4: Likewise.
95516
95517         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95518         * m4/mbswidth.m4: Reflect name change:
95519         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95521
95522         * m4/lib-link.m4: Update from gettext-0.11.2.
95523         * m4/gettext.m4: Likewise.
95524
95525         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95526         From Alfred M. Szmidt.
95527
95528 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95529
95530         * lib/file-type.h: Report an error if neither S_ISREG nor
95531         S_IFREG is defined, instead of using a test specific to glibc
95532         2.2.  This should be safe, since POSIX requires S_ISREG and
95533         Unix Version 7 had S_IFREG.  We don't need to check for
95534         <sys/types.h> since we don't use any symbols that it defines.
95535
95536 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95537
95538         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95539         $@-t, so that each temporary file name is unique and valid in the first
95540         8 characters, for operation under DOS.
95541
95542 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95543
95544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95545
95546 2002-06-15  Jim Meyering  <meyering@lucent.com>
95547
95548         Work even with DJGPP 2.03, which lacks support for symlinks.
95549         From Richard Dawe.
95550         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95551         is defined.
95552         * lib/lchown.c (S_ISLNK): Likewise.
95553
95554 2002-06-15  Jim Meyering  <meyering@lucent.com>
95555
95556         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95557         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95558         have been included before this file.
95559
95560 2002-06-14  Jim Meyering  <meyering@lucent.com>
95561
95562         * lib/file-type.h: Use the version from diffutils-2.8.2.
95563         * lib/file-type.c: Likewise.
95564
95565 2002-06-07  Jim Meyering  <meyering@lucent.com>
95566
95567         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95568         They're needed at least for NetBSD 1.5.2.
95569         ($statxfs_includes): Include those same headers.
95570         ($statxfs_includes): Include sys/vfs.h if available.
95571         ($statxfs_includes): Likewise for sys/statvfs.h.
95572         Check for the following members in both structs statfs and statvfs:
95573         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95574
95575 2002-06-01  Jim Meyering  <meyering@lucent.com>
95576
95577         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95578         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95579
95580 2002-05-28  Jim Meyering  <meyering@lucent.com>
95581
95582         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95583         Reported by Volker Borchert.
95584
95585 2002-05-27  Jim Meyering  <meyering@lucent.com>
95586
95587         Fix a problem seen only on nonconforming systems whereby ls.c's
95588         use of localtime, and then of gettimeofday would cause trouble:
95589         the localtime call used to initialize rpl_gettimeofday's save
95590         mechanism would clobber ls's current local time information so
95591         that in any long listing the first file would always be listed
95592         with date 1970-01-01.  Analysis by Volker Borchert.
95593
95594         * lib/gettimeofday.c (localtime): Undefine.
95595         (rpl_localtime): New function.
95596
95597 2002-05-27  Jim Meyering  <meyering@lucent.com>
95598
95599         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95600         localtime.
95601
95602         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95603         use the replacement function; it wouldn't resolve at link time.
95604         Reported by Volker Borchert.
95605
95606 2002-05-22  Jim Meyering  <meyering@lucent.com>
95607
95608         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95609         file-type.h.
95610         * lib/file-type.h: New file.
95611         * lib/file-type.c (file_type): New file/function.  Extracted from
95612         diffutils.
95613
95614 2002-04-30  Jim Meyering  <meyering@lucent.com>
95615
95616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95617
95618 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95619
95620         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95621
95622 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95623
95624         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95625         Do not check for alloca.h (no longer used) or stdbool.h (was never
95626         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95627
95628 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95629
95630         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95631
95632 2002-04-29  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95635         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95636         Use AC_FUNC_STRNLEN here instead.
95637
95638         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95639         With autoconf-2.53a, it's part of AC_PROG_CC.
95640
95641 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95642
95643         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95644         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95645
95646 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95647
95648         * lib/sig2str.h, lib/sig2str.c: New files.
95649         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95650
95651 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95652
95653         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95654         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95655         of 127, since 64 is the largest conceivable number for ancient
95656         nonstandard hosts.
95657         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95658
95659 2002-04-28  Jim Meyering  <meyering@lucent.com>
95660
95661         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95662
95663 2002-04-24  Jim Meyering  <meyering@lucent.com>
95664
95665         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95666         (jm_PREREQ): Use it.
95667
95668         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95669         mach/mach.h fcntl.h.
95670         Check for this function: setlocale.
95671
95672 2002-04-24  Jim Meyering  <meyering@lucent.com>
95673
95674         * lib/gettext.h: New file, from Gettext.
95675         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95676         (libfetish_a_SOURCES): Add gettext.h.
95677
95678 2002-04-16  Jim Meyering  <meyering@lucent.com>
95679
95680         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95681         ut_pid, ut_id, ut_exit.
95682
95683 2002-04-16  Jim Meyering  <meyering@lucent.com>
95684
95685         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95686         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95687         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95688
95689 2002-04-12  Jim Meyering  <meyering@lucent.com>
95690
95691         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95692         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95693         existence of the getmntinfo function.  Needed for Darwin 5.3.
95694
95695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95696         This is necessary at least on Darwin 5.3.
95697
95698         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95699         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95700         strnlen.o in the library, and that makes some versions of ranlib
95701         object.
95702
95703 2002-04-12  Jim Meyering  <meyering@lucent.com>
95704
95705         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95706
95707 2002-04-09  Jim Meyering  <meyering@lucent.com>
95708
95709         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95710         to be more precise.  Rather than saying we're checking whether the
95711         function `works', say what we're testing.
95712         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95713         Reported by Bruno Haible.
95714
95715 2002-03-10  Jim Meyering  <meyering@lucent.com>
95716
95717         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95718         Suggestion from Santiago Vila.
95719
95720 2002-03-08  Jim Meyering  <meyering@lucent.com>
95721
95722         * lib/rename.c: Mention that this wrapper is needed also on
95723         mips-dec-ultrix4.4 systems.
95724
95725 2002-03-02  Jim Meyering  <meyering@lucent.com>
95726
95727         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95728         not HAVE_CLOCK_SETTIME.
95729
95730 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95731
95732         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95733         Check for clock_settime.
95734
95735 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95736
95737         * lib/nanosleep.h: Rename to....
95738         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95739
95740         * lib/gettime.c: New file.
95741         * lib/settime.c: New file.
95742         * lib/stime.c: Remove.
95743
95744         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95745         timespec.h.  Remove nanosleep.h.
95746
95747 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95748
95749         * m4/acl.m4: New file.
95750         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95751         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95752
95753 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95754
95755         * lib/acl.c, lib/acl.h: New files.
95756         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95757
95758 2002-02-24  Jim Meyering  <meyering@lucent.com>
95759
95760         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95761         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95762         cause trouble.  Reported by Nelson Beebe.
95763
95764 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95765
95766         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95767         compilers that don't know that xalloc_die never returns.
95768
95769 2002-02-20  Jim Meyering  <meyering@lucent.com>
95770
95771         * lib/getdate.c: Regenerate using bison-1.33.
95772
95773 2002-02-17  Jim Meyering  <meyering@lucent.com>
95774
95775         * config/config.guess (main): Don't use `head -1'; it's no longer
95776         portable. Use `sed 1q' instead.
95777
95778 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95779
95780         * m4/codeset.m4: Upgrade to gettext-0.11.
95781         * m4/gettext.m4: Upgrade to gettext-0.11.
95782         * m4/glibc21.m4: Upgrade to gettext-0.11.
95783         * m4/iconv.m4: Upgrade to gettext-0.11.
95784         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95785         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95786         * m4/lib-ld.m4: New file, from gettext-0.11.
95787         * m4/lib-link.m4: New file, from gettext-0.11.
95788         * m4/lib-prefix.m4: New file, from gettext-0.11.
95789         * m4/progtest.m4: Upgrade to gettext-0.11.
95790
95791 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95792
95793         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95794         (jm_PREREQ): Use it.
95795
95796 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95797
95798         * lib/posixver.c, lib/posixver.h: New files.
95799         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95800
95801 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95802             Bruno Haible  <bruno@clisp.org>
95803
95804         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95805         (fwrite_success_callback): New declaration.
95806         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95807         print_unicode_char. Call failure callback instead of error.
95808         (fwrite_success_callback): New function.
95809         (exit_failure_callback): New function.
95810         (fallback_failure_callback): New function.
95811         (print_unicode_char): Call unicode_to_mb.
95812
95813 2002-01-26  Jim Meyering  <meyering@lucent.com>
95814
95815         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95816         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95817
95818 2002-01-26  Jim Meyering  <meyering@lucent.com>
95819
95820         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95821
95822 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95823
95824         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95825
95826 2002-01-22  Jim Meyering  <meyering@lucent.com>
95827
95828         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95829         Otherwise, some versions of automake would omit the rule that makes
95830         Makefile from Makefile.in.
95831
95832 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95833
95834         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95835         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95836         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95837         (memcoll): Set errno to zero if there is no error.
95838
95839         * lib/quotearg.c (quotearg_buffer_restyled):
95840         Fix bug with quoting buffers containing NUL when backslashing escapes.
95841         This bug was exposed by the other changes in this patch.
95842         (quotearg_n_options): New arg ARGSIZE.
95843         All callers changed.
95844         (quoting_options_from_style): New function.
95845         (quotearg_n_style): Use it.
95846         (quotearg_n_style_mem): New function.
95847
95848         * lib/quotearg.h (quotearg_n_style_mem): New function.
95849
95850 2002-01-19  Jim Meyering  <meyering@lucent.com>
95851
95852         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95853         Remove useless quotes: DF_PROG="df".
95854         * m4/strnlen.m4: New file.
95855
95856 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95857
95858         * lib/backupfile.c (ISDIGIT): Comment fix.
95859         * lib/getdate.y (ISDIGIT): Likewise.
95860         * lib/posixtm.c (ISDIGIT, year): Likewise.
95861         * lib/strverscmp.c (ISDIGIT): Likewise.
95862         * lib/userspec.c (ISDIGIT): Likewise.
95863
95864 2002-01-16  Jim Meyering  <meyering@lucent.com>
95865
95866         * lib/getdate.y: Add three semicolons, each just before a closing
95867         brace. Bison (as of version 1.31) no longer papers over that mistake.
95868
95869 2002-01-05  Jim Meyering  <meyering@lucent.com>
95870
95871         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95872
95873 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95874
95875         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95876         not silently exit merely because the output buffer happens to
95877         have nothing pending.
95878
95879 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95880
95881         See the big note in ../ChangeLog.
95882         * lib/human.c (suffixes): Prefer K to k for 1024.
95883         (generate_suffix_backwards): New function.
95884         (human_readable_inexact): Use it.
95885         * lib/xstrtol.c (__xstrtol): If there is no number but there
95886         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95887         Accept 'K' as well as 'k'.
95888
95889 2001-12-15  Jim Meyering  <meyering@lucent.com>
95890
95891         * lib/regex.h (__restrict_arr): Update from libc.
95892
95893         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95894         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95895         (STREQ): Define.
95896
95897 2001-12-14  Jim Meyering  <meyering@lucent.com>
95898
95899         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95900         Suggestion from Bruno Haible.
95901
95902 2001-12-10  Jim Meyering  <meyering@lucent.com>
95903
95904         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95905         xrealloc, Instead, include "xalloc.h".
95906         (initbuffer): Don't cast xmalloc return value to char*.
95907         (readline): Reword comment.
95908         Don't cast xrealloc return value to char*
95909         Return NULL, not 0.
95910
95911 2001-12-09  Jim Meyering  <meyering@lucent.com>
95912
95913         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95914         about `signed and unsigned type in conditional expression'.
95915         * lib/posixtm.c (posix_time_parse): Likewise.
95916
95917         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95918
95919         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95920         to avoid a pedantic warning.
95921
95922         * lib/getstr.c: Don't include assert.h.
95923         (getstr): Remove warning-evoking assertions.
95924         Return -1 if offset parameter is out of bounds.
95925         Change the type of a local from int to size_t.
95926
95927         * lib/strftime.c (my_strftime_localtime_r): Include this function
95928         definition in the `#if ! HAVE_TM_GMTOFF' block.
95929
95930         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95931         Include xalloc.h instead.
95932
95933 2001-12-02  Jim Meyering  <meyering@lucent.com>
95934
95935         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95936         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95937         included.
95938
95939         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95940         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95941
95942 2001-11-30  Akim Demaille  <akim@epita.fr>
95943
95944         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95945         before being defined.
95946
95947 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95948
95949         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95950         First arg is int, not unsigned.
95951         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95952         (SIZE_MAX, UINT_MAX): New macros.
95953         (quotearg_n_options): Abort if N is negative.
95954         Avoid overflow check on hosts where size_t is 64 bits and int
95955         is 32 bits, as overflow is impossible there.
95956         Fix off-by-one typo that caused unnecessary reallocation.
95957
95958 2001-11-27  Jim Meyering  <meyering@lucent.com>
95959
95960         * lib/tempname.c: Merge with version from libc.
95961         * lib/regex.c: Likewise.
95962
95963         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95964         systems for which STDC_HEADERS is 0, it was not included, resulting in
95965         a warning about an integer-to-pointer conversion problem with getenv.
95966         Reported by Volker Borchert.
95967
95968 2001-11-26  Jim Meyering  <meyering@lucent.com>
95969
95970         * lib/gtod.h: Remove file.
95971         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95972         * lib/gettimeofday.c: Don't include gtod.h.
95973         (GTOD_init): Remove function.
95974         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95975         Suggestion from Volker Borchert.
95976
95977 2001-11-23  Jim Meyering  <meyering@lucent.com>
95978
95979         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95980         it.
95981         * lib/hash.c (struct hash_table): Define it here instead.
95982
95983 2001-11-22  Jim Meyering  <meyering@lucent.com>
95984
95985         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95986
95987 2001-11-20  Jim Meyering  <meyering@lucent.com>
95988
95989         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95990         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95991
95992 2001-11-19  Jim Meyering  <meyering@lucent.com>
95993
95994         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95995         directory.  Use "conftestXXXXXX" as the template.
95996         Suggestion from Paul Eggert.
95997
95998         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95999         immediately, so the test doesn't mistakenly hit the max-open-files
96000         limit.
96001
96002 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96003
96004         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96005         (TEMPORARIES): New macro.
96006         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96007         removes an artificial limitation (e.g. HP-UX 10.20, where
96008         TMP_MAX is 17576).
96009
96010 2001-11-18  Jim Meyering  <meyering@lucent.com>
96011
96012         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96013
96014 2001-11-18  Jim Meyering  <meyering@lucent.com>
96015
96016         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96017         on SunOS 4.
96018
96019         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96020         files will be created before anything else.
96021
96022 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96023
96024         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96025         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96026
96027 2001-11-17  Jim Meyering  <meyering@lucent.com>
96028
96029         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96030         Prompted by a report from Bob Proulx.
96031
96032         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96033         Instead, require UTILS_FUNC_MKSTEMP.
96034
96035 2001-11-17  Jim Meyering  <meyering@lucent.com>
96036
96037         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96038         Now, that's done as part of AC_FUNC_STRTOD.
96039
96040 2001-11-17  Jim Meyering  <meyering@lucent.com>
96041
96042         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96043         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96044         rather than group writable.  Patch by Juan F. Codagnone.
96045
96046         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96047         xrealloc, Instead, include "xalloc.h".
96048
96049         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96050         Remove explicit declarations of xmalloc, xrealloc,
96051         and xstrdup.  Instead, include "xalloc.h".
96052
96053         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96054         unlocked-io.h.
96055         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96056         Likewise.
96057         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96058
96059         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96060         Reported by Padraig Brady.
96061
96062         * lib/mkstemp.c: #undef mkstemp.
96063         Include config.h.
96064         (rpl_mkstemp): Rename from mkstemp.
96065         Protoize.
96066
96067 2001-11-16  Jim Meyering  <meyering@lucent.com>
96068
96069         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96070         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96071         determine the amount of total physical memory, use pstat_getstatic.
96072         HPUX-11 doesn't define _SC_PHYS_PAGES.
96073         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96074         If sysconf couldn't be used to determine the amount of available
96075         physical memory, use both pstat_getstatic and pstat_getdynamic.
96076         Based on a patch from Bob Proulx.
96077
96078 2001-11-10  Jim Meyering  <meyering@lucent.com>
96079
96080         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96081         (jm_PREREQ): Use it.
96082
96083 2001-11-09  Jim Meyering  <meyering@lucent.com>
96084
96085         * m4/jm-macros.m4: Require autoconf-2.52f.
96086         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96087         Use these AC_-prefixed names, not the AM_-prefixed ones.
96088
96089         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96090
96091 2001-11-05  Jim Meyering  <meyering@lucent.com>
96092
96093         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96094
96095 2001-11-04  Jim Meyering  <meyering@lucent.com>
96096
96097         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96098         $DEFS.
96099
96100 2001-11-03  Jim Meyering  <meyering@lucent.com>
96101
96102         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96103         of AC_DEFUN.
96104
96105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96106         know the name of the variable in the macro definition.
96107
96108 2001-11-03  Jim Meyering  <meyering@lucent.com>
96109
96110         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96111         in argmatch_to_argument call.
96112
96113         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96114         argument.
96115
96116         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96117         e.g., a fault due to an attempt to free a NULL pointer.
96118
96119 2001-11-01  Jim Meyering  <meyering@lucent.com>
96120
96121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96122         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96123
96124 2001-11-01  Jim Meyering  <meyering@lucent.com>
96125
96126         * lib/dirfd.c, lib/dirfd.h: New files.
96127         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96128
96129         * lib/hash.c (hash_print) [TESTING]: Clean up.
96130
96131 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96132
96133         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96134         to avoid a warning if -Wall.
96135
96136 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96137
96138         * README: New file
96139         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96140         (per RMS's instructions, this is now the canonical source)
96141         * lgpl/, gpl/: New directories.
96142
96143 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96144
96145         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96146
96147 2001-10-21  Jim Meyering  <meyering@lucent.com>
96148
96149         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96150         this code would end up calling gettext even in packages built
96151         with --disable-nls.
96152         * lib/getopt.c (_): Likewise.
96153         * lib/regex.c (_): Likewise.
96154
96155 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96156
96157         * m4/error.m4 (jm_PREREQ_ERROR):
96158         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96159         AC_FUNC_STRERROR_R does that.
96160         Check for strerror declaration.
96161
96162         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96163         are supposed to have them these days.
96164         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96165         Merge changes from latest Autoconf CVS.
96166         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96167         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96168         POSIX decided to standardize on the int flavor of strerror_r.
96169
96170 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96171
96172         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96173         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96174         Use strerror_r that is only a macro, even if it is not a function.
96175         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96176         (private_strerror): Use prototypes, not old-style function definition.
96177         (print_errno_message): New function.
96178         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96179         char*-flavored one.
96180         (error_tail, error, error_at_line): Use it.
96181
96182 2001-10-11  Jim Meyering  <meyering@lucent.com>
96183
96184         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96185         and quote_n (1, ... to avoid clobbering a buffer.
96186
96187 2001-10-05  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96190         hash-pjw.h.
96191         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96192         * lib/hash-pjw.h: New file.
96193
96194 2001-09-30  Jim Meyering  <meyering@lucent.com>
96195
96196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96197         `struct fsstat' has the `f_fstypename' member.
96198         Use that to define FS_TYPE, which is now used to make
96199         the getfsstat link test tighter.
96200
96201 2001-09-30  Jim Meyering  <meyering@lucent.com>
96202
96203         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96204         Include <sys/ucred.h>, for Apple Darwin.
96205         Include sys/mount.h and sys/fs_types.h only if available.
96206         (FS_TYPE): Define.
96207         (read_filesystem_list): Use FS_TYPE.
96208
96209 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96210
96211         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96212         a boolean context.
96213
96214 2001-09-29  Jim Meyering  <meyering@lucent.com>
96215
96216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96217         [one-argument getmntent function]): Include stdio.h before mntent.h.
96218         SunOS 4.1.x needs it for the declaration of `FILE'.
96219         Patch by Volker Borchert.
96220
96221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96222         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96223         sys/fs_types.h, and make the link-test for getfsstat guard #include
96224         directives with appropriate #if HAVE_*_H tests so that we can
96225         detect getfsstat on Apple Darwin1.3.7 systems.
96226         Reported by Nelson Beebe.
96227         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96228
96229 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96230
96231         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96232         #defines strtoimax.  Also treat the other strto* functions
96233         like strtoimax.
96234
96235         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96236         Check for strtoul and strtoumax,
96237         as those declarations are made even in the signed case.
96238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96239         Likewise, for strtol and strtoimax.
96240
96241 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96242
96243         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96244         #defines strtoimax.  Also treat the other strto* functions
96245         like strtoimax.
96246
96247         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96248         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96249         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96250
96251 2001-09-26  Jim Meyering  <meyering@lucent.com>
96252
96253         Most macros in unlocked-io.h had the wrong number of arguments.
96254         * lib/gen-uio: New script.
96255         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96256         * lib/unlocked-io.hin: Remove file.
96257         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96258         rather than trying to embed it here.
96259         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96260         Reported by Padraig Brady.
96261
96262 2001-09-25  Volker Borchert  <bt@teknon.de>
96263
96264         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96265         `result'.
96266
96267 2001-09-24  Jim Meyering  <meyering@lucent.com>
96268
96269         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96270
96271 2001-09-23  Jim Meyering  <meyering@lucent.com>
96272
96273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96274         instead of the mere test for existence of mntent.h.  The latter
96275         would get a false-positive on AIX 3.4 systems.
96276         In the outer getmntent if-block, don't die if neither of the getmntent
96277         tests succeeds.  Instead, just fall through and continue with the
96278         remaining tests.
96279
96280 2001-09-23  Jim Meyering  <meyering@lucent.com>
96281
96282         * lib/mountlist.c: Remove useless parentheses in #if directives.
96283         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96284         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96285
96286 2001-09-22  Jim Meyering  <meyering@lucent.com>
96287
96288         * m4/gettext.m4: New file.  From gettext.
96289         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96290         * m4/progtest.m4: Likewise
96291         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96292         * m4/glibc21.m4: Likewise.
96293
96294         * m4/libintl.m4: Remove.  No longer used.
96295
96296 2001-09-22  Jim Meyering  <meyering@lucent.com>
96297
96298         * lib/localcharset.c: Update from latest gettext.
96299         * lib/config.charset: Likewise.
96300
96301 2001-09-20  Jim Meyering  <meyering@lucent.com>
96302
96303         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96304         strtoimax.
96305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96306         strtoumax.
96307
96308 2001-09-20  Jim Meyering  <meyering@lucent.com>
96309
96310         * lib/xstrtol.c (strtoimax): Guard declaration with
96311         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96312         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96313         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96314         (strtoumax): Likewise, for completeness (it wasn't necessary).
96315
96316 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96317
96318         * lib/strtoimax.c (HAVE_LONG_LONG):
96319         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96320         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96321         to work around bug in IBM C compiler.
96322
96323 2001-09-17  Jim Meyering  <meyering@lucent.com>
96324
96325         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96326         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96327         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96328         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96329         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96330         whenever the right hand side need not be expanded by the shell.
96331
96332 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96333
96334         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96335         library.  It's not correct, as some older glibcs are buggy.
96336         fnmatch wasn't fixed until glibc 2.2.
96337
96338         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96339         special shell magic here.
96340
96341 2001-09-16  Jim Meyering  <meyering@lucent.com>
96342
96343         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96344         * m4/jm-macros.m4: Require it.
96345
96346 2001-09-16  Jim Meyering  <meyering@lucent.com>
96347
96348         * lib/mkdir.c: New file.
96349
96350 2001-09-15  Jim Meyering  <meyering@lucent.com>
96351
96352         * m4/jm-macros.m4: Check for help2man.
96353
96354 2001-09-11  Jim Meyering  <meyering@lucent.com>
96355
96356         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96357         The body, by Paul Eggert, was moved here from configure.in.
96358         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96359
96360 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96361
96362         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96363         (jm_PREREQ): Use it.
96364
96365 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96366
96367         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96368         Use ssize_t, not int, to store result of readlink.
96369         Check for ssize_t overflow as well as size_t overflow,
96370         as POSIX says the result of readlink is implementation-defined
96371         when ssize_t overflows.
96372         Remove unnecessary cast to char*.
96373         Use free+malloc instead of realloc, as the storage doesn't need
96374         to be preserved and it's clearer and can be more efficient that way.
96375         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96376         * lib/xreadlink.h (xreadlink): Update prototype.
96377
96378 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96379
96380         * lib/xgetcwd.c: Revert some of the previous change; intead,
96381         fix the HAVE_GETCWD_NULL code to behave more like the
96382         !HAVE_GETCWD_NULL code used to.
96383
96384         Include "xalloc.h".
96385         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96386         invoke xalloc_die.
96387
96388 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96389
96390         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96391         sys/param.h, as pathmax.h includes them.
96392
96393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96394
96395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96396         (jm_PREREQ_XGETCWD): New macro.
96397
96398         * m4/getcwd.m4: New file.
96399
96400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96401
96402         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96403         like the HAVE_GETCWD_NULL code.
96404         Include pathmax.h if not HAVE_GETCWD.
96405         Do not include xalloc.h.
96406         (INITIAL_BUFFER_SIZE): New symbol.
96407         Do not use xmalloc / xrealloc, since the caller is responsible for
96408         handling errors.  Preserve errno around `free' during failure.
96409         Do not overrun buffer when using getwd.
96410
96411 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96412
96413         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96414         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96415         getcwd (NULL, 0).
96416
96417 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96418
96419         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96420         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96421         spotted by Jim Meyering.
96422
96423 2001-09-03  Jim Meyering  <meyering@lucent.com>
96424
96425         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96426         failure.
96427
96428 2001-09-02  Jim Meyering  <meyering@lucent.com>
96429
96430         * lib/error.c: Update from GNU libc.
96431
96432 2001-09-01  Jim Meyering  <meyering@lucent.com>
96433
96434         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96435         Used by df.
96436
96437 2001-09-01  Jim Meyering  <meyering@lucent.com>
96438
96439         * lib/xreadlink.c: New file.
96440         * lib/xreadlink.h: New file.
96441         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96442         xreadlink.h.
96443
96444         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96445         doesn't conflict with sparc Solaris 7's definition in
96446         /usr/include/sys/int_types.h.
96447
96448         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96449         files.
96450         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96451         and strncasecmp as r-values.  Unixware didn't have declarations.
96452
96453 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96454
96455         * lib/xstrtol.h: Add copyright notice.
96456         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96457         LONGINT_INVALID_SUFFIX_CHAR.
96458
96459 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96460
96461         * lib/xstrtol.c (strtoimax): New decl.
96462
96463 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96464
96465         * lib/xgetcwd.c: Don't include pathmax.h.
96466         Include stdlib.h and unistd.h if available.
96467         Include xalloc.h.
96468         (xmalloc, xstrdup, free): Remove decls.
96469         (xgetcwd): Don't assume sizes fit in unsigned.
96470         Check for overflow when computing sizes.
96471         Simplify reallocation code.
96472
96473 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96474
96475         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96476         a directory's st_size can have an arbitrary value, so the old
96477         usage could waste an arbitrary amount of memory.  All uses
96478         changed.
96479         * lib/savedir.h: Update prototype.
96480
96481 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96482
96483         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96484
96485         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96486         old strtoimax.c.
96487
96488         Also, make the following further changes to make this file's
96489         configuration more similar to that of strtol.c:
96490         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96491         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96492         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96493         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96494         changed to signed values.
96495
96496         And make the following changes as well:
96497         Fix copyright notice, as 1999 was missing.
96498         (verify): New macro.
96499         (strtoimax): Check sizes at compile-time, not run-time.
96500         Prefer strtol to strtoll if both work.
96501         (main): Remove; it was not that useful and was a pain to maintain.
96502
96503         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96504
96505 2001-08-31  Jim Meyering  <meyering@lucent.com>
96506
96507         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96508         Use an initial, malloc'd, buffer of length 128 rather than
96509         a statically allocated one of length 1024.
96510
96511 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96512
96513         Simplify code, partly by assuming autoconf 2.52 semantics.
96514
96515         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96516
96517         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96518         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96519         All uses removed.
96520         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96521         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96522         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96523         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96524         jm_AC_HEADER_INTTYPES_H.
96525         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96526
96527         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96528
96529         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96530         Quote first arg of AC_DEFUN.
96531         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96532         since they are needed to parse the include file even if we need
96533         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96534         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96535         but with opposite signedness.
96536
96537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96538
96539         Merge 'exclude' changes from tar 1.13.22.
96540         This fixes one or two unlikely storage allocation overflow bugs,
96541         but doesn't change user-visible behavior otherwise.
96542
96543 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96544
96545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96546         (jm_PREREQ_EXCLUDE): New macro.
96547
96548 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96549
96550         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96551         tm to be declared.
96552
96553 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96554
96555         * lib/hash.c: Remove '2001' from copyright notice.
96556
96557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96558
96559         * lib/full-write.h: New file.
96560         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96561         * lib/full-write.c: Correct credits, as cccp.c no longer
96562         exists and anyway it was so heavily changed from the old cccp
96563         code as to be unrecognizable.  Include full-write.h.
96564         (full_write): Return size_t, with short writes meaning failure.
96565         All callers changed.  This fixes a bug with large buffers
96566         on 64-bit hosts.
96567         * lib/utime.c: Include full-write.h.
96568
96569 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96570
96571         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96572         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96573         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96574         Include if available.
96575         (<xalloc.h>): Include
96576         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96577         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96578         collide with FNM macros.
96579         (struct patopts): New struct.
96580         (struct exclude): Use it, as exclude patterns now come with options.
96581         (new_exclude): Support above changes.
96582         (new_exclude, add_exclude_file):
96583         Initial size must now be a power of two to simplify overflow checking.
96584         (free_exclude, fnmatch_no_wildcards): New function.
96585         (excluded_filename): No longer requires options arg, as the options
96586         are determined by add_exclude.  Now returns bool, not int.
96587         (excluded_filename, add_exclude):
96588         Add support for the fancy new exclusion options.
96589         (add_exclude, add_exclude_file): Now takes int options arg.
96590         Check for arithmetic overflow when computing sizes.
96591         (add_exclude_file): xrealloc might modify errno, so don't
96592         realloc until after errno might be used.
96593
96594         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96595         New macros.
96596         (free_exclude): New decl.
96597         (add_exclude, add_exclude_file): Now takes int options arg.
96598         (excluded_filename): No longer requires options arg, as the options
96599         are determined by add_exclude.  Now returns bool, not int.
96600
96601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96602
96603         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96604
96605 2001-08-27  Jim Meyering  <meyering@lucent.com>
96606
96607         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96608
96609         * lib/version-etc.c (N_): Remove definition.
96610         Revert most of last change.
96611         Instead, simply don't mark the `Copyright...' string for translation.
96612         Based on advice from Paul Eggert.
96613
96614         * lib/strtoxmax.c: Tweak comment.
96615
96616 2001-08-26  Jim Meyering  <meyering@lucent.com>
96617
96618         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96619
96620         * m4/xstrtoimax.m4: New file.
96621         * m4/xstrtoumax.m4: Add comments explaining why we
96622         AC_REPLACE_FUNCS(strtol).
96623
96624 2001-08-26  Jim Meyering  <meyering@lucent.com>
96625
96626         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96627         of copyright with `%s' so translators don't get an untranslated
96628         message in 2002.
96629         (COPYRIGHT_YEAR): Define.
96630         (version_etc): Use fprintf rather than fputs.
96631         Suggestion from Ulrich Drepper.
96632
96633         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96634
96635         * lib/strtoll.c: New file, from GNU libc.
96636         * lib/xstrtoimax.c: New file.
96637
96638         * lib/xstrtol.h: Add xstrtoimax.
96639         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96640         * lib/strtoimax.c: New file.  Likewise, but first define
96641         STRTOUXMAX_SIGNED.
96642
96643         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96644         ...
96645         * lib/strtoxmax.c: ... then renamed to this.
96646
96647 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96648
96649         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96650         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96651         (jm_AC_TYPE_INTMAX_T): New macro.
96652         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96653
96654         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96655
96656         * m4/longlong.m4: Renamed from ulonglong.m4.
96657         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96658         * m4/uintmax_t.m4: Removed.
96659
96660 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96661
96662         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96663         Port to Solaris 8, where 'sed' requires a space after the 'r'
96664         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96665         Redirect output to $tmp just once.
96666
96667 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96668
96669         * lib/addext.c (<errno.h>): Include.
96670         (errno): Declare if not defined.
96671         (addext): Work correctly when pathconf returns -1 and leaves
96672         errno alone because there is no limit.  Also, work even if
96673         pathconf returns a value greater than SIZE_MAX.
96674
96675 2001-08-12  Jim Meyering  <meyering@lucent.com>
96676
96677         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96678         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96679         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96680         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96681         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96682         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96683         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96684         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96685         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96686         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96687         utime.m4, utimes.m4, xstrtoumax.m4:
96688         Quote the first argument in each use of AC_DEFUN.
96689
96690 2001-08-12  Jim Meyering  <meyering@lucent.com>
96691
96692         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96693         Simply `return getcwd (NULL, 0);'.
96694         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96695         Use 1300 as initial value for length, not PATH_MAX.
96696
96697         * lib/pathmax.h: Clean up cpp syntax.
96698
96699 2001-08-12  Jim Meyering  <meyering@lucent.com>
96700
96701         * lib/gettimeofday.c: New file.
96702         * lib/gtod.h: New file.
96703         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96704
96705 2001-08-05  Jim Meyering  <meyering@lucent.com>
96706
96707         * m4/jm-macros.m4: Require autoconf-2.52.
96708
96709 2001-08-04  Jim Meyering  <meyering@lucent.com>
96710
96711         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96712         stmt, to get in sync with glibc.
96713
96714 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96715
96716         The following changes are from gettext 0.10.39 as maintained by
96717         Bruno Haible.
96718
96719         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96720         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96721         with inverted sense.  All uses changed.
96722
96723         * lib/mbswidth.c: Don't include <limits.h>.
96724         Include <stdlib.h> and <string.h> unconditionally.
96725         (iswcntrl, mbsinit, ISCNTRL): New macros.
96726         (mbsnwidth): Use K&R style function declarations.
96727         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96728         can optimize it when MB_CUR_MAX == 1.
96729         The width of control characters is zero, not 1.
96730
96731 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96732
96733         The following changes are from gettext 0.10.39 as maintained by
96734         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96735
96736         * m4/codeset.m4: Upgrade to serial AM1.
96737         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96738         all uses changed.  Quote first arg of AC_DEFUN.
96739         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96740
96741         * m4/iconv.m4: Upgrade to serial AM2.
96742         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96743         Add --with-libconv-prefix.
96744         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96745         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96746         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96747         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96748         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96749
96750         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96751         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96752         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96753         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96754         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96755         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96756         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96757         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96758         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96759
96760         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96761         string.h any more.
96762
96763         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96764         not the default value.
96765
96766         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96767         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96768         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96769         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96770         Also check for iswcntrl, used for wcwidth fallback.
96771         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96772         to Autoconf 2.13.
96773
96774 2001-08-03  Jim Meyering  <meyering@lucent.com>
96775
96776         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96777         as it was in the original.  Reported by Paul Eggert.
96778
96779 2001-07-16  Jim Meyering  <meyering@lucent.com>
96780
96781         * m4/gettimeofday.m4: New file.
96782         Prompted by a report from Bernhard Baehr.
96783
96784 2001-07-15  Jim Meyering  <meyering@lucent.com>
96785
96786         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96787         stuff. Now it's in ../Makefile.cfg.
96788
96789 2001-07-15  Jim Meyering  <meyering@lucent.com>
96790
96791         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96792         (BUILT_SOURCES): Add unlocked-io.h.
96793         (io_functions): Define.
96794         (unlocked-io.h): New rule.
96795         (DISTCLEANFILES): Add unlocked-io.h.
96796         (all-local): Depend on unlocked-io.h, to ensure it is created.
96797
96798         * lib/unlocked-io.hin: New file
96799
96800         * lib/regex.c: Update from glibc.
96801
96802 2001-07-05  Jim Meyering  <meyering@lucent.com>
96803
96804         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96805         recommendation.
96806         (libfetish_a_SOURCES): Put all .h files here instead.
96807         Remove a thus-exposed (better checks in automake) duplicate and
96808         two unnecessary .h files.
96809
96810 2001-07-04  Jim Meyering  <meyering@lucent.com>
96811
96812         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96813         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96814         distcheck failure.
96815
96816 2001-07-02  Jim Meyering  <meyering@lucent.com>
96817
96818         The following changes were prompted by suggestions from Bruno Haible.
96819
96820         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96821         is now generated.
96822         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96823         definition of EXTRA_DIST.
96824         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96825         ensure that the generated file is created/updated whenever the list
96826         of $(unlocked_functions) is changed.
96827         (jm-glibc-io.m4): New rule.
96828         (unlocked-io.h): New rule -- currently unused.
96829
96830 2001-06-24  Jim Meyering  <meyering@lucent.com>
96831
96832         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96833         unmatched right bracket, rather than kludging it with an extra,
96834         falsely-matching quote in a comment.  Patch by Akim Demaille.
96835
96836 2001-06-11  Jim Meyering  <meyering@lucent.com>
96837
96838         * lib/regex.c: Update from GNU libc.
96839
96840 2001-05-27  Jim Meyering  <meyering@lucent.com>
96841
96842         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96843         Check for ut_type in struct utmp.
96844
96845 2001-05-27  Jim Meyering  <meyering@lucent.com>
96846
96847         * lib/readutmp.h (UT_TYPE): Define.
96848
96849 2001-05-24  Jim Meyering  <meyering@lucent.com>
96850
96851         * lib/argmatch.c: Include "quote.h".
96852         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96853         quote function.  Reported by Göran Uddeborg.
96854
96855 2001-05-22  Jim Meyering  <meyering@lucent.com>
96856
96857         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96858         now that we use the package-supplied version unconditionally.
96859         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96860
96861 2001-05-21  Jim Meyering  <meyering@lucent.com>
96862
96863         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96864         shell syntax errors.
96865
96866 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96867
96868         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96869
96870 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96871
96872         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96873         Don't bother to check library strftime, since
96874         we'll be using our own my_strftime function anyway.
96875         Define my_strftime instead of strftime.
96876
96877 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96878
96879         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96880         which is not yet declared.
96881
96882 2001-05-15  Jim Meyering  <meyering@lucent.com>
96883
96884         * m4/regex.m4: Use proper quoting so brackets appear in the test
96885         program.
96886         Reported by, and with help from, Bruno Haible.
96887
96888 2001-05-13  Jim Meyering  <meyering@lucent.com>
96889
96890         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96891         undefined.
96892
96893 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96894
96895         dirname code cleanup.  base_name now behaves more compatibly
96896         with POSIX basename when given file names that have trailing
96897         slashes, and similarly for dir_name.  Add new primitives
96898         base_len and dir_len.  Put the directory-name-related decls
96899         into dirname.h.
96900
96901         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96902         * lib/backupfile.c (base_name): Likewise.
96903         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96904         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96905         * lib/makepath.c (strip_trailing_slashes): Likewise.
96906         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96907         ISSLASH): Likewise.
96908         * lib/rename.c (strip_trailing_slashes): Likewise.
96909         * lib/same.c (base_name): Likewise.
96910         * lib/stripslash.c (ISSLASH): Likewise.
96911
96912         * lib/addext.c: Include <dirname.h> after size_t is defined.
96913         * lib/backupfile.c: Likewise.
96914
96915         * lib/addext.c (addext): Use base_len to trim redundant
96916         trailing slashes instead of doing it ourselves.
96917         But do not trim the last slash if it is not redundant.
96918
96919         * lib/backupfile.c (find_backup_file_name,
96920         max_backup_version): Use base_len instead of rolling it ourselves.
96921         Handle the case of "" and (on DOS) "C:" correctly.
96922
96923         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96924         needed. Include <string.h>, <dirname.h>.
96925         (base_name): Allow file names ending in slashes, other than names
96926         that are all slashes.  In this case, return the basename followed
96927         by the slashes.  This is more general, and can be used in places
96928         where the original base_name purposely had an assertion failure.
96929         (base_len): New function.
96930
96931         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96932         Do not include <assert.h>; no longer needed.
96933         Include xalloc.h.
96934         (memrchr): Remove decl.
96935         (dir_name_r): Remove.
96936         (dir_len): Renamed from dirlen.  All callers changed.
96937         Rewrite in terms of base_name, for simplicity and consistency.
96938         (dir_name): Never return NULL.  All callers changed.
96939         Do not include <stdlib.h> in test program; no longer needed.
96940         return 0; is fine for test program.
96941
96942         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96943         New macros.
96944         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96945
96946         * lib/path-concat.c (path_concat): Use base_len to compute
96947         base length, not strlen; this means we cannot rely on memcpy
96948         to null-terminate.
96949
96950         * lib/same.c (STREQ): Remove.
96951         (same_name): Handle the case where the basename ends in trailing '/'.
96952
96953         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96954         a slash was stripped.  Do not strip the last slash after a
96955         file system prefix.
96956
96957 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96958
96959         * lib/Makefile.am (libfetish_a_SOURCES):
96960         Add strftime.c, since we now compile it on all hosts.
96961
96962         * lib/strftime.c (my_strftime):
96963         Define to nstrftime if emacs, but only if my_strftime is not defined.
96964         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96965         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96966         Add one more extra argument: a nanoseconds value.
96967         All uses changed.
96968         (ns): New macro.
96969         (my_strftime function): Add %N format.
96970         (emacs_strftimeu): Renamed from emacs_strftime,
96971         with extra ut argument.
96972
96973 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96974
96975         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96976
96977 2001-04-21  Jim Meyering  <meyering@lucent.com>
96978
96979         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96980         doesn't interfere.
96981
96982 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96983
96984         * m4/ftruncate.m4: Check for chsize.
96985         Link with ftruncate.o unconditionally if ftruncate is missing.
96986         This was required when cross-compiling to i586-mingw32msvc.
96987
96988 2001-04-08  Jim Meyering  <meyering@lucent.com>
96989
96990         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96991         recomputed; that's necessary when the offset spans a DST transition.
96992         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96993
96994 2001-04-02  Jim Meyering  <meyering@lucent.com>
96995
96996         * lib/regex.h, regex.c: Update from GNU libc.
96997
96998 2001-03-24  Jim Meyering  <meyering@lucent.com>
96999
97000         * m4/jm-macros.m4: Require autoconf-2.49d.
97001
97002 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97003
97004         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97005
97006 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97007
97008         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97009
97010 2001-03-17  Jim Meyering  <meyering@lucent.com>
97011
97012         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97013         now that the version in autoconf is equivalent.
97014         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97015
97016         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97017         Suggestion from Akim Demaille.
97018
97019         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97020         (jm_PREREQ_TEMPNAME): New function.
97021
97022 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97023
97024         * lib/tempname.c (uint64_t): Define to uintmax_t if
97025         not defined, and if UINT64_MAX is not defined.
97026         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97027         Reported by John David Anglin.
97028
97029 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97030
97031         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97032         resolve alias if codeset is empty.
97033         * lib/config.charset (BeOS): Use wildcard syntax.
97034
97035 2001-03-13  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/path-concat.c (path_concat)
97038         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97039         concatenating e.g., `C:' and `foo'.
97040         From Bruno Haible.
97041
97042 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97043
97044         * lib/localcharset.c (locale_charset): Don't use
97045         setlocale(LC_CTYPE,NULL). Don't return NULL.
97046         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97047
97048 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97049
97050         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97051         support for DOS/DJGPP.
97052
97053 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97054
97055         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97056         lacks mkstemp.  Compile our own tempname.c if we compile our own
97057         mkstemp.c, as mkstemp relies on tempname.
97058
97059 2001-03-01  Jim Meyering  <meyering@lucent.com>
97060
97061         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97062         AH_VERBATIM really does output its argument verbatim.
97063
97064 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97065
97066         * lib/Makefile.am (libfetish_a_SOURCES):
97067         Add dup-safer.c, fopen-safer.c.
97068         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97069
97070         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97071         * lib/unistd-safer.h: New files.
97072
97073 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97074
97075         The mkstemp replacement is taken from glibc 2.2.2, with some
97076         portability fixes for use outside glibc, as follows:
97077
97078         * lib/tempname.c (struct_stat64): New macro.
97079         (direxists, __gen_tempname): Use it.
97080         This avoids a portability problem with Solaris 8.
97081
97082         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97083         (<stddef.h>, <stdint.h>, <string.h>):
97084         Include only if STDC_HEADERS || _LIBC.
97085         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97086         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97087         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97088         (__set_errno): Define this macro if <errno.h> doesn't.
97089         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97090         Define these macros if <stdio.h> doesn't.
97091         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97092         Define these macros if <sys/stat.h>
97093         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97094         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97095         __xstat64): Define if not _LIBC.
97096         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97097         (__gen_tempname): Invoke gettimeofday only if
97098         HAVE_GETTIMEOFDAY || _LIBC;
97099         otherwise, fall back on plain "time".
97100         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97101
97102         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97103
97104         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97105
97106 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97107
97108         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97109
97110 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97111
97112         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97113         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97114         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97116
97117 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97118
97119         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97120         Remove workaround macros for hosts that have mbrtowc but not
97121         mbstate_t, as we now insist on proper declarations for both
97122         before using mbrtowc.
97123
97124 2001-02-17  Jim Meyering  <meyering@lucent.com>
97125
97126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97127         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97128         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97129         UnixWare 7.1.1.
97130
97131         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97132         rather than AC_CACHE_VAL.
97133
97134 2001-02-17  Jim Meyering  <meyering@lucent.com>
97135
97136         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97137         around included file name.
97138
97139         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97140
97141         * lib/strftime.c: Update from GNU libc (the only changes were to
97142         comments).
97143
97144 2001-02-17  Jim Meyering  <meyering@lucent.com>
97145
97146         * lib/regex.c: Update from libc.
97147
97148 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97149
97150         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97151         clash.
97152
97153 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97154
97155         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97156         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97157         Reported by Mark Hounschell via Paul Eggert.
97158
97159 2001-02-07  Jim Meyering  <meyering@lucent.com>
97160
97161         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97162
97163 2001-02-05  Jim Meyering  <meyering@lucent.com>
97164
97165         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97166         it includes the patch required for `large file' support with at least
97167         HP-UX's 10.20 /bin/cc.
97168
97169 2001-02-03  Jim Meyering  <meyering@lucent.com>
97170
97171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97172         AS_IF, now that it works once again (mysteriously).
97173         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97174
97175 2001-01-30  Jim Meyering  <meyering@lucent.com>
97176
97177         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97178         * m4/chown.m4: Rename conftestchown to conftest.chown.
97179         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97180         s/conftestdir2/conftest.d2/.
97181         * m4/utimes.m4: s/conftestdata/conftest.data/
97182         Inspired by Pavel Roskin's change in autoconf.
97183
97184 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97185
97186         * lib/config.charset: Update for FreeBSD 4.2.
97187
97188 2001-01-27  Jim Meyering  <meyering@lucent.com>
97189
97190         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97191         a use of AS_IF.
97192         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97193
97194 2001-01-26  Jim Meyering  <meyering@lucent.com>
97195
97196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97197         quotearg.c includes it.
97198
97199 2001-01-26  Jim Meyering  <meyering@lucent.com>
97200
97201         * lib/quotearg.c: Include stddef.h.
97202         * lib/quote.c: Include stddef.h.
97203         Reported by Axel Kittenberger.
97204
97205         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97206         line in double quotes so that it evokes a better diagnostic.
97207         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97208         Reported by Axel Kittenberger.
97209
97210 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97211
97212         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97213         as if it was a `charset'.
97214
97215 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97216
97217         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97218         has const.
97219
97220 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97221
97222         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97223         to avoid a warning.  Add back 'const' to inptr.
97224
97225 2001-01-20  Jim Meyering  <meyering@lucent.com>
97226
97227         Be sure that headers are checked before used in code compiled
97228         for the type checks.
97229         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97230         In place of that, invoke jm_CHECK_ALL_TYPES.
97231         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97232         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97233         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97234         The check for ssize_t was mistakenly run before the test for unistd.h.
97235
97236         The configure-time check for stdbool.h was missing.
97237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97238         (jm_PREREQ_HASH): New function.
97239
97240 2001-01-17  Jim Meyering  <meyering@lucent.com>
97241
97242         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97243         for autoconf-2.49c.
97244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97245
97246 2001-01-16  Jim Meyering  <meyering@lucent.com>
97247
97248         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97249         From Bruno Haible.
97250
97251 2001-01-14  Jim Meyering  <meyering@lucent.com>
97252
97253         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97254         foo and bar.  Create conftestdir/ in the script, not in the C code.
97255         Remove directories in the script, not in the C code.
97256         Remove conftestdir{,2} before trying to create the directory.
97257         Make the entire configure script fail if the mkdir fails.
97258
97259 2001-01-14  Jim Meyering  <meyering@lucent.com>
97260
97261         * lib/rename.c: New file.  From Volker Borchert.
97262         Include stdlib.h, string.h or strings.h, and xalloc.h.
97263         Use strip_trailing_slashes rather than open-coding it.
97264
97265 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97266
97267         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97268
97269 2001-01-03  Jim Meyering  <meyering@lucent.com>
97270
97271         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97272         of local `inptr' to avoid warning with some system declarations of
97273         iconv.
97274
97275 2001-01-02  Volker Borchert  <bt@teknon.de>
97276
97277         * m4/rename.m4: New file.
97278         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97279
97280 2001-01-01  Jim Meyering  <meyering@lucent.com>
97281
97282         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97283         even on systems with utmpx.h.  It's necessary for the declaration of
97284         utmp's ut_user member.  Reported by Andreas Jaeger.
97285
97286         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97287         available. They are required for the declarations of getgrgid and
97288         getpwuid resp.
97289         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97290         Reported by Andreas Jaeger.
97291
97292 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97293
97294         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97295         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97296         so `make install' also works in VPATH builds.
97297
97298 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97299
97300         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97301         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97302         can be used in subdirectories.
97303
97304 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97305
97306         * lib/modechange.c: Do not assume that mode_t uses the
97307         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97308         the other-execute bit of FOO even if S_IXOTH != 1.
97309
97310         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97311         WOTH, XOTH, ALLM): New macros.
97312         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97313          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97314         Use them.
97315         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97316         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97317         (mode_compile):
97318         No need to use uintmax_t; unsigned long is long enough.
97319         Don't bother to get suffix since we don't use it.
97320
97321 2000-12-26  Jim Meyering  <meyering@lucent.com>
97322
97323         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97324         better with autoheader.
97325
97326 2000-12-24  Jim Meyering  <meyering@lucent.com>
97327
97328         * lib/hash.c (is_prime): Return explicit boolean values.
97329         (hash_get_first): Return NULL to appease Irix5.6's 89.
97330         Reported by Nelson Beebe.
97331
97332 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97333
97334         * lib/localcharset.c (locale_charset): Add support for Win32.
97335
97336 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97337
97338         * lib/physmem.h, lib/physmem.c: New files.
97339
97340         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97341         (noinst_HEADERS): Add physmem.h.
97342
97343         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97344         't' for compatibility with Solaris 8 sort.
97345
97346 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97347
97348         * lib/config.charset: Add support for BeOS.
97349
97350 2000-12-17  Jim Meyering  <meyering@lucent.com>
97351
97352         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97353         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97354
97355 2000-12-16  Jim Meyering  <meyering@lucent.com>
97356
97357         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97358         N and M) would have treated it like `chown N:N FILE'.
97359
97360         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97361
97362 2000-12-16  Jim Meyering  <meyering@lucent.com>
97363
97364         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97365         SHELLS_FILE to a file name that's useful on djgpp systems.
97366         Include stdlib.h.
97367         (ADDITIONAL_DEFAULT_SHELLS): Define.
97368         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97369         Based mostly on a patch from Prashant TR.
97370
97371 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97372
97373         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97374         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97375         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97376
97377 2000-12-08  Andreas Schwab  <schwab@suse.de>
97378
97379         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97380         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97381
97382 2000-12-07  Jim Meyering  <meyering@lucent.com>
97383
97384         * lib/stripslash.c (ISSLASH): Define.
97385         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97386         `/'.
97387         From Prashant TR.
97388
97389         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97390         (dir_name_r): Declare this function as static.
97391         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97392         manifest itself on a name containing a mix of slashes and
97393         backslashes.
97394         Make this function work with names starting with a DOS-style
97395         drive letter and colon prefix.
97396         (dir_name): Append `.' if necessary.
97397         Based mostly on patches from Prashant TR and Eli Zaretskii.
97398
97399         * lib/dirname.h (dir_name_r): Remove prototype.
97400
97401 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97402
97403         * m4/off_t-format.m4: Remove this file.
97404         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97405
97406 2000-12-06  Jim Meyering  <meyering@lucent.com>
97407
97408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97409         replacement strtoull, we may well need the replacement strtoul, too.
97410         Check for declarations of strtoul and strtoull.
97411         Check for strtol.  Mainly as a cue to cause automake to include
97412         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97413         Check for limits.h -- strtol.c needs it.
97414
97415 2000-12-05  Jim Meyering  <meyering@lucent.com>
97416
97417         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97418
97419 2000-12-04  Jim Meyering  <meyering@lucent.com>
97420
97421         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97422         Also include memory.h, stdlib.h, unistd.h if appropriate.
97423         Reported by Andreas Jaeger (conflicting declaration of malloc).
97424
97425 2000-12-02  Jim Meyering  <meyering@lucent.com>
97426
97427         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97428         * m4/jm-macros.m4 (jm_MACROS): require it.
97429
97430 2000-12-02  Jim Meyering  <meyering@lucent.com>
97431
97432         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97433
97434 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97435
97436         * lib/memrchr.c: Include <config.h> before any system include file.
97437
97438 2000-11-30  Jim Meyering  <meyering@lucent.com>
97439
97440         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97441
97442 2000-11-30  Jim Meyering  <meyering@lucent.com>
97443
97444         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97445
97446 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97447
97448         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97449
97450 2000-11-26  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97453
97454 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97455
97456         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97457         size of (size_t) -1; it's not portable.
97458
97459 2000-11-17  Jim Meyering  <meyering@lucent.com>
97460
97461         * lib/strstr.c: Update from GNU libc.
97462
97463 2000-11-17  Akim Demaille  <akim@epita.fr>
97464
97465         * lib/obstack.h: Formatting changes.
97466         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97467         prevent type checking.
97468         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97469         cast the value to (void *): assigning a `foo *' to a `void *'
97470         variable is valid.
97471         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97472
97473 2000-11-16  Jim Meyering  <meyering@lucent.com>
97474
97475         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97476
97477 2000-11-11  Jim Meyering  <meyering@lucent.com>
97478
97479         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97480
97481 2000-11-10  Jim Meyering  <meyering@lucent.com>
97482
97483         * lib/obstack.h: Update from GNU libc.
97484         * lib/obstack.c: Likewise.
97485
97486 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97487
97488         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97489
97490 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97491
97492         * lib/getusershell.c (setusershell): Use rewind rather than
97493         fseek/fseeko, to avoid configuration hassles with fseeko.
97494         Don't bother opening SHELLS_FILE if shellstream is NULL;
97495         it's not necessary.
97496
97497 2000-11-05  Jim Meyering  <meyering@lucent.com>
97498
97499         * lib/makepath.h (make_dir): Declare.
97500         * lib/makepath.c (make_dir): Remove `static' attribute.
97501         Tweak a comment.
97502
97503 2000-11-04  Jim Meyering  <meyering@lucent.com>
97504
97505         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97506
97507 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97508
97509         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97510         last one in a bucket, advance to the next bucket.
97511
97512 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97513
97514         * lib/fnmatch.c: Do not comment out all the code if we are using
97515         the GNU C library, because in some cases we are replacing buggy
97516         code in the GNU C library itself.
97517
97518 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97519
97520         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97521         (regex_compile): Catch bogus \(\1\).
97522
97523 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97524
97525         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97526         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97527         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97528
97529 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97530
97531         * lib/error.h, getline.h, modechange.h:
97532         Remove "2000" from Copyright line, as the file hasn't been
97533         changed this year other than in the copyright notice.
97534
97535         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97536         was changed this year.
97537
97538 2000-10-29  Jim Meyering  <meyering@lucent.com>
97539
97540         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97541         renaming.
97542         * m4/ls-mntd-fs.m4: Likewise
97543
97544 2000-10-29  Jim Meyering  <meyering@lucent.com>
97545
97546         * lib/xstat.in: Fix grammar in comment.
97547
97548 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97549
97550         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97551         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97552         doesn't define __restrict_arr.
97553
97554 2000-10-28  Jim Meyering  <meyering@lucent.com>
97555
97556         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97557         (jm_PREREQ_MEMCHR): New function.
97558
97559 2000-10-28  Jim Meyering  <meyering@lucent.com>
97560
97561         * lib/memchr.c: Update from libc.
97562         Adjust for portability:
97563         [HAVE_STDLIB_H]: Include stdlib.h.
97564         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97565         Undef __memchr, too.
97566         [!weak_alias]: Define __memchr to memchr.
97567
97568         * lib/regex.c: Update from libc.
97569         * lib/regex.h: Likewise.
97570         * lib/getopt1.c: Likewise.
97571         * lib/memcmp.c: Likewise.
97572
97573         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97574         Avoid using fseek, when possible -- it's broken by design.
97575         Patch by Ulrich Drepper.
97576
97577 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97578
97579         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97580         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97581         Giving in to popular pressure to shut up the compiler with casts.
97582
97583 2000-10-26  Jim Meyering  <meyering@lucent.com>
97584
97585         * lib/strftime.c: Update from libc.
97586
97587 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97588
97589         * regex.c: More `unsigned char' -> `re_char' changes.
97590         Also change several `int' into `re_wchar_t'.
97591         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97592         (PUSH_FAILURE_POINTER): Don't cast any more.
97593         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97594         We want GCC to complain, since this piece of code makes
97595         re_match non-reentrant, which *should* be fixed.
97596         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97597         (EXTEND_BUFFER): Use RETALLOC.
97598         (SET_LIST_BIT): Don't cast.
97599         (re_wchar_t): New type.
97600         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97601         that those two functions will always properly return.
97602         (IMMEDIATE_QUIT_CHECK): Cast to void.
97603         (analyse_first): Use recursion rather than an explicit stack.
97604         (re_compile_fastmap): Can't fail anymore.
97605         (re_search_2): Don't check re_compile_fastmap for failure.
97606         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97607         Now also sets the new value (passed in a new argument).
97608         (re_match_2_internal): Use it.
97609         Also, use a new var `reg' of type size_t when looping through regs
97610         rather than reuse the inappropriate `mcnt'.
97611
97612 2000-10-25  Jim Meyering  <meyering@lucent.com>
97613
97614         * lib/obstack.c: Update from libc.
97615
97616 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97617
97618         * regex.c (regex_compile): Change the way of handling a range from
97619         a char less than 256 to a char not less than 256.
97620
97621 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97622
97623         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97624         NT-Emacs only.
97625         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97626         so that re_search functions only quit when callers expect them to.
97627
97628 2000-10-23  Jim Meyering  <meyering@lucent.com>
97629
97630         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97631         wrong.  That set_locale call must not have any side effects.
97632         From Paul Eggert.
97633
97634 2000-10-22  Jim Meyering  <meyering@lucent.com>
97635
97636         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97637         [CYCLIC]: Remove now-unused definition.
97638
97639         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97640         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97641         Suggestion from Ulrich Drepper.
97642
97643 2000-10-21  Jim Meyering  <meyering@lucent.com>
97644
97645         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97646         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97648
97649 2000-10-21  Jim Meyering  <meyering@lucent.com>
97650
97651         * lib/dirname.c (memrchr): Declare if necessary.
97652         (dir_name): Remove the restriction that there be no
97653         trailing slashes.  Now, this code skips past them, effectively
97654         ignoring them.
97655         [TEST_DIRNAME] (main): New unit tests.
97656
97657         * lib/memrchr.c: New file from GNU libc.
97658         Undef __memrchr, too.
97659         [!weak_alias]: Define __memrchr to memrchr.
97660         Guard weak_alias use with `#ifdef weak_alias'.
97661
97662 2000-10-21  Jim Meyering  <meyering@lucent.com>
97663
97664         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97665         (dir_name): Use dir_name_r.
97666         * lib/dirname.h (dir_name_r): Declare it.
97667
97668 2000-10-17  Jim Meyering  <meyering@lucent.com>
97669
97670         * lib/quote.h (PARAMS): Define and use.
97671         Reported by Akim Demaille.
97672
97673         * lib/getopt.c: Update from libc.
97674
97675 2000-10-16  Jim Meyering  <meyering@lucent.com>
97676
97677         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97678         setlocale.
97679         From Jan Fedak.
97680
97681 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97682
97683         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97684
97685 2000-09-25  Jim Meyering  <meyering@lucent.com>
97686
97687         * lib/md5.h (rol): Define (from GnuPG).
97688
97689         * lib/sha.c: Give credit (GnuPG) where due.
97690         (M): Use rol rather than open-coding it.
97691         Add a FIXME comment.
97692
97693 2000-09-21  Jim Meyering  <meyering@lucent.com>
97694
97695         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97696         Reported by Michael Stone.
97697
97698 2000-09-20  Jim Meyering  <meyering@lucent.com>
97699
97700         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97701         (noinst_HEADERS): Add sha.h.
97702         Based on code from Scott G. Miller and from GnuPG.
97703
97704 2000-09-18  Jim Meyering  <meyering@lucent.com>
97705
97706         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97707         LIBS. Otherwise, everyone ends up linking with -lelf for some
97708         configurations.
97709         Reported by Mike Stone.
97710
97711 2000-09-15  Jim Meyering  <meyering@lucent.com>
97712
97713         * lib/regex.c: Update from libc.
97714
97715 2000-09-10  Jim Meyering  <meyering@lucent.com>
97716
97717         * lib/getopt.c (_getopt_internal): Update from glibc.
97718
97719 2000-09-09  Jim Meyering  <meyering@lucent.com>
97720
97721         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97722         think it should be used as a general replacement for isascii.
97723         * lib/fnmatch.c: Likewise.
97724         * lib/mbswidth.c: Likewise
97725         * lib/regex.c: Likewise.
97726
97727         Don't use atoi.
97728         * lib/userspec.c: Include sys/param.h and limits.h.
97729         Include xstrtol.h.
97730         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97731         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97732         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97733         UID, GID.  Check range.
97734
97735 2000-09-06  Jim Meyering  <meyering@lucent.com>
97736
97737         * lib/getopt.c (_getopt_internal): Update from glibc.
97738
97739 2000-08-30  Jim Meyering  <meyering@lucent.com>
97740
97741         * lib/strftime.c: Merge in changes from GNU libc.
97742
97743 2000-08-26  Jim Meyering  <meyering@lucent.com>
97744
97745         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97746         * m4/fpending.m4: New file.
97747
97748 2000-08-26  Jim Meyering  <meyering@lucent.com>
97749
97750         * lib/closeout.c: Include "__fpending.h".
97751         (close_stdout_status): Return right away if there's nothing to flush.
97752
97753         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97754         * lib/__fpending.c: New file.
97755         * lib/__fpending.h: New file.
97756
97757 2000-08-20  Jim Meyering  <meyering@lucent.com>
97758
97759         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97760         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97761         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97762
97763 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97764
97765         Improve fileutils installation on systems where running
97766         programs (like install) can't be unlinked.
97767         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97768         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97769
97770 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97771
97772         Standardize on "memory exhausted" instead of "Memory exhausted"
97773         or "virtual memory exhausted".
97774         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97775         "virtual memory exhausted".
97776         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97777         our own message.
97778         * lib/userspec.c (parse_user_spec): Likewise.
97779         * lib/bumpalloc.h: comment fix
97780         * lib/same.c, userspec.c: Include xalloc.h.
97781
97782         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97783         not char *const and pointing to a constant array.
97784         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97785         (xrealloc): Comment fix.
97786
97787         * lib/userspec.c (parse_user_spec):
97788         Don't translate a message until just before returning,
97789         to avoid unnecessary translation.
97790
97791 2000-08-07  Jim Meyering  <meyering@lucent.com>
97792
97793         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97794         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97795         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97796         getgroups.c, gethostname.c, getopt.h, group-member.c,
97797         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97798         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97799         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97800         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97801         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97802         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97803         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97804         yesno.c: Back out Copyright date changes for each file with no change
97805         this year.  This eases coordination with other programs using the same
97806         source code modules.  From Paul Eggert.
97807
97808 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97809
97810         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97811         not char, for compatibility with glibc 2.1.3 strftime.c.
97812
97813 2000-08-03  Greg McGary  <greg@mcgary.org>
97814
97815         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97816         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97817         (EXTEND_BUFFER): Use them.
97818
97819 2000-08-01  Jim Meyering  <meyering@lucent.com>
97820
97821         * lib/dirname.c (ISSLASH): Define.
97822         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97823         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97824         both `\' and `/' may be use as path separators.
97825         Based on a patch from Prashant TR.
97826
97827 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97828
97829         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97830         slot vector a constant, since it might get modified.
97831
97832 2000-07-31  Jim Meyering  <meyering@lucent.com>
97833
97834         * lib/xmalloc.c: Use `virtual memory exhausted', not
97835         `Memory exhausted'.
97836         * lib/obstack.c (print_and_abort): Likewise.
97837
97838 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97839
97840         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97841         buffer, so that the caller can always quote one small
97842         component of a "memory exhausted" message in slot 0.
97843         From a suggestion by Jim Meyering.
97844
97845 2000-07-30  Jim Meyering  <meyering@lucent.com>
97846
97847         * lib/makepath.c (make_path): Quote the other instance, too.
97848
97849         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97850         (STATIC_BUF_SIZE): Define.
97851         (quotearg_n_options): Use only statically allocated storage when
97852         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97853         than STATIC_BUF_SIZE.
97854
97855 2000-07-29  Jim Meyering  <meyering@lucent.com>
97856
97857         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97858         * lib/dirname.c (dir_name): Likewise.
97859
97860         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97861         `/'.
97862
97863         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97864         (dir_name): Assert that there are no trailing slashes.
97865
97866 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97867
97868         * lib/mbswidth.h (mbswidth): Add a flags argument.
97869         (mbswidth): New declaration.
97870         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97871         * lib/mbswidth.c (mbswidth): Add a flags argument.
97872         (mbsnwidth): New function.
97873
97874 2000-07-24  Jim Meyering  <meyering@lucent.com>
97875
97876         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97877
97878 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97879
97880         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97881
97882 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97883
97884         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97885         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97886         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97887         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97888         invoke multibyte primitives.
97889
97890 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97891
97892         * lib/quotearg.c:
97893         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97894         so that mbstate_t is always defined.
97895
97896         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97897         be 1 in at least one GCC installation, and this configuration
97898         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97899         performance on hosts that have mbrtowc but have only unibyte
97900         locales, but I assume these hosts are rare.
97901
97902 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97903
97904         * lib/mbswidth.c (_XOPEN_SOURCE):
97905         Don't define; this causes problems on Solaris 7.
97906         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97907
97908 2000-07-23  Jim Meyering  <meyering@lucent.com>
97909
97910         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97911         too: getgrgid, getpwuid, getuid.
97912
97913 2000-07-23  Jim Meyering  <meyering@lucent.com>
97914
97915         * lib/basename.c (base_name): Add an assertion.
97916
97917 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97918
97919         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97920         shadow its mbsinit function.
97921
97922 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97923
97924         * lib/mbswidth.h: New file.
97925         * lib/mbswidth.c: New file.
97926         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97927         (noinst_HEADERS): Add mbswidth.h.
97928
97929 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97930
97931         * lib/config.charset: Add support for FreeBSD. Improve support for
97932         HP-UX and IRIX 6.
97933
97934 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97935
97936         * m4/mbswidth.m4: New file.
97937         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97938
97939 2000-07-15  Jim Meyering  <meyering@lucent.com>
97940
97941         * lib/makepath.c: Include quote.h.
97942         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97943         corresponding argument in a `quote (...)' call.
97944         Give better diagnostics.
97945
97946         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97947         (noinst_HEADERS): Add quote.h.
97948
97949         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97950         from tar's src/misc.c.
97951         * lib/quote.h: New file.  Prototypes for same.
97952
97953 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97954
97955         From a suggestion by Bruno Haible.
97956         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97957         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97958         to decide whether to define the BeOS workaround macro;
97959         this adjusts to the change to AC_MBSTATE_T.
97960
97961 2000-07-14  Jim Meyering  <meyering@lucent.com>
97962
97963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97964         jm_AC_TYPE_UINTMAX_T.
97965
97966 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97967
97968         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97969
97970         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97971         quotearg_buffer_restyled): Add support for
97972         clocale_quoting_style.  Undo previous change to
97973         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97974         and "{RIGHT QUOTATION MARK}" msgids.
97975
97976 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97977
97978         From a suggestion by Bruno Haible.
97979         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97980         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97981         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97982         and mbstate_t, to a single-part test that simply defines mbstate_t.
97983         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97984         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97985
97986 2000-07-10  Jim Meyering  <meyering@lucent.com>
97987
97988         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97989
97990         * m4/gnu-source.m4: Output to confdefs.h directly.
97991         Suggestion from Akim Demaille.
97992
97993 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97994
97995         The old behavior of quoting `like this' doesn't look good with
97996         newer, ISO-style fonts.  See:
97997         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97998
97999         Instead, quote "like this" by default.  Let the translator
98000         tailor the locale-specific quoting behavior by providing
98001         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98002
98003         * lib/quotearg.c (N_): New macro.
98004         (gettext_default): New function.
98005         (quotearg_buffer_restyled): Use
98006         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98007         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98008
98009 2000-07-09  Jim Meyering  <meyering@lucent.com>
98010
98011         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98012         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98013
98014         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98016
98017 2000-07-09  Jim Meyering  <meyering@lucent.com>
98018
98019         * lib/Most files: Update copyright dates to include 2000.
98020
98021 2000-07-08  Jim Meyering  <meyering@lucent.com>
98022
98023         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98024         if not defined.
98025         (xgethostname): Remove now-unnecessary #ifdef.
98026         Move declaration of `err' into loop where it's used.
98027
98028 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98029         and Bruno Haible  <haible@clisp.cons.org>
98030
98031         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98032         only if the test for an object-type mbstate_t fails.  This
98033         prevents us from mistakenly reporting that mbstate_t is a
98034         system object type after we "#define mbstate_t int" to work
98035         around its lack.
98036
98037 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98038         and Bruno Haible  <haible@clisp.cons.org>
98039
98040         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98041
98042 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98043
98044         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98045         to strerror_r.
98046         Include <ctype.h> for use of isalpha.
98047
98048 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98049
98050         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98051         by allocating a larger buffer. Test the gethostname return value for
98052         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98053         returns an error and ENAMETOOLONG isn't defined.
98054
98055 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98056
98057         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98058         dimension.
98059
98060 2000-07-04  Jim Meyering  <meyering@lucent.com>
98061
98062         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98063         of the deprecated AC_CHECKING.
98064
98065 2000-07-04  Jim Meyering  <meyering@lucent.com>
98066
98067         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98068         Reported by Bruno Haible.
98069
98070 2000-07-04  Jim Meyering  <meyering@lucent.com>
98071
98072         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98073         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98074         lacks mbrtowc.
98075
98076 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98077
98078         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98079         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98080
98081 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98082         and Bruno Haible  <haible@clisp.cons.org>
98083
98084         * lib/quotearg.c (mbrtowc):
98085         Assign to *pwc, and return 1 only if result is nonzero.
98086         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98087
98088 2000-07-03  Jim Meyering  <meyering@lucent.com>
98089
98090         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98091
98092 2000-07-03  Jim Meyering  <meyering@lucent.com>
98093
98094         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98095         This is necessary to get a definition of e.g., UTMP_FILE on
98096         HP-UX 10.20.
98097         From Bob Proulx.
98098
98099 2000-07-02  Jim Meyering  <meyering@lucent.com>
98100
98101         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98102
98103         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98104         AC_LIBOBJ(function_name).
98105         * m4/chown.m4: Likewise.
98106         * m4/fnmatch.m4: Likewise.
98107         * m4/ftruncate.m4: Likewise.
98108         * m4/getgroups.m4: Likewise.
98109         * m4/getline.m4: Likewise.
98110         * m4/group-member.m4: Likewise.
98111         * m4/jm-macros.m4: Likewise.
98112         * m4/lstat.m4: Likewise.
98113         * m4/malloc.m4: Likewise.
98114         * m4/memcmp.m4: Likewise.
98115         * m4/nanosleep.m4: Likewise.
98116         * m4/putenv.m4: Likewise.
98117         * m4/realloc.m4: Likewise.
98118         * m4/regex.m4: Likewise.
98119         * m4/stat.m4: Likewise.
98120         * m4/strftime.m4: Likewise.
98121
98122 2000-07-02  Jim Meyering  <meyering@lucent.com>
98123
98124         * lib/quotearg.c (mbstate_t): Don't define here.
98125
98126 2000-07-02  Jim Meyering  <meyering@lucent.com>
98127
98128         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98129
98130 2000-07-01  Jim Meyering  <meyering@lucent.com>
98131
98132         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98133
98134 2000-07-01  Jim Meyering  <meyering@lucent.com>
98135
98136         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98137         problem.
98138
98139 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98140
98141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98142         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98143
98144 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98145
98146         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98147         per change in ../m4/ls-mntd-fs.m4.
98148         (read_filesystem_list): Ignore symbolic links.
98149
98150 2000-06-29  Jim Meyering  <meyering@lucent.com>
98151
98152         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98153         for declaration of strcmp.
98154
98155         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98156
98157         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98158         Avoid warning by casting result to `char *' to remove `const'.
98159
98160 2000-06-28  Jim Meyering  <meyering@lucent.com>
98161
98162         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98163         included by quotearg.c, for which we perform this test.  From
98164         Bruno Haible.
98165
98166 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98167
98168         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98170         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98171
98172 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98173
98174         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98175
98176 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98177
98178         savedir now sets errno on failure and invokes xmalloc to get memory.
98179         Fix a couple of other minor bugs while we're at it.
98180
98181         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98182         (NAMLEN): Remove macro.
98183         (malloc, realloc): Remove decls.
98184         (stpcpy): Likewise.
98185         ("xalloc.h"): Include.
98186         (NAME_SIZE_DEFAULT): New macro.
98187         (savedir): Use xmalloc / xrealloc to allocate memory.
98188         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98189         Skip "" directory entries.
98190         Use strlen to calculate directory entry length, since the old method
98191         is rarely used these days and isn't worth supporting.
98192         Don't use a pointer after freeing it.
98193         Check for integer overflow when calculating allocation size.
98194         Use memcpy to copy entries, instead of stpcpy.
98195         Set errno properly when returning NULL.
98196         Check for readdir error.
98197
98198 2000-06-26  Jim Meyering  <meyering@lucent.com>
98199
98200         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98201
98202 2000-06-25  Jim Meyering  <meyering@lucent.com>
98203
98204         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98205         Linux header bug when _XOPEN_SOURCE is defined to 500.
98206
98207 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98208
98209         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98210         deficiency.
98211
98212 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98213
98214         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98215         Include xalloc.h.
98216         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98217
98218 2000-06-24  Jim Meyering  <meyering@lucent.com>
98219
98220         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98221         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98222         for which strerror does return char*, but which lacks a conveniently
98223         accessible declaration of the function.  If the compile-test says
98224         strerror_r doesn't work, then resort to a `run'-test that works on
98225         BeOS and segfaults on DEC Unix.
98226
98227 2000-06-24  Jim Meyering  <meyering@lucent.com>
98228
98229         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98230
98231 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98232
98233         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98235
98236 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98237
98238         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98239         (mbrtowc, mbstate_t): Define substitutes if
98240         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98241         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98242         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98243
98244 2000-06-23  Jim Meyering  <meyering@lucent.com>
98245
98246         * m4/afs.m4: Add missing AC_MSG_RESULT.
98247         Reported by Bruno Haible.
98248
98249         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98250         Suggestion from Bruno Haible.
98251
98252 2000-06-23  Jim Meyering  <meyering@lucent.com>
98253
98254         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98255
98256 2000-06-21  Jim Meyering  <meyering@lucent.com>
98257
98258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98259
98260 2000-06-21  Jim Meyering  <meyering@lucent.com>
98261
98262         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98263         (noinst_HEADERS): Add getstr.h.
98264
98265         * lib/getline.c (getstr): Move into a separate file.
98266         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98267         the following changes: new parameter, delim2; both delim[12]
98268         parameters have type `int', not `char'.  The latter would lose
98269         with 8-bit delimiters.
98270         * lib/getstr.h: New file.
98271
98272 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98273
98274         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98275         than 1024, return a memory chunk of least possible size, instead
98276         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98277         Use free/xmalloc instead of xrealloc to avoid copying for very long
98278         paths.
98279
98280 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98281
98282         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98283         the empty string.
98284
98285 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98286
98287         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98288         address, not strdup.  Include <stdlib.h> and don't declare free().
98289
98290 2000-06-19  Jim Meyering  <meyering@lucent.com>
98291
98292         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98293
98294 2000-06-18  Jim Meyering  <meyering@lucent.com>
98295
98296         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98297
98298         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98299         `checking whether...' message to be consistent with that of the
98300         lstat test.
98301
98302 2000-06-18  Jim Meyering  <meyering@lucent.com>
98303
98304         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98305         Besides, these days every porting target provides a mkdir function.
98306
98307         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98308         needed. (this snippet comes from src/system.h).
98309
98310 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98311
98312         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98313
98314 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98315
98316         * lib/human.c (adjust_value): New function.
98317         (human_readable_inexact): Apply rounding style even when
98318         printing approximate values.
98319
98320 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98321
98322         * lib/human.c (human_readable_inexact): Allow an input block
98323         size that is not a multiple of the output block size, and vice versa.
98324         Reported by Piergiorgio Sartor.
98325
98326 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98327
98328         * lib/getdate.y (get_date): Apply relative times after time
98329         zone indicator, not before.  Reported by Todd A. Jacobs.
98330
98331 2000-06-13  Jim Meyering  <meyering@lucent.com>
98332
98333         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98334
98335         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98336
98337 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98338
98339         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98340
98341 2000-06-12  Jim Meyering  <meyering@lucent.com>
98342
98343         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98344         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98345         optional argument.
98346         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98347         the optional argument, `lib'.
98348
98349 2000-06-08  Jim Meyering  <meyering@lucent.com>
98350
98351         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98352
98353 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98354
98355         Rewrite largefile configuration so that we don't need to run
98356         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98357         AC_CANONICAL_HOST in configure.in -- jmm]
98358
98359         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98360         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98361         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98362         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98363         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98364         All uses changed.
98365         Instead of inspecting the output of getconf, try to compile the
98366         test program without and with the macro definition.
98367         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98368         for getconf.  Instead, check for the needed flags by compiling
98369         test programs.
98370
98371 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98372
98373         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98374
98375 2000-06-04  Jim Meyering  <meyering@lucent.com>
98376
98377         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98378         SunOS 4.1.4 for which gid_t is an unsigned type.
98379
98380 2000-06-03  Jim Meyering  <meyering@lucent.com>
98381
98382         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98383         now that autoconf requires that.
98384
98385         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98386         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98387         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98388
98389 2000-06-03  Jim Meyering  <meyering@lucent.com>
98390
98391         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98392
98393 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98394
98395         * m4/glibc21.m4: New file.
98396         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98397
98398 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98399
98400         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98401         newer, don't install charset.alias.
98402         * lib/config.charset: Change the Linux/glibc rules so they become empty
98403         on glibc-2.1 or newer.
98404
98405 2000-06-02  Jim Meyering  <meyering@lucent.com>
98406
98407         * lib/mountlist.c: Back out last change.  Instead, do this...
98408         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98409         me_dummy member using the same `ignore'-testing code.
98410         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98411         fs_type strings.
98412         From Mark D. Roth.
98413
98414 2000-05-29  Jim Meyering  <meyering@lucent.com>
98415
98416         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98417         mounts with the `ignore' attribute.  Based on a patch from
98418         Mark D. Roth.
98419
98420 2000-05-28  Jim Meyering  <meyering@lucent.com>
98421
98422         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98423         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98424         * m4/stat.m4: Likewise.
98425         * m4/lstat.m4: Likewise.
98426         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98427
98428         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98429         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98430
98431 2000-05-26  Jim Meyering  <meyering@lucent.com>
98432
98433         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98434
98435 2000-05-24  Jim Meyering  <meyering@lucent.com>
98436
98437         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98438         autoconf requires that.
98439         * m4/lib-check.m4: Likewise.
98440         * m4/jm-macros.m4: Likewise.
98441         * m4/strftime.m4: Likewise.
98442
98443         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98444         AC_CHECK_DECLS, now that autoconf requires that.
98445
98446 2000-05-22  Jim Meyering  <meyering@lucent.com>
98447
98448         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98449         * m4/lstat.m4: Likewise.
98450
98451 2000-05-22  Jim Meyering  <meyering@lucent.com>
98452
98453         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98454
98455 2000-05-20  Jim Meyering  <meyering@lucent.com>
98456
98457         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98458         (jm_PREREQ): Use it.
98459
98460 2000-05-18  Jim Meyering  <meyering@lucent.com>
98461
98462         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98463         back, too, since it may have been modified by allocate_entry.
98464         (hash_delete): Rewrite to use neither the assignment operator
98465         nor the comma operator in an if-expression.
98466
98467 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98468
98469         * lib/closeout.c:
98470         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98471         Remove; no longer needed.
98472         "quotearg.h": Add include.
98473         (file_name): Do not bother to explicitly initialize to NULL; it's less
98474         efficient on some hosts.
98475         (close_stdout_status): Remove test as to whether stdout was already
98476         closed; it breaks for the case "echo x | sort >&-".
98477         Quote file name colons.
98478         Do not assume that _("write error") lacks format strings.
98479
98480 2000-05-15  Jim Meyering  <meyering@lucent.com>
98481
98482         * lib/version-etc.c (version_etc_copyright): Update the copyright
98483         string used in all --version output.
98484
98485 2000-05-14  Jim Meyering  <meyering@lucent.com>
98486
98487         * lib/closeout.c (close_stdout_set_file_name): New function.
98488         (close_stdout_status): Use new file-scoped global.
98489         Return right away if fstat says the stdout file descriptor is invalid.
98490         * lib/closeout.h (close_stdout_set_file_name): Declare.
98491
98492 2000-05-10  Jim Meyering  <meyering@lucent.com>
98493
98494         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98495         (close_stdout_set_status): New function.
98496         * lib/closeout.h (close_stdout_set_status): Declare.
98497
98498 2000-05-09  Jim Meyering  <meyering@lucent.com>
98499
98500         * m4/gettext.m4: Rename this...
98501         * m4/libintl.m4: ...to this.
98502
98503 2000-05-08  Jim Meyering  <meyering@lucent.com>
98504
98505         * lib/long-options.c: Don't include closeout.h.
98506         (parse_long_options): Don't call close_stdout for --version.
98507
98508 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98509
98510         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98511         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98512         2.1.3 bug.  This avoids a clash when files like regex.c define
98513         _GNU_SOURCE.
98514
98515 2000-05-06  Jim Meyering  <meyering@lucent.com>
98516
98517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98518         (AC_REPLACE_FUNCS): Add strnlen.
98519
98520         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98521         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98522
98523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98524         AC_SEARCH_LIBS call for nanosleep.
98525         (LIB_NANOSLEEP): Set and AC_SUBST.
98526
98527 2000-05-06  Jim Meyering  <meyering@lucent.com>
98528
98529         * lib/strnlen.c: Undefine __strnlen and strnlen.
98530         [!weak_alias]: Define __strnlen to strnlen.
98531
98532         * lib/atexit.c: New file, from libiberty.
98533
98534 2000-05-06  Jim Meyering  <meyering@lucent.com>
98535
98536         * lib/closeout.c (close_stdout_status): Also check for errors on the
98537         stderr stream.
98538
98539 2000-05-05  Jim Meyering  <meyering@lucent.com>
98540
98541         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98542         AC_SEARCH_LIBS call for clock_gettime.
98543         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98544
98545         * m4/search-libs.m4: Update from autoconf.
98546
98547         su doesn't work on Solaris 2.6.
98548         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98549         <shadow.h>.  Reported by Dragos Harabor.
98550
98551 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98552
98553         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98554         memcpy instead of xmalloc, xrealloc, path_concat.
98555         (locale_charset): Treat empty environment variables as absent.
98556         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98557
98558 2000-05-04  Jim Meyering  <meyering@lucent.com>
98559
98560         * lib/getopt.c: Update from glibc.
98561         * lib/obstack.c: Likewise.
98562         * lib/obstack.h: Likewise.
98563         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98564         file
98565
98566         * lib/regex.h: Likewise.
98567         * lib/strndup.c: Likewise.
98568         * lib/strnlen.c: New file, from glibc.
98569
98570 2000-05-03  Jim Meyering  <meyering@lucent.com>
98571
98572         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98573
98574 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98575
98576         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98577         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98578         compile-time test, rather than inspecting host and OS, to
98579         decide whether to define _LARGEFILE_SOURCE.
98580
98581 2000-05-01  Jim Meyering  <meyering@lucent.com>
98582
98583         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98584
98585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98586         Based on a patch from Bruno Haible.
98587
98588 2000-05-01  Jim Meyering  <meyering@lucent.com>
98589
98590         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98591
98592 2000-04-29  Jim Meyering  <meyering@lucent.com>
98593
98594         * lib/path-concat.c: Declare strdup only if it's not defined.
98595         * lib/canon-host.c: Likewise.
98596
98597 2000-04-28  Jim Meyering  <meyering@lucent.com>
98598
98599         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98600         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98601         is included first, then limits.h is included by locale.h by libintl.h.
98602         From John David Anglin.
98603
98604 2000-04-25  Jim Meyering  <meyering@lucent.com>
98605
98606         * lib/makepath.c (S_IRWXUGO): Define.
98607         (make_path): Always perform explicit chmod if MODE specifies any
98608         of the `special' permission bits.  Prompted by a bug report against
98609         install from Mate Wierdl and Joost van Baal.
98610
98611 2000-04-18  Jim Meyering  <meyering@lucent.com>
98612
98613         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98614         (jm_PREREQ): Use it.
98615
98616 2000-04-18  Jim Meyering  <meyering@lucent.com>
98617
98618         * lib/README: New file.
98619
98620         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98621         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98622
98623 2000-04-17  Jim Meyering  <meyering@lucent.com>
98624
98625         Get it right :-)
98626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98627         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98628         Suggestion from Akim Demaille.
98629
98630 2000-04-17  Jim Meyering  <meyering@lucent.com>
98631
98632         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98633         the definition of it to rpl_strftime also defined-away the system's
98634         declaration.
98635
98636 2000-04-15  Jim Meyering  <meyering@lucent.com>
98637
98638         Use `C' to denote so-called `contiguous' files, the same way
98639         that tar does.
98640         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98641         (ftypelet): Use S_ISCTG.
98642         From Michael Deutschmann.
98643
98644 2000-04-14  Jim Meyering  <meyering@lucent.com>
98645
98646         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98647         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98648         clobbered.
98649
98650 2000-04-14  Jim Meyering  <meyering@lucent.com>
98651
98652         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98653
98654 2000-04-13  Jim Meyering  <meyering@lucent.com>
98655
98656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98657         AH_VERBATIM to insert required #ifndef into config.h.in.
98658         Suggestion from Akim Demaille.
98659
98660 2000-04-12  Jim Meyering  <meyering@lucent.com>
98661
98662         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98663         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98664         Christian Krackowizer.
98665
98666         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98667         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98668         (AC_SYS_LARGEFILE): Require.
98669         (AM_C_PROTOTYPES): Require.
98670
98671 2000-04-08  Jim Meyering  <meyering@lucent.com>
98672
98673         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98674         names don't conflict.  Reported by Eli Zaretskii.
98675
98676 2000-04-07  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98679         sys/types.h, to work around system header problems on AIX 3.2.5.
98680         From Bruno Haible.
98681
98682 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98683
98684         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98685         bug.  Deal with the different error behavior of Irix iconv.
98686
98687 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98688
98689         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98690         IRIX if the installer said otherwise.
98691
98692 2000-04-05  Jim Meyering  <meyering@lucent.com>
98693
98694         Portability tweaks required for ultrix4.3.
98695         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98696         (jm_CHECK_DECLS): Add getutent to the list of functions.
98697         (_jm_DECL_HEADERS): Add utmpx.h.
98698         From John David Anglin.
98699
98700         * m4/strftime.m4: Back out the 2000-04-02 change.
98701         Instead of that change, simply undefine putenv in the test program.
98702
98703 2000-04-05  Jim Meyering  <meyering@lucent.com>
98704
98705         Portability tweaks required for ultrix4.3.
98706         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98707         getutent.
98708         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98709         * lib/canon-host.c: Declare strdup.
98710         * lib/path-concat.c: Likewise.
98711         From John David Anglin.
98712
98713 2000-04-04  Jim Meyering  <meyering@lucent.com>
98714
98715         Be more DOS 8.3-friendly.
98716         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98717         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98718         * lib/Makefile.am: Reflect renaming.
98719         Reported by Eli Zaretskii.
98720
98721         Use a temporary file name that won't clash with `charset.alias'
98722         in the DOS 8.3 name space.
98723         * lib/Makefile.am (charset_tmp): Define.
98724         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98725         (uninstall-local): Likewise.
98726         Reported by Eli Zaretskii.
98727
98728 2000-04-03  Jim Meyering  <meyering@lucent.com>
98729
98730         * m4/gettext.m4: Fix typo in comment.
98731
98732         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98733         textutils/configure.in).  Suggestion from Paul Eggert.
98734         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98735
98736 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98737
98738         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98739         variable in the shell rather than using putenv, which isn't
98740         portable.  This avoids the configure-time inter-test dependency
98741         on the potentially-renamed putenv function.
98742
98743 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98744
98745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98746         before checking struct stat.st_blksize, so that
98747         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98748
98749 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98750
98751         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98752         since strftime.c uses HAVE_STRFTIME to decide whether to use
98753         the underlying strftime.
98754
98755 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98756
98757         * lib/time/strftime.c (my_strftime): Make sure we call the system
98758         strftime, not ourselves, when invoking the underlying strftime.
98759
98760 2000-03-24  Jim Meyering  <meyering@lucent.com>
98761
98762         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98763         (charset_alias): Define.
98764         (install-exec-local): Factor out common code.
98765         (uninstall-local): Split lines longer than 80.
98766         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98767         (SUFFIXES): Define.
98768         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98769         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98770
98771 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98772
98773         * lib/config.charset: Output a line containing "Packages using this
98774         file".
98775         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98776         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98777         ref-del.sed): New rules.
98778
98779 2000-03-17  Jim Meyering  <meyering@lucent.com>
98780
98781         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98782         Otherwise, include <strings.h>
98783
98784 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98785
98786         * lib/unicodeio.c (utf8_wctomb): New function.
98787         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98788         format instead of in UCS-4 with platform dependent endianness.
98789
98790 2000-03-10  Jim Meyering  <meyering@lucent.com>
98791
98792         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98793         From Marco Franzen.
98794
98795 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98796
98797         * lib/savedir.c (savedir): Work even if directory size is
98798         negative; this can happen with some screwy NFS configurations.
98799
98800 2000-03-06  Jim Meyering  <meyering@lucent.com>
98801
98802         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98803         if it's NULL (because we ran out of memory).  From Bruno Haible.
98804
98805 2000-03-05  Jim Meyering  <meyering@lucent.com>
98806
98807         * lib/localcharset.c ("path-concat.h"): Include.
98808         (get_charset_aliases): Use path_concat instead of ANSI string
98809         concatenation.
98810
98811         * lib/unicodeio.h (PARAMS): Define.
98812         Use it to guard prototype.
98813
98814 2000-03-04  Jim Meyering  <meyering@lucent.com>
98815
98816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98817         for lib/localcharset.c.
98818
98819 2000-03-04  Jim Meyering  <meyering@lucent.com>
98820
98821         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98822         installing into it.
98823         (uninstall-local): Uncomment this rule so `make distcheck' works
98824         once again.
98825
98826         * lib/unicodeio.c (<errno.h>): Include it.
98827         (errno): Declare if not defined.
98828
98829         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98830
98831         * lib/config.charset: New version, incorporating remarks from a linux
98832         i18n mailing list.  From Bruno Haible.
98833
98834 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98835
98836         * m4/codeset.m4: New file.
98837         * m4/iconv.m4: New file.
98838         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98839
98840 2000-03-03  Jim Meyering  <meyering@lucent.com>
98841
98842         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98843
98844 2000-03-02  Jim Meyering  <meyering@lucent.com>
98845
98846         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98847         the messages come out on separate lines.
98848
98849         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98850         rather than jm_CHECK_DECLARATIONS.
98851         * m4/decl.m4: Remove now-unused file.
98852
98853         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98854         geteuid.
98855
98856 2000-03-02  Jim Meyering  <meyering@lucent.com>
98857
98858         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98859
98860 2000-03-01  Jim Meyering  <meyering@lucent.com>
98861
98862         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98863         * lib/unicodeio.c: Likewise.
98864
98865 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98866
98867         * lib/config.charset: New file.
98868         * lib/localcharset.c: New file.
98869         * lib/unicodeio.h, lib/unicodeio.c: New files.
98870         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98871         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98872         (noinst_HEADERS): Add unicodeio.h.
98873         (all-local, install-exec-local, charset.alias): New targets.
98874
98875 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98876
98877         * lib/quotearg.c (ALERT_CHAR): New macro.
98878         (quotearg_buffer_restyled): Use it.
98879
98880 2000-02-27  Jim Meyering  <meyering@lucent.com>
98881
98882         * m4/check-decl.m4: Add getenv to the list.
98883
98884 2000-02-27  Jim Meyering  <meyering@lucent.com>
98885
98886         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98887         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98888
98889         * lib/backupfile.c: Guard inclusion of stdlib.h with
98890         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98891         Declare malloc if needed.
98892
98893         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98894         `#ifndef HAVE_DECL..'
98895         now that autoconf always defines the HAVE_DECL_ symbols.
98896         * lib/human.c: Likewise.
98897         * lib/same.c: Likewise.
98898         * lib/strtoumax.c: Likewise.
98899
98900         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98901         declaration check was not run.
98902         * lib/hash.c: Likewise.
98903         * lib/human.c: Likewise.
98904         * lib/same.c: Likewise.
98905         * lib/strtoumax.c: Likewise.
98906
98907         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98908         `.', then first look up the entire `.'-containing string as a login
98909         name.
98910
98911 2000-02-23  Jim Meyering  <meyering@lucent.com>
98912
98913         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98914         in place of my hack.
98915
98916 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98917
98918         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98919         (textint): New typedef.
98920         (parser_control): Member year changed from int to textint.
98921         All uses changed.
98922         (YYSTYPE): Removed; replaced by %union with int and textint members.
98923         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98924         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98925         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98926         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98927         (date, number, to_year): Use width of number in digits, not its value,
98928         to determine whether it's a 2-digit year, or a 2-digit time.
98929         (yylex): Store number of digits of numeric tokens.
98930         Reported by John Kendall.
98931
98932         (parser_control): Changed from struct parser_control to typedef (for
98933         consistency).  All uses changed.
98934
98935         (tID): Removed; not used.
98936         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98937
98938 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98939
98940         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98941         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98942
98943 2000-02-12  Jim Meyering  <meyering@lucent.com>
98944
98945         * lib/userspec.c (ISDIGIT): Define it.
98946         (isdigit): Remove definition.
98947         (is_number): Use ISDIGIT, not isdigit.
98948         <libintl.h>: Include.
98949         (_ and N_): Define.
98950         (parse_user_spec): Mark translatable strings.
98951
98952 2000-02-10  Jim Meyering  <meyering@lucent.com>
98953
98954         With these changes, nanosleep.[ch] are finally enough like the other
98955         lib/* replacement files to compile on a few more losing systems.
98956
98957         * lib/nanosleep.h: Don't include config.h.
98958         Remove prototype from declaration of nanosleep.
98959         (PARAMS): Remove now-unneeded definition.
98960         * lib/nanosleep.c: #undef nanosleep.
98961         (rpl_nanosleep): Rename from nanosleep.
98962
98963 2000-02-10  Jim Meyering  <meyering@lucent.com>
98964
98965         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98966         gnu_nanosleep to rpl_nanosleep.
98967
98968 2000-02-09  Jim Meyering  <meyering@lucent.com>
98969
98970         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98971         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98972
98973 2000-02-08  Akim Demaille  <akim@epita.fr>
98974
98975         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98976         `[' and `]' and remove uses of `changequote'.
98977         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98978         (AC_SYS_LARGEFILE): Likewise.
98979         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98980         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98981         of changequote.
98982         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98983         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98984         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98985         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98986
98987 2000-02-05  Jim Meyering  <meyering@lucent.com>
98988
98989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98990         Remove explicit use of AC_HEADER_TIME.  It is required by
98991         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98992         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98993         in autoconf whereby the expansion of the latter ended up preceding
98994         the expansion of its prerequisite, AC_HEADER_TIME.
98995         Reported by Volker Borchert.
98996
98997 2000-02-03  Jim Meyering  <meyering@lucent.com>
98998
98999         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99000
99001 2000-02-03  Jim Meyering  <meyering@lucent.com>
99002
99003         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99004         rather than with `#if HAVE_UTMPNAME'.
99005
99006 2000-02-02  Jim Meyering  <meyering@lucent.com>
99007
99008         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99009         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99010         Reported by Eli Zaretskii.
99011
99012 2000-02-01  Jim Meyering  <meyering@lucent.com>
99013
99014         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99015
99016 2000-01-31  Jim Meyering  <meyering@lucent.com>
99017
99018         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99019         functions.  Add the time.h and sys/time.h headers along with the
99020         AC_REQUIRE'ment of AC_HEADER_TIME.
99021
99022 2000-01-31  Jim Meyering  <meyering@lucent.com>
99023
99024         * lib/nanosleep.h (nanosleep): Guard declaration with
99025         `#if ! HAVE_DECL_NANOSLEEP'.
99026         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99027         the declaration in that vendor's sys/timers.h.
99028         Reported by Christian Krackowizer.
99029
99030         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99031         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99032         (ISPRINT): Likewise.
99033         Reported by Tom Tromey.
99034
99035 2000-01-30  Jim Meyering  <meyering@lucent.com>
99036
99037         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99038
99039         * m4/prereq.m4 (utmp_includes): Define.
99040         Check for ut_user and ut_name members in both struct utmpx
99041         and struct utmp.
99042
99043 2000-01-30  Jim Meyering  <meyering@lucent.com>
99044
99045         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99046         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99047         header files where only utmpx.ut_user is declared.
99048
99049         * lib/readutmp.h (UT_USER): Define.
99050
99051 2000-01-29  Jim Meyering  <meyering@lucent.com>
99052
99053         * m4/lib-check.m4: New file containing library-related checks from
99054         fileutils and sh-utils (textutils had none).
99055
99056 2000-01-28  Jim Meyering  <meyering@lucent.com>
99057
99058         * m4/perl.m4: Change format of warning message to look more like that
99059         from the missing script.  Suggestion from François Pinard.
99060
99061 2000-01-25  Jim Meyering  <meyering@lucent.com>
99062
99063         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99064         well as time.h in the compile check.
99065         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99066         Fix typo in cross-compiling case: s/yes/no/.
99067
99068 2000-01-23  Jim Meyering  <meyering@lucent.com>
99069
99070         * m4/jm-macros.m4: Move df-related tests here from
99071         fileutils/configure.in
99072
99073         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99074         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99075
99076         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99077         s/space/ac_fsusage_space/.
99078         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99079
99080         * m4/ftruncate.m4: New file (derived from part of
99081         fileutils/configure.in).
99082         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99083         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99084
99085         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99086         AC_SUBST these here, rather than just in sh-util/configure.in, so
99087         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99088         all the same.
99089         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99090         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99091         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99092         (AC_SUBST(POW_LIBM)): Likewise.
99093         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99094
99095 2000-01-23  Jim Meyering  <meyering@lucent.com>
99096
99097         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99098         obstack.c.
99099
99100 2000-01-22  Jim Meyering  <meyering@lucent.com>
99101
99102         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99103
99104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99105
99106         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99107         configure.in
99108         (AC_CHECK_HEADERS): Likewise for sh-utils.
99109         (AC_CHECK_HEADERS): Likewise for textutils.
99110         Merge the three lists of headers.
99111
99112         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99113         from fileutils' configure.in.
99114
99115         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99116         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99117         check-decl.m4.
99118
99119         * m4/check-decl.m4: Use #if rather than #ifdef.
99120         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99121         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99122         (_jm_DECL_HEADERS): Define new function.
99123         (jm_CHECK_DECLARATIONS): Require it.
99124
99125 2000-01-22  Jim Meyering  <meyering@lucent.com>
99126
99127         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99128         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99129         Required for some AIX systems.  Reported by Christian Krackowizer.
99130         [TESTING] (main): New function.
99131
99132         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99133         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99134         letters.
99135
99136         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99137         iswprint.
99138
99139         * lib/strverscmp.c (ISDIGIT): Define.
99140         (strverscmp): Use ISDIGIT, not isdigit.
99141
99142 2000-01-19  Jim Meyering  <meyering@lucent.com>
99143
99144         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99145         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99146         defines `struct timespec' in <sys/time.h>
99147
99148         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99149         Thanks to Akim for explaining.
99150
99151 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99152
99153         * lib/nanosleep.c (nanosleep):
99154         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99155         POSIX.1 doesn't require SA_INTERRUPT and some systems
99156         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99157         it's been part of POSIX.1 since day 1 (in 1988).
99158
99159 2000-01-17  Jim Meyering  <meyering@lucent.com>
99160
99161         * lib/interlock: Remove unused file.  Reported by François Pinard.
99162
99163 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99164
99165         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99166         alert, backslash, formfeed, and vertical tab unnecessarily in
99167         shell quoting style.
99168
99169 2000-01-16  Jim Meyering  <meyering@lucent.com>
99170
99171         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99172         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99173         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99174         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99175
99176 2000-01-16  Jim Meyering  <meyering@lucent.com>
99177
99178         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99179         because the latter didn't work.
99180
99181 2000-01-15  Jim Meyering  <meyering@lucent.com>
99182
99183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99184         (AC_REPLACE_FUNCS): Add memcpy and memset.
99185         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99186         Add strpbrk.
99187         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99188
99189 2000-01-12  Jim Meyering  <meyering@lucent.com>
99190
99191         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99192         (jm_PREREQ): Use it.
99193         (jm_PREREQ_READUTMP): New macro.
99194         (jm_PREREQ): Use it.
99195
99196 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99197
99198         Quote multibyte characters correctly.
99199         * m4/c-bs-a.m4: New file.
99200         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99201         (jm_PREREQ): Use it.
99202
99203 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99204
99205         * m4/uintmax_t.m4: Port to autoconf 2.13.
99206
99207 2000-01-08  Jim Meyering  <meyering@ascend.com>
99208
99209         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99210         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99211
99212 2000-01-04  Jim Meyering  <meyering@ascend.com>
99213
99214         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99215         jm_STRUCT_DIRENT_D_TYPE.
99216         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99217         jm_STRUCT_DIRENT_D_INO.
99218         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99219         jm_STRUCT_UTIMBUF.
99220         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99221         renamings.
99222         * m4/utime.m4: Likewise.
99223
99224         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99225         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99226
99227 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99228
99229         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99230         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99231
99232 2000-01-02  Jim Meyering  <meyering@ascend.com>
99233
99234         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99235         remember if this is necessary.
99236
99237 1999-12-26  Jim Meyering  <meyering@ascend.com>
99238
99239         * m4/jm-macros.m4: Use it here.
99240         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99241
99242 1999-12-23  Jim Meyering  <meyering@ascend.com>
99243
99244         * m4/jm-macros.m4: Check for clock_gettime (moved from
99245         fileutils/configure.in)
99246         Check for gettimeofday.
99247
99248 1999-12-20  Jim Meyering  <meyering@ascend.com>
99249
99250         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99251         autoconf-2.14a-1999-12-20.
99252
99253 1999-12-19  Jim Meyering  <meyering@ascend.com>
99254
99255         * m4/lstat-slash.m4: New file.
99256         * m4/jm-macros.m4: Use the new macro:
99257         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99258
99259 1999-12-07  Jim Meyering  <meyering@ascend.com>
99260
99261         * m4/perl.m4: Require that File::Compare be available, too.
99262         Too many systems seem to lack it.
99263
99264         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99265         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99266
99267 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99268
99269         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99270         problem with the QNX 4.25 shell, which doesn't propagate exit
99271         status of failed commands inside shell assignments.
99272
99273 1999-11-17  Jim Meyering  <meyering@ascend.com>
99274
99275         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99276
99277 1999-11-07  Jim Meyering  <meyering@ascend.com>
99278
99279         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99280
99281 1999-11-06  Jim Meyering  <meyering@ascend.com>
99282
99283         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99284         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99285
99286 1999-11-05  Jim Meyering  <meyering@ascend.com>
99287
99288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99289         configure.in of textutils, fileutils, and sh-utils into this one
99290         (shared between those packages) file.
99291         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99292         AC_STRUCT_ST_BLKSIZE.
99293
99294 1999-11-03  Jim Meyering  <meyering@ascend.com>
99295
99296         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99297         of AC_CHECK_TYPE checks includes unistd.h.
99298         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99299         Suggestion from Akim Demaille.
99300
99301 1999-10-30  Jim Meyering  <meyering@ascend.com>
99302
99303         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99304         m4-quoted string.
99305         * m4/ls-mntd-fs.m4: Likewise.
99306         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99307         * m4/jm-winsz1.m4: Likewise.
99308
99309         * m4/const.m4: Remove file, since the fix made it into the experimental
99310         version of autoconf.
99311         * m4/mktime.m4: Likewise.
99312
99313         * m4/check-type.m4: Remove file, now that the latest version of
99314         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99315
99316         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99317         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99318         AC_CHECK_TYPE.
99319
99320 1999-10-04  Jim Meyering  <meyering@ascend.com>
99321
99322         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99323
99324 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99325
99326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99327         2.95.1 bug with HP-UX 10.20.
99328
99329 1999-09-17  Jim Meyering  <meyering@ascend.com>
99330
99331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99332         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99333         due to missing strdup (against sh-utils-2.0).
99334
99335 1999-08-29  Jim Meyering  <meyering@ascend.com>
99336
99337         * m4/jm-macros.m4: Require jm_BISON.
99338         * m4/bison.m4: New file.
99339
99340 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99341
99342         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99343         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99344
99345 1999-08-05  Jim Meyering  <meyering@ascend.com>
99346
99347         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99348         to avoid conflicts with `conftest' on 8+3 filesystems.
99349         Suggestion from Eli Zaretskii.
99350
99351 1999-08-04  Jim Meyering  <meyering@ascend.com>
99352
99353         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99354         fileutils and sh-utils (textutils's getline test was inadequate).
99355         (AM_FUNC_GETLINE): Run this test.
99356         (AC_CHECK_FUNCS): Check for getdelim.
99357         Reported by Bob Proulx.
99358
99359 1999-08-02  Jim Meyering  <meyering@ascend.com>
99360
99361         * m4/jm-macros.m4: Add a comment.
99362
99363 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99364
99365         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99366         <inttypes.h> defines strtoumax as a macro (and not as a
99367         function).
99368
99369 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99370
99371         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99372         that we can shift, multiply and divide unsigned long long
99373         values; Ultrix cc can't do it.
99374
99375 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99376
99377         * m4/mktime.m4: New file, which is a preview of what should appear
99378         in the next public autoconf release.
99379
99380 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99381
99382         * m4/lfs.m4: Remove this file.
99383         * m4/largefile.m4: New file.  It contains the old contents of
99384         lfs.m4, except that all names with prefix AC_LFS have been
99385         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99386         compatible with future autoconf versions.  Also, some minor m4
99387         quoting problems have been fixed.
99388
99389 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99390
99391         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99392         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99393         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99394         and simplify the shell code.
99395
99396 1999-08-01  Jim Meyering  <meyering@ascend.com>
99397
99398         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99399         m4.
99400
99401 1999-07-20  Jim Meyering  <meyering@ascend.com>
99402
99403         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99404
99405 1999-07-15  Jim Meyering  <meyering@ascend.com>
99406
99407         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99408
99409 1999-05-22  Jim Meyering  <meyering@ascend.com>
99410
99411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99412
99413 1999-05-20  Jim Meyering  <meyering@ascend.com>
99414
99415         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99416         Add a colon after each `then' in case $4 is empty.
99417
99418 1999-05-16  Jim Meyering  <meyering@ascend.com>
99419
99420         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99421
99422 1999-05-10  Jim Meyering  <meyering@ascend.com>
99423
99424         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99425
99426         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99427         AC_FUNC_MKTIME.
99428
99429 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99430
99431         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99432
99433 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99434
99435         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99436         not CPPFLAGS, so that linking works correctly in IRIX.
99437
99438 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99439
99440         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99441
99442 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99443
99444         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99445         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99447         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99448         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99449
99450         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99451
99452 1999-04-20  Jim Meyering  <meyering@ascend.com>
99453
99454         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99455         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99456         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99457
99458 1999-04-18  Jim Meyering  <meyering@ascend.com>
99459
99460         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99461         * m4/jm-macros.m4: Use it.
99462
99463 1999-04-06  Jim Meyering  <meyering@ascend.com>
99464
99465         * m4/strftime.m4: Remove test for %f.
99466
99467 1999-03-29  Jim Meyering  <meyering@ascend.com>
99468
99469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99470         superset of the AC_TYPE_* checks in the textutils, fileutils,
99471         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99472         AC_TYPE_PID_T.
99473
99474 1999-03-28  Jim Meyering  <meyering@ascend.com>
99475
99476         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99477         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99478         replaced e.g., in the *.sh files of the sh-utils.
99479
99480 1999-03-20  Jim Meyering  <meyering@ascend.com>
99481
99482         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99483         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99484         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99485
99486 1999-03-19  Jim Meyering  <meyering@ascend.com>
99487
99488         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99489
99490 1999-03-12  Jim Meyering  <meyering@ascend.com>
99491
99492         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99493
99494 1999-03-07  Jim Meyering  <meyering@ascend.com>
99495
99496         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99497         declared.
99498
99499 1999-02-17  Jim Meyering  <meyering@ascend.com>
99500
99501         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99502         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99503
99504 1999-02-07  Jim Meyering  <meyering@ascend.com>
99505
99506         * m4/group-member.m4: New file -- extracted from sh-utils'
99507         configure.in.
99508
99509         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99510         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99511
99512 1999-02-06  Jim Meyering  <meyering@ascend.com>
99513
99514         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99515         * m4/fnmatch.m4: Likewise.
99516         * m4/getgroups.m4: Likewise.
99517         * m4/lstat.m4: Likewise.
99518         * m4/malloc.m4: Likewise.
99519         * m4/putenv.m4: Likewise.
99520         * m4/realloc.m4: Likewise.
99521         * m4/regex.m4: Likewise.
99522         * m4/stat.m4: Likewise.
99523         * m4/strftime.m4: Likewise.
99524         Suggestion from Alain Magloire.
99525
99526         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99527         * m4/fnmatch.m4: Likewise.
99528         * m4/getgroups.m4: Likewise.
99529         * m4/getline.m4: Likewise.
99530         * m4/lstat.m4: Likewise.
99531         * m4/malloc.m4: Likewise.
99532         * m4/memcmp.m4: Likewise.
99533         * m4/putenv.m4: Likewise.
99534         * m4/realloc.m4: Likewise.
99535         * m4/regex.m4: Likewise.
99536         * m4/stat.m4: Likewise.
99537         * m4/strftime.m4: Likewise.
99538         Suggestion from Alain Magloire.
99539
99540         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99541         an argument.
99542
99543         * m4/regex.m4: Add a run-time Test for proper operation of
99544         re_compile_pattern.
99545
99546 1999-01-31  Jim Meyering  <meyering@ascend.com>
99547
99548         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99549
99550 1999-01-30  Jim Meyering  <meyering@ascend.com>
99551
99552         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99553
99554         * m4/jm-mktime.m4: Make this a wrapper around the official
99555         AM_FUNC_MKTIME rather than my private copy, now that the official one
99556         is up to date.
99557         * m4/mktime.m4: Remove file.
99558
99559         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99560         * m4/uptime.m4: Likewise.
99561         * m4/uintmax_t.m4: Likewise.
99562
99563 1999-01-28  Jim Meyering  <meyering@ascend.com>
99564
99565         * m4/jm-macros.m4: Use jm_AFS.
99566         * m4/afs.m4: New file (from fileutils' configure.in).
99567
99568         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99569         * m4/chown.m4: Likewise.
99570         * m4/d-ino.m4: Likewise.
99571         * m4/d-type.m4: Likewise.
99572         * m4/fnmatch.m4: Likewise.
99573         * m4/getgroups.m4: Likewise.
99574         * m4/gettext.m4: Likewise.
99575         * m4/jm-mktime.m4: Likewise.
99576         * m4/jm-winsz2.m4: Likewise.
99577         * m4/lcmessage.m4: Likewise.
99578         * m4/ls-mntd-fs.m4: Likewise.
99579         * m4/malloc.m4: Likewise.
99580         * m4/memcmp.m4: Likewise.
99581         * m4/putenv.m4: Likewise.
99582         * m4/realloc.m4: Likewise.
99583         * m4/st_mtim.m4: Likewise.
99584         * m4/strftime.m4: Likewise.
99585
99586 1999-01-16  Jim Meyering  <meyering@ascend.com>
99587
99588         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99589         (ARGMATCH_DIE_DECL): Define.
99590
99591 1999-01-12  Jim Meyering  <meyering@ascend.com>
99592
99593         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99594         Reported by Lars Hecking.
99595
99596 1999-01-10  Jim Meyering  <meyering@ascend.com>
99597
99598         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99599         gross kludge.
99600         * m4/inttypes_h.m4: Likewise.
99601         * m4/lstat.m4: Likewise.
99602         * m4/malloc.m4: Likewise.
99603         * m4/readdir.m4: Likewise.
99604         * m4/realloc.m4: Likewise.
99605         * m4/st_dm_mode.m4: Likewise.
99606         * m4/stat.m4: Likewise.
99607         * m4/utimbuf.m4: Likewise.
99608         * m4/utimes.m4: Likewise.
99609
99610         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99611         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99612         comments in config.h.in are meaningful.
99613
99614         * m4/jm-macros.m4: Require autoconf-2.13 here.
99615
99616         * m4/regex.m4: By default, don't use the included regex.c on systems
99617         with glibc 2.  Suggestion from Uli Drepper.
99618
99619 1999-01-02  Jim Meyering  <meyering@ascend.com>
99620
99621         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99622
99623 1998-12-18  Jim Meyering  <meyering@ascend.com>
99624
99625         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99626         Based on a suggestion from Lars Hecking.
99627
99628 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99629
99630         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99631
99632 1998-11-16  Jim Meyering  <meyering@ascend.com>
99633
99634         * m4/lfs.m4: Double-quote the `uname...` expression.
99635
99636 1998-11-14  Jim Meyering  <meyering@ascend.com>
99637
99638         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99639         * m4/stat.m4: Likewise.
99640
99641 1998-11-03  Jim Meyering  <meyering@ascend.com>
99642
99643         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99644         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99645
99646 1998-10-18  Jim Meyering  <meyering@ascend.com>
99647
99648         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99649
99650 1998-10-17  Jim Meyering  <meyering@ascend.com>
99651
99652         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99653         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99654         calls for those previously hard-coded headers.  Instead, take a new
99655         parameter.
99656         (jm_CHECK_DECLARATIONS): Reflect interface change.
99657         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99658         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99659
99660         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99661
99662 1998-10-14  Jim Meyering  <meyering@ascend.com>
99663
99664         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99665         instead of "TZ=America/Vancouver".  From Paul Eggert.
99666
99667 1998-10-11  Jim Meyering  <meyering@ascend.com>
99668
99669         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99670         This adds a test for a recently added compatibility fix for mktime.c.
99671         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99672
99673 1998-09-27  Jim Meyering  <meyering@ascend.com>
99674
99675         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99676
99677         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99678         ../configure.in, including a change from Gordon Matzigkeit to allow
99679         cross-compiling for the Hurd.
99680
99681         * m4/glibc.m4: New file/macro to test for the GNU C Library
99682         versions 1 and 2.  From Gordon Matzigkeit.
99683         Indent.
99684
99685 1998-09-21  Jim Meyering  <meyering@ascend.com>
99686
99687         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99688
99689 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99690
99691         Port nanosecond-resolution times to UnixWare 2.1.2 and
99692         pedantic Solaris 2.6.
99693
99694         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99695         AC_STRUCT_ST_MTIM.
99696         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99697         Generate name of ns member, instead of just 1 or undef.
99698         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99699
99700 1998-08-15  Jim Meyering  <meyering@ascend.com>
99701
99702         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99703         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99704         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99705         instead of jm_TYPE_SSIZE_T.
99706
99707 1998-08-12  Jim Meyering  <meyering@ascend.com>
99708
99709         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99710
99711 1998-08-02  Jim Meyering  <meyering@ascend.com>
99712
99713         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99714         in acconfig.h manually.
99715
99716 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99717
99718         * m4/st_mtim.m4: New file.
99719
99720 1998-07-28  Jim Meyering  <meyering@ascend.com>
99721
99722         * m4/utimes.m4: Undef stat.
99723
99724 1998-07-25  Jim Meyering  <meyering@ascend.com>
99725
99726         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99727         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99728
99729 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99730
99731         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99732         uid and gid actually remain unchanged.
99733
99734 1998-07-07  Jim Meyering  <meyering@ascend.com>
99735
99736         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99737
99738 1998-07-04  Jim Meyering  <meyering@ascend.com>
99739
99740         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99741         to prove that this macro can be used in packages without regex.c.
99742
99743 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99744
99745         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99746         is to be used.
99747
99748 1998-07-03  Jim Meyering  <meyering@ascend.com>
99749
99750         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99751
99752         * m4/gettext.m4: New file -- from gettext-0.10.35.
99753         * m4/lcmessage.m4: Likewise.
99754         * m4/progtest.m4: Likewise.
99755
99756         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99757         * m4/jm-macros.m4: Require the new macro.
99758
99759 1998-06-29  Jim Meyering  <meyering@ascend.com>
99760
99761         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99762         for the definition of NGROUPS (used in a system header included
99763         by sys/mount.h).
99764
99765 1998-06-28  Jim Meyering  <meyering@ascend.com>
99766
99767         * m4/ls-mntd-fs.m4: New file.
99768         * m4/fstypename.m4: New file.
99769
99770         * m4/jm-macros.m4: Require the new macro.
99771         * m4/jm-glibc-io.m4: New file.
99772
99773 1998-05-19  Jim Meyering  <meyering@ascend.com>
99774
99775         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99776         * m4/lchown.m4: New file.
99777
99778         * m4/Makefile.am.in: New file.
99779         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99780
99781 1998-05-14  Jim Meyering  <meyering@ascend.com>
99782
99783         * m4/Makefile.am (EXTRA_DIST): Add them.
99784         * m4/jm-macros.m4: New file.
99785         * m4/utimbuf.m4: New file.
99786
99787 1998-05-12  Jim Meyering  <meyering@ascend.com>
99788
99789         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99790
99791 1998-05-11  Jim Meyering  <meyering@ascend.com>
99792
99793         * m4/isc-posix.m4: New file.
99794
99795 1998-05-10  Jim Meyering  <meyering@ascend.com>
99796
99797         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99798
99799 1998-05-09  Jim Meyering  <meyering@ascend.com>
99800
99801         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99802         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99803         with automake.
99804
99805         * m4/ssize_t.m4: New file.
99806         * m4/mktime.m4: Remove file -- the new automake has this now.
99807
99808 1998-04-26  Jim Meyering  <meyering@ascend.com>
99809
99810         * m4/assert.m4: New file.
99811         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99812
99813 1998-04-05  Jim Meyering  <meyering@ascend.com>
99814
99815         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99816         (jm_PREREQ): Use it here.
99817
99818 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99819
99820         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99821         in acconfig.h.
99822
99823 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99824
99825         * m4/prereq.m4: New file.
99826         * m4/error.m4: New file.
99827         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99828
99829 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99830
99831         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99832         cache-check for the same variable -- that defeated the purpose of
99833         the test; the test program was never run.  This was a problem only
99834         on systems with losing getline functions -- HP-UX 10.20 is one.
99835         Reported by Bjorn Helgaas.
99836
99837 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99838
99839         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99840
99841 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99842
99843         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99844
99845         * m4/const.m4: New file.  Use an initializer in this declaration
99846         typedef int charset[2]; const charset x;
99847         Reported by Bob Glickstein.
99848
99849 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99850
99851         * m4/chown.m4: Fix reversed types on -1 args to chown.
99852         From Kaveh Ghazi.
99853
99854 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99855
99856         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99857         Add lseek and memchr.
99858
99859         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99860         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99861         have a 20-character limit on names.
99862
99863 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99864
99865         * m4/inttypes_h.m4: New file.
99866         * m4/uintmax_t.m4: New file.
99867         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99868
99869
99870         -----
99871
99872         Local Variables:
99873         coding: utf-8
99874         End:
99875
99876         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99877
99878         Copying and distribution of this file, with or without
99879         modification, are permitted provided the copyright notice
99880         and this notice are preserved.